wok-current view util-linux-ng/receipt @ rev 8343

Up: gnuchess to 5.08.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Feb 02 01:21:46 2011 +0000 (2011-02-02)
parents cb53e0d30346
children 78988bd0500a
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux-ng"
4 VERSION="2.18"
5 CATEGORY="meta"
6 SHORT_DESC="Util linux new generation (Meta package to build utility ans libs)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="glibc-base"
10 BUILD_DEPENDS="slitaz-toolchain ncurses-dev zlib-dev"
11 WEB_SITE="http://kernel.org/~kzak/util-linux-ng/"
12 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v${VERSION%*}/$TARBALL"
13 LOCALE=""
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # fix findmnt
20 patch -p1 -i ../stuff/fix-findmnt.patch
21 # fix cfdisk partition changing, included in next upstream release
22 patch -p1 -i ../stuff/util-linux-ng-cfdisk.patch
24 if ! grep 'tty:x:4:' /etc/group; then
25 addgroup -g 4 tty
26 fi
27 grep -qs 'define u8' fdisk/fdisksunlabel.c ||
28 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --with-fsprobe=builtin \
33 --enable-partx \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 }