wok-6.x view util-linux-ng/receipt @ rev 8931
Up: ncurses to 5.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Mar 01 04:03:29 2011 +0000 (2011-03-01) |
parents | 78988bd0500a |
children | 940b5937e496 |
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="slitaz-toolchain 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 }