@ -10,30 +10,27 @@ include $(TOPDIR)/rules.mk
PKG_NAME := e2fsprogs
PKG_VERSION := 1.43.7
PKG_HASH := 2a6367289047d68d9ba6a46cf89ab9a1efd0556cde02a51ebaf414ff51edded9
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := @KERNEL/linux/kernel/people/tytso/e2fsprogs/v$( PKG_VERSION) /
PKG_LICENSE := GPL-2.0
PKG_CPE_ID := cpe:/a:e2fsprogs_project:e2fsprogs
PKG_BUILD_DEPENDS := util-linux
PKG_BUILD_DEPENDS := util-linux e2fsprogs/host
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / e 2 f s p r o g s / D e f a u l t
URL:= http://e2fsprogs.sourceforge.net/
SUBMENU:= Filesystem
e n d e f
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
d e f i n e P a c k a g e / e 2 f s p r o g s
$( call Package /e 2fsprogs /Default )
SECTION:= utils
CATEGORY:= Utilities
SUBMENU:= Filesystem
TITLE:= Ext2/3/4 filesystem utilities
URL:= http://e2fsprogs.sourceforge.net/
DEPENDS:= +libuuid +libext2fs
e n d e f
@ -43,17 +40,43 @@ define Package/e2fsprogs/description
e n d e f
d e f i n e P a c k a g e / l i b e x t 2 f s
$( call Package /e 2fsprogs /Default )
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +libuuid +libblkid
TITLE:= ext2/3/4 filesystem library
URL:= http://e2fsprogs.sourceforge.net/
DEPENDS:= +libuuid +libblkid +libss +libcomerr
e n d e f
d e f i n e P a c k a g e / l i b e x t 2 f s / d e s c r i p t i o n
libext2fs is a library which can access ext2, ext3 and ext4 filesystems.
e n d e f
d e f i n e P a c k a g e / l i b s s
SECTION:= libs
CATEGORY:= Libraries
TITLE:= command-line interface parsing library
URL:= http://e2fsprogs.sourceforge.net/
DEPENDS:= +libcomerr
e n d e f
d e f i n e P a c k a g e / l i b s s / d e s c r i p t i o n
This pacakge contains libss, a command-line interface parsing library
bundled with e2fsprogs.
e n d e f
d e f i n e P a c k a g e / l i b c o m e r r
SECTION:= libs
CATEGORY:= Libraries
TITLE:= common error description library
URL:= http://e2fsprogs.sourceforge.net/
DEPENDS:= +libuuid
e n d e f
d e f i n e P a c k a g e / l i b c o m e r r / d e s c r i p t i o n
This package contains libcom_err, the common error description library
bundled with e2fsprogs.
e n d e f
d e f i n e P a c k a g e / t u n e 2 f s
$( call Package /e 2fsprogs )
TITLE:= Ext2 Filesystem tune utility
@ -153,11 +176,36 @@ define Build/InstallDev
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libext2fs.{ so,a} * $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libcom_err.{ so,a} * $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libss.{ so,a} * $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/include/ext2fs
$( CP) $( PKG_BUILD_DIR) /lib/ext2fs/*.h $( 1) /usr/include/ext2fs
$( INSTALL_DIR) $( 1) /usr/include/et
$( CP) $( PKG_BUILD_DIR) /lib/et/*.h $( 1) /usr/include/et
$( INSTALL_BIN) $( PKG_BUILD_DIR) /lib/et/*.h $( 1) /usr/include/et
# Apparently there is some confusion
echo "#include <et/com_err.h>" > $( 1) /usr/include/com_err.h
$( INSTALL_DIR) $( 1) /usr/include/ss
$( CP) \
$( PKG_BUILD_DIR) /lib/ss/ss.h \
$( PKG_BUILD_DIR) /lib/ss/ss_err.h \
$( 1) /usr/include/ss/
e n d e f
d e f i n e H o s t / C o m p i l e
$( MAKE) $( PKG_JOBS) -C $( HOST_BUILD_DIR) /lib/ss mk_cmds
$( MAKE) $( PKG_JOBS) -C $( HOST_BUILD_DIR) /lib/et compile_et
e n d e f
d e f i n e H o s t / I n s t a l l
$( INSTALL_DIR) $( 1) /share/et
$( CP) $( HOST_BUILD_DIR) /lib/et/et_[ ch] .awk $( 1) /share/et/
$( INSTALL_DIR) $( 1) /share/ss
$( CP) $( HOST_BUILD_DIR) /lib/ss/ct_c.{ sed,awk} $( 1) /share/ss/
$( INSTALL_DIR) $( STAGING_DIR_HOST) /bin
$( CP) \
$( HOST_BUILD_DIR) /lib/et/compile_et \
$( HOST_BUILD_DIR) /lib/ss/mk_cmds \
$( 1) /bin/
e n d e f
d e f i n e P a c k a g e / e 2 f s p r o g s / c o n f f i l e s
@ -182,15 +230,19 @@ define Package/e2fsprogs/install
$( INSTALL_DATA) ./files/e2fsck.conf $( 1) /etc/e2fsck.conf
e n d e f
d e f i n e P a c k a g e / l i b c o m _ e r r / i n s t a l l
d e f i n e P a c k a g e / l i b c o m e r r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libcom_err.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b s s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libss.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b e x t 2 f s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libext2fs.so.* \
$( PKG_INSTALL_DIR) /usr/lib/libcom_err.so.* \
$( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libext2fs.so.* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b e x t 2 f s / i n s t a l l _ l i b
@ -233,7 +285,6 @@ define Package/debugfs/install
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/debugfs $( 1) /usr/sbin/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libss.so.* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / c h a t t r / i n s t a l l
@ -247,6 +298,8 @@ define Package/lsattr/install
e n d e f
$( eval $ ( call BuildPackage ,e 2fsprogs ) )
$( eval $ ( call BuildPackage ,libcomerr ) )
$( eval $ ( call BuildPackage ,libss ) )
$( eval $ ( call BuildPackage ,libext 2fs ) )
$( eval $ ( call BuildPackage ,tune 2fs ) )
$( eval $ ( call BuildPackage ,resize 2fs ) )
@ -257,3 +310,4 @@ $(eval $(call BuildPackage,filefrag))
$( eval $ ( call BuildPackage ,debugfs ) )
$( eval $ ( call BuildPackage ,chattr ) )
$( eval $ ( call BuildPackage ,lsattr ) )
$( eval $ ( call HostBuild ) )