summaryrefslogtreecommitdiffstats
path: root/util-linux-ng/Pkgfile.old
blob: 774e38820ecc58ee7c292cb34c2b9068b1ddce2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Description: Miscellaneous system utilities
# URL:         http://userweb.kernel.org/~kzak/util-linux-ng/
# Maintainer:  CRUX System Team, core-ports at crux dot nu
# Depends on:  ncurses zlib

name=util-linux-ng
version=2.18
release=2
source=(http://ftp.kernel.org/pub/linux/utils/$name/v2.18/$name-$version.tar.bz2)

build() {
    cd $name-$version

    ./configure --prefix=/usr \
                --mandir=/usr/man \
                --disable-{nls,wall} \
                --enable-{write,raw,kill}
    make
    make DESTDIR=$PKG install

    install -d $PKG/{etc,var/{lib/libuuid,run/uuidd}}
    touch $PKG/etc/adjtime

    rm -r $PKG/usr/share
    rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix}
    rm $PKG/usr/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8
}