aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cfengine
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/cfengine')
-rw-r--r--sysutils/cfengine/Makefile14
-rw-r--r--sysutils/cfengine/files/patch-ad7
-rw-r--r--sysutils/cfengine/files/patch-ae15
-rw-r--r--sysutils/cfengine/pkg-plist2
4 files changed, 29 insertions, 9 deletions
diff --git a/sysutils/cfengine/Makefile b/sysutils/cfengine/Makefile
index cd9ea3d0ac9b..2cde1d8e5757 100644
--- a/sysutils/cfengine/Makefile
+++ b/sysutils/cfengine/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/cfengine/files/patch-ad b/sysutils/cfengine/files/patch-ad
index 39fe0b6f9b16..f8a19a8ba386 100644
--- a/sysutils/cfengine/files/patch-ad
+++ b/sysutils/cfengine/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/cfengine/files/patch-ae b/sysutils/cfengine/files/patch-ae
new file mode 100644
index 000000000000..364e79ebecbb
--- /dev/null
+++ b/sysutils/cfengine/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/cfengine/pkg-plist b/sysutils/cfengine/pkg-plist
index 1d72eeb52893..7d216a6c6d18 100644
--- a/sysutils/cfengine/pkg-plist
+++ b/sysutils/cfengine/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