wok-next view util-linux-ng/receipt @ rev 8873
Up: dropbear to 0.53.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 26 14:17:39 2011 +0000 (2011-02-26) |
parents | 00973bd72b33 |
children | 6f78cc176853 |
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=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 # fix findmnt
21 patch -p1 -i ../stuff/fix-findmnt.patch
22 # fix cfdisk partition changing, included in next upstream release
23 patch -p1 -i ../stuff/util-linux-ng-cfdisk.patch
25 if ! grep 'tty:x:4:' /etc/group; then
26 addgroup -g 4 tty
27 fi
28 grep -qs 'define u8' fdisk/fdisksunlabel.c ||
29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --with-fsprobe=builtin \
34 --enable-partx \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 }