aboutsummaryrefslogtreecommitdiff
path: root/security/barnyard2
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2010-07-05 20:20:35 +0000
committerSahil Tandon <sahil@FreeBSD.org>2010-07-05 20:20:35 +0000
commitf5bc06e411445d81eb567cb944f948a54bdbc28e (patch)
tree8f43c0cd1e573fc1c3f06838e25280bef83f60da /security/barnyard2
parent5a007e8d2d786031bdefe559ad14160ec947ab96 (diff)
downloadports-f5bc06e411445d81eb567cb944f948a54bdbc28e.tar.gz
ports-f5bc06e411445d81eb567cb944f948a54bdbc28e.zip
- Update to 1.8
- Do not overwrite pre-existing conf file - Replace '/etc' with '${LOCALBASE}/etc' in sample conf PR: ports/148240 Submitted by: Paul Schmehl <pauls@utdallas.edu> (maintainer) Approved by: wxs@ (mentor) Feature safe: yes
Notes
Notes: svn path=/head/; revision=257422
Diffstat (limited to 'security/barnyard2')
-rw-r--r--security/barnyard2/Makefile7
-rw-r--r--security/barnyard2/distinfo6
-rw-r--r--security/barnyard2/files/patch-etc-Makefile.in11
3 files changed, 19 insertions, 5 deletions
diff --git a/security/barnyard2/Makefile b/security/barnyard2/Makefile
index 7d3d5cf414b7..b8c9e56f5cd1 100644
--- a/security/barnyard2/Makefile
+++ b/security/barnyard2/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= barnyard2
-PORTVERSION= 1.7
+PORTVERSION= 1.8
CATEGORIES= security
MASTER_SITES= http://www.securixlive.com/download/barnyard2/
@@ -42,10 +42,13 @@ CONFIGURE_ARGS+= --with-postgresql
pre-install:
${CHMOD} 744 ${WRKSRC}/install-sh
+post-patch:
+ @${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \
+ ${WRKSRC}/etc/barnyard2.conf
+
post-install:
.for f in barnyard2.conf
- ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}-sample
[ -f ${PREFIX}/etc/${f} ] || \
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}
.endfor
diff --git a/security/barnyard2/distinfo b/security/barnyard2/distinfo
index 1e71a06d138e..399c52f0d609 100644
--- a/security/barnyard2/distinfo
+++ b/security/barnyard2/distinfo
@@ -1,3 +1,3 @@
-MD5 (barnyard2-1.7.tar.gz) = 6801649c45287799354e0a458af737ef
-SHA256 (barnyard2-1.7.tar.gz) = a9bd56c2887111f3c114e82fc9277ee759a5005374081136e76d950ff390fd1b
-SIZE (barnyard2-1.7.tar.gz) = 652605
+MD5 (barnyard2-1.8.tar.gz) = 72fc6c490db6ea6a0f46c27d24998067
+SHA256 (barnyard2-1.8.tar.gz) = 1abfe6530d721debd98921421722b02c844c289564730b1e85729e4915b2bb7a
+SIZE (barnyard2-1.8.tar.gz) = 654290
diff --git a/security/barnyard2/files/patch-etc-Makefile.in b/security/barnyard2/files/patch-etc-Makefile.in
new file mode 100644
index 000000000000..43e881a23634
--- /dev/null
+++ b/security/barnyard2/files/patch-etc-Makefile.in
@@ -0,0 +1,11 @@
+--- etc/Makefile.in.orig 2010-07-04 13:17:33.000000000 -0400
++++ etc/Makefile.in 2010-07-04 13:18:42.000000000 -0400
+@@ -249,7 +249,7 @@
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \
++ $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)/$$files-sample" || exit $$?; \
+ done
+
+ uninstall-sysconfDATA: