Skip to content
Permalink
Browse files

update to 1.3.34, switch to startupitem-code

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14695 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 18, 2005
1 parent b413aa6 commit 7ecc721e43807469629153f012135612c0817fc8
Showing with 20 additions and 40 deletions.
  1. +20 −25 www/apache/Portfile
  2. +0 −15 www/apache/files/apache.sh
@@ -1,9 +1,8 @@
# $Id: Portfile,v 1.48 2005/06/27 19:57:45 mww Exp $
# $Id: Portfile,v 1.49 2005/10/18 20:20:30 mww Exp $

PortSystem 1.0
name apache
version 1.3.33
revision 3
version 1.3.34
categories www
platforms darwin freebsd
maintainers michaelm@opendarwin.org
@@ -17,24 +16,16 @@ long_description \
homepage http://httpd.apache.org/
master_sites apache:httpd/ \
http://archive.apache.org/dist/httpd/old/


distname ${name}_${version}
checksums ${distname}${extract.suffix} md5 3dfd2c3778f37a2dfc22b97417a61407
checksums md5 9978cc552b423f0015c1052d23ab619e

variant darwin {
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
if { ![variant_isset apache_layout] } {
configure.args-append --with-layout=FreeBSD --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run
configure.args-append --with-layout=FreeBSD --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/run
}
}

variant freebsd {
if { ![variant_isset apache_layout] } {
configure.args-append --with-layout=FreeBSD --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run
}
}

variant apache_layout {
configure.pre_args --prefix=${prefix}/apache
configure.args-append --with-layout=Apache --logfiledir=${prefix}/apache/var/log/httpd --runtimedir=${prefix}/apache/var/run
@@ -48,15 +39,20 @@ configure.args ${stdargs}

destroot.args root=${destroot}

post-patch {
if { [variant_isset apache_layout] } {
system "sed -e \"s=%%PREFIX%%=${prefix}/apache=g\" \
${filespath}/apache.sh >${workpath}/apache.sh"
} else {
system "sed -e \"s=%%PREFIX%%=${prefix}=g\" \
${filespath}/apache.sh >${workpath}/apache.sh"
}
}
startupitem.create yes
if { [variant_isset apache_layout] } {
startupitem.init \
"CTL=${prefix}/apache/bin/apachectl\nPID=${prefix}/apache/run/httpd.pid"
} else {
startupitem.init \
"CTL=${prefix}/sbin/apachectl\nPID=${prefix}/var/run/httpd.pid"
}
startupitem.start \
"\[ -x \${CTL} \] && \${CTL} start >/dev/null"
startupitem.stop \
"\[ -r \${PID} \] && \${CTL} stop >/dev/null"
startupitem.restart \
"\[ -x \${CTL} \] && \${CTL} restart >/dev/null"

post-destroot {
if { [variant_isset apache_layout] } {
@@ -70,6 +66,5 @@ post-destroot {
destroot.keepdirs ${destroot}${prefix}/var/log/httpd \
${destroot}${prefix}/var/run
}
xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d/
xinstall -m 644 ${workpath}/apache.sh ${destroot}${prefix}/etc/rc.d/
}
}

This file was deleted.

0 comments on commit 7ecc721

Please sign in to comment.
You can’t perform that action at this time.