diff --git a/templates/util-linux-fix-build.diff b/templates/util-linux-fix-build.diff new file mode 100644 index 00000000000..0139bcf32d0 --- /dev/null +++ b/templates/util-linux-fix-build.diff @@ -0,0 +1,12 @@ +--- disk-utils/fsck.cramfs.c.orig 2008-10-23 00:59:51.000000000 +0200 ++++ disk-utils/fsck.cramfs.c 2008-10-23 01:00:24.000000000 +0200 +@@ -76,7 +76,9 @@ static uid_t euid; /* effective UID */ + + #define PAD_SIZE 512 + ++#ifdef HAVE_asm_page_h + #include ++#endif + #ifdef PAGE_SIZE + #define PAGE_CACHE_SIZE ((int) PAGE_SIZE) + #elif defined __ia64__ diff --git a/templates/util-linux.tmpl b/templates/util-linux.tmpl new file mode 100644 index 00000000000..266b77dd74d --- /dev/null +++ b/templates/util-linux.tmpl @@ -0,0 +1,23 @@ +# Template file for 'util-linux' +pkgname=util-linux +version=2.12r +patch_files="$pkgname-fix-build.diff" +distfiles="http://www.kernel.org/pub/linux/utils/util-linux/$pkgname-$version@.tar.bz2" +build_style=gnu_configure +make_install_args="ETC_DIR=$XBPS_DESTDIR/$pkgname-$version/etc + SBIN_DIR=$XBPS_DESTDIR/$pkgname-$version/sbin + USRSBIN_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/sbin + USRLIB_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/lib + USRBIN_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/bin + USRSHAREMISC_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/share/misc + LOCALE_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/share/locale + BIN_DIR=$XBPS_DESTDIR/$pkgname-$version/bin + VAR_PATH=$XBPS_DESTDIR/$pkgname-$version/var + LOG_DIR=$XBPS_DESTDIR/$pkgname-$version/log + MAN_DIR=$XBPS_DESTDIR/$pkgname-$version/share/man + INFO_DIR=$XBPS_DESTDIR/$pkgname-$version/share/info" +short_desc="Random collection of Linux utilities" +maintainer="Juan RP " +checksum=b8e499b338ce9fbd1fb315194b26540ec823c0afc46c9e145ac7a3e38ad57e6b +long_desc=" + util-linux is a random collection of Linux utilities."