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
24 TITLE
:=Ext2
/3 filesystem utilities
27 This package contains essential ext2 filesystem utilities which consists of
\\\
28 e2fsck
, mke2fs
, debugfs
, dumpe2fs
, tune2fs
, and most of the other core ext2
\\\
32 define Package
/libuuid
35 TITLE
:=DCE compatible Universally Unique Identifier library
37 Library for generating DCE compatible Universally Unique Identifiers
38 URL
:=http
://e2fsprogs.sourceforge.net
/
41 define Package
/libblkid
44 TITLE
:=block device id library
46 The blkid library which allows system programs like fsck and mount to quickly
\\\
47 and easily find block devices by filesystem UUID and LABEL.
48 URL
:=http
://e2fsprogs.sourceforge.net
/
51 define Package
/tune2fs
52 $(call Package
/e2fsprogs
)
53 TITLE
:=Ext2 Filesystem tune utility
54 DESCRIPTION
:=Ext2 Filesystem tune utility
58 define Package
/resize2fs
59 $(call Package
/e2fsprogs
)
60 TITLE
:=Ext2 Filesystem resize utility
61 DESCRIPTION
:=Ext2 Filesystem resize utility
70 --enable-dynamic-e2fsck
73 $(call Build
/Prepare
/Default
)
74 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
78 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
84 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
86 DESTDIR
="$(PKG_INSTALL_DIR)" \
90 define Build
/InstallDev
91 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
93 DESTDIR
="$(STAGING_DIR)" \
97 define Package
/e2fsprogs
/install
98 $(INSTALL_DIR
) $(1)/usr
/sbin
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
101 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
102 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
103 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(CP
) $(foreach lib
,blkid com_err e2p ext2fs
,$(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(lib
).so.
*) $(1)/usr
/lib
/
107 define Package
/libuuid
/install
108 $(INSTALL_DIR
) $(1)/usr
/lib
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuuid.so.
* $(1)/usr
/lib
/
112 define Package
/libblkid
/install
113 $(INSTALL_DIR
) $(1)/usr
/lib
/
114 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblkid.so.
* $(1)/usr
/lib
/
117 define Package
/tune2fs
/install
118 $(INSTALL_DIR
) $(1)/usr
/sbin
119 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
122 define Package
/resize2fs
/install
123 $(INSTALL_DIR
) $(1)/usr
/sbin
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
127 $(eval
$(call BuildPackage
,e2fsprogs
))
128 $(eval
$(call BuildPackage
,libuuid
))
129 $(eval
$(call BuildPackage
,libblkid
))
130 $(eval
$(call BuildPackage
,tune2fs
))
131 $(eval
$(call BuildPackage
,resize2fs
))