Date: Thu, 11 Oct 2007 01:57:16 GMT From: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> Subject: ports/117101: mail/perdition: add rc.d scripts Message-ID: <200710110157.l9B1vGaA082901@freefall.freebsd.org> Resent-Message-ID: <200710110200.l9B209sB083149@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117101 >Category: ports >Synopsis: mail/perdition: add rc.d scripts >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 11 02:00:09 UTC 2007 >Closed-Date: >Last-Modified: >Originator: TAOKA Fumiyoshi >Release: >Organization: >Environment: >Description: Add rc.d scripts. Change pid directory to /var/run instead of /usr/local/var/run. Change INSTALL_SHLIB to USE_LDCONFIG. >How-To-Repeat: >Fix: diff -uNr --exclude CVS perdition.orig/Makefile perdition/Makefile --- perdition.orig/Makefile 2007-02-01 11:41:46.000000000 +0900 +++ perdition/Makefile 2007-10-09 20:51:26.000000000 +0900 @@ -29,9 +29,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" BDB_LIB=db3 LDFLAGS+= -L${LOCALBASE}/lib MAKE_ENV+= DOCSDIR=${DOCSDIR} -CONFIGURE_ARGS+= --disable-daemon-map +CONFIGURE_ARGS+= --disable-daemon-map --localstatedir=/var -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes +USE_RC_SUBR= perdition perdition.pop3 perdition.pop3s \ + perdition.imap4 perdition.imap4s perdition.imaps ## ## Available knobs: diff -uNr --exclude CVS perdition.orig/files/perdition.imap4.in perdition/files/perdition.imap4.in --- perdition.orig/files/perdition.imap4.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.imap4.in 2007-10-09 20:44:23.000000000 +0900 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition_imap4 +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition.imap4 +# +# perdition_imap4_enable="YES" +# +# See perdition(8) for flags +# + +perdition_imap4_enable=${perdition_imap4_enable-"NO"} +perdition_imap4_flags=${perditon_imap4_flags-""} + +. %%RC_SUBR%% + +name="perdition_imap4" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/perdition.imap4" +pidfile="/var/run/perdition.imap4/perdition.imap4.pid" + +load_rc_config $name + +run_rc_command "$1" diff -uNr --exclude CVS perdition.orig/files/perdition.imap4s.in perdition/files/perdition.imap4s.in --- perdition.orig/files/perdition.imap4s.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.imap4s.in 2007-10-09 20:44:31.000000000 +0900 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition_imap4s +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition.imap4s +# +# perdition_imap4s_enable="YES" +# +# See perdition(8) for flags +# + +perdition_imap4s_enable=${perdition_imap4s_enable-"NO"} +perdition_imap4s_flags=${perditon_imap4s_flags-""} + +. %%RC_SUBR%% + +name="perdition_imap4s" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/perdition.imap4s" +pidfile="/var/run/perdition.imap4s/perdition.imap4s.pid" + +load_rc_config $name + +run_rc_command "$1" diff -uNr --exclude CVS perdition.orig/files/perdition.imaps.in perdition/files/perdition.imaps.in --- perdition.orig/files/perdition.imaps.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.imaps.in 2007-10-09 20:42:54.000000000 +0900 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition_imaps +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition.imaps +# +# perdition_imaps_enable="YES" +# +# See perdition(8) for flags +# + +perdition_imaps_enable=${perdition_imaps_enable-"NO"} +perdition_imaps_flags=${perditon_imaps_flags-""} + +. %%RC_SUBR%% + +name="perdition_imaps" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/perdition.imaps" +pidfile="/var/run/perdition.imaps/perdition.imaps.pid" + +load_rc_config $name + +run_rc_command "$1" diff -uNr --exclude CVS perdition.orig/files/perdition.in perdition/files/perdition.in --- perdition.orig/files/perdition.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.in 2007-10-09 20:44:45.000000000 +0900 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition +# +# perdition_enable="YES" +# +# See perdition(8) for flags +# + +perdition_enable=${perdition_enable-"NO"} +perdition_flags=${perdition_flags-""} + +. %%RC_SUBR%% + +name="perdition" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/${name}" +pidfile="/var/run/perdition/${name}.pid" + +load_rc_config $name + +run_rc_command "$1" diff -uNr --exclude CVS perdition.orig/files/perdition.pop3.in perdition/files/perdition.pop3.in --- perdition.orig/files/perdition.pop3.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.pop3.in 2007-10-09 20:42:57.000000000 +0900 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition_pop3 +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition.pop3 +# +# perdition_pop3_enable="YES" +# +# See perdition(8) for flags +# + +perdition_pop3_enable=${perdition_pop3_enable-"NO"} +perdition_pop3_flags=${perditon_pop3_flags-""} + +. %%RC_SUBR%% + +name="perdition_pop3" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/perdition.pop3" +pidfile="/var/run/perdition.pop3/perdition.pop3.pid" + +load_rc_config $name + +run_rc_command "$1" diff -uNr --exclude CVS perdition.orig/files/perdition.pop3s.in perdition/files/perdition.pop3s.in --- perdition.orig/files/perdition.pop3s.in 1970-01-01 09:00:00.000000000 +0900 +++ perdition/files/perdition.pop3s.in 2007-10-09 20:43:02.000000000 +0900 @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: perdition_pop3s +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable perdition.pop3s +# +# perdition_pop3s_enable="YES" +# +# See perdition(8) for flags +# + +perdition_pop3s_enable=${perdition_pop3s_enable-"NO"} +perdition_pop3s_flags=${perditon_pop3s_flags-""} + +. %%RC_SUBR%% + +name="perdition_pop3s" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/perdition.pop3s" +pidfile="/var/run/perdition.pop3s/perdition.pop3s.pid" + +load_rc_config $name + +run_rc_command "$1" + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710110157.l9B1vGaA082901>