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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/e2fsprogs
17 PKG_MD5SUM
:=004cea70d724fdc7f1a952dffe4c9db8
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/e2fsprogs
/Default
22 URL
:=http
://e2fsprogs.sourceforge.net
/
25 define Package
/e2fsprogs
26 $(call Package
/e2fsprogs
/Default
)
29 TITLE
:=Ext2
/3 filesystem utilities
30 DEPENDS
:=+libblkid
+libuuid
33 define Package
/e2fsprogs
/description
34 This package contains essential ext2 filesystem utilities which consists of
35 e2fsck
, mke2fs
, debugfs
, dumpe2fs
, tune2fs
, and most of the other core ext2
39 define Package
/libuuid
40 $(call Package
/e2fsprogs
/Default
)
43 TITLE
:=DCE compatible Universally Unique Identifier library
46 define Package
/libuuid
/description
47 Library for generating DCE compatible Universally Unique Identifiers.
50 define Package
/uuidgen
51 $(call Package
/e2fsprogs
)
53 TITLE
:=Command line utility to create a new UUID value
56 define Package
/uuidgen
/description
57 uuidgen program creates a new universally unique identifier
(UUID
)
58 using the libuuid library. The new UUID can reasonably be considered
59 unique among
all UUIDs created on the local system
, and among UUIDs
60 created on other systems in the past and in the future.
63 define Package
/libblkid
64 $(call Package
/e2fsprogs
/Default
)
67 TITLE
:=block device id library
70 define Package
/libblkid
/description
71 The blkid library which allows system programs like fsck and mount to
72 quickly and easily find block devices by filesystem UUID and LABEL.
75 define Package
/tune2fs
76 $(call Package
/e2fsprogs
)
77 TITLE
:=Ext2 Filesystem tune utility
81 define Package
/resize2fs
82 $(call Package
/e2fsprogs
)
83 TITLE
:=Ext2 Filesystem resize utility
87 define Package
/badblocks
88 $(call Package
/e2fsprogs
)
89 TITLE
:=Ext2 Filesystem badblocks utility
98 --enable-dynamic-e2fsck \
102 $(call Build
/Prepare
/Default
)
103 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
107 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
108 BUILDCC
="$(HOSTCC)" \
113 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
114 BUILDCC
="$(HOSTCC)" \
115 DESTDIR
="$(PKG_INSTALL_DIR)" \
119 define Build
/InstallDev
120 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
121 BUILDCC
="$(HOSTCC)" \
126 define Package
/e2fsprogs
/install
127 $(INSTALL_DIR
) $(1)/usr
/sbin
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
129 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
130 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
131 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
132 $(INSTALL_DIR
) $(1)/usr
/lib
133 $(CP
) $(foreach lib
,com_err e2p ext2fs
,$(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(lib
).so.
*) $(1)/usr
/lib
/
136 define Package
/libuuid
/install
137 $(INSTALL_DIR
) $(1)/usr
/lib
138 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuuid.so.
* $(1)/usr
/lib
/
141 define Package
/uuidgen
/install
142 $(INSTALL_DIR
) $(1)/usr
/bin
143 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/uuidgen
$(1)/usr
/bin
/
146 define Package
/libblkid
/install
147 $(INSTALL_DIR
) $(1)/usr
/lib
148 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblkid.so.
* $(1)/usr
/lib
/
151 define Package
/tune2fs
/install
152 $(INSTALL_DIR
) $(1)/usr
/sbin
153 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
156 define Package
/resize2fs
/install
157 $(INSTALL_DIR
) $(1)/usr
/sbin
158 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
161 define Package
/badblocks
/install
162 $(INSTALL_DIR
) $(1)/usr
/sbin
163 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/badblocks
$(1)/usr
/sbin
/
166 $(eval
$(call BuildPackage
,e2fsprogs
))
167 $(eval
$(call BuildPackage
,libuuid
))
168 $(eval
$(call BuildPackage
,uuidgen
))
169 $(eval
$(call BuildPackage
,libblkid
))
170 $(eval
$(call BuildPackage
,tune2fs
))
171 $(eval
$(call BuildPackage
,resize2fs
))
172 $(eval
$(call BuildPackage
,badblocks
))