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
:=52f60a9e19a02f142f5546f1b5681927
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
/
30 define Package
/e2fsprogs
31 $(call Package
/e2fsprogs
/Default
)
34 TITLE
:=Ext2
/3/4 filesystem utilities
35 DEPENDS
:=+libblkid
+libuuid
+libext2fs
+libpthread
38 define Package
/e2fsprogs
/description
39 This package contains essential ext2 filesystem utilities which consists of
40 e2fsck
, mke2fs
, debugfs
, dumpe2fs
, tune2fs
, and most of the other core ext2
44 define Package
/libuuid
45 $(call Package
/e2fsprogs
/Default
)
48 TITLE
:=DCE compatible Universally Unique Identifier library
51 define Package
/libuuid
/description
52 Library for generating DCE compatible Universally Unique Identifiers.
55 define Package
/uuidgen
56 $(call Package
/e2fsprogs
)
58 TITLE
:=Command line utility to create a new UUID value
61 define Package
/uuidgen
/description
62 uuidgen program creates a new universally unique identifier
(UUID
)
63 using the libuuid library. The new UUID can reasonably be considered
64 unique among
all UUIDs created on the local system
, and among UUIDs
65 created on other systems in the past and in the future.
68 define Package
/libblkid
69 $(call Package
/e2fsprogs
/Default
)
72 TITLE
:=block device id library
75 define Package
/libblkid
/description
76 The blkid library which allows system programs like fsck and mount to
77 quickly and easily find block devices by filesystem UUID and LABEL.
80 define Package
/libext2fs
81 $(call Package
/e2fsprogs
/Default
)
84 TITLE
:=ext2
/3/4 filesystem library
87 define Package
/libext2fs
/description
88 libext2fs is a library which can access ext2
, ext3 and ext4 filesystems.
91 define Package
/tune2fs
92 $(call Package
/e2fsprogs
)
93 TITLE
:=Ext2 Filesystem tune utility
97 define Package
/resize2fs
98 $(call Package
/e2fsprogs
)
99 TITLE
:=Ext2 Filesystem resize utility
103 define Package
/badblocks
104 $(call Package
/e2fsprogs
)
105 TITLE
:=Ext2 Filesystem badblocks utility
110 $(call Package
/e2fsprogs
)
111 TITLE
:=Command-line utility to locate
/print block device attributes
112 DEPENDS
:=libuuid libblkid
119 --enable-elf-shlibs \
120 --enable-dynamic-e2fsck \
124 $(call Build
/Prepare
/Default
)
125 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
129 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
130 BUILDCC
="$(HOSTCC)" \
135 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
136 BUILDCC
="$(HOSTCC)" \
137 DESTDIR
="$(PKG_INSTALL_DIR)" \
141 define Build
/InstallDev
142 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
143 BUILDCC
="$(HOSTCC)" \
146 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/ext2fs \
147 BUILDCC
="$(HOSTCC)" \
152 define Package
/e2fsprogs
/install
153 $(INSTALL_DIR
) $(1)/usr
/sbin
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
155 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
156 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
157 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
158 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext4
159 $(INSTALL_DIR
) $(1)/usr
/lib
160 $(CP
) $(foreach lib
,com_err e2p
,$(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(lib
).so.
*) $(1)/usr
/lib
/
161 $(INSTALL_DIR
) $(1)/etc
/init.d
162 $(INSTALL_BIN
) .
/files
/e2fsck.init
$(1)/etc
/init.d
/e2fsck
166 define Package
/libuuid
/install
167 $(INSTALL_DIR
) $(1)/usr
/lib
168 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuuid.so.
* $(1)/usr
/lib
/
171 define Package
/uuidgen
/install
172 $(INSTALL_DIR
) $(1)/usr
/bin
173 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/uuidgen
$(1)/usr
/bin
/
176 define Package
/libblkid
/install
177 $(INSTALL_DIR
) $(1)/usr
/lib
178 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblkid.so.
* $(1)/usr
/lib
/
181 define Package
/libext2fs
/install
182 $(INSTALL_DIR
) $(1)/usr
/lib
183 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libext2fs.so
* $(1)/usr
/lib
/
186 define Package
/tune2fs
/install
187 $(INSTALL_DIR
) $(1)/usr
/sbin
188 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
191 define Package
/resize2fs
/install
192 $(INSTALL_DIR
) $(1)/usr
/sbin
193 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
196 define Package
/badblocks
/install
197 $(INSTALL_DIR
) $(1)/usr
/sbin
198 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/badblocks
$(1)/usr
/sbin
/
201 define Package
/blkid
/install
202 $(INSTALL_DIR
) $(1)/usr
/sbin
203 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/blkid
$(1)/usr
/sbin
/
206 $(eval
$(call BuildPackage
,e2fsprogs
))
207 $(eval
$(call BuildPackage
,libuuid
))
208 $(eval
$(call BuildPackage
,uuidgen
))
209 $(eval
$(call BuildPackage
,libblkid
))
210 $(eval
$(call BuildPackage
,libext2fs
))
211 $(eval
$(call BuildPackage
,tune2fs
))
212 $(eval
$(call BuildPackage
,resize2fs
))
213 $(eval
$(call BuildPackage
,badblocks
))
214 $(eval
$(call BuildPackage
,blkid
))