@ -26,6 +26,7 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_setterm
PKG_FIXUP := autoreconf
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -35,49 +36,6 @@ define Package/util-linux/Default
URL:= http://www.kernel.org/pub/linux/utils/util-linux/
e n d e f
CONFIGURE_ARGS += \
--disable-rpath \
--disable-tls \
--disable-sulogin \
--without-python \
--without-udev \
--without-readline \
$( if $( CONFIG_PACKAGE_cal) $( CONFIG_PACKAGE_cfdisk) $( CONFIG_PACKAGE_setterm) ,--with-ncurses,--without-ncurses)
TARGET_CFLAGS += $( FPIC) -std= gnu99
d e f i n e B u i l d / I n s t a l l D e v
$( MAKE) -C $( PKG_BUILD_DIR) \
BUILDCC = " $( HOSTCC) " \
DESTDIR = " $( 1) " \
installdirs install-data
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_BUILD_DIR) /libblkid/blkid.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_BUILD_DIR) /libfdisk/fdisk.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_BUILD_DIR) /libmount/mount.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_BUILD_DIR) /libsmartcols/smartcols.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_BUILD_DIR) /libuuid/uuid.pc $( 1) /usr/lib/pkgconfig
$( INSTALL_DIR) $( 1) /usr/include/blkid
$( CP) $( PKG_BUILD_DIR) /libblkid/src/blkid.h $( 1) /usr/include/blkid
$( INSTALL_DIR) $( 1) /usr/include/fdisk
$( CP) $( PKG_BUILD_DIR) /libfdisk/src/libfdisk.h $( 1) /usr/include/fdisk
$( INSTALL_DIR) $( 1) /usr/include/libmount
$( CP) $( PKG_BUILD_DIR) /libmount/src/libmount.h $( 1) /usr/include/libmount
$( INSTALL_DIR) $( 1) /usr/include/uuid
$( CP) $( PKG_BUILD_DIR) /libuuid/src/uuid.h $( 1) /usr/include/uuid
$( INSTALL_DIR) $( 1) /usr/include/smartcols
$( CP) $( PKG_BUILD_DIR) /libsmartcols/src/libsmartcols.h $( 1) /usr/include/smartcols
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libblkid.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libfdisk.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libmount.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libuuid.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libsmartcols.{ a,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 b l k i d
$( call Package /util -linux /Default )
DEPENDS:= +libuuid
@ -168,7 +126,7 @@ endef
d e f i n e P a c k a g e / b l k i d
$( call Package /util -linux /Default )
TITLE:= locate/ print block device attributes
TITLE:= locate and print block device attributes
DEPENDS:= +libblkid +libuuid
SUBMENU = disc
e n d e f
@ -389,6 +347,7 @@ define Package/sfdisk
$( call Package /util -linux /Default )
TITLE:= partition table manipulator for Linux
SUBMENU = disc
DEPENDS:= +libblkid +libfdisk +libsmartcols
e n d e f
d e f i n e P a c k a g e / s f d i s k / d e s c r i p t i o n
@ -466,185 +425,225 @@ define Package/wipefs/description
libblkid.
e n d e f
CONFIGURE_ARGS += \
--disable-use-tty-group \
--disable-rpath \
--disable-tls \
--disable-sulogin \
--without-python \
--without-udev \
--without-readline \
$( if $( CONFIG_PACKAGE_cal) $( CONFIG_PACKAGE_cfdisk) $( CONFIG_PACKAGE_setterm) ,--with-ncurses,--without-ncurses)
TARGET_CFLAGS += $( FPIC) -std= gnu99
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/blkid.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/fdisk.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/mount.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/smartcols.pc $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/uuid.pc $( 1) /usr/lib/pkgconfig
$( INSTALL_DIR) $( 1) /usr/include/blkid
$( CP) $( PKG_INSTALL_DIR) /usr/include/blkid/blkid.h $( 1) /usr/include/blkid
$( INSTALL_DIR) $( 1) /usr/include/libfdisk
$( CP) $( PKG_INSTALL_DIR) /usr/include/libfdisk/libfdisk.h $( 1) /usr/include/libfdisk
$( INSTALL_DIR) $( 1) /usr/include/libmount
$( CP) $( PKG_INSTALL_DIR) /usr/include/libmount/libmount.h $( 1) /usr/include/libmount
$( INSTALL_DIR) $( 1) /usr/include/uuid
$( CP) $( PKG_INSTALL_DIR) /usr/include/uuid/uuid.h $( 1) /usr/include/uuid
$( INSTALL_DIR) $( 1) /usr/include/libsmartcols
$( CP) $( PKG_INSTALL_DIR) /usr/include/libsmartcols/libsmartcols.h $( 1) /usr/include/libsmartcols
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libblkid.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libfdisk.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libmount.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libuuid.{ a,so*} $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libsmartcols.{ a,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 f d i s k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libfdisk.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libfdisk.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 b l k i d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libblkid.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libblkid.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 m o u n t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libmount.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libmount.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 m a r t c o l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libsmartcols.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libsmartcols.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 u u i d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /.libs/libuuid.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /lib /libuuid.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / a g e t t y / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /agetty $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /agetty $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / b l k d i s c a r d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /blkdiscard $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /blkdiscard $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / b l k i d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs/blkid $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /blkid $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / c a l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /cal $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /cal $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / c f d i s k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /cfdisk $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /cfdisk $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / d m e s g / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/s bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /dmesg $( 1) /usr/s bin/
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /dmesg $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / f d i s k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /fdisk $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /fdisk $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / f i n d f s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /findfs $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /findfs $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / f l o c k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /flock $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /flock $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / g e t o p t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /getopt $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /getopt $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / h w c l o c k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /hwclock $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /hwclock $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / l o g g e r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /logger $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /logger $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / l o o k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /look $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /look $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / l o s e t u p / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /losetup $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /losetup $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / l s b l k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /lsblk $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /lsblk $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / m c o o k i e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /mcookie $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /mcookie $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / m o u n t - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /{ u,} mount $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /mountpoint $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /findmnt $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /{ u,} mount $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /mountpoint $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /findmnt $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n a m e i / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /namei $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /namei $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / p r l i m i t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /prlimit $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /prlimit $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / r e n a m e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /rename $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /rename $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / p a r t x - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /partx $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /addpart $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /delpart $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /partx $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /addpart $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /delpart $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / s c r i p t - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /script $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /scriptreplay $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /script $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /scriptreplay $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / s e t t e r m / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /setterm $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /setterm $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / s f d i s k / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /sfdisk $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /sfdisk $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / s w a p - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /mkswap $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /swaplabel $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /mkswap $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /swaplabel $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / u u i d d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /uuidd $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/ /uuidd $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / u u i d g e n / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /uuidgen $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ /uuidgen $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / w a l l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /wall $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /wall $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / w h e r e i s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /whereis $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin /whereis $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / w i p e f s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /.libs /wipefs $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /wipefs $( 1) /usr/sbin/
e n d e f
$( eval $ ( call BuildPackage ,libblkid ) )