aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nut22
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-01-22 11:01:03 +0800
committeredwin <edwin@FreeBSD.org>2006-01-22 11:01:03 +0800
commite31bed690b2fba4714686b691a351a51b98d80e8 (patch)
treefb869b3f76a5b4c5a0d4932490adea12d65abd80 /sysutils/nut22
parent176655f0a1e9745862db36b0cbfab399d74d1339 (diff)
downloadfreebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.tar.gz
freebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.tar.zst
freebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.zip
Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by: krion@ PR: ports/88711 (related)
Diffstat (limited to 'sysutils/nut22')
-rw-r--r--sysutils/nut22/pkg-plist4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/nut22/pkg-plist b/sysutils/nut22/pkg-plist
index e98706c5c707..9a13cce0a3c8 100644
--- a/sysutils/nut22/pkg-plist
+++ b/sysutils/nut22/pkg-plist
@@ -10,7 +10,7 @@ etc/nut/upsd.conf.sample
etc/nut/upsd.users.sample
etc/nut/upsmon.conf.sample
etc/nut/upssched.conf.sample
-@unexec rmdir %D/etc/nut 2>/dev/null || true
+@dirrmtry etc/nut
etc/rc.d/nut.sh
libexec/nut/apcsmart
libexec/nut/bcmxcp
@@ -98,6 +98,6 @@ sbin/upssched
%%PORTDOCS%%@dirrm %%DOCSDIR%%/cables
%%PORTDOCS%%@dirrm %%DOCSDIR%%/drivers
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rmdir %D/libexec/nut 2>/dev/null || true
+@dirrmtry libexec/nut
@unexec rmdir /var/db/nut 2>/dev/null || true
%%CGIDIRRM%%