From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 15 04:30:03 2008 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 6917C106566C for ; Tue, 15 Jul 2008 04:30:03 +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 495F78FC15 for ; Tue, 15 Jul 2008 04:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6F4U2g8006995 for ; Tue, 15 Jul 2008 04:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6F4U2fg006992; Tue, 15 Jul 2008 04:30:02 GMT (envelope-from gnats) Resent-Date: Tue, 15 Jul 2008 04:30:02 GMT Resent-Message-Id: <200807150430.m6F4U2fg006992@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 4C2301065675 for ; Tue, 15 Jul 2008 04:24:29 +0000 (UTC) (envelope-from pgollucci@riderwayinc.com) Received: from riderwayinc.com (riderwayinc.com [74.93.213.161]) by mx1.freebsd.org (Postfix) with ESMTP id 0883F8FC0A for ; Tue, 15 Jul 2008 04:24:28 +0000 (UTC) (envelope-from pgollucci@riderwayinc.com) Received: from riderwayinc.com (localhost [127.0.0.1]) by riderwayinc.com (8.14.2/8.14.2) with ESMTP id m6F4OIqN096361 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 15 Jul 2008 04:24:18 GMT (envelope-from pgollucci@riderwayinc.com) Received: (from pgollucci@localhost) by riderwayinc.com (8.14.2/8.14.2/Submit) id m6F4ODnp096360; Tue, 15 Jul 2008 04:24:13 GMT (envelope-from pgollucci) Message-Id: <200807150424.m6F4ODnp096360@riderwayinc.com> Date: Tue, 15 Jul 2008 04:24:13 GMT From: "Philip M. Gollucci" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: KOT@MATPOCKuH.Ru Subject: ports/125623: [PATCH] audio/autocd: 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: Tue, 15 Jul 2008 04:30:03 -0000 >Number: 125623 >Category: ports >Synopsis: [PATCH] audio/autocd: 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: Tue Jul 15 04:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Philip M. Gollucci >Release: FreeBSD 7.0-RELEASE amd64 >Organization: Riderway Inc. >Environment: System: FreeBSD riderwayinc.com 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Thu Feb 28 21:20:48 UTC 2008 >Description: - Respect NO_INSTALL_MANPAGES - repocopy [files/autocd.sh -> files/autocd.in] itectu@: no more .sh dougb@: move load_config above variables checks - Bump PORTREVISION Added file(s): - files/autocd.in Removed file(s): - files/autocd.sh Port maintainer (KOT@MATPOCKuH.Ru) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- autocd-3.02.12b_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/audio/autocd/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- Makefile 2 May 2007 07:11:57 -0000 1.12 +++ Makefile 15 Jul 2008 04:22:44 -0000 @@ -7,6 +7,7 @@ PORTNAME= autocd PORTVERSION= 3.02.12b +PORTREVISION= 1 CATEGORIES= audio sysutils MASTER_SITES= ftp://kot.spb.ru/pub/src/projects/autocd/ @@ -15,22 +16,18 @@ GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +.if !defined (NO_INSTALL_MANPAGES) MAN1= cdctl.1 acdplay.1 MAN8= autocd.8 MLINKS= cdctl.1 eject.1 cdctl.1 pause.1 +.endif + PLIST_FILES= sbin/autocd bin/acdplay bin/cdctl bin/pause bin/eject PORTDOCS= README.rus.html -USE_RC_SUBR= yes -RC_SUFX= .sh -SED_SCRIPT+= -e '{ s,%%PREFIX%%,${PREFIX},g; s,%%RC_SUBR%%,${RC_SUBR},g; }' -PLIST_FILES+= etc/rc.d/autocd${RC_SUFX} - -post-build: - @${SED} ${SED_SCRIPT} ${FILESDIR}/autocd.sh >${WRKDIR}/autocd.sh +USE_RC_SUBR= autocd post-install: - ${INSTALL_SCRIPT} ${WRKDIR}/autocd.sh ${PREFIX}/etc/rc.d/autocd${RC_SUFX} .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} Index: files/autocd.in =================================================================== RCS file: files/autocd.in diff -N files/autocd.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/autocd.in 15 Jul 2008 04:22:44 -0000 @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD: ports/audio/autocd/files/autocd.sh,v 1.2 2006/02/20 20:46:47 dougb Exp $ +# + +# PROVIDE: autocd +# REQUIRE: +# BEFORE: +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable autocd: +# +#autocd_enable="YES" +# +# See autocd(8) for flags +# + +. %%RC_SUBR%% + +name=autocd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/autocd + +load_rc_config $name + +autocd_enable=${autocd_enable:-"NO"} +autocd_flags=${autocd_flags:-""} + +stop_cmd=stop_cmd + +stop_cmd() +{ + %%PREFIX%%/bin/cdctl die +} + +run_rc_command "$1" Index: files/autocd.sh =================================================================== RCS file: files/autocd.sh diff -N files/autocd.sh --- files/autocd.sh 20 Feb 2006 20:46:47 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,38 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/audio/autocd/files/autocd.sh,v 1.2 2006/02/20 20:46:47 dougb Exp $ -# - -# PROVIDE: autocd -# REQUIRE: -# BEFORE: -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable autocd: -# -#autocd_enable="YES" -# -# See autocd(8) for flags -# - -. %%RC_SUBR%% - -name=autocd -rcvar=`set_rcvar` - -command=%%PREFIX%%/sbin/autocd - -stop_cmd=stop_cmd - -stop_cmd() -{ - %%PREFIX%%/bin/cdctl die -} - -# set defaults -autocd_enable=${autocd_enable:-"NO"} -autocd_flags=${autocd_flags:-""} - -load_rc_config $name -run_rc_command "$1" --- autocd-3.02.12b_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: