From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 20 15:30:14 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 609EE16A420 for ; Sat, 20 Aug 2005 15:30:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA48543D53 for ; Sat, 20 Aug 2005 15:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7KFUDdQ098080 for ; Sat, 20 Aug 2005 15:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7KFUDIW098076; Sat, 20 Aug 2005 15:30:13 GMT (envelope-from gnats) Resent-Date: Sat, 20 Aug 2005 15:30:13 GMT Resent-Message-Id: <200508201530.j7KFUDIW098076@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dirk-Willem van Gulik Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2AA916A41F for ; Sat, 20 Aug 2005 15:28:52 +0000 (GMT) (envelope-from dirkx@bali.sjc.webweaving.org) Received: from bali.sjc.webweaving.org (bali.sjc.webweaving.org [216.218.185.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D4743D46 for ; Sat, 20 Aug 2005 15:28:52 +0000 (GMT) (envelope-from dirkx@bali.sjc.webweaving.org) Received: from bali.sjc.webweaving.org (localhost [127.0.0.1]) by bali.sjc.webweaving.org (8.12.11/8.12.11) with ESMTP id j7KFSl57040480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 20 Aug 2005 08:28:47 -0700 (PDT) (envelope-from dirkx@bali.sjc.webweaving.org) Received: (from root@localhost) by bali.sjc.webweaving.org (8.12.11/8.12.11/Submit) id j7KFSk4n040479; Sat, 20 Aug 2005 08:28:46 -0700 (PDT) (envelope-from dirkx) Message-Id: <200508201528.j7KFSk4n040479@bali.sjc.webweaving.org> Date: Sat, 20 Aug 2005 08:28:46 -0700 (PDT) From: Dirk-Willem van Gulik To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/85158: Update or net/widentd with rc.d startup script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dirk-Willem van Gulik List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 15:30:14 -0000 >Number: 85158 >Category: ports >Synopsis: Update or net/widentd with rc.d startup script >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Aug 20 15:30:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Dirk-Willem van Gulik >Release: FreeBSD 4.10-RELEASE i386 >Organization: >Environment: System: FreeBSD bali.sjc.webweaving.org 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 all FreeBSD versions and/or BSD's using the rc.d startup scripts. >Description: Ports makefile updated to also install a rc.d script. >How-To-Repeat: n/a >Fix: Diff on the makefile: 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?). #!/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" >Release-Note: >Audit-Trail: >Unformatted: