Subject: pkg/26614: cfengine2 pkg installation issues
To: None <gnats-bugs@gnats.NetBSD.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: pkgsrc-bugs
Date: 08/11/2004 10:53:21
>Number:         26614
>Category:       pkg
>Synopsis:       cfengine2 pkg installation issues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 11 08:54:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hauke Fath <hf@spg.tu-darmstadt.de>
>Release:        NetBSD 2.0_BETA
>Organization:
-- 
/~\  The ASCII Ribbon Campaign                      Hauke Fath
\ /    No HTML/RTF in email	          Institut für Nachrichtentechnik
 X     No Word docs in email	                    TU Darmstadt
/ \  Respect for open standards                Ruf +49-6151-16-3281
>Environment:
	
	
System: NetBSD dobratsch.nt.e-technik.tu-darmstadt.de 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Tue Jul 13 15:33:36 CEST 2004 hf@heiligenberg:/var/obj/netbsd-builds/2_0/i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

	There are several issues with the cfengine2 install as it is now.

(1) The cfengine example config files are installed in
{LOCALBASE}/share/cfengine; as examples, they should go into
{LOCALBASE}/share/examples/cfengine.

(2) There are no rc.d scripts for cfenvd and cfservd.

(3) The canonical cfengine home is /var/cfengine -- create at least
{VARBASE}/cfengine/{inputs,outputs,ppkeys} if it doesn't exist.

(4) In addition, create the host key during installation.

(5) There are no man pages for the cfengine tools.

(6) There is no /etc/services entry for the cfengine port (5308/tcp).

(7) There is no sample crontab entry for cfexecd.

>How-To-Repeat:
	
	Install cfengine2 package. Find there is some way to go from
	what ist installed to what you need to use cfengine.

>Fix:

	Most things should have an obvious solution; the man page
	issue should be reported to the maintainers.
 
	Start scripts:

--- /dev/null   2004-08-11 03:20:35.000000000 +0200
+++ /etc/rc.d/cfenvd    2004-07-26 15:58:26.000000000 +0200
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: cfenvd
+# REQUIRE: DAEMON
+# BEFORE:  LOGIN
+
+. /etc/rc.subr
+
+name="cfenvd"
+rcvar=$name
+command="/usr/pkg/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"



--- /dev/null   2004-08-11 03:20:35.000000000 +0200
+++ /etc/rc.d/cfservd   2004-07-26 16:56:02.000000000 +0200
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: cfservd
+# REQUIRE: DAEMON
+# BEFORE:  LOGIN
+
+. /etc/rc.subr
+
+name="cfservd"
+rcvar=$name
+command="/usr/pkg/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"

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