Date: Mon, 20 Mar 2006 18:10:24 +0800 (CST) From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: vanilla@FreeBSD.org Subject: ports/94724: [PATCH] www/cherokee: add rc script for cherokee Message-ID: <20060320101024.C03055CD33@smtp1.bc.hgc.com.tw> Resent-Message-ID: <200603201020.k2KAK9C8078114@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 94724 >Category: ports >Synopsis: [PATCH] www/cherokee: add rc script for cherokee >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: Mon Mar 20 10:20:08 GMT 2006 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.0-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD smtp1.bc.hgc.com.tw 6.0-STABLE FreeBSD 6.0-STABLE #2: Thu Jan 12 14:11:33 CST 2006 >Description: 20060320: AFFECTS: users of www/cherokee AUTHOR: chinsan.tw@gmail.com The cherokee have been converted to use new-style rc scripts. In order to enable Cherokee, you must add: cherokee_enable="YES" to your rc.conf. Added file(s): - files/cherokee.sh.in Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- cherokee-0.4.30_2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/www/cherokee/Makefile /usr/home/chinsan/project/cherokee/Makefile --- /usr/ports/www/cherokee/Makefile Sun Mar 12 04:43:32 2006 +++ /usr/home/chinsan/project/cherokee/Makefile Mon Mar 20 18:07:45 2006 @@ -7,7 +7,7 @@ PORTNAME= cherokee PORTVERSION= 0.4.30 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.0x50.org/download/%SUBDIR%/ MASTER_SITE_SUBDIR= ${PORTVERSION:R}/${PORTVERSION} @@ -18,6 +18,7 @@ LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre USE_GNOME= gnomehack gnometarget pkgconfig +USE_RC_SUBR= cherokee.sh USE_GCC= 3.4+ USE_GETOPT_LONG= yes USE_REINPLACE= yes diff -ruN --exclude=CVS /usr/ports/www/cherokee/files/cherokee.sh.in /usr/home/chinsan/project/cherokee/files/cherokee.sh.in --- /usr/ports/www/cherokee/files/cherokee.sh.in Thu Jan 1 08:00:00 1970 +++ /usr/home/chinsan/project/cherokee/files/cherokee.sh.in Mon Mar 20 18:07:45 2006 @@ -0,0 +1,45 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cherokee +# REQUIRE: %%REQUIRE%% +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable cherokee: +# +# cherokee_enable (bool): Set it to "YES" to enable cherokee +# Default is "NO". +# cherokee_conf (path): Set full path to config file. +# Default is "%%PREFIX%%/etc/cherokee.conf". +# + +. %%RC_SUBR%% + +name="cherokee" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${cherokee_enable="NO"} +: ${cherokee_conf="%%PREFIX%%/etc/cherokee/cherokee.conf"} + +command=%%PREFIX%%/sbin/cherokee +command_args="-C ${cherokee_conf} -b" +pidfile=/var/run/cherokee.pid +required_files=${cherokee_conf} +stop_postcmd=stop_postcmd +restart_precmd="checkconfig" + +checkconfig() +{ + echo "Performing sanity check on ${name} configuration:" + eval "${command} ${command_args} -t" +} + +stop_postcmd() +{ + rm -f ${pidfile} +} + +run_rc_command "$1" --- cherokee-0.4.30_2.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?20060320101024.C03055CD33>