diff --git a/srcpkgs/xbps-triggers/files/virtualpkg b/srcpkgs/xbps-triggers/files/virtualpkg deleted file mode 100755 index e9d9f29e15b..00000000000 --- a/srcpkgs/xbps-triggers/files/virtualpkg +++ /dev/null @@ -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 diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 5383935bd34..2ce9966d2e0 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.106 +version=0.107 revision=1 noarch=yes bootstrap=yes