wok-stable view util-linux-ng/receipt @ rev 6344
Up: liboil, liboil-dev to 0.3.17.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Sep 19 14:21:08 2010 +0000 (2010-09-19) |
parents | c1004e0f2921 |
children | cb53e0d30346 |
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux-ng"
4 VERSION="2.16.1"
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 e2fsprogs-dev"
11 WEB_SITE="http://kernel.org/~kzak/util-linux-ng/"
12 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.16/$TARBALL"
13 LOCALE=""
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 if ! grep 'tty:x:4:' /etc/group; then
20 addgroup -g 4 tty
21 fi
22 grep -qs 'define u8' fdisk/fdisksunlabel.c ||
23 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' fdisk/fdisksunlabel.c
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --with-fsprobe=builtin \
28 --enable-partx \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 }