Date: Sat, 4 Aug 2007 17:23:59 +0200 (CEST) From: Jan Srzednicki <w@wrzask.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/115198: [PATCH] security/drweb: update to rcNG script Message-ID: <20070804152359.1E3DF1CCC4@oak.pl> Resent-Message-ID: <200708041550.l74Fo20V040375@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115198 >Category: ports >Synopsis: [PATCH] security/drweb: update to rcNG script >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: Sat Aug 04 15:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jan Srzednicki >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD oak.pl 6.2-STABLE FreeBSD 6.2-STABLE #12: Tue Jul 31 20:37:10 CEST 2007 >Description: Update the port init script to the new rcNG schema. Added file(s): - files/drwebd.sh.in Port maintainer (support@spectrum.ru) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- drweb-4.33_4.patch begins here --- diff -ruN --exclude=CVS /usr/ports/security/drweb/Makefile /srv/home/winfried/tmp/ports/drweb/Makefile --- /usr/ports/security/drweb/Makefile Tue Jan 16 16:55:04 2007 +++ /srv/home/winfried/tmp/ports/drweb/Makefile Sat Aug 4 17:16:45 2007 @@ -7,7 +7,7 @@ PORTNAME= drweb PORTVERSION= 4.33 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/61/:f61 \ ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/55/:f55 \ @@ -22,6 +22,7 @@ IA32_BINARY_PORT= yes NO_BUILD= yes +USE_RC_SUBR= drwebd.sh .include <bsd.port.pre.mk> @@ -70,8 +71,6 @@ ${CP} ${PREFIX}/etc/drweb/email.ini-distr \ ${PREFIX}/etc/drweb/email.ini; \ fi - @${INSTALL_SCRIPT} -m 0750 -b ${WRKSRC}${LOCALBASE}/etc/rc.d/00.drwebd.sh \ - ${PREFIX}/etc/rc.d/001.drwebd.sh post-install: .if !defined(NOPORTDOCS) diff -ruN --exclude=CVS /usr/ports/security/drweb/files/drwebd.sh.in /srv/home/winfried/tmp/ports/drweb/files/drwebd.sh.in --- /usr/ports/security/drweb/files/drwebd.sh.in Thu Jan 1 01:00:00 1970 +++ /srv/home/winfried/tmp/ports/drweb/files/drwebd.sh.in Sat Aug 4 17:06:10 2007 @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $FreeBSD$ + +# PROVIDE: drwebd +# REQUIRE: DAEMON +# BEFORE: mail + +. %%RC_SUBR%% + +name="drwebd" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${drwebd_enable="NO"} +: ${drwebd_pidfile="/var/drweb/run/drwebd.pid"} +: ${drwebd_procname="%%PREFIX%%/drweb/drwebd"} + +command=$drwebd_procname +pidfile=$drwebd_pidfile + +run_rc_command "$1" + diff -ruN --exclude=CVS /usr/ports/security/drweb/pkg-plist /srv/home/winfried/tmp/ports/drweb/pkg-plist --- /usr/ports/security/drweb/pkg-plist Tue Jan 16 16:55:04 2007 +++ /srv/home/winfried/tmp/ports/drweb/pkg-plist Sat Aug 4 17:09:29 2007 @@ -1,4 +1,4 @@ -@unexec if [ -f /var/drweb/run/drwebd.pid ] ; then %D/etc/rc.d/001.drwebd.sh stop ; fi +@unexec if [ -f /var/drweb/run/drwebd.pid ] ; then %D/etc/rc.d/drwebd stop ; fi drweb/drweb drweb/drwebd drweb/drwebdc @@ -15,7 +15,6 @@ @unexec if [ -f %D/etc/drweb/email.ini ] && cmp -s %D/etc/drweb/email.ini %D/etc/drweb/email.ini-distr; then rm -f %D/etc/drweb/email.ini ; fi etc/drweb/email.ini-distr @exec if [ ! -f %B/email.ini ] ; then cp -p %B/%F %B/email.ini ; fi -etc/rc.d/001.drwebd.sh %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/ChangeLog.rus %%PORTDOCS%%%%DOCSDIR%%/FAQ --- drweb-4.33_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070804152359.1E3DF1CCC4>