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 echo mknod
/dev
/fuse
-m
0666 c
10 229 >> $(1)/CONTROL
/postinst
54 define Build
/Configure
55 (cd
$(PKG_BUILD_DIR
); \
56 rm -rf config.
{cache
,status
} ; \
57 touch configure.in
; \
60 touch
include/config.h.in
; \
62 $(TARGET_CONFIGURE_OPTS
) \
63 CFLAGS
="$(TARGET_CFLAGS)" \
65 --target
=$(GNU_TARGET_NAME
) \
66 --host
=$(GNU_TARGET_NAME
) \
67 --build
=$(GNU_HOST_NAME
) \
73 --datadir=/usr
/share \
74 --includedir=/usr
/include \
75 --infodir=/usr
/share
/info \
77 --libexecdir
=/usr
/lib \
78 --localstatedir
=/var \
79 --mandir=/usr
/share
/man \
82 $(DISABLE_LARGEFILE
) \
87 --enable-kernel-module \
89 --disable-auto-modprobe \
90 --with-kernel
=$(LINUX_DIR
) \
98 rm -rf
$(PKG_INSTALL_DIR
)
99 mkdir
-p
$(PKG_INSTALL_DIR
)
100 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
101 ARCH
="$(LINUX_KARCH)" \
102 CROSS_COMPILE
="$(TARGET_CROSS)" \
103 DESTDIR
="$(PKG_INSTALL_DIR)" \
107 define Build
/InstallDev
108 mkdir
-p
$(1)/usr
/include
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fuse
{,.h
} $(1)/usr
/include/
110 # mkdir -p $(1)/usr/lib
111 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(1)/usr/lib/
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
116 #echo mknod /dev/fuse -m 0666 c 10 229 >> $(PKG_BUILD_DIR)/ipkg/kmod-fuse24/CONTROL/postinst
119 $(eval
$(call KernelPackage
,fuse24
))