2011-12-15 13:28:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-11-19 15:11:22 +00:00
|
|
|
# This trigger is obsolete in xbps>=0.18.
|
|
|
|
#
|
2011-12-15 13:28:16 +00:00
|
|
|
# Enables or disables a virtual package to xbps.conf.
|
|
|
|
#
|
|
|
|
# Arguments: $ACTION = [run/targets]
|
|
|
|
# $TARGET = [post-install/pre-remove]
|
|
|
|
# $PKGNAME
|
|
|
|
# $VERSION
|
|
|
|
# $UPDATE = [yes/no]
|
|
|
|
#
|
|
|
|
ACTION="$1"
|
|
|
|
TARGET="$2"
|
|
|
|
PKGNAME="$3"
|
|
|
|
VERSION="$4"
|
|
|
|
UPDATE="$5"
|
|
|
|
CONF_FILE="$6"
|
|
|
|
|
|
|
|
export PATH="$PATH:/usr/local/bin"
|
|
|
|
|
|
|
|
case "$ACTION" in
|
|
|
|
targets)
|
|
|
|
echo "post-install post-remove"
|
|
|
|
;;
|
|
|
|
run)
|
2012-11-19 15:11:22 +00:00
|
|
|
# Do nothing, keep it just for compatibility.
|
2011-12-15 13:28:16 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|