summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/e2fsprogs.in123
-rw-r--r--rules/e2fsprogs.make15
-rw-r--r--rules/nfsutils.in1
-rw-r--r--rules/util-linux-ng.in5
4 files changed, 132 insertions, 12 deletions
diff --git a/rules/e2fsprogs.in b/rules/e2fsprogs.in
index a97f8c48e..826c549c1 100644
--- a/rules/e2fsprogs.in
+++ b/rules/e2fsprogs.in
@@ -1,8 +1,10 @@
## SECTION=disk_and_file
+
menuconfig E2FSPROGS
tristate
prompt "e2fsprogs "
select HOST_GETTEXT
+ select E2FSPROGS_LIBS if (!E2FSPROGS_LIBUUID && !E2FSPROGS_LIBBLKID)
help
The e2fsprogs package provides the filesystem utilities for use
with the ext2 filesystem. It also supports the ext3 filesystem
@@ -10,9 +12,9 @@ menuconfig E2FSPROGS
if E2FSPROGS
-# ---------------------
-comment "Build Options"
-# ---------------------
+# -----------------------------------
+menu "build options "
+# -----------------------------------
config E2FSPROGS_COMPRESSION
bool
@@ -40,36 +42,77 @@ config E2FSPROGS_RESIZER
help
Enable support for e2resize program.
-# -----------------------
-comment "Install Options"
-# -----------------------
+endmenu
+
+# -----------------------------------
+menu "libraries "
+# -----------------------------------
+
+config E2FSPROGS_LIBS
+ bool
+ prompt "e2fsprogs support libraries"
+ help
+ Install the e2fsprogs default libraries.
+
+config E2FSPROGS_LIBUUID
+ bool
+ prompt "libuuid"
+ help
+ Install libuuid.
+
+config E2FSPROGS_LIBBLKID
+ bool
+ prompt "libblkid"
+ help
+ Install libblkid.
+
+endmenu
+
+# -----------------------------------
+menu "binaries "
+# -----------------------------------
config E2FSPROGS_INSTALL_LSATTR
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "lsattr"
help
Enable support for lsattr program.
config E2FSPROGS_INSTALL_UUIDGEN
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "uuidgen"
help
Enable support for uuidgen program.
config E2FSPROGS_INSTALL_MK_CMDS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mk_cmds"
help
Enable support for mk_cmds program.
config E2FSPROGS_INSTALL_CHATTR
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "chattr"
help
Enable support for chattr program.
config E2FSPROGS_INSTALL_COMPILE_ET
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "compile_et"
help
Enable support for compile_et program.
@@ -78,135 +121,203 @@ config E2FSPROGS_INSTALL_COMPILE_ET
config E2FSPROGS_INSTALL_BLKID
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "blkid"
help
Enable support for blkid program.
config E2FSPROGS_INSTALL_MKFS_EXT4DEV
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mkfs.ext4dev"
help
Enable support for mkfs.ext4dev program.
config E2FSPROGS_INSTALL_LOGSAVE
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "logsave"
help
Enable support for logsave program.
config E2FSPROGS_INSTALL_MKFS_EXT3
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mkfs.ext3"
help
Enable support for mkfs.ext3 program.
config E2FSPROGS_INSTALL_FSCK_EXT4
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "fsck.ext4"
help
Enable support for fsck.ext4 program.
config E2FSPROGS_INSTALL_DUMPE2FS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "dumpe2fs"
help
Enable support for dumpe2fs program.
config E2FSPROGS_INSTALL_FINDFS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "findfs"
help
Enable support for findfs program.
config E2FSPROGS_INSTALL_FILEFRAG
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "filefrag"
help
Enable support for filefrag program.
config E2FSPROGS_INSTALL_MKE2FS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mke2fs"
help
Enable support for mke2fs program.
config E2FSPROGS_INSTALL_MKLOSTANDFOUND
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mklost+found"
help
Enable support for mklost+found program.
config E2FSPROGS_INSTALL_FSCK_EXT4DEV
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "fsck.ext4dev"
help
Enable support for fsck.ext4dev program.
config E2FSPROGS_INSTALL_E2FSCK
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "e2fsck"
help
Enable support for e2fsck program.
config E2FSPROGS_INSTALL_MKFS_EXT2
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mkfs.ext2"
help
Enable support for mkfs.ext2 program.
config E2FSPROGS_INSTALL_MKFS_EXT4
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "mkfs.ext4"
help
Enable support for mkfs.ext4 program.
config E2FSPROGS_INSTALL_RESIZE2FS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "resize2fs"
help
Enable support for resize2fs program.
config E2FSPROGS_INSTALL_E2IMAGE
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "e2image"
help
Enable support for e2image program.
config E2FSPROGS_INSTALL_TUNE2FS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "tune2fs"
help
Enable support for tune2fs program.
config E2FSPROGS_INSTALL_E2UNDO
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "e2undo"
help
Enable support for e2undo program.
config E2FSPROGS_INSTALL_FSCK_EXT2
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "fsck.ext2"
help
Enable support for fsck.ext2 program.
config E2FSPROGS_INSTALL_FSCK_EXT3
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "fsck.ext3"
help
Enable support for fsck.ext3 program.
config E2FSPROGS_INSTALL_BADBLOCKS
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "badblocks"
help
Enable support for badblocks program.
config E2FSPROGS_INSTALL_UUID
bool
+ select E2FSPROGS_LIBS
+ select E2FSPROGS_LIBUUID
+ select E2FSPROGS_LIBBLKID
prompt "uuid"
help
Enable support for uuid program.
+endmenu
+
endif
diff --git a/rules/e2fsprogs.make b/rules/e2fsprogs.make
index 57fb497c7..511e3516e 100644
--- a/rules/e2fsprogs.make
+++ b/rules/e2fsprogs.make
@@ -116,10 +116,7 @@ $(STATEDIR)/e2fsprogs.targetinstall:
# libraries
#
- @$(call install_copy, e2fsprogs, 0, 0, 0644, $(E2FSPROGS_DIR)/lib/libblkid.so.1.0, /usr/lib/libblkid.so.1.0)
- @$(call install_link, e2fsprogs, libblkid.so.1.0, /usr/lib/libblkid.so.1)
- @$(call install_link, e2fsprogs, libblkid.so.1.0, /usr/lib/libblkid.so)
-
+ifdef PTXCONF_E2FSPROGS_LIBS
@$(call install_copy, e2fsprogs, 0, 0, 0644, $(E2FSPROGS_DIR)/lib/libcom_err.so.2.1, /usr/lib/libcom_err.so.2.1)
@$(call install_link, e2fsprogs, libcom_err.so.2.1, /usr/lib/libcom_err.so.2)
@$(call install_link, e2fsprogs, libcom_err.so.2.1, /usr/lib/libcom_err.so)
@@ -135,9 +132,19 @@ $(STATEDIR)/e2fsprogs.targetinstall:
@$(call install_copy, e2fsprogs, 0, 0, 0644, $(E2FSPROGS_DIR)/lib/libss.so.2.0, /usr/lib/libss.so.2.0)
@$(call install_link, e2fsprogs, libss.so.2.0, /usr/lib/libss.so.2)
@$(call install_link, e2fsprogs, libss.so.2.0, /usr/lib/libss.so)
+endif
+ifdef PTXCONF_E2FSPROGS_LIBBLKID
+ @$(call install_copy, e2fsprogs, 0, 0, 0644, $(E2FSPROGS_DIR)/lib/libblkid.so.1.0, /usr/lib/libblkid.so.1.0)
+ @$(call install_link, e2fsprogs, libblkid.so.1.0, /usr/lib/libblkid.so.1)
+ @$(call install_link, e2fsprogs, libblkid.so.1.0, /usr/lib/libblkid.so)
+endif
+
+ifdef PTXCONF_E2FSPROGS_LIBUUID
@$(call install_copy, e2fsprogs, 0, 0, 0644, $(E2FSPROGS_DIR)/lib/libuuid.so.1.2, /usr/lib/libuuid.so.1.2)
@$(call install_link, e2fsprogs, libuuid.so.1.2, /usr/lib/libuuid.so.1)
+ @$(call install_link, e2fsprogs, libuuid.so.1.2, /usr/lib/libuuid.so)
+endif
#
# binaries in /usr/bin
diff --git a/rules/nfsutils.in b/rules/nfsutils.in
index 39c4774ab..2801d346d 100644
--- a/rules/nfsutils.in
+++ b/rules/nfsutils.in
@@ -3,6 +3,7 @@ menuconfig NFSUTILS
tristate
# we need libblkid
select E2FSPROGS
+ select E2FSPROGS_LIBBLKID
select TCPWRAPPER if NFSUTILS_WITH_TCPWRAPPERS
prompt "nfsutils "
help
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index 56da96ad2..13f0bc056 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -6,9 +6,10 @@ menuconfig UTIL_LINUX_NG
select HOST_GETTEXT
# only used in misc-utils -> script
# select LIBC_UTIL
- # we may need libuuid from E2FSPROGS, but we always need blkid from
- # this package
+ # we may need libuuid from E2FSPROGS, but we always need blkid
select E2FSPROGS
+ select E2FSPROGS_LIBBLKID
+ select E2FSPROGS_LIBUUID if UTIL_LINUX_NG_MKSWAP_UUID
select NCURSES if UTIL_LINUX_NG_CFDISK || UTIL_LINUX_NG_SETTERM
select UTIL_LINUX_NG_USES_NCURSES if UTIL_LINUX_NG_CFDISK || UTIL_LINUX_NG_SETTERM
# Only required for textutils we currently do not use