xbps-triggers: move triggers to usr/libexec/xbps-triggers; create compat symlink.

This commit is contained in:
Juan RP 2012-11-15 23:53:10 +01:00
parent e62cccdd99
commit b206f482b4
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,11 @@
case "${ACTION}" in
post)
# 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
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.49
version=0.50
revision=1
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -14,7 +14,7 @@ noextract=yes
bootstrap=yes
do_install() {
_triggersdir=var/db/xbps/triggers
_triggersdir=usr/libexec/${pkgname}
for f in ${FILESDIR}/*; do
_trigger=$(basename $f)