wok-stable view util-linux-ng/receipt @ rev 9754
libusb-compat: fix BUILD_DEPENDS
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 11 03:37:17 2011 +0200 (2011-05-11) |
parents | 940b5937e496 |
children | 163676c61a63 |
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux-ng"
4 VERSION="2.19"
5 CATEGORY="meta"
6 SHORT_DESC="Util linux new generation (Meta package to build utility ans libs)."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="util-linux"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 DEPENDS="glibc-base"
11 BUILD_DEPENDS="ncurses-dev zlib-dev"
12 WEB_SITE="http://kernel.org/~kzak/util-linux-ng/"
13 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v${VERSION}/$TARBALL"
14 LOCALE=""
15 COOK_OPT="!fs"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # fix findmnt
22 patch -p1 -i $stuff/fix-findmnt.patch
23 # fix cfdisk partition changing, included in next upstream release
24 patch -p1 -i $stuff/util-linux-ng-cfdisk.patch
26 if ! grep 'tty:x:4:' /etc/group; then
27 addgroup -g 4 tty
28 fi
29 grep -qs 'define u8' fdisk/fdisksunlabel.c ||
30 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --with-fsprobe=builtin \
35 --enable-partx \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$PWD/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin
45 }