2 # Copyright (C) 2006-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
11 ifneq ($(findstring "0.9.29",$(CONFIG_UCLIBC_VERSION
)),"0.9.29")
13 PKG_MD5SUM
:=e218df6c84fc17c1126d31de9472a76c
16 PKG_MD5SUM
:=004cea70d724fdc7f1a952dffe4c9db8
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
21 PKG_SOURCE_URL
:=@SF
/e2fsprogs
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/e2fsprogs
/Default
26 URL
:=http
://e2fsprogs.sourceforge.net
/
29 define Package
/e2fsprogs
30 $(call Package
/e2fsprogs
/Default
)
33 TITLE
:=Ext2
/3 filesystem utilities
34 DEPENDS
:=+libblkid
+libuuid
+libext2fs
+libpthread
37 define Package
/e2fsprogs
/description
38 This package contains essential ext2 filesystem utilities which consists of
39 e2fsck
, mke2fs
, debugfs
, dumpe2fs
, tune2fs
, and most of the other core ext2
43 define Package
/libuuid
44 $(call Package
/e2fsprogs
/Default
)
47 TITLE
:=DCE compatible Universally Unique Identifier library
50 define Package
/libuuid
/description
51 Library for generating DCE compatible Universally Unique Identifiers.
54 define Package
/uuidgen
55 $(call Package
/e2fsprogs
)
57 TITLE
:=Command line utility to create a new UUID value
60 define Package
/uuidgen
/description
61 uuidgen program creates a new universally unique identifier
(UUID
)
62 using the libuuid library. The new UUID can reasonably be considered
63 unique among
all UUIDs created on the local system
, and among UUIDs
64 created on other systems in the past and in the future.
67 define Package
/libblkid
68 $(call Package
/e2fsprogs
/Default
)
71 TITLE
:=block device id library
74 define Package
/libblkid
/description
75 The blkid library which allows system programs like fsck and mount to
76 quickly and easily find block devices by filesystem UUID and LABEL.
79 define Package
/libext2fs
80 $(call Package
/e2fsprogs
/Default
)
83 TITLE
:=ext2
/ext3 filesystem library
86 define Package
/libext2fs
/description
87 libext2fs is a library which can access ext2 and ext3 filesystems.
90 define Package
/tune2fs
91 $(call Package
/e2fsprogs
)
92 TITLE
:=Ext2 Filesystem tune utility
96 define Package
/resize2fs
97 $(call Package
/e2fsprogs
)
98 TITLE
:=Ext2 Filesystem resize utility
102 define Package
/badblocks
103 $(call Package
/e2fsprogs
)
104 TITLE
:=Ext2 Filesystem badblocks utility
109 $(call Package
/e2fsprogs
)
110 TITLE
:=Command-line utility to locate
/print block device attributes
111 DEPENDS
:=libuuid libblkid
118 --enable-elf-shlibs \
119 --enable-dynamic-e2fsck \
123 $(call Build
/Prepare
/Default
)
124 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
128 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
129 BUILDCC
="$(HOSTCC)" \
134 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
135 BUILDCC
="$(HOSTCC)" \
136 DESTDIR
="$(PKG_INSTALL_DIR)" \
140 define Build
/InstallDev
141 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
142 BUILDCC
="$(HOSTCC)" \
145 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/ext2fs \
146 BUILDCC
="$(HOSTCC)" \
151 define Package
/e2fsprogs
/install
152 $(INSTALL_DIR
) $(1)/usr
/sbin
153 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
155 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
156 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
157 $(INSTALL_DIR
) $(1)/usr
/lib
158 $(CP
) $(foreach lib
,com_err e2p
,$(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(lib
).so.
*) $(1)/usr
/lib
/
159 $(INSTALL_DIR
) $(1)/etc
/init.d
160 $(INSTALL_BIN
) .
/files
/e2fsck.init
$(1)/etc
/init.d
/e2fsck
164 define Package
/libuuid
/install
165 $(INSTALL_DIR
) $(1)/usr
/lib
166 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuuid.so.
* $(1)/usr
/lib
/
169 define Package
/uuidgen
/install
170 $(INSTALL_DIR
) $(1)/usr
/bin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/uuidgen
$(1)/usr
/bin
/
174 define Package
/libblkid
/install
175 $(INSTALL_DIR
) $(1)/usr
/lib
176 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblkid.so.
* $(1)/usr
/lib
/
179 define Package
/libext2fs
/install
180 $(INSTALL_DIR
) $(1)/usr
/lib
181 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libext2fs.so
* $(1)/usr
/lib
/
184 define Package
/tune2fs
/install
185 $(INSTALL_DIR
) $(1)/usr
/sbin
186 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
189 define Package
/resize2fs
/install
190 $(INSTALL_DIR
) $(1)/usr
/sbin
191 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
194 define Package
/badblocks
/install
195 $(INSTALL_DIR
) $(1)/usr
/sbin
196 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/badblocks
$(1)/usr
/sbin
/
199 define Package
/blkid
/install
200 $(INSTALL_DIR
) $(1)/usr
/sbin
201 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/blkid
$(1)/usr
/sbin
/
204 $(eval
$(call BuildPackage
,e2fsprogs
))
205 $(eval
$(call BuildPackage
,libuuid
))
206 $(eval
$(call BuildPackage
,uuidgen
))
207 $(eval
$(call BuildPackage
,libblkid
))
208 $(eval
$(call BuildPackage
,libext2fs
))
209 $(eval
$(call BuildPackage
,tune2fs
))
210 $(eval
$(call BuildPackage
,resize2fs
))
211 $(eval
$(call BuildPackage
,badblocks
))
212 $(eval
$(call BuildPackage
,blkid
))