preload: really remove unused stuff; remove wrong workaround; use conf_files.

This commit is contained in:
Juan RP 2015-04-13 09:26:22 +02:00
parent e898f68084
commit 3be88ee63f
1 changed files with 6 additions and 11 deletions

View File

@ -1,11 +1,12 @@
# Template file for 'preload'
pkgname=preload
version=0.6.4
revision=4
revision=5
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libglib-devel"
disable_parallel_build=yes
conf_files="/etc/preload.conf"
short_desc="An adaptive readahead daemon"
maintainer="bougyman <bougyman@voidlinux.eu>"
license="GPL-2"
@ -13,16 +14,10 @@ homepage="http://sourceforge.net/projects/preload"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d0a558e83cb29a51d9d96736ef39f4b4e55e43a589ad1aec594a048ca22f816b
pre_build() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
sed -i -e 's|/usr/i686-pc-linux-gnu/usr/lib32/glib-2.0/include|/usr/i686-pc-linux-gnu/usr/lib/glib-2.0/include|' Makefile doc/Makefile src/Makefile
fi
}
post_install() {
rm -rf etc/rc.d
rm -rf etc/logrotate.d
rm -rf etc/sysconfig
rm -rf var/log
rm -rf ${DESTDIR}/etc/rc.d
rm -rf ${DESTDIR}/etc/logrotate.d
rm -rf ${DESTDIR}/etc/sysconfig
rm -rf ${DESTDIR}/var/log
vsv preload
}