wok-current annotate util-linux-ng/receipt @ rev 9120
firefox-dev: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 05 13:36:09 2011 +0100 (2011-03-05) |
parents | 940b5937e496 |
children | 163676c61a63 |
rev | line source |
---|---|
pankso@3104 | 1 # SliTaz package receipt. |
pankso@3104 | 2 |
pankso@3104 | 3 PACKAGE="util-linux-ng" |
slaxemulator@8543 | 4 VERSION="2.19" |
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@3104 | 10 DEPENDS="glibc-base" |
slaxemulator@8984 | 11 BUILD_DEPENDS="ncurses-dev zlib-dev" |
pankso@3104 | 12 WEB_SITE="http://kernel.org/~kzak/util-linux-ng/" |
slaxemulator@8543 | 13 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v${VERSION}/$TARBALL" |
pankso@3104 | 14 LOCALE="" |
slaxemulator@8930 | 15 COOK_OPT="!fs" |
pankso@3104 | 16 |
pankso@3104 | 17 # Rules to configure and make the package. |
pankso@3104 | 18 compile_rules() |
pankso@3104 | 19 { |
pankso@3104 | 20 cd $src |
slaxemulator@6520 | 21 # fix findmnt |
pascal@8974 | 22 patch -p1 -i $stuff/fix-findmnt.patch |
slaxemulator@6520 | 23 # fix cfdisk partition changing, included in next upstream release |
pascal@8974 | 24 patch -p1 -i $stuff/util-linux-ng-cfdisk.patch |
slaxemulator@6520 | 25 |
pankso@3104 | 26 if ! grep 'tty:x:4:' /etc/group; then |
pankso@3104 | 27 addgroup -g 4 tty |
pankso@3104 | 28 fi |
pascal@6113 | 29 grep -qs 'define u8' fdisk/fdisksunlabel.c || |
pascal@6113 | 30 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c |
pankso@3104 | 31 ./configure \ |
pankso@3104 | 32 --prefix=/usr \ |
pankso@3104 | 33 --sysconfdir=/etc \ |
pankso@3104 | 34 --with-fsprobe=builtin \ |
pankso@3104 | 35 --enable-partx \ |
pankso@3104 | 36 $CONFIGURE_ARGS && |
pankso@3104 | 37 make && |
pankso@3104 | 38 make DESTDIR=$PWD/_pkg install |
pankso@3104 | 39 } |
pankso@3104 | 40 |
pankso@3104 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3104 | 42 genpkg_rules() |
pankso@3104 | 43 { |
pankso@3104 | 44 mkdir -p $fs/usr/bin |
pankso@3104 | 45 } |