contrib/preload/Pkgfile

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2007-09-12 16:18:41 +02:00
# 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 help2man
2006-10-28 23:28:31 +02:00
name=preload
version=0.4
release=4
source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz \
rc.preload)
2006-10-28 23:28:31 +02:00
build() {
cd preload-$version
2007-09-12 16:22:55 +02:00
# preload(8) is generated by help2man if available, otherwise
# it only contains "help2man is required to generate this file."
##rm -rv usr/man
if [ -z "$(pkginfo -i |grep 'help2man ')" ]; then
echo 'Install help2man.'
exit 0
fi
2007-09-12 16:22:55 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make -j1
2006-10-28 23:28:31 +02:00
make DESTDIR=$PKG install
cd $PKG
rm -r etc/{rc.d,logrotate.d,sysconfig}
rm -r usr/share/doc
2006-10-28 23:28:31 +02:00
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
# install services rc script
install -D -m755 $SRC/rc.preload $PKG/etc/rc.d/preload
2006-10-28 23:28:31 +02:00
}
2007-09-12 16:18:41 +02:00