blob: 12dcfd076412c6bd7ba237a83f8ad28384f4096c (
plain)
1 # Description: Adaptive readahead daemon.
2 # URL: http://sourceforge.net/projects/preload/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Mark Rosenstand, mark at borkware dot net
5 # Depends on: glib help2man
6
7 name=preload
8 version=0.6.3
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz
11 rc.preload
12 $name-$version-memcached-default.patch
13 $name-$version-statedir-fix.patch
14 $name-$version-check-help2man.patch)
15
16 build() {
17 cd preload-$version
18 patch -p 1 -i $SRC/$name-$version-memcached-default.patch
19 patch -p 1 -i $SRC/$name-$version-statedir-fix.patch
20 patch -p 1 -i $SRC/$name-$version-check-help2man.patch
21 autoreconf
22
23 ./configure \
24 --prefix=/usr \
25 --mandir=/usr/man \
26 --sysconfdir=/etc \
27 --localstatedir=/var
28
29 make -j 1
30 make DESTDIR=$PKG install
31
32 rm -r $PKG/etc/{rc.d,logrotate.d,sysconfig}
33 rm -r $PKG/usr/share/doc
34 rmdir $PKG/usr/share
35
36 # preload.state is installed 0644 but changed to 0600 on first run,
37 # so we change the mode in the package to avoid rejmerge.
38 chmod 0600 $PKG/var/cache/preload/preload.state
39
40 # install services rc script
41 install -m 0755 -D $SRC/rc.preload $PKG/etc/rc.d/preload
42 }
|