From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 17 07:20:11 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0694106566C for ; Fri, 17 Jul 2009 07:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BA9928FC0C for ; Fri, 17 Jul 2009 07:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6H7K5Va046022 for ; Fri, 17 Jul 2009 07:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6H7K5Th046015; Fri, 17 Jul 2009 07:20:05 GMT (envelope-from gnats) Resent-Date: Fri, 17 Jul 2009 07:20:05 GMT Resent-Message-Id: <200907170720.n6H7K5Th046015@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, "Philip M. Gollucci" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF335106566C; Fri, 17 Jul 2009 07:15:05 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C19818FC0C; Fri, 17 Jul 2009 07:15:05 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from freefall.freebsd.org (pgollucci@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6H7F51u044456; Fri, 17 Jul 2009 07:15:05 GMT (envelope-from pgollucci@freefall.freebsd.org) Received: (from pgollucci@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6H7F5Zg044455; Fri, 17 Jul 2009 07:15:05 GMT (envelope-from pgollucci) Message-Id: <200907170715.n6H7F5Zg044455@freefall.freebsd.org> Date: Fri, 17 Jul 2009 07:15:05 GMT From: "Philip M. Gollucci" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: tdb@FreeBSD.org Subject: ports/136852: [PATCH] sysutils/openupsd: USE_RC_SUBR != yes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 07:20:12 -0000 >Number: 136852 >Category: ports >Synopsis: [PATCH] sysutils/openupsd: USE_RC_SUBR != yes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 17 07:20:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Philip M. Gollucci >Release: FreeBSD 7.2-STABLE i386 >Organization: RideCharge Inc. >Environment: System: FreeBSD freefall.freebsd.org 7.2-STABLE FreeBSD 7.2-STABLE #38 r194101: Sat Jun 13 11:12:24 UTC >Description: Added file(s): - files/openupsd.in Removed file(s): - files/openupsd.sh Port maintainer (tdb@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- openupsd-0.3.1_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/sysutils/openupsd/Makefile,v retrieving revision 1.3 diff -u -u -r1.3 Makefile --- Makefile 1 Dec 2005 16:50:07 -0000 1.3 +++ Makefile 17 Jul 2009 07:14:55 -0000 @@ -7,24 +7,20 @@ PORTNAME= openupsd PORTVERSION= 0.3.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://frmb.org/download/ MAINTAINER= tdb@FreeBSD.org COMMENT= A UPS daemon for some Belkin UPS's -USE_RC_SUBR= yes +USE_RC_SUBR= ${PORTNAME} GNU_CONFIGURE= yes CONFIGURE_ARGS= --program-transform-name= --bindir=${PREFIX}/sbin -PLIST_FILES= sbin/openupsd etc/openupsd.conf.sample etc/rc.d/openupsd.sh - -post-extract: - @${SED} -e 's#%%RC_SUBR%%#${RC_SUBR}#g' -e 's#%%PREFIX%%#${PREFIX}#g' \ - ${FILESDIR}/openupsd.sh > ${WRKDIR}/openupsd.sh +PLIST_FILES= sbin/openupsd etc/openupsd.conf.sample post-install: ${INSTALL_DATA} ${WRKSRC}/openupsd.conf ${PREFIX}/etc/openupsd.conf.sample - ${INSTALL_SCRIPT} ${WRKDIR}/openupsd.sh ${PREFIX}/etc/rc.d/ .include Index: files/openupsd.in =================================================================== RCS file: files/openupsd.in diff -N files/openupsd.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/openupsd.in 17 Jul 2009 07:14:55 -0000 @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: ports/sysutils/openupsd/files/openupsd.sh,v 1.3 2006/02/20 20:47:43 dougb Exp $ +# +# PROVIDE: openupsd +# REQUIRE: LOGIN +# KEYWORD: shutdown + +openupsd_enable=${openupsd_enable:-"NO"} + +. %%RC_SUBR%% + +name="openupsd" +rcvar=`set_rcvar` + +pidfile=/var/run/${name}.pid +required_files=%%PREFIX%%/etc/${name}.conf + +command=%%PREFIX%%/sbin/openupsd +command_args="-p ${pidfile}" + +load_rc_config $name +run_rc_command "$1" Index: files/openupsd.sh =================================================================== RCS file: files/openupsd.sh diff -N files/openupsd.sh --- files/openupsd.sh 20 Feb 2006 20:47:43 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,23 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/sysutils/openupsd/files/openupsd.sh,v 1.3 2006/02/20 20:47:43 dougb Exp $ -# -# PROVIDE: openupsd -# REQUIRE: LOGIN -# KEYWORD: shutdown - -openupsd_enable=${openupsd_enable:-"NO"} - -. %%RC_SUBR%% - -name="openupsd" -rcvar=`set_rcvar` - -pidfile=/var/run/${name}.pid -required_files=%%PREFIX%%/etc/${name}.conf - -command=%%PREFIX%%/sbin/openupsd -command_args="-p ${pidfile}" - -load_rc_config $name -run_rc_command "$1" --- openupsd-0.3.1_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: