# Contributor: Sören Tempel # Contributor: Leonardo Arena # Maintainer: Natanael Copa setvar pkgname = 'util-linux' setvar pkgver = '2.30.2' case (pkgver) { *.*.* { setvar _v = ${pkgver%.*}} *.* { setvar _v = "$pkgver"} } setvar pkgrel = '0' setvar pkgdesc = ""Random collection of Linux utilities"" setvar url = ""http://git.kernel.org/cgit/utils/util-linux/util-linux.git"" setvar arch = ""all"" setvar license = ""GPL2 GPL2+ LGPL2+ BSD Public Domain"" setvar depends = ""findmnt"" setvar makedepends_build = ""autoconf automake libtool"" setvar makedepends_host = ""zlib-dev ncurses-dev linux-headers libcap-ng-dev"" setvar options = ""suid"" setvar source = ""http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.tar.xz ttydefaults.h "" setvar subpackages = ""$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp:noarch libuuid libblkid libmount libsmartcols libfdisk sfdisk cfdisk findmnt:_findmnt mcookie blkid setpriv"" if test -z $BOOTSTRAP { setvar makedepends_host = ""$makedepends_host ncurses-dev python2-dev"" setvar subpackages = ""$subpackages py-libmount:_py"" } else { setvar _bootstrap_config = ""--without-python"" } setvar makedepends = ""$makedepends_build $makedepends_host"" setvar replaces = ""e2fsprogs util-linux-ng"" setvar builddir = ""$srcdir/$pkgname-$pkgver"" proc prepare { default_prepare cd $builddir cp "$srcdir"/ttydefaults.h include/ libtoolize --force && aclocal -I m4 && autoconf \ && automake --add-missing } proc build { cd $builddir # login utils are provided by shadow (with PAM) or busybox (no PAM) --nenolod ./configure \ --build=$CBUILD \ --host=$CHOST \ --with-sysroot=$CBUILDROOT \ --prefix=/usr \ --enable-raw \ --disable-uuidd \ --disable-nls \ --disable-tls \ --disable-kill \ --disable-login \ --disable-last \ --disable-sulogin \ --disable-su \ $_bootstrap_config make } proc package { make -j1 DESTDIR="$pkgdir" -C $builddir install # use pkg-config } proc dev { default_dev setvar replaces = ""e2fsprogs-dev util-linux-ng-dev"" } proc bashcomp { setvar pkgdesc = ""Bash completions for $pkgname"" setvar depends = """" setvar install_if = ""$pkgname=$pkgver-r$pkgrel bash-completion"" mkdir -p "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/share/bash-completion \ "$subpkgdir"/usr/share/ } proc blkid { setvar pkgdesc = ""block device identification tool"" setvar depends = """" setvar replaces = ""util-linux-ng"" mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/blkid "$subpkgdir"/sbin/ } proc libuuid { setvar pkgdesc = ""DCE compatible Universally Unique Identifier library"" setvar depends = """" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libuuid* "$subpkgdir"/lib/ } proc libblkid { setvar pkgdesc = ""Block device identification library from util-linux"" setvar depends = """" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libblkid* "$subpkgdir"/lib/ } proc libmount { setvar pkgdesc = ""Block device identification library from util-linux"" setvar depends = """" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libmount.so.* "$subpkgdir"/lib/ } proc libsmartcols { setvar pkgdesc = ""Formatting library for ls-like programs."" setvar depends = """" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libsmartcols.so.* "$subpkgdir"/lib/ } proc libfdisk { setvar pkgdesc = ""Partitioning library for fdisk-like programs"" setvar depends = """" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libfdisk.so.* "$subpkgdir"/lib/ } proc sfdisk { setvar pkgdesc = ""Partition table manipulator from util-linux"" setvar depends = """" mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/sfdisk "$subpkgdir"/sbin/ } proc cfdisk { setvar pkgdesc = ""Curses based partition table manipulator from util-linux"" setvar depends = """" mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/cfdisk "$subpkgdir"/sbin/ } proc mcookie { setvar pkgdesc = ""mcookie from util-linux"" setvar replaces = ""util-linux-ng"" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/mcookie "$subpkgdir"/usr/bin/ } proc setpriv { setvar pkgdesc = ""Run a program with different Linux privilege settings"" setvar replaces = ""util-linux-ng"" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/setpriv "$subpkgdir"/usr/bin/ } proc _findmnt { setvar pkgdesc = ""findmnt from util-linux"" setvar depends = """" setvar replaces = """" mkdir -p "$subpkgdir"/bin mv "$pkgdir"/bin/findmnt "$subpkgdir"/bin } proc _py { setvar pkgdesc = ""python bindings to libmount"" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } setvar sha512sums = ""b92ec16d5e8a405ad9ebbac8673bb49c5bf0a7f630118477f12c7a3c6b3b3ee5d56868632dd71fffd5c0434821207c2769f6859b9d398c2df770ec6487d7c32d util-linux-2.30.2.tar.xz 876bb9041eca1b2cca1e9aac898f282db576f7860aba690a95c0ac629d7c5b2cdeccba504dda87ff55c2a10b67165985ce16ca41a0694a267507e1e0cafd46d9 ttydefaults.h""