aboutsummaryrefslogtreecommitdiffstats
path: root/net/radiusclient
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-08-15 01:54:11 +0800
committermat <mat@FreeBSD.org>2014-08-15 01:54:11 +0800
commit74fb6caef92f04592d097574f7d14478016541b1 (patch)
treefa9687d7437346ce3f1d919e41d11ae185ccc878 /net/radiusclient
parent4e209092fc971832f7163c6f16fbbda2da4602c2 (diff)
downloadfreebsd-ports-gnome-74fb6caef92f04592d097574f7d14478016541b1.tar.gz
freebsd-ports-gnome-74fb6caef92f04592d097574f7d14478016541b1.tar.zst
freebsd-ports-gnome-74fb6caef92f04592d097574f7d14478016541b1.zip
Do *not* overwrite config files on upgrades.
Sponsored by: Absolight
Diffstat (limited to 'net/radiusclient')
-rw-r--r--net/radiusclient/Makefile3
-rw-r--r--net/radiusclient/files/patch-etc__Makefile.in24
-rw-r--r--net/radiusclient/pkg-plist20
3 files changed, 36 insertions, 11 deletions
diff --git a/net/radiusclient/Makefile b/net/radiusclient/Makefile
index ba64a3cbae2e..13100adfb2b2 100644
--- a/net/radiusclient/Makefile
+++ b/net/radiusclient/Makefile
@@ -3,7 +3,7 @@
PORTNAME= radiusclient
PORTVERSION= 0.5.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://download.berlios.de/radiusclient-ng/ \
http://download2.berlios.de/radiusclient-ng/
@@ -15,5 +15,6 @@ COMMENT= Client library and basic utilities for RADIUS AAA
USES= gmake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+ETCDIR= ${PREFIX}/etc/${PORTNAME}-ng
.include <bsd.port.mk>
diff --git a/net/radiusclient/files/patch-etc__Makefile.in b/net/radiusclient/files/patch-etc__Makefile.in
new file mode 100644
index 000000000000..72a1c6912d04
--- /dev/null
+++ b/net/radiusclient/files/patch-etc__Makefile.in
@@ -0,0 +1,24 @@
+--- ./etc/Makefile.in.orig 2007-02-16 08:55:15.000000000 +0100
++++ ./etc/Makefile.in 2014-08-14 19:47:04.000000000 +0200
+@@ -233,8 +233,8 @@
+ @list='$(pkgsysconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+- echo " $(pkgsysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgsysconfdir)/$$f'"; \
+- $(pkgsysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgsysconfdir)/$$f"; \
++ echo " $(pkgsysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgsysconfdir)/$$f.sample'"; \
++ $(pkgsysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgsysconfdir)/$$f.sample"; \
+ done
+
+ uninstall-pkgsysconfDATA:
+@@ -386,8 +386,8 @@
+
+ install-data-local: servers
+ $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir); \
+- echo " $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers"; \
+- $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers
++ echo " $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers.sample"; \
++ $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers.sample
+
+ uninstall-local:
+ rm -f $(pkgsysconfdir)/servers
diff --git a/net/radiusclient/pkg-plist b/net/radiusclient/pkg-plist
index 016b39bba1fd..75f87c53fb98 100644
--- a/net/radiusclient/pkg-plist
+++ b/net/radiusclient/pkg-plist
@@ -1,12 +1,12 @@
-etc/radiusclient-ng/dictionary
-etc/radiusclient-ng/dictionary.ascend
-etc/radiusclient-ng/dictionary.compat
-etc/radiusclient-ng/dictionary.merit
-etc/radiusclient-ng/dictionary.sip
-etc/radiusclient-ng/issue
-etc/radiusclient-ng/port-id-map
-etc/radiusclient-ng/radiusclient.conf
-etc/radiusclient-ng/servers
+@sample %%ETCDIR%%/dictionary.ascend.sample
+@sample %%ETCDIR%%/dictionary.compat.sample
+@sample %%ETCDIR%%/dictionary.merit.sample
+@sample %%ETCDIR%%/dictionary.sample
+@sample %%ETCDIR%%/dictionary.sip.sample
+@sample %%ETCDIR%%/issue.sample
+@sample %%ETCDIR%%/port-id-map.sample
+@sample %%ETCDIR%%/radiusclient.conf.sample
+@sample %%ETCDIR%%/servers.sample
include/radiusclient-ng.h
lib/libradiusclient-ng.a
lib/libradiusclient-ng.so
@@ -17,4 +17,4 @@ sbin/radexample
sbin/radiusclient
sbin/radlogin
sbin/radstatus
-@dirrm etc/radiusclient-ng
+@dirrmtry %%ETCDIR%%