aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cfengine3-legacy
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-17 14:20:09 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-17 14:20:09 +0000
commita26a1682086138fe4d8ce551479081aa3c97313c (patch)
tree1e958e705adfb5114e090470b3d9c84d1169c83e /sysutils/cfengine3-legacy
parent099f2759abf3b352bc1580ca568c2ea1b87006e6 (diff)
downloadports-a26a1682086138fe4d8ce551479081aa3c97313c.tar.gz
ports-a26a1682086138fe4d8ce551479081aa3c97313c.zip
Notes
Diffstat (limited to 'sysutils/cfengine3-legacy')
-rw-r--r--sysutils/cfengine3-legacy/Makefile4
-rw-r--r--sysutils/cfengine3-legacy/files/patch-ac6
-rw-r--r--sysutils/cfengine3-legacy/files/patch-af13
-rw-r--r--sysutils/cfengine3-legacy/files/patch-ag13
-rw-r--r--sysutils/cfengine3-legacy/pkg-plist3
5 files changed, 34 insertions, 5 deletions
diff --git a/sysutils/cfengine3-legacy/Makefile b/sysutils/cfengine3-legacy/Makefile
index 2cde1d8e5757..38c9eab80852 100644
--- a/sysutils/cfengine3-legacy/Makefile
+++ b/sysutils/cfengine3-legacy/Makefile
@@ -7,13 +7,13 @@
PORTNAME= cfengine
PORTVERSION= 1.6.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iu.hioslo.no/pub/cfengine/ \
${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= gordont@bluemtn.net
+MAINTAINER= gordont@gnf.org
LIB_DEPENDS= db3:${PORTSDIR}/databases/db3
.if defined(PACKAGE_BUILDING) && !exists(/usr/include/tcpd.h)
diff --git a/sysutils/cfengine3-legacy/files/patch-ac b/sysutils/cfengine3-legacy/files/patch-ac
index 402872a89106..673d7d0c722d 100644
--- a/sysutils/cfengine3-legacy/files/patch-ac
+++ b/sysutils/cfengine3-legacy/files/patch-ac
@@ -18,11 +18,11 @@
$PATH:$prefix/bin:/usr/bin:/usr/local/bin)
-@@ -262,6 +262,7 @@
+@@ -262,7 +262,7 @@
freebsd*)
AC_DEFINE(FREEBSD)
- CFLAGS="$CFLAGS -pthread"
-+ LIBS="$LIBS -ldes"
+- CFLAGS="$CFLAGS -pthread"
++ LIBS="$LIBS -ldes"
AC_CHECK_HEADERS(pthread.h)
;;
netbsd*)
diff --git a/sysutils/cfengine3-legacy/files/patch-af b/sysutils/cfengine3-legacy/files/patch-af
new file mode 100644
index 000000000000..c7a33e7b209e
--- /dev/null
+++ b/sysutils/cfengine3-legacy/files/patch-af
@@ -0,0 +1,13 @@
+Fix the linking so only cfd is linked with pthreads. This keeps cfengine
+from trying to use thread-unsafe resolver functions.
+
+--- src/Makefile.am.orig Fri Aug 10 23:58:47 2001
++++ src/Makefile.am Fri Aug 10 23:59:07 2001
+@@ -95,6 +95,7 @@
+ patches.c
+
+ cfd_LDADD = -L../pub -lpub $(LEXLIB)
++cfd_LDFLAGS = -pthread $(LDFLAGS)
+
+ cfrun_SOURCES = \
+ cfrun.c \
diff --git a/sysutils/cfengine3-legacy/files/patch-ag b/sysutils/cfengine3-legacy/files/patch-ag
new file mode 100644
index 000000000000..1a8101cb3542
--- /dev/null
+++ b/sysutils/cfengine3-legacy/files/patch-ag
@@ -0,0 +1,13 @@
+This fixes the problem with cfd not finding the correct interfaces.
+
+--- src/misc.c.orig Wed Jan 24 07:28:01 2001
++++ src/misc.c Fri Aug 10 23:34:45 2001
+@@ -284,7 +284,7 @@
+ list.ifc_len = sizeof(ifbuf);
+ list.ifc_req = ifbuf;
+
+-if (ioctl(fd, SIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct ifreq))))
++if (ioctl(fd, OSIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct ifreq))))
+ {
+ CfLog(cferror,"Couldn't get interfaces","ioctl");
+ exit(1);
diff --git a/sysutils/cfengine3-legacy/pkg-plist b/sysutils/cfengine3-legacy/pkg-plist
index 7d216a6c6d18..50e59a2aba1f 100644
--- a/sysutils/cfengine3-legacy/pkg-plist
+++ b/sysutils/cfengine3-legacy/pkg-plist
@@ -50,4 +50,7 @@ share/cfengine/start-cfd
%%PORTDOCS%%share/doc/cfengine/cf-security.html
%%PORTDOCS%%share/doc/cfengine/cfengine-Reference.html
%%PORTDOCS%%share/doc/cfengine/cfengine-Tutorial.html
+%%PORTDOCS%%share/doc/cfengine/locks.ps
+%%PORTDOCS%%share/doc/cfengine/paper1.ps
+%%PORTDOCS%%share/doc/cfengine/paper2.ps
%%PORTDOCS%%@dirrm share/doc/cfengine