Bug 35037 - New port: sysutils/cfengine-devel
Summary: New port: sysutils/cfengine-devel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-17 13:20 UTC by Juha Ylitalo
Modified: 2002-07-30 19:41 UTC (History)
0 users

See Also:


Attachments
cfengine-devel.shar (4.75 KB, text/plain)
2002-02-17 13:20 UTC, Juha Ylitalo
no flags Details
cfengine-devel.shar (5.04 KB, application/x-shar)
2002-03-22 15:06 UTC, Juha Ylitalo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juha Ylitalo 2002-02-17 13:20:01 UTC
Currently FreeBSD ports tree has cfengine-1.6.3, which is latest official 
release. At the sametime new major version cfengine 2.0 has been moved from
alpha testing into beta testing and as such 2.0.b1 is considered latest
stable release.
I am wondering, if I could get these stable releases into FreeBSD ports
tree in same fashion as FreeBSD has mutt and mutt-devel ports. As far as
I can see, there are two minor problems with the issue:
- getting port updated in sync with cfengine beta's.
- 4.5-RELEASE has OpenSSL 0.9.6a in base, while cfengine 2.0 wants 0.9.6b
  or newer. So we probably would need FreeBSD 4.6, before we could use
  cfengine's all capabilities.

When cfengine 2.0 becomes official release and FreeBSD gets it into 
ports tree as cfengine (vs. cfengine-devel), I'll be happy to retire this
port.
Comment 1 juha.o.ylitalo 2002-02-20 09:03:41 UTC
I guess I should have verified my MASTER_SITES list instead of blindly
copying it from cfengine port. ftp://ftp.iu.hioslo.no/pub/cfengine/
should be replaced with  ftp://ftp.iu.hio.no/pub/cfengine/
Same correction "hioslo" -> "hio" should be done to pkg-desc, which has
link to cfengine homepage.

-- 
Juha Ylitalo         juha.o.ylitalo@nokia.com         <work e-mail>
+358 40 562 6152     juha.ylitalo@iki.fi              <rest of e-mail>
"Some tools are used, because its policy, others because they are good."
Comment 2 juha.o.ylitalo 2002-02-20 09:56:43 UTC
Even though we don't want to use USE_AUTOMAKE and USE_AUTOCONF in ports
Makefile, ./configure in $WRKSRC as well as our patches in under files
directory assume that they exist, so BUILD_DEPENDS should be updated to
be:
BUILD_DEPENDS=  latex:${PORTSDIR}/print/teTeX \
                autoconf:${PORTSDIR}/devel/autoconf \
                automake:${PORTSDIR}/devel/automake
-- 
Juha Ylitalo         juha.o.ylitalo@nokia.com         <work e-mail>
+358 40 562 6152     juha.ylitalo@iki.fi              <rest of e-mail>
"Some tools are used, because its policy, others because they are good."
Comment 3 Juha Ylitalo 2002-03-22 15:06:50 UTC
During last couple weeks, we got final version from cfengine-2.0.0. Here
is updated version of shar file. Since we still have that problem with
openssl in 4.5-RELEASE vs. openssl that cfengine would like to have, I'd
still like to have this as cfengine-devel instead of cfengine.

-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 4 Juha Ylitalo 2002-03-22 16:01:15 UTC
It seems that my shar file got base64 encoded, so let's give it one more
try as something that is attached into actually message body.

--- beginning of shar file ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cfengine-devel/
#	cfengine-devel/Makefile
#	cfengine-devel/distinfo
#	cfengine-devel/pkg-comment
#	cfengine-devel/pkg-descr
#	cfengine-devel/pkg-plist
#	cfengine-devel/files
#	cfengine-devel/Makefile~
#
echo c - cfengine-devel/
mkdir -p cfengine-devel/ > /dev/null 2>&1
echo x - cfengine-devel/Makefile
sed 's/^X//' >cfengine-devel/Makefile << 'END-of-cfengine-devel/Makefile'
X# New ports collection makefile for:	cfengine
X# Date created:		March 16, 1998
X# Whom:			jseger@FreeBSD.org
X#
X# $FreeBSD: ports/sysutils/cfengine/Makefile,v 1.21 2002/01/07 13:47:40 demon Exp $
X#
X
XPORTNAME=	cfengine-devel
XPORTVERSION=	2.0.0
X# PORTREVISION=	1
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.iu.hio.no/pub/cfengine/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=cfengine	
XDISTNAME=	cfengine-${PORTVERSION}
X
XMAINTAINER=	jylitalo@iki.fi
X
X.include <bsd.port.pre.mk>
X.if exists(/usr/lib/libssl.a) && ${OSVERSION} <= 450000
XFORBIDDEN=	"4.5-RELEASE and older have too old OpenSSL version in base."
X.endif
X
XBUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
XLIB_DEPENDS=	db3:${PORTSDIR}/databases/db3
X.if defined(PACKAGE_BUILDING) && !exists(/usr/include/tcpd.h)
XLIB_DEPENDS+=	wrap.7:${PORTSDIR}/security/tcp_wrapper
X.endif
X
X# USE_AUTOCONF=	yes
X# USE_AUTOMAKE=	yes
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
XMAN8=		cfengine.8
X
X.include <bsd.port.post.mk>
END-of-cfengine-devel/Makefile
echo x - cfengine-devel/distinfo
sed 's/^X//' >cfengine-devel/distinfo << 'END-of-cfengine-devel/distinfo'
XMD5 (cfengine-2.0.0.tar.gz) = 44bd5518af45a6dd235d917c57470baf
END-of-cfengine-devel/distinfo
echo x - cfengine-devel/pkg-comment
sed 's/^X//' >cfengine-devel/pkg-comment << 'END-of-cfengine-devel/pkg-comment'
XGNU cfengine - a systems administration tool for networks
END-of-cfengine-devel/pkg-comment
echo x - cfengine-devel/pkg-descr
sed 's/^X//' >cfengine-devel/pkg-descr << 'END-of-cfengine-devel/pkg-descr'
XCfengine, or the configuration engine is an agent/software robot and a
Xvery high level language for building expert systems to administrate
Xand configure large computer networks. Cfengine uses the idea of
Xclasses and a primitive form of intelligence to define and automate
Xthe configuration and maintenance of system state, for small to huge
Xconfigurations. Cfengine is designed to be a part of a computer immune
Xsystem.
X
XWWW: http://www.iu.hioslo.no/cfengine/
END-of-cfengine-devel/pkg-descr
echo x - cfengine-devel/pkg-plist
sed 's/^X//' >cfengine-devel/pkg-plist << 'END-of-cfengine-devel/pkg-plist'
Xsbin/cfagent
Xsbin/cfservd
Xsbin/cfrun
Xsbin/cfkey
Xsbin/cfenvd
Xsbin/cfenvgraph
Xsbin/cfexecd
Xsbin/vicf
Xsbin/cfdoc
Xshare/cfengine/cfengine.el
Xshare/cfengine/cf.chflags.example
Xshare/cfengine/cf.freebsd.example
Xshare/cfengine/cf.ftp.example
Xshare/cfengine/cf.groups.example
Xshare/cfengine/cf.linux.example
Xshare/cfengine/cf.main.example
Xshare/cfengine/cf.motd.example
Xshare/cfengine/cf.preconf.example
Xshare/cfengine/cf.services.example
Xshare/cfengine/cf.site.example
Xshare/cfengine/cf.solaris.example
Xshare/cfengine/cf.sun4.example
Xshare/cfengine/cf.users.example
Xshare/cfengine/cfservd.conf.example
Xshare/cfengine/cfagent.conf.example
Xshare/cfengine/update.conf.example
Xshare/cfengine/cfrc.example
Xshare/cfengine/cfrun.hosts.example
Xshare/cfengine/html/cfengine-Reference.html
Xshare/cfengine/html/cfengine-Tutorial.html
Xinfo/cfengine-Reference.info
Xdoc/cfengine-2.0.b1/COPYING
Xdoc/cfengine-2.0.b1/ChangeLog
Xdoc/cfengine-2.0.b1/INSTALL
Xdoc/cfengine-2.0.b1/NEWS
Xdoc/cfengine-2.0.b1/README
Xdoc/cfengine-2.0.b1/SURVEY
X@dirrm share/cfengine/html
X@dirrm share/cfengine
X@dirrm doc/cfengine-2.0.b1
X
X
END-of-cfengine-devel/pkg-plist
echo c - cfengine-devel/files
mkdir -p cfengine-devel/files > /dev/null 2>&1
echo x - cfengine-devel/Makefile~
sed 's/^X//' >cfengine-devel/Makefile~ << 'END-of-cfengine-devel/Makefile~'
X# New ports collection makefile for:	cfengine
X# Date created:		March 16, 1998
X# Whom:			jseger@FreeBSD.org
X#
X# $FreeBSD: ports/sysutils/cfengine/Makefile,v 1.21 2002/01/07 13:47:40 demon Exp $
X#
X
XPORTNAME=	cfengine-devel
XPORTVERSION=	2.0.0
X# PORTREVISION=	1
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.iu.hio.no/pub/cfengine/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=cfengine	
XDISTNAME=	cfengine-${PORTVERSION}
X
XMAINTAINER=	jylitalo@iki.fi
X
X.include <bsd.port.pre.mk>
X# .if exists(/usr/lib/libssl.a) && ${OSVERSION} <= 450000
X# FORBIDDEN=	"4.5-RELEASE and older have too old OpenSSL version in base."
X# .endif
X
XBUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
XLIB_DEPENDS=	db3:${PORTSDIR}/databases/db3
X.if defined(PACKAGE_BUILDING) && !exists(/usr/include/tcpd.h)
XLIB_DEPENDS+=	wrap.7:${PORTSDIR}/security/tcp_wrapper
X.endif
X
X# USE_AUTOCONF=	yes
X# USE_AUTOMAKE=	yes
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
XMAN8=		cfengine.8
X
X.include <bsd.port.post.mk>
END-of-cfengine-devel/Makefile~
exit
--- end of shar file ---

-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 5 Juha Ylitalo 2002-05-09 19:08:40 UTC
This latest version has number of changes to my earlier submits on this
same PR. Things that come right into my mind are following:
- renamed port from cfengine-devel to cfengine2, because cfengine 2.0.x
  is now mainstream, but at the sametime, I suspect that too much
  organizations are still using cfengine 1.6.x, so upgrade to cfengine
  port wouldn't go through.
- cfengine 2.0.0 -> 2.0.1 version upgrade
- cfexec and cfservd start/stop scripts (thanks to fcron port for those)
- fixes to pkg-plist, where I had forgot to do some modifications, when
  I upgraded it from 2.0b1 to 2.0.0
- somehow the formatting in my cfengine 2.0.0 submission was bit flaky
  because some lines seemed to have extra space at the beginning of  
  line.

Now it should be ready for submitters to check it.

Here is actual submission:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cfengine2
#	cfengine2/Makefile
#	cfengine2/distinfo
#	cfengine2/pkg-comment
#	cfengine2/pkg-descr
#	cfengine2/pkg-plist
#	cfengine2/files
#	cfengine2/files/cfexecd.sh.sample
#	cfengine2/files/cfservd.sh.sample
#
echo c - cfengine2
mkdir -p cfengine2 > /dev/null 2>&1
echo x - cfengine2/Makefile
sed 's/^X//' >cfengine2/Makefile << 'END-of-cfengine2/Makefile'
X# New ports collection makefile for:	cfengine2
X# Date created:		May 9, 2002
X# Whom:			jylitalo@iki.fi
X# $FreeBSD$
X#
X
XPORTNAME=	cfengine2
XPORTVERSION=	2.0.1
X# PORTREVISION=	1
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.iu.hio.no/pub/cfengine/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=cfengine
XDISTNAME=	cfengine-${PORTVERSION}
X
XMAINTAINER=	jylitalo@iki.fi
X
XBUILD_DEPENDS=	latex:${PORTSDIR}/print/teTeX
XLIB_DEPENDS=	db3:${PORTSDIR}/databases/db3
X
XCONFIGURE_ARGS+= BERKELEY_DB_LIB=-ldb3 BERKELEY_DB_CFLAGS=-I/usr/local/include/db3 BERKELEY_DB_LDFLAGS=-L/usr/local/lib
XCFLAGS+=-g
XCC=gcc
X# USE_AUTOCONF=	yes
X# USE_AUTOMAKE=	yes
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
XMAN8=		cfengine.8
X
Xdo-install:
X	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install
X	${INSTALL_SCRIPT} ${FILESDIR}/cfexecd.sh.sample ${PREFIX}/etc/rc.d/
X	${INSTALL_SCRIPT} ${FILESDIR}/cfservd.sh.sample ${PREFIX}/etc/rc.d/
X.include <bsd.port.mk>
END-of-cfengine2/Makefile
echo x - cfengine2/distinfo
sed 's/^X//' >cfengine2/distinfo << 'END-of-cfengine2/distinfo'
XMD5 (cfengine-2.0.1.tar.gz) = 16a44d47c194bd7c2a7bff003ec6f08b
END-of-cfengine2/distinfo
echo x - cfengine2/pkg-comment
sed 's/^X//' >cfengine2/pkg-comment << 'END-of-cfengine2/pkg-comment'
XGNU cfengine - a systems administration tool for networks
END-of-cfengine2/pkg-comment
echo x - cfengine2/pkg-descr
sed 's/^X//' >cfengine2/pkg-descr << 'END-of-cfengine2/pkg-descr'
XCfengine, or the configuration engine is an agent/software robot and a
Xvery high level language for building expert systems to administrate
Xand configure large computer networks. Cfengine uses the idea of
Xclasses and a primitive form of intelligence to define and automate
Xthe configuration and maintenance of system state, for small to huge
Xconfigurations. Cfengine is designed to be a part of a computer immune
Xsystem.
X
XWWW: http://www.iu.hioslo.no/cfengine/
END-of-cfengine2/pkg-descr
echo x - cfengine2/pkg-plist
sed 's/^X//' >cfengine2/pkg-plist << 'END-of-cfengine2/pkg-plist'
Xsbin/cfagent
Xsbin/cfservd
Xsbin/cfrun
Xsbin/cfkey
Xsbin/cfenvd
Xsbin/cfenvgraph
Xsbin/cfexecd
Xsbin/vicf
Xsbin/cfdoc
Xshare/cfengine/cfengine.el
Xshare/cfengine/cf.chflags.example
Xshare/cfengine/cf.freebsd.example
Xshare/cfengine/cf.ftp.example
Xshare/cfengine/cf.groups.example
Xshare/cfengine/cf.linux.example
Xshare/cfengine/cf.main.example
Xshare/cfengine/cf.motd.example
Xshare/cfengine/cf.preconf.example
Xshare/cfengine/cf.services.example
Xshare/cfengine/cf.site.example
Xshare/cfengine/cf.solaris.example
Xshare/cfengine/cf.sun4.example
Xshare/cfengine/cf.users.example
Xshare/cfengine/cfservd.conf.example
Xshare/cfengine/cfagent.conf.example
Xshare/cfengine/cfagent.conf-advanced.example
Xshare/cfengine/update.conf.example
Xshare/cfengine/cfrc.example
Xshare/cfengine/cfrun.hosts.example
Xshare/cfengine/html/cfengine-Reference.html
Xshare/cfengine/html/cfengine-Tutorial.html
Xinfo/cfengine-Reference.info
Xdoc/cfengine-2.0.1/COPYING
Xdoc/cfengine-2.0.1/ChangeLog
Xdoc/cfengine-2.0.1/INSTALL
Xdoc/cfengine-2.0.1/NEWS
Xdoc/cfengine-2.0.1/README
Xdoc/cfengine-2.0.1/SURVEY
X@dirrm share/cfengine/html
X@dirrm share/cfengine
X@dirrm doc/cfengine-2.0.1
END-of-cfengine2/pkg-plist
echo c - cfengine2/files
mkdir -p cfengine2/files > /dev/null 2>&1
echo x - cfengine2/files/cfexecd.sh.sample
sed 's/^X//' >cfengine2/files/cfexecd.sh.sample << 'END-of-cfengine2/files/cfexecd.sh.sample'
X#!/bin/sh
X# Start cfexecd at boot time under FreeBSD
X
XSBIN=/usr/local/sbin
XPROG=cfexecd
X
Xcase "$1" in
X  start)
X    if [ ! -d /var/cfengine/bin ]; then
X      mkdir -p /var/cfengine/bin
X    fi
X    if [ ! -h /var/cfengine/bin/cfagent ]; then
X      ln -s $SBIN/cfagent /var/cfengine/bin/
X    fi
X    if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then
X      $SBIN/cfkey
X    fi
X    $SBIN/$PROG && echo -n " $PROG"
X    ;;
X  stop)
X    killall -TERM $PROG 
X    ;;
X  *)
X    echo "Usage: $PROG start|stop"
X    exit 1
X    ;;
Xesac
END-of-cfengine2/files/cfexecd.sh.sample
echo x - cfengine2/files/cfservd.sh.sample
sed 's/^X//' >cfengine2/files/cfservd.sh.sample << 'END-of-cfengine2/files/cfservd.sh.sample'
X#!/bin/sh
X# Start cfservd at boot time under FreeBSD
X
XSBIN=/usr/local/sbin
XPROG=cfservd
X
Xcase "$1" in
X  start)
X    if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then
X      $SBIN/cfkey
X    fi
X    $SBIN/$PROG && echo -n " $PROG"
X    ;;
X  stop)
X    killall -TERM $PROG 
X    ;;
X  *)
X    echo "Usage: $PROG start|stop"
X    exit 1
X    ;;
Xesac
END-of-cfengine2/files/cfservd.sh.sample
exit


-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 6 Juha Ylitalo 2002-05-25 22:13:20 UTC
It looks like evolution will do base64 encoding, if I attach file to
mail, and if I add it into message body, it will do other nasty stuff,
like adding space in front of lines in shar file. To make port checking
little bit more easier, I've now put the port into my local cvsweb at
http://jylitalo.2y.net/cvsweb/FreeBSD/ports/local/cfengine2

-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 7 Juha Ylitalo 2002-06-01 02:43:07 UTC
sysutils/cfengine2 has now been upgraded to version 2.0.2. In comparison
to 2.0.1. 
cfengine 2.0.2 has following improvements to 2.0.1
- bugfixes
- support for DHCP clients
- support for IP ranges instead of listing all of them separately.
In my port, I went through following changes:
- distinfo has been upgraded (since tarball changed)
- added dependency to libssl3 (comes with openssl port), since 2.0.2
  won't compile with FreeBSD 4.5-RELEASE*
- cleaned couple extra files from pkg-plist
- removed hardcoded directory names from CFLAGS.
- checked that it goes through portlint, make install and make deinstall
  cleanly.

Port can be found from
http://jylitalo.2y.net/cvsweb/FreeBSD/local/cfengine2/
-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 8 Juha Ylitalo 2002-06-25 16:33:05 UTC
NOTE: Due to changes in dhs.org policies, latest version of this port
can now be found from
http://jylitalo.homeip.net/cvsweb/FreeBSD/local/cfengine2 (shar file can
be generated on request). Old address at jylitalo.2y.net will probably
disappear at second half of July.

On its long journey to ports, sysutils/cfengine2 has now been upgraded
from cfengine version 2.0.2 to 2.0.3.
Port itself didn't change much (minor updates in Makefile, distinfo and
patch-aa), but cfengine itself lists following things in its Changelog:

- import in cfservd.conf was blocked.
- update.conf run when doing -a or -z
- DESTINATION used in link.c (legacy) without allocation - caused
segfault.
- IMPORT in cfservd was excluded
- -b for --update-only was used up, changed to -B (too many options!)
- hyphen in cfservd.conf admit/deny hostname was misinterpreted as IP
range in 2.0.2 (Fixed)
- Unknown edit command error in include/exclude.

SECURITY : Recursive descent functions vulnerable to race conditions.
Directories could be replaced by symbolic links and this would affect
any operation that relies on directory parsing; files, tidy, editfiles
(copy is non-destructive). Recursive descent functions are reworked to
check inode numbers and device numbers in order to detect attacks. This
leads to a small inefficiency in recursive descent. The solution is to
chdir to the actual directory concerned, check that it is the same one
we stat'ed and scan only those relative names afterwards, so we freeze
each directory one at a time.  The problem only applies to systems who
have non-trusted users.

- Editfiles error messages added for class definitions within
conditionals.
- Some segmentation faults corrected.
- Check added to prevent cfagent from following links it does not own.
- Work around to delete cfparse.c from the distribution cause autoconf
won't do it. This was causing incorrect alloca() usage for HPUX and AIX.
[end of changelog]

-- 
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."
Comment 9 Tony Finch 2002-07-29 19:42:06 UTC
This is my version of the cfengine2 port, for version 2.0.3.
I'll commit if a ports person says OK.

Tony.
-- 
f.a.n.finch <dot@dotat.at> http://dotat.at/
NORTH UTSIRE SOUTH UTSIRE: VARIABLE 4, BECOMING SOUTHEAST 5 IN SOUTH UTSIRE.
OCCASIONAL DRIZZLE. MODERATE WITH FOG PATCHES.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cfengine2
#	cfengine2/files
#	cfengine2/files/patch-doc::Makefile.in
#	cfengine2/files/patch-contrib::Makefile.in
#	cfengine2/files/patch-doc::cfengine-Anomalies.info
#	cfengine2/files/patch-configure
#	cfengine2/distinfo
#	cfengine2/pkg-descr
#	cfengine2/pkg-plist
#	cfengine2/pkg-comment
#	cfengine2/Makefile
#
echo c - cfengine2
mkdir -p cfengine2 > /dev/null 2>&1
echo c - cfengine2/files
mkdir -p cfengine2/files > /dev/null 2>&1
echo x - cfengine2/files/patch-doc::Makefile.in
sed 's/^X//' >cfengine2/files/patch-doc::Makefile.in << 'END-of-cfengine2/files/patch-doc::Makefile.in'
X--- doc/Makefile.in.orig	Sat Jun 22 08:36:43 2002
X+++ doc/Makefile.in	Mon Jul 29 17:19:22 2002
X@@ -88,10 +88,10 @@
X man_MANS = cfengine.8
X info_TEXINFOS = cfengine-Reference.texinfo cfengine-Tutorial.texinfo cfengine-Anomalies.texinfo
X 
X-docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
X+#docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
X doc_DATA = 
X # Info used in building and installing HTML files
X-htmldir = $(pkgdatadir)/html
X+htmldir = $(datadir)/doc/@PACKAGE@
X htmlfiles = cfengine-Reference.html cfengine-Tutorial.html 
X html_DATA = $(htmlfiles)
X 
X@@ -103,7 +103,7 @@
X # then uncomment the reference to ps2
X psfiles = $(ps1)	# $(ps2)
X 
X-psdir = $(pkgdatadir)/doc
X+#psdir = $(pkgdatadir)/doc
X ps_DATA = $(psfiles)
X 
X # Make sure these get distributed with everything else.
END-of-cfengine2/files/patch-doc::Makefile.in
echo x - cfengine2/files/patch-contrib::Makefile.in
sed 's/^X//' >cfengine2/files/patch-contrib::Makefile.in << 'END-of-cfengine2/files/patch-contrib::Makefile.in'
X--- contrib/Makefile.in.orig	Mon Jul 29 17:24:20 2002
X+++ contrib/Makefile.in	Mon Jul 29 17:26:30 2002
X@@ -33,7 +33,7 @@
X mandir = @mandir@
X includedir = @includedir@
X oldincludedir = /usr/include
X-pkgdatadir = $(datadir)/@PACKAGE@
X+pkgdatadir = $(datadir)/emacs/site-lisp
X pkglibdir = $(libdir)/@PACKAGE@
X pkgincludedir = $(includedir)/@PACKAGE@
X top_builddir = ..
END-of-cfengine2/files/patch-contrib::Makefile.in
echo x - cfengine2/files/patch-doc::cfengine-Anomalies.info
sed 's/^X//' >cfengine2/files/patch-doc::cfengine-Anomalies.info << 'END-of-cfengine2/files/patch-doc::cfengine-Anomalies.info'
X--- doc/cfengine-Anomalies.info.orig	Mon Jul 29 18:15:38 2002
X+++ doc/cfengine-Anomalies.info	Mon Jul 29 18:16:20 2002
X@@ -3,7 +3,7 @@
X 
X INFO-DIR-SECTION System Utilities
X START-INFO-DIR-ENTRY
X-* cfengine Tutorial: (cfengine-Tutorial.info).
X+* cfengine Anomalies: (cfengine-Anomalies.info).
X                         Cfengine is a language based tool specifically
X                         designed for configuring and maintaining BSD
X                         and System-5-like operating systems attached
END-of-cfengine2/files/patch-doc::cfengine-Anomalies.info
echo x - cfengine2/files/patch-configure
sed 's/^X//' >cfengine2/files/patch-configure << 'END-of-cfengine2/files/patch-configure'
XAccept the -STABLE version of OpenSSL
XUse the correct #includes for sys/mount.h
X
X--- configure.orig	Mon Jul 29 15:32:39 2002
X+++ configure	Mon Jul 29 15:35:41 2002
X@@ -3637,8 +3637,8 @@
X if test x"$OPENSSL_LIB_DIR" = xno ; then
X     echo "$as_me:3638: result: no" >&5
X echo "${ECHO_T}no" >&6
X-    { { echo "$as_me:3640: error: This release of cfengine requires OpenSSL 0.9.6b or later" >&5
X-echo "$as_me: error: This release of cfengine requires OpenSSL 0.9.6b or later" >&2;}
X+    { { echo "$as_me:3640: error: This release of cfengine requires OpenSSL 0.9.6a or later" >&5
X+echo "$as_me: error: This release of cfengine requires OpenSSL 0.9.6a or later" >&2;}
X    { (exit 1); exit 1; }; }
X else
X     if test x"$OPENSSL_LIB_DIR" = xyes ; then
X@@ -3700,7 +3700,7 @@
X #include <openssl/opensslv.h>
X int main(void)
X {
X-    if (OPENSSL_VERSION_NUMBER < 0x0090602fL)
X+    if (OPENSSL_VERSION_NUMBER < 0x0090601fL)
X         exit(1);
X     exit(0);
X }
X@@ -3723,8 +3723,8 @@
X   echo "$as_me: program exited with status $ac_status" >&5
X echo "$as_me: failed program was:" >&5
X cat conftest.$ac_ext >&5
X-{ { echo "$as_me:3726: error: This release of cfengine requires openssl 0.9.6b or later" >&5
X-echo "$as_me: error: This release of cfengine requires openssl 0.9.6b or later" >&2;}
X+{ { echo "$as_me:3726: error: This release of cfengine requires openssl 0.9.6a or later" >&5
X+echo "$as_me: error: This release of cfengine requires openssl 0.9.6a or later" >&2;}
X    { (exit 1); exit 1; }; }
X 
X fi
X@@ -4098,6 +4098,7 @@
X   cat >conftest.$ac_ext <<_ACEOF
X #line 4099 "configure"
X #include "confdefs.h"
X+#include <sys/param.h>
X #include <$ac_header>
X _ACEOF
X if { (eval echo "$as_me:4103: \"$ac_cpp conftest.$ac_ext\"") >&5
X@@ -8485,8 +8486,8 @@
X echo "$as_me: WARNING: This version requires Berkeley db version 3.2 or" >&2;}
X { echo "$as_me:8486: WARNING: later from www.sleepycat.com" >&5
X echo "$as_me: WARNING: later from www.sleepycat.com" >&2;}
X-{ echo "$as_me:8488: WARNING: This version requires OpenSSL 0.9.6b or later" >&5
X-echo "$as_me: WARNING: This version requires OpenSSL 0.9.6b or later" >&2;}
X+{ echo "$as_me:8488: WARNING: This version requires OpenSSL 0.9.6a or later" >&5
X+echo "$as_me: WARNING: This version requires OpenSSL 0.9.6a or later" >&2;}
X { echo "$as_me:8490: WARNING: from www.openssl.org" >&5
X echo "$as_me: WARNING: from www.openssl.org" >&2;}
X { echo "$as_me:8492: WARNING: " >&5
END-of-cfengine2/files/patch-configure
echo x - cfengine2/distinfo
sed 's/^X//' >cfengine2/distinfo << 'END-of-cfengine2/distinfo'
XMD5 (cfengine-2.0.3.tar.gz) = 55df32a5856e5d267f895ec1dc6b2511
END-of-cfengine2/distinfo
echo x - cfengine2/pkg-descr
sed 's/^X//' >cfengine2/pkg-descr << 'END-of-cfengine2/pkg-descr'
XCfengine, or the configuration engine is an agent/software robot and a
Xvery high level language for building expert systems to administrate
Xand configure large computer networks. Cfengine uses the idea of
Xclasses and a primitive form of intelligence to define and automate
Xthe configuration and maintenance of system state, for small to huge
Xconfigurations. Cfengine is designed to be a part of a computer immune
Xsystem.
X
XWWW: http://www.cfengine.org/
END-of-cfengine2/pkg-descr
echo x - cfengine2/pkg-plist
sed 's/^X//' >cfengine2/pkg-plist << 'END-of-cfengine2/pkg-plist'
Xsbin/cfagent
Xsbin/cfdoc
Xsbin/cfenvd
Xsbin/cfenvgraph
Xsbin/cfexecd
Xsbin/cfkey
Xsbin/cfrun
Xsbin/cfservd
Xsbin/vicf
Xshare/emacs/site-lisp/cfengine.el
Xshare/cfengine/cf.chflags.example
Xshare/cfengine/cf.freebsd.example
Xshare/cfengine/cf.ftp.example
Xshare/cfengine/cf.groups.example
Xshare/cfengine/cf.linux.example
Xshare/cfengine/cf.main.example
Xshare/cfengine/cf.motd.example
Xshare/cfengine/cf.preconf.example
Xshare/cfengine/cf.services.example
Xshare/cfengine/cf.site.example
Xshare/cfengine/cf.solaris.example
Xshare/cfengine/cf.sun4.example
Xshare/cfengine/cf.users.example
Xshare/cfengine/cfagent.conf-advanced.example
Xshare/cfengine/cfagent.conf.example
Xshare/cfengine/cfrc.example
Xshare/cfengine/cfrun.hosts.example
Xshare/cfengine/cfservd.conf.example
Xshare/cfengine/update.conf.example
Xshare/doc/cfengine/cfengine-Reference.html
Xshare/doc/cfengine/cfengine-Tutorial.html
Xinfo/cfengine-Anomalies.info
Xinfo/cfengine-Reference.info
Xinfo/cfengine-Reference.info-1
Xinfo/cfengine-Reference.info-2
Xinfo/cfengine-Reference.info-3
Xinfo/cfengine-Reference.info-4
Xinfo/cfengine-Reference.info-5
Xinfo/cfengine-Reference.info-6
Xinfo/cfengine-Reference.info-7
Xinfo/cfengine-Reference.info-8
Xinfo/cfengine-Tutorial.info
Xinfo/cfengine-Tutorial.info-1
Xinfo/cfengine-Tutorial.info-2
Xinfo/cfengine-Tutorial.info-3
Xinfo/cfengine-Tutorial.info-4
Xinfo/cfengine-Tutorial.info-5
Xinfo/cfengine-Tutorial.info-6
X@exec install-info %D/info/cfengine-Tutorial.info %D/info/dir
X@exec install-info %D/info/cfengine-Reference.info %D/info/dir
X@exec install-info %D/info/cfengine-Anomalies.info %D/info/dir
X@unexec install-info --delete %D/info/cfengine-Tutorial.info %D/info/dir
X@unexec install-info --delete %D/info/cfengine-Reference.info %D/info/dir
X@unexec install-info --delete %D/info/cfengine-Anomalies.info %D/info/dir
X@dirrm share/cfengine
X@dirrm share/doc/cfengine
END-of-cfengine2/pkg-plist
echo x - cfengine2/pkg-comment
sed 's/^X//' >cfengine2/pkg-comment << 'END-of-cfengine2/pkg-comment'
XGNU cfengine - a systems administration tool for networks
END-of-cfengine2/pkg-comment
echo x - cfengine2/Makefile
sed 's/^X//' >cfengine2/Makefile << 'END-of-cfengine2/Makefile'
X# New ports collection makefile for:	cfengine2
X# Date created:		2002-07-29
X# Whom:			fanf@FreeBSD.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cfengine2
XPORTVERSION=	2.0.3
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.iu.hio.no/pub/cfengine/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	cfengine-${PORTVERSION}
X
XMAINTAINER=	fanf@FreeBSD.org
X
XLIB_DEPENDS=	db3:${PORTSDIR}/databases/db3
X
XUSE_OPENSSL=	yes
X
X# if we use GNU_CONFIGURE=yes then the binaries get installed with weird names
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX}
X
XMAN8=		cfengine.8
X
X.include <bsd.port.mk>
END-of-cfengine2/Makefile
exit
Comment 10 Gordon Tetlow 2002-07-29 21:19:19 UTC
On Mon, 29 Jul 2002, Tony Finch wrote:

> This is my version of the cfengine2 port, for version 2.0.3.
> I'll commit if a ports person says OK.

Please do. I've been to busy to look at it, but it should get committed.

-gordon
Comment 11 Tony Finch freebsd_committer freebsd_triage 2002-07-30 19:39:30 UTC
State Changed
From-To: open->closed

Thanks for keeping this port up-to-date for so long. I've committed 
my version of it, but the contribution is nevertheless greatly 
appreciated!