Bug 85158 - Update or net/widentd with rc.d startup script
Summary: Update or net/widentd with rc.d startup script
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-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 16:30 UTC by dirkx
Modified: 2005-08-31 13:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dirkx 2005-08-20 16:30:13 UTC
	Ports makefile updated to also install a rc.d script.

Fix: Diff on the makefile:



#!/bin/sh
# Start or stop widentd
#
# $FreeBSD$
#
# PROVIDE: widentd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD startup and shutdown
#
prefix=%%PREFIX%%

# Define these widentd_* variables in one of these files:
#
#       /etc/rc.conf
#       /etc/rc.conf.local
#
# e.g. 
#       widentd_enable="YES"
#
# see the man page at widentd(8) for
# some additional flags to set the IP address
# beeing bound to, or how to set a differernt
# fake user id beeing replied as.
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
widentd_enable=${widentd_enable-"NO"}

. %%RC_SUBR%%

name="widentd"
rcvar=`set_rcvar`
command="${prefix}/sbin/widentd"

load_rc_config $name

run_rc_command "$1"--MAk0R8If153Xi6JbNLYGWslctba6oW6bpCEh87XoA0e26Dj6
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -U3 -r widentd.org/Makefile widentd/Makefile
--- widentd.org/Makefile        Sat Aug 20 08:13:36 2005
+++ widentd/Makefile    Sat Aug 20 08:13:52 2005
@@ -18,6 +18,7 @@
 MAN8=          widentd.8
 MANCOMPRESSED= yes
 PLIST_FILES=   sbin/widentd
+USE_RC_SUBR=   widentd.sh
 
 MAKE_ENV+=     BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man"
 
And the ctual file itself (or is there a magic way to generate those
with just specifiying the binary name?).
How-To-Repeat: 	n/a
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-08-31 13:54:32 UTC
State Changed
From-To: open->closed

Committed, thanks!