2007-09-13 00:18:41 +10:00
|
|
|
# Description: Adaptive readahead daemon.
|
|
|
|
# URL: http://sourceforge.net/projects/preload/
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
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
|
2008-07-25 20:34:45 +10:00
|
|
|
release=1
|
2010-11-13 14:31:40 +11:00
|
|
|
source=(http://downloads.sourceforge.net/project/$name/$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
|
2008-07-29 23:22:59 +10:00
|
|
|
autoreconf
|
2007-09-13 00:22:55 +10:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2008-07-25 20:34:45 +10:00
|
|
|
--mandir=/usr/man \
|
2007-09-13 00:22:55 +10:00
|
|
|
--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
|
|
|
|
rmdir $PKG/usr/share
|
2007-09-24 09:34:02 +10: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
|
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
|
|
|
}
|