2 # Copyright (C) 2006 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
:=06f7806782e357797fad1d34b7ced0c6
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
/libblkid
51 $(call Package
/e2fsprogs
/Default
)
54 TITLE
:=block device id library
57 define Package
/libblkid
/description
58 The blkid library which allows system programs like fsck and mount to
59 quickly and easily find block devices by filesystem UUID and LABEL.
62 define Package
/tune2fs
63 $(call Package
/e2fsprogs
)
64 TITLE
:=Ext2 Filesystem tune utility
68 define Package
/resize2fs
69 $(call Package
/e2fsprogs
)
70 TITLE
:=Ext2 Filesystem resize utility
79 --enable-dynamic-e2fsck
82 $(call Build
/Prepare
/Default
)
83 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
87 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
93 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
95 DESTDIR
="$(PKG_INSTALL_DIR)" \
99 define Build
/InstallDev
100 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
101 BUILDCC
="$(HOSTCC)" \
106 define Build
/UninstallDev
107 -$(MAKE
) -C
$(PKG_BUILD_DIR
) \
108 BUILDCC
="$(HOSTCC)" \
109 DESTDIR
="$(STAGING_DIR)" \
113 define Package
/e2fsprogs
/install
114 $(INSTALL_DIR
) $(1)/usr
/sbin
115 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
116 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
117 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
118 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
119 $(INSTALL_DIR
) $(1)/usr
/lib
120 $(CP
) $(foreach lib
,com_err e2p ext2fs
,$(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(lib
).so.
*) $(1)/usr
/lib
/
123 define Package
/libuuid
/install
124 $(INSTALL_DIR
) $(1)/usr
/lib
125 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuuid.so.
* $(1)/usr
/lib
/
128 define Package
/libblkid
/install
129 $(INSTALL_DIR
) $(1)/usr
/lib
130 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblkid.so.
* $(1)/usr
/lib
/
133 define Package
/tune2fs
/install
134 $(INSTALL_DIR
) $(1)/usr
/sbin
135 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
138 define Package
/resize2fs
/install
139 $(INSTALL_DIR
) $(1)/usr
/sbin
140 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
143 $(eval
$(call BuildPackage
,e2fsprogs
))
144 $(eval
$(call BuildPackage
,libuuid
))
145 $(eval
$(call BuildPackage
,libblkid
))
146 $(eval
$(call BuildPackage
,tune2fs
))
147 $(eval
$(call BuildPackage
,resize2fs
))