opt/quota/Pkgfile

30 lines
964 B
Plaintext

# Description: Tools for the Linux quota system
# URL: http://sourceforge.net/projects/linuxquota/
# Packager: Mikhail Kolesnik, mike at openbunker dot org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: e2fsprogs tcp_wrappers
name=quota
version=3.17
release=2
source=(http://download.sourceforge.net/linuxquota/$name-$version.tar.gz \
warnquota.conf)
build(){
cd $name-tools
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc/quota \
--enable-nls=no \
--enable-altformat=yes \
--enable-rpc=yes \
--enable-nis=no \
--enable-bsd_behaviour=yes \
--enable-rootsbin=yes
make
make install ROOTDIR=$PKG
rm -r $PKG/usr/include
install -D -m 644 $SRC/warnquota.conf $PKG/etc/quota/warnquota.conf
find $PKG/etc/quota -type f | xargs sed -i 's|/etc|/etc/quota|'
}