xbps-triggers: remove obsolete virtualpkg trigger

This trigger was removed September 11, 2014 on xbps-git package and June 6 2014
on the xbps package. It has never seen use ever since.
This commit is contained in:
maxice8 2018-08-21 11:49:19 -03:00
parent e30f07a34e
commit e5fa002f65
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 1 additions and 53 deletions

View file

@ -1,52 +0,0 @@
#!/bin/sh
#
# This trigger converts virtualpkg conf files to the XBPS 0.33 format.
#
# 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"
;;
run)
for f in etc/xbps/virtualpkg.d/*.conf; do
if [ ! -r "${f}" ]; then
continue
fi
file=$(basename $f)
file=${file%.conf}
if [ -f etc/xbps/virtualpkg.d/${file}.vpkg ]; then
continue
fi
echo "Generating virtualpkg configuration file for: ${file} ..."
cat "$f" | while read line; do
pkg=$(echo "$line"|awk '{print $2}')
vpkg=$(echo "$line"|awk '{print $6}')
vpkg="$(echo $vpkg|sed 's,",,g')"
if [ "$pkg" = "Virtual" ]; then
echo "$line" > etc/xbps/virtualpkg.d/${file}.vpkg
else
echo "virtualpkg=${vpkg}:${pkg}" >> etc/xbps/virtualpkg.d/${file}.vpkg
fi
done
done
;;
*)
exit 1
;;
esac
exit 0

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.106
version=0.107
revision=1
noarch=yes
bootstrap=yes