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
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/fuse24
/Default
27 TITLE
:=FUSE for kernel
2.4
29 URL
:=http
://fuse.sourceforge.net
/
32 define Package
/fuse24
/Default
/description
33 FUSE for kernel
2.4 (Filesystem in UserSpacE
) contains only the kernel module.
34 The libraries and utilities can be compiled from a recent FUSE version
(package fuse
).
36 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
39 define KernelPackage
/fuse24
40 $(call Package
/fuse24
/Default
)
43 TITLE
+= (kernel module
)
44 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.
$(LINUX_KMOD_SUFFIX
)
45 AUTOLOAD
:=$(call AutoLoad
,80,fuse
)
48 define KernelPackage
/fuse24
/description
49 $(call Package
/fuse24
/Default
/description
)
50 This package contains the FUSE kernel
2.4 module.
53 define KernelPackage
/fuse24
/install
54 $(call
$(Package
/kmod-fuse24
/install))
55 echo mknod
/dev
/fuse
-m
0666 c
10 229 >> $(1)/CONTROL
/postinst
58 define Build
/Configure
59 (cd
$(PKG_BUILD_DIR
); \
60 rm -rf config.
{cache
,status
} ; \
61 touch configure.in
; \
64 touch
include/config.h.in
; \
66 $(TARGET_CONFIGURE_OPTS
) \
67 CFLAGS
="$(TARGET_CFLAGS)" \
69 --target
=$(GNU_TARGET_NAME
) \
70 --host
=$(GNU_TARGET_NAME
) \
71 --build
=$(GNU_HOST_NAME
) \
77 --datadir=/usr
/share \
78 --includedir=/usr
/include \
79 --infodir=/usr
/share
/info \
81 --libexecdir
=/usr
/lib \
82 --localstatedir
=/var \
83 --mandir=/usr
/share
/man \
86 $(DISABLE_LARGEFILE
) \
91 --enable-kernel-module \
93 --disable-auto-modprobe \
94 --with-kernel
=$(LINUX_DIR
) \
102 rm -rf
$(PKG_INSTALL_DIR
)
103 mkdir
-p
$(PKG_INSTALL_DIR
)
104 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
105 ARCH
="$(LINUX_KARCH)" \
106 CROSS_COMPILE
="$(TARGET_CROSS)" \
107 DESTDIR
="$(PKG_INSTALL_DIR)" \
111 define Build
/InstallDev
112 mkdir
-p
$(1)/usr
/include
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fuse
{,.h
} $(1)/usr
/include/
114 # mkdir -p $(1)/usr/lib
115 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(1)/usr/lib/
116 mkdir
-p
$(1)/usr
/lib
/pkgconfig
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(1)/usr
/lib
/pkgconfig
/
118 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
119 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
120 #echo mknod /dev/fuse -m 0666 c 10 229 >> $(PKG_BUILD_DIR)/ipkg/kmod-fuse24/CONTROL/postinst
123 $(eval
$(call KernelPackage
,fuse24
))