wok annotate util-linux-ng/receipt @ rev 12351
boxbackup-client: new default dir
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Apr 19 21:02:13 2012 +0200 (2012-04-19) |
parents | 163676c61a63 |
children |
rev | line source |
---|---|
pankso@3104 | 1 # SliTaz package receipt. |
pankso@3104 | 2 |
pankso@3104 | 3 PACKAGE="util-linux-ng" |
slaxemulator@10150 | 4 VERSION="2.19.1" |
pankso@3476 | 5 CATEGORY="meta" |
pankso@3104 | 6 SHORT_DESC="Util linux new generation (Meta package to build utility ans libs)." |
pankso@3104 | 7 MAINTAINER="pankso@slitaz.org" |
slaxemulator@8543 | 8 SOURCE="util-linux" |
slaxemulator@8543 | 9 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@10273 | 10 WEB_SITE="http://kernel.org/~kzak/util-linux-ng/" |
pankso@10273 | 11 WGET_URL="http://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.19/$TARBALL" |
pankso@10273 | 12 COOK_OPT="!fs" |
pankso@10273 | 13 LOCALE="" |
pankso@10273 | 14 |
pankso@10273 | 15 DEPENDS="" |
slaxemulator@8984 | 16 BUILD_DEPENDS="ncurses-dev zlib-dev" |
pankso@3104 | 17 |
pankso@3104 | 18 # Rules to configure and make the package. |
pankso@3104 | 19 compile_rules() |
pankso@3104 | 20 { |
pankso@3104 | 21 cd $src |
slaxemulator@6520 | 22 # fix findmnt |
pascal@8974 | 23 patch -p1 -i $stuff/fix-findmnt.patch |
slaxemulator@6520 | 24 # fix cfdisk partition changing, included in next upstream release |
pascal@8974 | 25 patch -p1 -i $stuff/util-linux-ng-cfdisk.patch |
slaxemulator@6520 | 26 |
pankso@3104 | 27 if ! grep 'tty:x:4:' /etc/group; then |
pankso@3104 | 28 addgroup -g 4 tty |
pankso@3104 | 29 fi |
pascal@6113 | 30 grep -qs 'define u8' fdisk/fdisksunlabel.c || |
pascal@6113 | 31 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c |
pankso@3104 | 32 ./configure \ |
pankso@3104 | 33 --prefix=/usr \ |
pankso@3104 | 34 --sysconfdir=/etc \ |
pankso@3104 | 35 --with-fsprobe=builtin \ |
pankso@3104 | 36 --enable-partx \ |
pankso@3104 | 37 $CONFIGURE_ARGS && |
pankso@3104 | 38 make && |
slaxemulator@10150 | 39 make install |
pankso@3104 | 40 } |
pankso@3104 | 41 |
pankso@3104 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3104 | 43 genpkg_rules() |
pankso@3104 | 44 { |
pankso@3104 | 45 mkdir -p $fs/usr/bin |
pankso@3104 | 46 } |