summaryrefslogtreecommitdiff
path: root/sysutils/cfengine3-legacy
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2001-04-02 10:21:20 +0000
committerMichael Haro <mharo@FreeBSD.org>2001-04-02 10:21:20 +0000
commit985047d96a05b4380231e6d0802111870af91599 (patch)
tree47935a62905979155a85e2e76f51f01903fa969d /sysutils/cfengine3-legacy
parentPerl module to parse traceroute(8) output. (diff)
Per the instructions of the software, cfengine is now dependent on BerkleyDB 3.
In fact, the only thing (that I can tell anyway) that uses the DB functions is cfd. I'm guessing most people don't use it, especially since I haven't heard any complaints about it. Also, it was putting some of the docs in / (for some really strange reason). That should be fixed too. They are now put in {PREFIX}/share/doc/cfengine, depending on NOPORTSDOC (somewhat reverse logic than normal, but it made the amount of changes less). Finally, strip the binaries. PR: 26189 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=40737
Diffstat (limited to 'sysutils/cfengine3-legacy')
-rw-r--r--sysutils/cfengine3-legacy/Makefile14
-rw-r--r--sysutils/cfengine3-legacy/files/patch-ad7
-rw-r--r--sysutils/cfengine3-legacy/files/patch-ae15
-rw-r--r--sysutils/cfengine3-legacy/pkg-plist2
4 files changed, 29 insertions, 9 deletions
diff --git a/sysutils/cfengine3-legacy/Makefile b/sysutils/cfengine3-legacy/Makefile
index cd9ea3d0ac9b..2cde1d8e5757 100644
--- a/sysutils/cfengine3-legacy/Makefile
+++ b/sysutils/cfengine3-legacy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cfengine
PORTVERSION= 1.6.3
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iu.hioslo.no/pub/cfengine/ \
${MASTER_SITE_GNU}
@@ -14,8 +15,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gordont@bluemtn.net
+LIB_DEPENDS= db3:${PORTSDIR}/databases/db3
.if defined(PACKAGE_BUILDING) && !exists(/usr/include/tcpd.h)
-LIB_DEPENDS= wrap.7:${PORTSDIR}/security/tcp_wrapper
+LIB_DEPENDS+= wrap.7:${PORTSDIR}/security/tcp_wrapper
.endif
USE_GMAKE= yes
@@ -27,11 +29,11 @@ pre-configure:
@cd ${WRKSRC} && aclocal && autoheader
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
-.for docfile in cf-security.html cfengine-Reference.html cfengine-Tutorial.html
- ${INSTALL_MAN} ${WRKSRC}/doc/${docfile} ${PREFIX}/share/doc/${PORTNAME}
-.endfor
+.if defined(NOPORTDOCS)
+ @${RM} -rf ${PREFIX}/share/doc/${PORTNAME}
.endif
+.for binary in cfd cfengine cfrun cfkey
+ @strip ${PREFIX}/sbin/${binary}
+.endfor
.include <bsd.port.mk>
diff --git a/sysutils/cfengine3-legacy/files/patch-ad b/sysutils/cfengine3-legacy/files/patch-ad
index 39fe0b6f9b16..f8a19a8ba386 100644
--- a/sysutils/cfengine3-legacy/files/patch-ad
+++ b/sysutils/cfengine3-legacy/files/patch-ad
@@ -1,3 +1,6 @@
+This moves the documentation out of /usr/local/share/cfengine/{doc,html} into
+/usr/local/shared/doc/cfengine to keep it inline with the rest of the ports.
+
--- doc/Makefile.am.orig Fri Dec 1 19:24:39 2000
+++ doc/Makefile.am Tue Jan 23 02:07:04 2001
@@ -2,7 +2,7 @@
@@ -5,7 +8,7 @@
# Info used in building and installing HTML files
-htmldir = $(pkgdatadir)/html
-+htmldir = # $(pkgdatadir)/html
++htmldir = $(datadir)/doc/cfengine
htmlfiles = cfengine-Reference.html cfengine-Tutorial.html
html_DATA = $(htmlfiles) cf-security.html
@@ -14,7 +17,7 @@
psfiles = $(ps1) # $(ps2)
-psdir = $(pkgdatadir)/doc
-+psdir = # $(pkgdatadir)/doc
++psdir = $(datadir)/doc/cfengine
ps_DATA = $(psfiles)
# Make sure these get distributed with everything else.
diff --git a/sysutils/cfengine3-legacy/files/patch-ae b/sysutils/cfengine3-legacy/files/patch-ae
new file mode 100644
index 000000000000..364e79ebecbb
--- /dev/null
+++ b/sysutils/cfengine3-legacy/files/patch-ae
@@ -0,0 +1,15 @@
+This patch only makes sense if you subscribe to the FreeBSD port model.
+Basically this only works if you have installed BerkleyDB from the ports
+collection.
+
+--- src/misc.c.orig Wed Jan 24 07:28:01 2001
++++ src/misc.c Wed Mar 28 12:41:06 2001
+@@ -39,7 +39,7 @@
+
+
+ #ifdef HAVE_DB_H
+-# include <db.h>
++#include <db3/db.h>
+ #endif
+
+ /*******************************************************************/
diff --git a/sysutils/cfengine3-legacy/pkg-plist b/sysutils/cfengine3-legacy/pkg-plist
index 1d72eeb52893..7d216a6c6d18 100644
--- a/sysutils/cfengine3-legacy/pkg-plist
+++ b/sysutils/cfengine3-legacy/pkg-plist
@@ -46,8 +46,8 @@ share/cfengine/cfengine.el
share/cfengine/cfrc.example
share/cfengine/cfrun.hosts.example
share/cfengine/start-cfd
+@dirrm share/cfengine
%%PORTDOCS%%share/doc/cfengine/cf-security.html
%%PORTDOCS%%share/doc/cfengine/cfengine-Reference.html
%%PORTDOCS%%share/doc/cfengine/cfengine-Tutorial.html
%%PORTDOCS%%@dirrm share/doc/cfengine
-@dirrm share/cfengine