xbps-triggers: do not use INSTALL for compat symlink.

This commit is contained in:
Juan RP 2012-11-17 11:10:51 +01:00
parent 868edb4865
commit 7d6ab1a68e
2 changed files with 4 additions and 13 deletions

View File

@ -1,12 +0,0 @@
case "${ACTION}" in
pre)
# Remove old triggers and create compat symlink.
if [ ! -d var/db/xbps ]; then
mkdir -p var/db/xbps
else
rm -rf var/db/xbps/triggers
fi
[ ! -d usr/libexec/${PKGNAME} ] && mkdir -p usr/libexec/${PKGNAME}
cd var/db/xbps && ln -sf ../../../usr/libexec/${PKGNAME} triggers
;;
esac

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.51
version=0.52
revision=1
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -21,4 +21,7 @@ do_install() {
vinstall ${FILESDIR}/${_trigger} 750 ${_triggersdir}
echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger}
done
# Create compat symlink.
vmkdir var/db/xbps
ln -sf /${_triggersdir} ${DESTDIR}/var/db/xbps/triggers
}