xbps-triggers: virtualpkg: fix virtualpkg.d path.

This commit is contained in:
Juan RP 2011-12-15 15:25:27 +01:00
parent 61bf0c667a
commit 4b79e4c5c1
2 changed files with 4 additions and 2 deletions

View file

@ -25,9 +25,11 @@ run)
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
[ ! -w $CONF_FILE ] && exit 0
confdir=$(dirname ./$CONF_FILE)
if [ "${TARGET}" = "post-install" ]; then
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
echo "include(./$CONF_FILE/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
echo "include(/$confdir/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
else
sed -i "/include.*$PKGNAME.conf.*/d" $CONF_FILE
echo "Disabled $PKGNAME virtual packages from $CONF_FILE."

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.32
version=0.33
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"