Date: Mon, 6 Aug 2001 00:07:30 +0200 (CEST) From: Anders Nordby <anders@fix.no> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29474: Update port: mail/drac Message-ID: <20010805220730.407E63C8E@totem.fix.no>
next in thread | raw e-mail | index | archive | help
>Number: 29474 >Category: ports >Synopsis: Update port: mail/drac >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Aug 05 15:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.3-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: <Relevant environment information (multiple lines)> >Description: - Add startup script. - Make the rpc.dracd daemon detach upon start. This adds file files/dracd.sh. >How-To-Repeat: <Code/input/activities to reproduce the problem (multiple lines)> >Fix: diff -Nur drac.old/Makefile drac/Makefile --- drac.old/Makefile Wed May 9 13:15:56 2001 +++ drac/Makefile Sun Aug 5 23:32:34 2001 @@ -41,5 +41,9 @@ @${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${PREFIX}/man/man3/ @${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m ${PREFIX}/man/man1/rpc.dracd.1 .endif + @if [ ! -f ${PREFIX}/etc/rc.d/dracd.sh ]; then \ + ${ECHO} "Installing ${PREFIX}/etc/rc.d/dracd.sh startup file."; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dracd.sh ${PREFIX}/etc/rc.d/dracd.sh; \ + fi .include <bsd.port.post.mk> diff -Nur drac.old/files/dracd.sh drac/files/dracd.sh --- drac.old/files/dracd.sh Thu Jan 1 01:00:00 1970 +++ drac/files/dracd.sh Sun Aug 5 23:51:36 2001 @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/rpc.dracd ] && ${PREFIX}/sbin/rpc.dracd && echo -n ' dracd' + ;; +stop) + killall rpc.dracd >/dev/null 2>&1 && echo -n ' dracd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff -Nur drac.old/files/patch-aa drac/files/patch-aa --- drac.old/files/patch-aa Wed May 9 13:15:57 2001 +++ drac/files/patch-aa Sun Aug 5 23:43:58 2001 @@ -49,7 +49,7 @@ -#RPCGENFLAGS = -C +TSTLIBS = -L. -ldrac +#RPCGENFLAGS = -+RPCGENFLAGS = -C ++RPCGENFLAGS = -C -I # Man sections MANLIB = 3 diff -Nur drac.old/pkg-plist drac/pkg-plist --- drac.old/pkg-plist Fri Feb 9 21:32:37 2001 +++ drac/pkg-plist Sun Aug 5 23:56:14 2001 @@ -1,3 +1,4 @@ sbin/rpc.dracd include/drac.h lib/libdrac.a +etc/rc.d/dracd.sh >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?20010805220730.407E63C8E>