xbps-triggers: do not use INSTALL for compat symlink.
This commit is contained in:
parent
868edb4865
commit
7d6ab1a68e
|
@ -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
|
|
@ -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 <xtraeme@gmail.com>"
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue