From owner-freebsd-ports Sun May 7 1:11:53 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4C11637BE49 for ; Sun, 7 May 2000 01:10:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA64734; Sun, 7 May 2000 01:10:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from lathian.com (adsl-63-200-45-30.dsl.snfc21.pacbell.net [63.200.45.30]) by hub.freebsd.org (Postfix) with ESMTP id 501F637B5AF for ; Sat, 6 May 2000 14:01:51 -0700 (PDT) (envelope-from mab@lathian.com) Received: from enzian.lathian (enzian.lathian [10.0.0.33]) by lathian.com (Postfix) with ESMTP id DE1111B201 for ; Fri, 5 May 2000 01:07:54 -0700 (PDT) Received: by enzian.lathian (Postfix, from userid 1000) id C0FBF2C923; Fri, 5 May 2000 01:07:56 -0700 (PDT) Message-Id: <20000505080756.C0FBF2C923@enzian.lathian> Date: Fri, 5 May 2000 01:07:56 -0700 (PDT) From: mab@red-bean.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/18419: Update nonstandard rc.d file for www/aolserver Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18419 >Category: ports >Synopsis: Update nonstandard rc.d file for www/aolserver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 07 01:10:18 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Matthew Braithwaite >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: >Description: diff -ruN www/aolserver/Makefile www/aolserver+/Makefile --- www/aolserver/Makefile Sat Apr 29 17:19:36 2000 +++ www/aolserver+/Makefile Thu May 4 18:33:33 2000 @@ -1,8 +1,9 @@ # New ports collection makefile for: aolserver +# Version required: 3.0 # Date created: 13 January 2000 # Whom: Matt Braithwaite # -# $FreeBSD: ports/www/aolserver/Makefile,v 1.4 2000/04/30 00:19:36 steve Exp $ +# $FreeBSD: ports/www/aolserver/Makefile,v 1.2 2000/02/23 13:55:38 imura Exp $ # PORTNAME= aolserver @@ -39,9 +40,9 @@ # Startup file @if [ ! -f ${PREFIX}/etc/rc.d/aolserver.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/aolserver.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/aolserver.sh; \ - ${ECHO} "[ -x ${PREFIX}/aolserver/bin/nsd8x ] && ${PREFIX}/aolserver/bin/nsd8x -u nobody -t ${PREFIX}/aolserver/nsd.tcl && ${ECHO} -n ' aolserver'" >> ${PREFIX}/etc/rc.d/aolserver.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/aolserver.sh; \ + ${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/aolserver.sh \ + >${PREFIX}/etc/rc.d/aolserver.sh ; \ + ${CHMOD} 755 ${PREFIX}/etc/rc.d/aolserver.sh; \ fi @${CAT} ${PKGDIR}/MESSAGE diff -ruN www/aolserver/files/aolserver.sh www/aolserver+/files/aolserver.sh --- www/aolserver/files/aolserver.sh Wed Dec 31 16:00:00 1969 +++ www/aolserver+/files/aolserver.sh Thu May 4 18:28:46 2000 @@ -0,0 +1,21 @@ +#!/bin/sh + +PREFIX=%%PREFIX%%/aolserver +CONFIG=${PREFIX}/nsd.tcl + +case "$1" in + +start) + ${PREFIX}/bin/nsd8x -t ${CONFIG} -u nsadmin -g nsadmin + ;; + +stop) + ${PREFIX}/bin/nsd8x -t ${CONFIG} -u nsadmin -g nsadmin -K + ;; + +*) + echo "usage: $0 {start|stop}" 1>&2 + exit 64 + ;; + +esac >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message