2 # Copyright (C) 2006-2014 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
:=68255f51be017a93f2f6402fab06c2bf
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/e2fsprogs
18 PKG_BUILD_DEPENDS
:=util-linux
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
:=+libuuid
+libext2fs
38 define Package
/e2fsprogs
/description
39 This package contains essential ext2 filesystem utilities which consists of
40 e2fsck
, mke2fs and most of the other core ext2 filesystem utilities.
43 define Package
/libext2fs
44 $(call Package
/e2fsprogs
/Default
)
47 TITLE
:=ext2
/3/4 filesystem library
50 define Package
/libext2fs
/description
51 libext2fs is a library which can access ext2
, ext3 and ext4 filesystems.
54 define Package
/tune2fs
55 $(call Package
/e2fsprogs
)
56 TITLE
:=Ext2 Filesystem tune utility
60 define Package
/resize2fs
61 $(call Package
/e2fsprogs
)
62 TITLE
:=Ext2 Filesystem resize utility
66 define Package
/badblocks
67 $(call Package
/e2fsprogs
)
68 TITLE
:=Ext2 Filesystem badblocks utility
72 define Package
/dumpe2fs
73 $(call Package
/e2fsprogs
)
74 TITLE
:=Ext2 Filesystem information dumping utility
78 define Package
/e2freefrag
79 $(call Package
/e2fsprogs
)
80 TITLE
:=Ext2 Filesystem free space fragmentation information utility
84 define Package
/filefrag
85 $(call Package
/e2fsprogs
)
86 TITLE
:=Ext2 Filesystem file fragmentation report utility
90 define Package
/debugfs
91 $(call Package
/e2fsprogs
)
92 TITLE
:=Ext2 Filesystem debugger
96 TARGET_CFLAGS
+= $(FPIC
) -ffunction-sections
-fdata-sections
99 ac_cv_lib_pthread_sem_init
=no
102 --disable-testio-debug \
103 --enable-elf-shlibs \
112 $(call Build
/Prepare
/Default
)
113 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/config
/
117 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/util \
118 BUILDCC
="$(HOSTCC)" \
123 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
124 LDFLAGS
=-Wl
,--gc-sections \
125 BUILDCC
="$(HOSTCC)" \
126 DESTDIR
="$(PKG_INSTALL_DIR)" \
127 LIBBLKID
="$(PKG_BUILD_DIR)/lib/libblkid.a -luuid" \
131 define Build
/InstallDev
132 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
133 $(CP
) $(PKG_BUILD_DIR
)/lib
/ext2fs
/ext2fs.
pc $(1)/usr
/lib
/pkgconfig
134 $(CP
) $(PKG_BUILD_DIR
)/lib
/et
/com_err.
pc $(1)/usr
/lib
/pkgconfig
136 $(INSTALL_DIR
) $(1)/usr
/lib
137 $(CP
) $(PKG_BUILD_DIR
)/lib
/libext2fs.
{so
,a
}* $(1)/usr
/lib
138 $(CP
) $(PKG_BUILD_DIR
)/lib
/libcom_err.
{so
,a
}* $(1)/usr
/lib
140 $(INSTALL_DIR
) $(1)/usr
/include/ext2fs
141 $(CP
) $(PKG_BUILD_DIR
)/lib
/ext2fs
/*.h
$(1)/usr
/include/ext2fs
142 $(INSTALL_DIR
) $(1)/usr
/include/et
143 $(CP
) $(PKG_BUILD_DIR
)/lib
/et
/*.h
$(1)/usr
/include/et
146 define Package
/e2fsprogs
/install
147 $(INSTALL_DIR
) $(1)/usr
/sbin
148 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2fsck
$(1)/usr
/sbin
/
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mke2fs
$(1)/usr
/sbin
/
150 $(LN
) mke2fs
$(1)/usr
/sbin
/mkfs.ext2
151 $(LN
) mke2fs
$(1)/usr
/sbin
/mkfs.ext3
152 $(LN
) mke2fs
$(1)/usr
/sbin
/mkfs.ext4
153 $(LN
) e2fsck
$(1)/usr
/sbin
/fsck.ext2
154 $(LN
) e2fsck
$(1)/usr
/sbin
/fsck.ext3
155 $(LN
) e2fsck
$(1)/usr
/sbin
/fsck.ext4
156 $(INSTALL_DIR
) $(1)/usr
/lib
157 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libe2p.so.
* $(1)/usr
/lib
/
158 $(INSTALL_DIR
) $(1)/etc
/init.d
159 $(INSTALL_DIR
) $(1)/lib
/functions
/fsck
160 $(INSTALL_DATA
) .
/files
/e2fsck.sh
$(1)/lib
/functions
/fsck
/
161 $(INSTALL_DATA
) .
/files
/e2fsck.conf
$(1)/etc
/e2fsck.conf
164 define Package
/libcom_err
/install
167 define Package
/libext2fs
/install
168 $(INSTALL_DIR
) $(1)/usr
/lib
170 $(PKG_INSTALL_DIR
)/usr
/lib
/libext2fs.so.
* \
171 $(PKG_INSTALL_DIR
)/usr
/lib
/libcom_err.so.
* \
175 define Package
/libext2fs
/install_lib
176 $(INSTALL_DIR
) $(1)/usr
/lib
177 $(CP
) $(PKG_BUILD_DIR
)/lib
/ext2fs
/libext2fs.a
$(1)/usr
/lib
/libext2fs_pic.a
180 define Package
/tune2fs
/install
181 $(INSTALL_DIR
) $(1)/usr
/sbin
182 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tune2fs
$(1)/usr
/sbin
/
183 $(LN
) tune2fs
$(1)/usr
/sbin
/findfs
186 define Package
/resize2fs
/install
187 $(INSTALL_DIR
) $(1)/usr
/sbin
188 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/resize2fs
$(1)/usr
/sbin
/
191 define Package
/badblocks
/install
192 $(INSTALL_DIR
) $(1)/usr
/sbin
193 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/badblocks
$(1)/usr
/sbin
/
196 define Package
/dumpe2fs
/install
197 $(INSTALL_DIR
) $(1)/usr
/sbin
198 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dumpe2fs
$(1)/usr
/sbin
/
201 define Package
/e2freefrag
/install
202 $(INSTALL_DIR
) $(1)/usr
/sbin
203 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2freefrag
$(1)/usr
/sbin
/
206 define Package
/filefrag
/install
207 $(INSTALL_DIR
) $(1)/usr
/sbin
208 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/filefrag
$(1)/usr
/sbin
/
211 define Package
/debugfs
/install
212 $(INSTALL_DIR
) $(1)/usr
/sbin
213 $(INSTALL_DIR
) $(1)/usr
/lib
214 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/debugfs
$(1)/usr
/sbin
/
215 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libss.so.
* $(1)/usr
/lib
/
218 $(eval
$(call BuildPackage
,e2fsprogs
))
219 $(eval
$(call BuildPackage
,libext2fs
))
220 $(eval
$(call BuildPackage
,tune2fs
))
221 $(eval
$(call BuildPackage
,resize2fs
))
222 $(eval
$(call BuildPackage
,badblocks
))
223 $(eval
$(call BuildPackage
,dumpe2fs
))
224 $(eval
$(call BuildPackage
,e2freefrag
))
225 $(eval
$(call BuildPackage
,filefrag
))
226 $(eval
$(call BuildPackage
,debugfs
))