Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  5 May 2000 01:07:56 -0700 (PDT)
From:      mab@red-bean.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18419: Update nonstandard rc.d file for www/aolserver
Message-ID:  <20000505080756.C0FBF2C923@enzian.lathian>

next in thread | raw e-mail | index | archive | help

>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 <mab@red-bean.com>
 #
-# $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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000505080756.C0FBF2C923>