xbps-triggers: virtualpkg: hardcode xbps confdir for now.

This commit is contained in:
Juan RP 2011-12-16 09:47:44 +01:00
parent fbece9203a
commit 2f1019234e
2 changed files with 3 additions and 5 deletions

View file

@ -25,11 +25,9 @@ run)
[ -z "$CONF_FILE" ] && CONF_FILE=etc/xbps/xbps.conf
[ ! -w $CONF_FILE ] && exit 0
confdir=$(dirname "/$CONF_FILE")
if [ "${TARGET}" = "post-install" ]; then
if [ "${TARGET}" = "post-install" -a "$UPDATE" = "no" ]; then
echo "Enabled $PKGNAME virtual packages to $CONF_FILE."
echo "include($confdir/virtualpkg.d/$PKGNAME.conf)" >> $CONF_FILE
echo "include(/etc/xbps/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.35
version=0.36
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"