contrib/preload/Pkgfile
2007-09-13 00:22:55 +10:00

35 lines
902 B
Plaintext

# Description: Adaptive readahead daemon.
# URL: http://sourceforge.net/projects/preload/
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: Mark Rosenstand, mark at borkware dot net
# Depends on: glib
name=preload
version=0.4
release=3
source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz)
build() {
cd preload-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make -j1
make DESTDIR=$PKG install
cd $PKG
rm -rv etc/{rc.d,logrotate.d,sysconfig}
# preload(8) is generated by help2man if available, otherwise
# it only contains "help2man is required to generate this file."
rm -rv usr/man
rm -r usr/share/doc
rmdir usr/share
# preload.state is installed 644 but changed to 640 on first run,
# so we change the mode in the package to avoid rejmerge.
chmod -v 640 var/lib/preload/preload.state
}