aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2005-10-07 06:58:31 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2005-10-07 06:58:31 +0000
commitbf2b195e00f981d150baf43629d86ba389f9034c (patch)
tree47d399423db3ac1c9d64edaf02c5457bc571ecc7
parenta702f89bf167cfa316817821ff687ff7698ccfd6 (diff)
downloadports-bf2b195e00f981d150baf43629d86ba389f9034c.tar.gz
ports-bf2b195e00f981d150baf43629d86ba389f9034c.zip
- Update to 2.1.16
- Beat the port to respect NOPORTDOCS - Add patches to fix compilation errors under 4.x (to be submitted upstream) - A patch to fix security vulnerability will be committed separately
Notes
Notes: svn path=/head/; revision=144449
-rw-r--r--sysutils/cfengine2/Makefile11
-rw-r--r--sysutils/cfengine2/distinfo4
-rw-r--r--sysutils/cfengine2/files/patch-Makefile.in17
-rw-r--r--sysutils/cfengine2/files/patch-doc_Makefile.in83
-rw-r--r--sysutils/cfengine2/files/patch-src_cfetool.c13
-rw-r--r--sysutils/cfengine2/files/patch-src_cfetoolgraph.c20
-rw-r--r--sysutils/cfengine2/pkg-plist32
7 files changed, 154 insertions, 26 deletions
diff --git a/sysutils/cfengine2/Makefile b/sysutils/cfengine2/Makefile
index 0e4697d28c7b..5b7cb0d6ebe0 100644
--- a/sysutils/cfengine2/Makefile
+++ b/sysutils/cfengine2/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= cfengine
-PORTVERSION= 2.1.15
+PORTVERSION= 2.1.16
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iu.hio.no/pub/cfengine/ \
${MASTER_SITE_GNU}
@@ -16,13 +16,18 @@ MAINTAINER= sergei@FreeBSD.org
COMMENT= A systems administration tool for networks
USE_OPENSSL= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-berkeleydb=${LOCALBASE} --with-docs
-USE_REINPLACE= yes
+.if !defined(NOPORTDOCS)
INFO= cfengine-Anomalies cfengine-Reference cfengine-Tutorial
-MAN8= cfengine.8 cfagent.8 cfenvd.8 cfenvgraph.8 cfexecd.8 cfkey.8 \
+.endif
+
+MAN8= cfagent.8 cfengine.8 cfenvd.8 cfenvgraph.8 cfetoolcheck.8 \
+ cfetoolcreate.8 cfetooldump.8 cfetoolgraph.8 cfetoolimport.8 \
+ cfetoolinfo.8 cfetoolupdate.8 cfexecd.8 cfkey.8 \
cfrun.8 cfservd.8 cfshow.8
WITH_BDB_VER?= 42
diff --git a/sysutils/cfengine2/distinfo b/sysutils/cfengine2/distinfo
index 302e965098f9..47dba170a637 100644
--- a/sysutils/cfengine2/distinfo
+++ b/sysutils/cfengine2/distinfo
@@ -1,2 +1,2 @@
-MD5 (cfengine-2.1.15.tar.gz) = f03de82709f84c3d6d916b6e557321f9
-SIZE (cfengine-2.1.15.tar.gz) = 3555495
+MD5 (cfengine-2.1.16.tar.gz) = 1b009dcc2ab27c205e72b536c67ae173
+SIZE (cfengine-2.1.16.tar.gz) = 3606067
diff --git a/sysutils/cfengine2/files/patch-Makefile.in b/sysutils/cfengine2/files/patch-Makefile.in
new file mode 100644
index 000000000000..cb72f3e3c0c5
--- /dev/null
+++ b/sysutils/cfengine2/files/patch-Makefile.in
@@ -0,0 +1,17 @@
+--- Makefile.in.orig Sat Oct 1 16:32:09 2005
++++ Makefile.in Fri Oct 7 10:36:51 2005
+@@ -201,8 +201,12 @@
+ @BUILD_DOC_TRUE@DOC_DIR = doc
+ SUBDIRS = pub src contrib inputs $(DOC_DIR)
+ EXTRA_DIST = acconfig.h doc/cfengine.8 COPYING ChangeLog INSTALL NEWS README
+-docdir = $(pkgdatadir)
+-doc_DATA = README ChangeLog INSTALL NEWS
++docdir = $(prefix)/share/doc/cfengine
++.if defined(NOPORTDOCS)
++doc_DATA =
++.else
++doc_DATA = AUTHORS ChangeLog README TODO
++.endif
+
+ #
+ # Some basic clean ups
diff --git a/sysutils/cfengine2/files/patch-doc_Makefile.in b/sysutils/cfengine2/files/patch-doc_Makefile.in
index 13e4ad0aac7b..dd3452bb8f36 100644
--- a/sysutils/cfengine2/files/patch-doc_Makefile.in
+++ b/sysutils/cfengine2/files/patch-doc_Makefile.in
@@ -1,18 +1,89 @@
---- doc/Makefile.in.orig Thu Jul 7 13:32:07 2005
-+++ doc/Makefile.in Thu Jul 7 13:37:09 2005
-@@ -205,14 +205,14 @@
-
+--- doc/Makefile.in.orig Sat Oct 1 16:32:08 2005
++++ doc/Makefile.in Fri Oct 7 10:07:40 2005
+@@ -52,8 +52,12 @@
+ CONFIG_CLEAN_FILES =
+ SOURCES =
+ DIST_SOURCES =
++.if defined(NOPORTDOCS)
++INFO_DEPS =
++.else
+ INFO_DEPS = cfengine-Reference.info cfengine-Tutorial.info \
+ cfengine-Anomalies.info
++.endif
+ am__TEXINFO_TEX_DIR = $(srcdir)
+ DVIS = cfengine-Reference.dvi cfengine-Tutorial.dvi \
+ cfengine-Anomalies.dvi
+@@ -205,15 +209,23 @@
+
# Info used in building and installing HTML files
htmlfiles = $(info_TEXINFOS:.texinfo=.html)
-htmldir = $(pkgdatadir)/html
+htmldir = $(docdir)
++.if defined(NOPORTDOCS)
++html_DATA =
++.else
html_DATA = $(htmlfiles)
-
++.endif
+
# Info used in building and installing Postscript files
psfiles = $(info_TEXINFOS:.texinfo=.ps)
pdffiles = $(info_TEXINFOS:.texinfo=.pdf)
dvifiles = $(info_TEXINFOS:.texinfo=.dvi)
-docdir = $(pkgdatadir)/doc
+docdir = $(prefix)/share/doc/cfengine
++.if defined(NOPORTDOCS)
++doc_DATA =
++.else
doc_DATA = $(psfiles) $(pdffiles)
-
++.endif
+
+ # Make sure these get distributed with everything else.
+ EXTRA_DIST = cfagent.8 cfenvd.8 cfenvgraph.8 cfexecd.8 cfkey.8 cfrun.8 cfservd.8 cfengine.8 cfshow.8 cfetoolcheck.8 cfetooldump.8 cfetoolimport.8 cfetoolupdate.8 cfetoolcreate.8 cfetoolgraph.8 cfetoolinfo.8 cfetoolcheck.8 cfetooldump.8 cfetoolimport.8 cfetoolupdate.8 cfetoolcreate.8 cfetoolgraph.8 cfetoolinfo.8 texinfo.tex $(htmlfiles) $(infofiles) $(psfiles) $(dvifiles) $(pdffiles)
+@@ -579,6 +591,7 @@
+ rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
+ done
+ install-docDATA: $(doc_DATA)
++.if !defined(NOPORTDOCS)
+ @$(NORMAL_INSTALL)
+ test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
+ @list='$(doc_DATA)'; for p in $$list; do \
+@@ -587,6 +600,7 @@
+ echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
+ $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
+ done
++.endif
+
+ uninstall-docDATA:
+ @$(NORMAL_UNINSTALL)
+@@ -596,6 +610,7 @@
+ rm -f "$(DESTDIR)$(docdir)/$$f"; \
+ done
+ install-htmlDATA: $(html_DATA)
++.if !defined(NOPORTDOCS)
+ @$(NORMAL_INSTALL)
+ test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
+ @list='$(html_DATA)'; for p in $$list; do \
+@@ -604,6 +619,7 @@
+ echo " $(htmlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
+ $(htmlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
+ done
++.endif
+
+ uninstall-htmlDATA:
+ @$(NORMAL_UNINSTALL)
+@@ -712,6 +728,7 @@
+ install-info: install-info-am
+
+ install-info-am: $(INFO_DEPS)
++.if !defined(NOPORTDOCS)
+ @$(NORMAL_INSTALL)
+ test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+@@ -741,6 +758,7 @@
+ install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
+ done; \
+ else : ; fi
++.endif
+ install-man: install-man8
+
+ installcheck-am:
diff --git a/sysutils/cfengine2/files/patch-src_cfetool.c b/sysutils/cfengine2/files/patch-src_cfetool.c
new file mode 100644
index 000000000000..dcbe06b3386e
--- /dev/null
+++ b/sysutils/cfengine2/files/patch-src_cfetool.c
@@ -0,0 +1,13 @@
+--- src/cfetool.c.orig Thu Oct 6 19:16:39 2005
++++ src/cfetool.c Thu Oct 6 19:25:48 2005
+@@ -2646,9 +2646,9 @@ void DoBatch(int dbtype)
+ double val=0;
+ float val1=0, val2=0, val3=0, val4=0, val5=0, val6=0, val7=0, val8=0, val9=0, val10=0;
+ int i = 0, j = 0, n = 0, y = 0, k = 0, w = 0;
+- time_to_update = false;
+ int timeint = -1;
+ struct Average av;
++ time_to_update = false;
+
+ Verbose("Batch mode\n");
+
diff --git a/sysutils/cfengine2/files/patch-src_cfetoolgraph.c b/sysutils/cfengine2/files/patch-src_cfetoolgraph.c
new file mode 100644
index 000000000000..f1e51df51aff
--- /dev/null
+++ b/sysutils/cfengine2/files/patch-src_cfetoolgraph.c
@@ -0,0 +1,20 @@
+--- src/cfetoolgraph.c.orig Thu Oct 6 19:31:19 2005
++++ src/cfetoolgraph.c Thu Oct 6 19:32:22 2005
+@@ -542,6 +542,8 @@ void WriteGraphFiles(int dbtype)
+ void WriteHistogram(int dbtype)
+ {
+ int numdays=0;
++ int position, day;
++ int weekly[CF_GRAINS];
+ /* Finally, look at the histogram */
+
+ printf("Writing histogram file now!\n");
+@@ -554,8 +556,6 @@ void WriteHistogram(int dbtype)
+ }
+ }
+
+- int position, day;
+- int weekly[CF_GRAINS];
+
+ switch(dbtype)
+ {
diff --git a/sysutils/cfengine2/pkg-plist b/sysutils/cfengine2/pkg-plist
index 049dac8c7f9c..ff692a36431a 100644
--- a/sysutils/cfengine2/pkg-plist
+++ b/sysutils/cfengine2/pkg-plist
@@ -1,7 +1,10 @@
+@comment $FreeBSD$
sbin/cfagent
sbin/cfdoc
sbin/cfenvd
sbin/cfenvgraph
+sbin/cfetool
+sbin/cfetoolgraph
sbin/cfexecd
sbin/cfkey
sbin/cfrun
@@ -28,19 +31,18 @@ sbin/vicf
%%EXAMPLESDIR%%/cfrun.hosts.example
%%EXAMPLESDIR%%/cfservd.conf.example
%%EXAMPLESDIR%%/update.conf.example
-%%DOCSDIR%%/cfengine-Anomalies.html
-%%DOCSDIR%%/cfengine-Reference.html
-%%DOCSDIR%%/cfengine-Tutorial.html
-%%DOCSDIR%%/cfengine-Anomalies.pdf
-%%DOCSDIR%%/cfengine-Reference.pdf
-%%DOCSDIR%%/cfengine-Tutorial.pdf
-%%DOCSDIR%%/cfengine-Anomalies.ps
-%%DOCSDIR%%/cfengine-Reference.ps
-%%DOCSDIR%%/cfengine-Tutorial.ps
-%%DATADIR%%/README
-%%DATADIR%%/ChangeLog
-%%DATADIR%%/INSTALL
-%%DATADIR%%/NEWS
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Anomalies.html
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Anomalies.pdf
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Anomalies.ps
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Reference.html
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Reference.pdf
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Reference.ps
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Tutorial.html
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Tutorial.pdf
+%%PORTDOCS%%%%DOCSDIR%%/cfengine-Tutorial.ps
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%EXAMPLESDIR%%
-@dirrm %%DATADIR%%