e2fsprogs: add libe2p and development headers

this patch separates libe2p from e2fsprogs package, like all other
provided libraries are their own packages. Also some development headers
were missing so I added those along with pkg-config files.

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
This commit is contained in:
Oskari Rauta 2024-02-14 06:38:49 +02:00 committed by Robert Marko
parent a898a321a2
commit 597f9cf6b3

View File

@ -34,7 +34,7 @@ define Package/e2fsprogs
SUBMENU:=Filesystem SUBMENU:=Filesystem
TITLE:=Ext2/3/4 filesystem utilities TITLE:=Ext2/3/4 filesystem utilities
URL:=http://e2fsprogs.sourceforge.net/ URL:=http://e2fsprogs.sourceforge.net/
DEPENDS:=+libuuid +libext2fs DEPENDS:=+libuuid +libext2fs +libe2p
endef endef
define Package/e2fsprogs/description define Package/e2fsprogs/description
@ -55,6 +55,20 @@ define Package/libext2fs/description
libext2fs is a library which can access ext2, ext3 and ext4 filesystems. libext2fs is a library which can access ext2, ext3 and ext4 filesystems.
endef endef
define Package/libe2p
SECTION:=libs
CATEGORY:=Libraries
TITLE:=ext2fs userspace programs utility library
URL:=http://e2fsprogs.sourceforge.net/
DEPENDS:=+libuuid
ABI_VERSION:=2
endef
define Package/libe2p/description
This package contains libe2p, ext2fs userspace programs utility library
bundled with e2fsprogs.
endef
define Package/libss define Package/libss
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
@ -184,13 +198,17 @@ endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/lib/ext2fs/ext2fs.pc $(1)/usr/lib/pkgconfig $(CP) $(PKG_BUILD_DIR)/lib/ext2fs/ext2fs.pc $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/lib/et/com_err.pc $(1)/usr/lib/pkgconfig $(CP) $(PKG_BUILD_DIR)/lib/et/com_err.pc $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/lib/e2p/e2p.pc $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/lib/ss/ss.pc $(1)/usr/lib/pkgconfig
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libext2fs.{so,a}* $(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/libcom_err.{so,a}* $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libss.{so,a}* $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/lib/libss.{so,a}* $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libe2p.{so,a}* $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include/ext2fs $(INSTALL_DIR) $(1)/usr/include/ext2fs
$(CP) $(PKG_BUILD_DIR)/lib/ext2fs/*.h $(1)/usr/include/ext2fs $(CP) $(PKG_BUILD_DIR)/lib/ext2fs/*.h $(1)/usr/include/ext2fs
@ -203,6 +221,8 @@ define Build/InstallDev
$(PKG_BUILD_DIR)/lib/ss/ss.h \ $(PKG_BUILD_DIR)/lib/ss/ss.h \
$(PKG_BUILD_DIR)/lib/ss/ss_err.h \ $(PKG_BUILD_DIR)/lib/ss/ss_err.h \
$(1)/usr/include/ss/ $(1)/usr/include/ss/
$(INSTALL_DIR) $(1)/usr/include/e2p
$(CP) $(PKG_BUILD_DIR)/lib/e2p/e2p.h $(1)/usr/include/e2p
endef endef
define Host/Compile define Host/Compile
@ -237,13 +257,17 @@ define Package/e2fsprogs/install
$(LN) e2fsck $(1)/usr/sbin/fsck.ext3 $(LN) e2fsck $(1)/usr/sbin/fsck.ext3
$(LN) e2fsck $(1)/usr/sbin/fsck.ext4 $(LN) e2fsck $(1)/usr/sbin/fsck.ext4
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libe2p.so.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/lib/functions/fsck $(INSTALL_DIR) $(1)/lib/functions/fsck
$(INSTALL_DATA) ./files/e2fsck.sh $(1)/lib/functions/fsck/ $(INSTALL_DATA) ./files/e2fsck.sh $(1)/lib/functions/fsck/
$(INSTALL_DATA) ./files/e2fsck.conf $(1)/etc/e2fsck.conf $(INSTALL_DATA) ./files/e2fsck.conf $(1)/etc/e2fsck.conf
endef endef
define Package/libe2p/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libe2p.so.* $(1)/usr/lib/
endef
define Package/libcomerr/install define Package/libcomerr/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcom_err.so.* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcom_err.so.* $(1)/usr/lib/
@ -318,6 +342,7 @@ endef
$(eval $(call BuildPackage,libcomerr)) $(eval $(call BuildPackage,libcomerr))
$(eval $(call BuildPackage,libss)) $(eval $(call BuildPackage,libss))
$(eval $(call BuildPackage,libext2fs)) $(eval $(call BuildPackage,libext2fs))
$(eval $(call BuildPackage,libe2p))
$(eval $(call BuildPackage,e2fsprogs)) $(eval $(call BuildPackage,e2fsprogs))
$(eval $(call BuildPackage,tune2fs)) $(eval $(call BuildPackage,tune2fs))
$(eval $(call BuildPackage,resize2fs)) $(eval $(call BuildPackage,resize2fs))