FreeBSD Bugzilla – Attachment 25568 Details for
Bug 43681
www/apache13-fp: Update to 1.3.27 and convert apache.sh to RC_NG
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 6.33 KB, created by
Scot W. Hetzel
on 2002-10-05 08:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Scot W. Hetzel
Created:
2002-10-05 08:10:01 UTC
Size:
6.33 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/www/apache13-fp/Makefile,v >retrieving revision 1.36 >diff -u -r1.36 Makefile >--- Makefile 17 Sep 2002 07:41:02 -0000 1.36 >+++ Makefile 4 Oct 2002 23:38:32 -0000 >@@ -7,8 +7,8 @@ > > PORTNAME= apache > PKGNAMESUFFIX= _fp >-PORTVERSION= 1.3.26 >-PORTREVISION= 3 >+PORTVERSION= 1.3.27 >+PORTREVISION= 0 > CATEGORIES= www > MASTER_SITES= http://www.apache.org/dist/httpd/ \ > http://www.freebsd.org/gifs/ \ >@@ -141,9 +141,9 @@ > post-install: > @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ > ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh file."; \ >- ${SED} -e 's;PREFIX;${PREFIX};' \ >- -e 's;PERL5;${PERL};' \ >- -e 's;FP_VER;${FP_VER};' \ >+ ${SED} -e 's;%%PREFIX%%;${PREFIX};' \ >+ -e 's;%%PERL5%%;${PERL};' \ >+ -e 's;%%FP_VER%%;${FP_VER};' \ > < ${FILESDIR}/apache.sh.tmpl > ${PREFIX}/etc/rc.d/apache.sh; \ > ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ > fi >Index: distinfo >=================================================================== >RCS file: /home/ncvs/ports/www/apache13-fp/distinfo,v >retrieving revision 1.19 >diff -u -r1.19 distinfo >--- distinfo 19 Jun 2002 20:53:27 -0000 1.19 >+++ distinfo 4 Oct 2002 22:39:48 -0000 >@@ -1,3 +1,3 @@ >-MD5 (apache_1.3.26.tar.gz) = 52e9b875597a208fca9d393e710087b6 >+MD5 (apache_1.3.27.tar.gz) = 65b89365a65dcad71d4402b4862beeaa > MD5 (powerlogo.gif) = 0f106073b3c7844cf22d4df126b27c62 > MD5 (fplogo.gif) = db0fd186b50fde14ff2ec638382a85e6 >Index: pkg-plist >=================================================================== >RCS file: /home/ncvs/ports/www/apache13-fp/pkg-plist,v >retrieving revision 1.22 >diff -u -r1.22 pkg-plist >--- pkg-plist 20 Jun 2002 04:35:36 -0000 1.22 >+++ pkg-plist 5 Oct 2002 06:04:17 -0000 >@@ -172,6 +172,7 @@ > share/doc/apache/manual/howto/cgi.html.ja.jis > share/doc/apache/manual/howto/footer.html > share/doc/apache/manual/howto/header.html >+share/doc/apache/manual/howto/htaccess.html > share/doc/apache/manual/howto/ssi.html.en > share/doc/apache/manual/howto/ssi.html.html > share/doc/apache/manual/howto/ssi.html.ja.jis >@@ -259,11 +260,13 @@ > share/doc/apache/manual/mod/mod_actions.html.en > share/doc/apache/manual/mod/mod_actions.html.html > share/doc/apache/manual/mod/mod_actions.html.ja.jis >-share/doc/apache/manual/mod/mod_alias.html >+share/doc/apache/manual/mod/mod_alias.html.en >+share/doc/apache/manual/mod/mod_alias.html.ja.jis > share/doc/apache/manual/mod/mod_asis.html.en > share/doc/apache/manual/mod/mod_asis.html.html > share/doc/apache/manual/mod/mod_asis.html.ja.jis >-share/doc/apache/manual/mod/mod_auth.html >+share/doc/apache/manual/mod/mod_auth.html.en >+share/doc/apache/manual/mod/mod_auth.html.ja.jis > share/doc/apache/manual/mod/mod_auth_anon.html > share/doc/apache/manual/mod/mod_auth_db.html > share/doc/apache/manual/mod/mod_auth_dbm.html >Index: files/apache.sh.tmpl >=================================================================== >RCS file: /home/ncvs/ports/www/apache13-fp/files/apache.sh.tmpl,v >retrieving revision 1.5 >diff -u -r1.5 apache.sh.tmpl >--- files/apache.sh.tmpl 28 Dec 2001 00:39:45 -0000 1.5 >+++ files/apache.sh.tmpl 4 Oct 2002 23:39:21 -0000 >@@ -1,17 +1,63 @@ > #!/bin/sh > # >+# $FreeBSD$ > >+# PROVIDE: apache >+# REQUIRE: DAEMON >+# KEYWORD: FreeBSD shutdown > # >-# Create New FrontPage suidkey >+# NOTE for FreeBSD 5.0+: >+# If you want this script to start with the base rc scripts >+# move apache.sh to /etc/rc.d/apache >+ >+# Define the following apache_* variables in one of the following: >+# /etc/rc.conf >+# /etc/rc.conf.d/apache >+# ${prefix}/etc/rc.conf.d/apache >+# >+# apache_enable - Set to YES to enable apache >+# >+# apache_program - Path to apache program >+# Default: ${prefix}/sbin/httpd >+# >+ >+prefix=%%PREFIX%% >+ >+# "${apache_start}" is the subcommand sent to apachectl to control how >+# httpd is started. It's value may be overridden in: >+# >+# @PKG_SYSCONFDIR@/apache_start.conf >+# /etc/rc.conf >+# /etc/rc.conf.d/apache, > # >+# in order of increasing precedence. Its possible values are "start" >+# and "start_FP", and defaults to "start_FP". >+# >+apache_start=start_FP >+if [ -f ${prefix}/etc/apache/apache_start.conf ] >+then >+ . ${prefix}/etc/apache/apache_start.conf >+fi >+ >+apache_doit () >+{ >+ case $1 in >+ start) action=${apache_start} ;; >+ reload) action=graceful ;; >+ *) action=$1 ;; >+ esac >+ ${ctl_command} ${action} >+} >+ >+# Create New FrontPage suidkey > > new_key() { > > CUR_UMASK=`umask` >- skdir=PREFIX/frontpage/versionFP_VER/apache-fp >- PERL=PERL5 >+ skdir=${prefix}/frontpage/version%%FP_VER%%/apache-fp >+ PERL=%%PERL5%% > >- if [ -x PREFIX/libexec/apache/mod_frontpage.so ] >+ if [ -x ${prefix}/libexec/apache/mod_frontpage.so ] > then > > #NOTE: We need Perl 5, to generate a new key >@@ -25,35 +71,60 @@ > > } > >-# >-# Main >-# >+if [ -f /etc/rc.subr ]; then > >-if [ -x PREFIX/libexec/apache/mod_frontpage.so ] >-then >- MODULES="_FP" >-fi >- >-case "$1" in >+ . /etc/rc.subr > >-start) >- if [ -x PREFIX/sbin/apachectl ] >- then >- new_key >- PREFIX/sbin/apachectl start${MODULES} && echo -n ' httpd' >+ name="apache" >+ rcvar=`set_rcvar` >+ command="${prefix}/sbin/httpd" >+ ctl_command="${prefix}/sbin/apachectl" >+ # pidfile=/var/run/httpd.pid >+ required_files="${prefix}/etc/apache/httpd.conf" >+ extra_commands="reload" >+ start_precmd="new_key" >+ start_cmd="apache_doit start" >+ stop_cmd="apache_doit stop" >+ restart_cmd="apache_doit restart" >+ reload_cmd="apache_doit reload" >+ >+ # The below may be removed when load_local_rc_config is added to rc.subr >+ >+ if [ -f ${prefix}/etc/rc.conf.d/"$name" ]; then >+ debug "Sourcing ${prefix}/etc/rc.conf.d/${name}" >+ . ${prefix}/etc/rc.conf.d/"$name" > fi >- ;; > >-stop) >- if [ -r /var/run/httpd.pid ] >- then >- PREFIX/sbin/apachectl stop && echo -n ' httpd' >+ load_rc_config $name >+ >+ if [ -z "${slapd_enable}" ] ; then >+ slapd_enable=yes > fi >- ;; > >-*) >- echo "usage: $0 {start|stop}" 1>&2 >- exit 64 >- ;; >+ # The above may be removed when load_local_rc_config is added to rc.subr >+ # >+ # load_local_rc_config $name >+ run_rc_command "$1" >+else >+ case "$1" in >+ >+ start) >+ if [ -x ${prefix}/sbin/apachectl ]; then >+ new_key >+ ${prefix}/sbin/apachectl ${apache_start} && echo -n ' httpd' >+ fi >+ ;; >+ >+ stop) >+ if [ -r /var/run/httpd.pid ]; then >+ ${prefix}/sbin/apachectl stop && echo -n ' httpd' >+ fi >+ ;; >+ >+ *) >+ echo "usage: $0 {start|stop}" 1>&2 >+ exit 64 >+ ;; > >-esac >+ esac >+fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43681
: 25568