svn commit: r514114 - head/sysutils/runit-faster
Tobias Kortkamp
tobik at FreeBSD.org
Wed Oct 9 04:05:26 UTC 2019
Author: tobik
Date: Wed Oct 9 04:05:25 2019
New Revision: 514114
URL: https://svnweb.freebsd.org/changeset/ports/514114
Log:
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.
Modified:
head/sysutils/runit-faster/Makefile
head/sysutils/runit-faster/pkg-plist
Modified: head/sysutils/runit-faster/Makefile
==============================================================================
--- head/sysutils/runit-faster/Makefile Wed Oct 9 04:01:30 2019 (r514113)
+++ head/sysutils/runit-faster/Makefile Wed Oct 9 04:05:25 2019 (r514114)
@@ -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
Modified: head/sysutils/runit-faster/pkg-plist
==============================================================================
--- head/sysutils/runit-faster/pkg-plist Wed Oct 9 04:01:30 2019 (r514113)
+++ head/sysutils/runit-faster/pkg-plist Wed Oct 9 04:05:25 2019 (r514114)
@@ -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
+ at postunexec [ %%RUNITDIR%%/runsvdir/default -ef %%RUNITDIR%%/runsvdir/current ] && rm -f %%RUNITDIR%%/runsvdir/current 2>/dev/null || true
@rmtry /var/service
More information about the svn-ports-head
mailing list