2 # Copyright (C) 2006-2012 OpenWrt.org
3 # Copyright 2010 Vertical Communications
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_MD5SUM
:=73431146f58d40fe1375aba2060f0da8
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/e2fsprogs
18 PKG_BUILD_DEPENDS
:=util-linux
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/e2fsprogs
/Default
24 URL
:=http
://e2fsprogs.sourceforge.net
/
28 define Package
/e2fsprogs
29 $(call Package
/e2fsprogs
/Default
)
32 TITLE
:=Ext2
/3/4 filesystem utilities
33 DEPENDS
:=+libblkid
+libuuid
+libext2fs
+libpthread
+libcom_err
36 define Package
/e2fsprogs
/description
37 This package contains essential ext2 filesystem utilities which consists of
38 e2fsck
, mke2fs
, debugfs
, dumpe2fs
, tune2fs
, and most of the other core ext2
42 define Package
/libext2fs
43 $(call Package
/e2fsprogs
/Default
)
46 TITLE
:=ext2
/3/4 filesystem library
49 define Package
/libext2fs
/description
50 libext2fs is a library which can access ext2
, ext3 and ext4 filesystems.
53 define Package
/libcom_err
54 $(call Package
/e2fsprogs
/Default
)
57 TITLE
:=Common error description library
60 define Package
/libcom_err
/description
61 libcom_err is a library providing common error descriptions
64 define Package
/tune2fs
65 $(call Package
/e2fsprogs
)
66 TITLE
:=Ext2 Filesystem tune utility
70 define Package
/resize2fs
71 $(call Package
/e2fsprogs
)
72 TITLE
:=Ext2 Filesystem resize utility
76 define Package
/badblocks
77 $(call Package
/e2fsprogs
)
78 TITLE
:=Ext2 Filesystem badblocks utility
82 TARGET_CFLAGS
+= $(FPIC
)
94 $(call Build
/Prepare
/Default
)
95 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
99 $(MAKE
) -C
$(PKG_BUILD_DIR
)/util \
100 BUILDCC
="$(HOSTCC)" \
105 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
106 BUILDCC
="$(HOSTCC)" \
107 DESTDIR
="$(PKG_INSTALL_DIR)" \
111 define Build
/InstallDev
112 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
113 BUILDCC
="$(HOSTCC)" \
116 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib
/ext2fs \
117 BUILDCC
="$(HOSTCC)" \
122 define Package
/e2fsprogs
/install
123 $(INSTALL_DIR
) $(1)/usr
/sbin
124 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
126 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext2
127 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext3
128 ln
-sf mke2fs
$(1)/usr
/sbin
/mkfs.ext4
129 $(INSTALL_DIR
) $(1)/usr
/lib
130 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libe2p.so.
* $(1)/usr
/lib
/
131 $(INSTALL_DIR
) $(1)/etc
/init.d
132 $(INSTALL_DIR
) $(1)/lib
/functions
/fsck
133 $(INSTALL_DATA
) .
/files
/e2fsck.sh
$(1)/lib
/functions
/fsck
/
134 $(INSTALL_DATA
) .
/files
/e2fsck.conf
$(1)/etc
/e2fsck.conf
137 define Package
/libcom_err
/install
138 $(INSTALL_DIR
) $(1)/usr
/lib
139 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcom_err.so.
* $(1)/usr
/lib
/
142 define Package
/libext2fs
/install
143 $(INSTALL_DIR
) $(1)/usr
/lib
144 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libext2fs.so.
* $(1)/usr
/lib
/
147 define Package
/tune2fs
/install
148 $(INSTALL_DIR
) $(1)/usr
/sbin
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
152 define Package
/resize2fs
/install
153 $(INSTALL_DIR
) $(1)/usr
/sbin
154 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
157 define Package
/badblocks
/install
158 $(INSTALL_DIR
) $(1)/usr
/sbin
159 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/badblocks
$(1)/usr
/sbin
/
162 $(eval
$(call BuildPackage
,e2fsprogs
))
163 $(eval
$(call BuildPackage
,libext2fs
))
164 $(eval
$(call BuildPackage
,libcom_err
))
165 $(eval
$(call BuildPackage
,tune2fs
))
166 $(eval
$(call BuildPackage
,resize2fs
))
167 $(eval
$(call BuildPackage
,badblocks
))