Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2009 21:30:20 GMT
From:      Jo Rhett <jrhett@netconsonance.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/131311: new port cfengine3
Message-ID:  <200902022130.n12LUKGH010331@www.freebsd.org>
Resent-Message-ID: <200902022140.n12Le47D076683@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131311
>Category:       ports
>Synopsis:       new port cfengine3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 02 21:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jo Rhett
>Release:        6.3
>Organization:
>Environment:
FreeBSD wort 6.3-RELEASE-p7 FreeBSD 6.3-RELEASE-p7 #0: Sun Dec 21 03:42:05 UTC 2008     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
This is a new port for cfengine v3.  It does not conflict with the existing cfengine port.

I am the maintainer of the existing cfengine port.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	.
#	./distinfo
#	./files
#	./files/cf-execd.in
#	./files/cf-serverd.in
#	./Makefile
#	./pkg-descr
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (cfengine-3.0.1a6.tar.gz) = 3e86e3529f1afe213b8da55bc08fe5c6
XSHA256 (cfengine-3.0.1a6.tar.gz) = ed026086e7e7ebfff67b81672fd22aec060c2b9189444cdb395f6e265a19689c
XSIZE (cfengine-2.2.8.tar.gz) = 1136174
END-of-./distinfo
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/cf-execd.in
sed 's/^X//' >./files/cf-execd.in << 'END-of-./files/cf-execd.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/sysutils/cfengine/files/cf-execd.in,v 1.1 2007/06/15 18:18:57 sergei Exp $
X#
X# PROVIDE: cf-execd
X# REQUIRE: SERVERS
X# BEFORE:  DAEMON
X# KEYWORD: shutdown
X#
X# Add the following line to /etc/rc.conf[.local] to enable cf-execd(8)
X#
X# cf-execd_enable (bool):        Set to "NO" by default.
X#                               Set it to "YES" to enable cf-execd.
X# cf-execd_flags (str):          Custom additional arguments to be passed
X#                               to cf-execd (default empty).
X#
X
X. %%RC_SUBR%%
X
Xname="cf-execd"
Xrcvar=${name}_enable
X
Xcommand="%%PREFIX%%/sbin/${name}"
X
Xload_rc_config $name
X
X: ${cf-execd_enable="NO"}
X: ${cf-execd_flags=""}
X
Xrun_rc_command "$1"
END-of-./files/cf-execd.in
echo x - ./files/cf-serverd.in
sed 's/^X//' >./files/cf-serverd.in << 'END-of-./files/cf-serverd.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/sysutils/cfengine/files/cf-serverd.in,v 1.1 2007/06/15 18:18:57 sergei Exp $
X#
X# PROVIDE: cf-serverd
X# REQUIRE: SERVERS
X# BEFORE:  DAEMON
X# KEYWORD: shutdown
X#
X# Add the following line to /etc/rc.conf[.local] to enable cf-serverd(8)
X#
X# cf-serverd_enable (bool):        Set to "NO" by default.
X#                               Set it to "YES" to enable cf-serverd.
X# cf-serverd_flags (str):          Custom additional arguments to be passed
X#                               to cf-serverd (default empty).
X#
X
X. %%RC_SUBR%%
X
Xname="cf-serverd"
Xrcvar=${name}_enable
X
Xcommand="%%PREFIX%%/sbin/${name}"
X
Xload_rc_config $name
X
X: ${cf-serverd_enable="NO"}
X: ${cf-serverd_flags=""}
X
Xrun_rc_command "$1"
END-of-./files/cf-serverd.in
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	cfengine v3
X# Date created:		February 2, 2009
X# Whom:			jrhett@netconsonance.com
X#
X# $FreeBSD: ports/sysutils/cfengine3/Makefile,v 1.0 2009/02/02 06:18:24 rafan Exp $
X#
X
XPORTNAME=	cfengine
XPORTVERSION=	3.0.1
XDISTVERSION=	3.0.1a6
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.cfengine.org/downloads/
X
XMAINTAINER=	jrhett@netconsonance.com
XCOMMENT=	A systems administration tool for networks
XLATEST_LINK=	cfengine3
X
XUSE_RC_SUBR=	cf-execd cf-serverd
X
XWITH_BDB_VER?=	47
XUSE_BDB=	yes
XUSE_OPENSSL=	yes
XGNU_CONFIGURE=	yes
XBUILD_DEPENDS=
XEXAMPLESDIR=	${PREFIX}/share/examples/cfengine3
XDOCSDIR=	${PREFIX}/share/doc/cfengine3
XCONFIGURE_ARGS=	--docdir=${DOCSDIR} \
X		--htmldir=${DOCSDIR}/html \
X		--with-berkeleydb=${LOCALBASE}
X
XCONFIGURE_ENV+=	BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \
X		BERKELEY_DB_LDFLAGS=-L${BDB_LIB_DIR} \
X		BERKELEY_DB_LIB=-l${BDB_LIB_NAME}
X
XOPTIONS=        PCRE	"Enable Perl-compatible regular expressions"		on
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_PCRE)
XBUILD_DEPENDS+= ${PORTSDIR}/devel/pcre
XCONFIGURE_ARGS+= --with-pcre=${LOCALBASE}
X.endif
X
XMAN8=   cf-agent.8   cf-key.8      cf-monitord.8   \
X        cf-report.8  cf-serverd.8  cf-execd.8      \
X        cf-know.8    cf-promise.8  cf-runagent.8
X
X.if !defined(NOPORTDOCS)
XINFO=		cf3-reference
X.endif
X
Xpost-patch:
X		@${REINPLACE_CMD} -e '/^pkgdatadir/s!=.*!= ${EXAMPLESDIR}!'\
X				  ${WRKSRC}/inputs/Makefile.in
X
X		@${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\
X				  ${WRKSRC}/docs/Makefile.in \
X				  ${WRKSRC}/tests/file_masters/Makefile.in \
X				  ${WRKSRC}/tests/file_operands/Makefile.in \
X				  ${WRKSRC}/tests/units/Makefile.in \
X				  ${WRKSRC}/Makefile.in
X
X		@${REINPLACE_CMD} -e '/^htmldir/s!=.*!= @htmldir@!'\
X				  ${WRKSRC}/docs/Makefile.in
X
X.include <bsd.port.post.mk>
END-of-./Makefile
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XCfengine is an automated suite of programs for configuring and 
Xmaintaining Unix-like computers. It has been used on computing arrays 
Xof between 1 and 20,000 computers since 1993 by a wide range of 
Xorganizations. Cfengine is supported by active research and was the 
Xfirst autonomic, hands-free management system for Unix-like operating
Xsystems. Cfengine is an autonomic maintenance system not merely a
Xchange management roll-out tool. Cfengine has a history of security
Xand adaptability. 
X
XWWW: http://www.cfengine.org/
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X@comment $FreeBSD: ports/sysutils/cfengine/pkg-plist,v 1.11 2008/07/02 03:08:53 wxs Exp $
Xlib/libpromises.la
Xlib/libpromises.a
Xsbin/cf-agent
Xsbin/cf-execd
Xsbin/cf-key
Xsbin/cf-know
Xsbin/cf-monitord
Xsbin/cf-promises
Xsbin/cf-report
Xsbin/cf-runagent
Xsbin/cf-serverd
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/failsafe.cf
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/library.cf
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/promises.cf
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/site.cf
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/update.cf
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/cf3-Reference.pdf
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
END-of-./pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902022130.n12LUKGH010331>