xbps-trigger: create compat symlink at pre-install time.
This commit is contained in:
parent
b41f0cfa0d
commit
5f85a1b7d2
2 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
pre)
|
||||||
# Remove old triggers and create compat symlink.
|
# Remove old triggers and create compat symlink.
|
||||||
if [ ! -d var/db/xbps ]; then
|
if [ ! -d var/db/xbps ]; then
|
||||||
mkdir -p var/db/xbps
|
mkdir -p var/db/xbps
|
||||||
else
|
else
|
||||||
rm -rf var/db/xbps/triggers
|
rm -rf var/db/xbps/triggers
|
||||||
fi
|
fi
|
||||||
|
[ ! -d usr/libexec/${PKGNAME} ] && mkdir -p usr/libexec/${PKGNAME}
|
||||||
cd var/db/xbps && ln -sf ../../../usr/libexec/${PKGNAME} triggers
|
cd var/db/xbps && ln -sf ../../../usr/libexec/${PKGNAME} triggers
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.50
|
version=0.51
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue