mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
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:
parent
e30f07a34e
commit
e5fa002f65
2 changed files with 1 additions and 53 deletions
|
@ -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
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.106
|
version=0.107
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue