diff options
author | swills <swills@FreeBSD.org> | 2011-04-13 09:35:17 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-04-13 09:35:17 +0800 |
commit | 17361b65125c1ab4da2d8076c587265bd0334f66 (patch) | |
tree | 6e725bac3c0306c55d19815df3dd2a49d12e1006 /net | |
parent | e3938918f84b72d340f139f18c1fbc5bb460a454 (diff) | |
download | freebsd-ports-gnome-17361b65125c1ab4da2d8076c587265bd0334f66.tar.gz freebsd-ports-gnome-17361b65125c1ab4da2d8076c587265bd0334f66.tar.zst freebsd-ports-gnome-17361b65125c1ab4da2d8076c587265bd0334f66.zip |
- Don't leave leftover config file if it hasn't changed
Reported by: pointyhat via pav
Pointy hat to: swills
Diffstat (limited to 'net')
-rw-r--r-- | net/beacon/Makefile | 1 | ||||
-rw-r--r-- | net/beacon/pkg-plist | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/net/beacon/Makefile b/net/beacon/Makefile index b690085f3f74..75f0b9ce558d 100644 --- a/net/beacon/Makefile +++ b/net/beacon/Makefile @@ -7,6 +7,7 @@ PORTNAME= beacon PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= net perl5 mbone ipv6 MASTER_SITES= SF/multicastbeacon/multicastbeacon/beacon%20v${PORTVERSION} diff --git a/net/beacon/pkg-plist b/net/beacon/pkg-plist index b3e8ac8df098..a413d1ad25a4 100644 --- a/net/beacon/pkg-plist +++ b/net/beacon/pkg-plist @@ -9,7 +9,9 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/perllocal.pod @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Net/Multicast/ @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Net bin/beacon +@unexec if cmp -s %D/etc/beacon.conf.sample %D/etc/beacon.conf; then rm -f %D/etc/beacon.conf; fi etc/beacon.conf.sample +@exec if [ ! -f %D/etc/beacon.conf ] ; then cp -p %D/%F %B/beacon.conf; fi %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%% etc/rc.d/beacon |