2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_MD5SUM
:=9c7e8b6606b9f158ae20b8521ba2867c
17 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/fuse24
/Default
23 TITLE
:=FUSE for kernel
2.4
25 URL
:=http
://fuse.sourceforge.net
/
28 define Package
/fuse24
/Default
/description
29 FUSE for kernel
2.4 (Filesystem in UserSpacE
) contains only the kernel module.
30 The libraries and utilities can be compiled from a recent FUSE version
(package fuse
).
32 http
://apps.sourceforge.net
/mediawiki
/fuse
/index.php?title
=FAQ
#What_version_of_FUSE_do_I_need_to_use_FUSE_with_Linux_2.4.3F
35 define KernelPackage
/fuse24
36 $(call Package
/fuse24
/Default
)
39 TITLE
+= (kernel module
)
40 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.
$(LINUX_KMOD_SUFFIX
)
41 AUTOLOAD
:=$(call AutoLoad
,80,fuse
)
44 define KernelPackage
/fuse24
/description
45 $(call Package
/fuse24
/Default
/description
)
46 This package contains the FUSE kernel
2.4 module.
49 define KernelPackage
/fuse24
/install
50 $(call
$(Package
/kmod-fuse24
/install))
51 $(INSTALL_DIR
) $(1)/etc
/init.d
52 # symlinks /dev/misc/fuse to /dev/fuse on startup
53 $(INSTALL_BIN
) .
/files
/fuse24.init
$(1)/etc
/init.d
/fuse24
56 define Build
/Configure
57 (cd
$(PKG_BUILD_DIR
); \
58 rm -rf config.
{cache
,status
} ; \
59 touch configure.in
; \
62 touch
include/config.h.in
; \
64 $(TARGET_CONFIGURE_OPTS
) \
65 CFLAGS
="$(TARGET_CFLAGS)" \
67 --target
=$(GNU_TARGET_NAME
) \
68 --host
=$(GNU_TARGET_NAME
) \
69 --build
=$(GNU_HOST_NAME
) \
75 --datadir=/usr
/share \
76 --includedir=/usr
/include \
77 --infodir=/usr
/share
/info \
79 --libexecdir
=/usr
/lib \
80 --localstatedir
=/var \
81 --mandir=/usr
/share
/man \
84 $(DISABLE_LARGEFILE
) \
89 --enable-kernel-module \
91 --disable-auto-modprobe \
92 --with-kernel
=$(LINUX_DIR
) \
100 rm -rf
$(PKG_INSTALL_DIR
)
101 mkdir
-p
$(PKG_INSTALL_DIR
)
102 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
103 ARCH
="$(LINUX_KARCH)" \
104 CROSS_COMPILE
="$(TARGET_CROSS)" \
105 DESTDIR
="$(PKG_INSTALL_DIR)" \
109 define Build
/InstallDev
110 mkdir
-p
$(1)/usr
/include
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fuse
{,.h
} $(1)/usr
/include/
112 mkdir
-p
$(1)/usr
/lib
/pkgconfig
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(1)/usr
/lib
/pkgconfig
/
114 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
115 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
118 $(eval
$(call KernelPackage
,fuse24
))