From 7d6ab1a68eca3d13a9853f65feaeee787f210d68 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 17 Nov 2012 11:10:51 +0100 Subject: [PATCH] xbps-triggers: do not use INSTALL for compat symlink. --- srcpkgs/xbps-triggers/INSTALL | 12 ------------ srcpkgs/xbps-triggers/template | 5 ++++- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 srcpkgs/xbps-triggers/INSTALL diff --git a/srcpkgs/xbps-triggers/INSTALL b/srcpkgs/xbps-triggers/INSTALL deleted file mode 100644 index d0d4ba877d5..00000000000 --- a/srcpkgs/xbps-triggers/INSTALL +++ /dev/null @@ -1,12 +0,0 @@ -case "${ACTION}" in -pre) - # Remove old triggers and create compat symlink. - if [ ! -d var/db/xbps ]; then - mkdir -p var/db/xbps - else - rm -rf var/db/xbps/triggers - fi - [ ! -d usr/libexec/${PKGNAME} ] && mkdir -p usr/libexec/${PKGNAME} - cd var/db/xbps && ln -sf ../../../usr/libexec/${PKGNAME} triggers - ;; -esac diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 28ce6821e5c..97676360be7 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.51 +version=0.52 revision=1 short_desc="XBPS triggers" maintainer="Juan RP " @@ -21,4 +21,7 @@ do_install() { vinstall ${FILESDIR}/${_trigger} 750 ${_triggersdir} echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger} done + # Create compat symlink. + vmkdir var/db/xbps + ln -sf /${_triggersdir} ${DESTDIR}/var/db/xbps/triggers }