2007-09-13 00:18:41 +10: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
|
2006-10-28 23:28:31 +02:00
|
|
|
|
|
|
|
name=preload
|
|
|
|
version=0.4
|
2006-12-15 10:50:40 +01:00
|
|
|
release=3
|
2006-10-28 23:28:31 +02:00
|
|
|
source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd preload-$version
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
cd $PKG
|
2006-11-03 19:52:45 +01:00
|
|
|
rm -rv etc/{rc.d,logrotate.d,sysconfig}
|
|
|
|
# preload(8) is generated by help2man if available, otherwise
|
|
|
|
# it only contains "help2man is required to generate this file."
|
|
|
|
rm -rv usr/man
|
|
|
|
rm -r usr/share/doc
|
2006-10-28 23:28:31 +02:00
|
|
|
rmdir usr/share
|
2006-12-15 10:50:40 +01:00
|
|
|
# preload.state is installed 644 but changed to 640 on first run,
|
2006-11-03 19:52:45 +01:00
|
|
|
# so we change the mode in the package to avoid rejmerge.
|
2006-12-15 10:50:40 +01:00
|
|
|
chmod -v 640 var/lib/preload/preload.state
|
2006-10-28 23:28:31 +02:00
|
|
|
}
|
2007-09-13 00:18:41 +10:00
|
|
|
|