2007-09-13 00:18:41 +10:00
|
|
|
# Description: Adaptive readahead daemon.
|
|
|
|
# URL: http://sourceforge.net/projects/preload/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2007-09-13 00:18:41 +10:00
|
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
2007-09-24 09:34:02 +10:00
|
|
|
# Depends on: glib help2man
|
2006-10-28 23:28:31 +02:00
|
|
|
|
|
|
|
name=preload
|
2009-07-06 22:47:18 +10:00
|
|
|
version=0.6.4
|
2020-01-20 15:28:00 +00:00
|
|
|
release=3
|
2011-01-11 04:38:42 +11:00
|
|
|
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz
|
2008-07-29 23:22:59 +10:00
|
|
|
rc.preload
|
2009-07-06 22:47:18 +10:00
|
|
|
$name-0.6.3-memcached-default.patch
|
|
|
|
$name-0.6.3-statedir-fix.patch
|
|
|
|
$name-0.6.3-check-help2man.patch)
|
2006-10-28 23:28:31 +02:00
|
|
|
|
|
|
|
build() {
|
2010-11-13 14:31:40 +11:00
|
|
|
cd $name-$version
|
2009-07-06 22:47:18 +10:00
|
|
|
patch -p 1 -i $SRC/$name-0.6.3-memcached-default.patch
|
|
|
|
patch -p 1 -i $SRC/$name-0.6.3-statedir-fix.patch
|
|
|
|
patch -p 1 -i $SRC/$name-0.6.3-check-help2man.patch
|
2013-02-04 12:58:50 +11:00
|
|
|
autoreconf -i
|
2007-09-13 00:22:55 +10:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var
|
|
|
|
|
2008-07-28 19:46:28 +10:00
|
|
|
make -j 1
|
2006-10-28 23:28:31 +02:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2008-07-29 23:22:59 +10:00
|
|
|
rm -r $PKG/etc/{rc.d,logrotate.d,sysconfig}
|
|
|
|
rm -r $PKG/usr/share/doc
|
2020-01-20 15:28:00 +00:00
|
|
|
|
2008-07-29 23:22:59 +10:00
|
|
|
# preload.state is installed 0644 but changed to 0600 on first run,
|
2006-11-03 19:52:45 +01:00
|
|
|
# so we change the mode in the package to avoid rejmerge.
|
2008-07-29 23:22:59 +10:00
|
|
|
chmod 0600 $PKG/var/cache/preload/preload.state
|
2020-01-20 15:28:00 +00:00
|
|
|
|
2007-09-24 09:34:02 +10:00
|
|
|
# install services rc script
|
2008-07-28 19:46:28 +10:00
|
|
|
install -m 0755 -D $SRC/rc.preload $PKG/etc/rc.d/preload
|
2006-10-28 23:28:31 +02:00
|
|
|
}
|