50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# Description: Adaptive readahead daemon.
|
|
# URL: http://sourceforge.net/projects/preload/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
|
# Depends on: glib help2man
|
|
|
|
name=preload
|
|
version=0.6.3
|
|
release=1
|
|
source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz
|
|
rc.preload
|
|
$name-$version-memcached-default.patch
|
|
$name-$version-statedir-fix.patch)
|
|
|
|
build() {
|
|
cd preload-$version
|
|
patch -p 1 -i $SRC/$name-$version-memcached-default.patch
|
|
patch -p 1 -i $SRC/$name-$version-statedir-fix.patch
|
|
autoreconf
|
|
|
|
# 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 1
|
|
fi
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var
|
|
|
|
make -j 1
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/etc/{rc.d,logrotate.d,sysconfig}
|
|
rm -r $PKG/usr/share/doc
|
|
rmdir $PKG/usr/share
|
|
|
|
# preload.state is installed 0644 but changed to 0600 on first run,
|
|
# so we change the mode in the package to avoid rejmerge.
|
|
chmod 0600 $PKG/var/cache/preload/preload.state
|
|
|
|
# install services rc script
|
|
install -m 0755 -D $SRC/rc.preload $PKG/etc/rc.d/preload
|
|
}
|
|
|