diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-10-09 04:05:25 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-10-09 04:05:25 +0000 |
commit | b5413f720c2cb66c3e8aec5e9e9ca9eeb903f387 (patch) | |
tree | b51cd30b19f8b0ffb29e80068a382f3e83244e34 /sysutils/runit-faster | |
parent | 25a287b67b0e3f9e4c2b770ab997cde7e7beb05a (diff) | |
download | ports-b5413f720c2cb66c3e8aec5e9e9ca9eeb903f387.tar.gz ports-b5413f720c2cb66c3e8aec5e9e9ca9eeb903f387.zip |
sysutils/runit-faster: Remove default 'current' runlevel link on deinstall
'current' refers to the current runlevel and we cannot just delete it
during upgrades without disrupting or breaking systems that are
using a runlevel other than 'default'. Removing it is out of the
question in the general case, but should be fine if we are using
'default' at the moment of the upgrade. The 'default' link is
recreated again afterwards.
This will also silence Poudriere's leftovers warning for this port.
Notes
Notes:
svn path=/head/; revision=514114
Diffstat (limited to 'sysutils/runit-faster')
-rw-r--r-- | sysutils/runit-faster/Makefile | 1 | ||||
-rw-r--r-- | sysutils/runit-faster/pkg-plist | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sysutils/runit-faster/Makefile b/sysutils/runit-faster/Makefile index bf880d578b2a..0900f705ab3f 100644 --- a/sysutils/runit-faster/Makefile +++ b/sysutils/runit-faster/Makefile @@ -3,6 +3,7 @@ PORTNAME= runit DISTVERSION= 2.1.3.4 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://github.com/t6/freebsd-runit/releases/download/v${DISTVERSION}/ \ LOCAL/tobik diff --git a/sysutils/runit-faster/pkg-plist b/sysutils/runit-faster/pkg-plist index ae713eb0cb90..f5e4297870b2 100644 --- a/sysutils/runit-faster/pkg-plist +++ b/sysutils/runit-faster/pkg-plist @@ -71,4 +71,5 @@ sbin/svlogd sbin/utmpset @postexec [ ! -e %%RUNITDIR%%/runsvdir/current ] && cd %%RUNITDIR%%/runsvdir && ln -s default current @postexec ln -sF /var/run/runit/runsvdir/current /var/service +@postunexec [ %%RUNITDIR%%/runsvdir/default -ef %%RUNITDIR%%/runsvdir/current ] && rm -f %%RUNITDIR%%/runsvdir/current 2>/dev/null || true @rmtry /var/service |