Skip to content
Permalink
Browse files

Version update and activate_server variant fix

Bug:            https://trac.macports.org/ticket/738
Submitted by:   Benoit
Reviewed by:    Michael Maibaum
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3110 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Michael Maibaum
Michael Maibaum committed Jul 31, 2003
1 parent a528e7f commit 9e0cffc30320ebc67f4722b02a1385d6fd5a5b17
Showing with 28 additions and 29 deletions.
  1. +28 −29 www/apache/Portfile
@@ -1,8 +1,8 @@
# $Id: Portfile,v 1.27 2003/06/02 09:39:31 michaelm Exp $
# $Id: Portfile,v 1.28 2003/07/31 18:22:07 michaelm Exp $

PortSystem 1.0
name apache
version 1.3.27
version 1.3.28
revision 1.0
categories www
platforms darwin freebsd
@@ -20,7 +20,7 @@ master_sites http://www.tux.org/pub/net/apache/dist/httpd/ \


distname ${name}_${version}
checksums ${distname}${extract.sufx} md5 65b89365a65dcad71d4402b4862beeaa
checksums ${distname}${extract.sufx} md5 2cdece7b4881d541e072de6a2b65db77
configure.pre_args --prefix=${prefix}/${name}-${version}
configure.args --with-layout=FreeBSD --server-uid=www \
--server-gid=www --enable-module=most \
@@ -31,27 +31,12 @@ configure.args --with-layout=FreeBSD --server-uid=www \

install.args root=${destroot}

post-install { file mkdir ${prefix}/${name}-${version}/var/log/httpd
file mkdir ${prefix}/${name}-${version}/var/run
}

variant activate_server {
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}-${version}=g\" \
${filespath}/apache.sh >${workpath}/apache.sh"
}



post-install { file mkdir ${prefix}/${name}-${version}/var/log/httpd
file mkdir ${prefix}/${name}-${version}/var/run
file mkdir ${prefix}/etc/rc.d/
system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \
${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd"
system "install -bC -o root ${workpath}/apache.sh \
${destroot}${prefix}/etc/rc.d/"
}
}
${filespath}/apache.sh >${workpath}/apache.sh"
}
}

variant mod_perl {

@@ -84,16 +69,30 @@ variant mod_perl {
INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \
root=${destroot}

post-install { file mkdir ${prefix}/var/log/httpd ${prefix}/var/run
system "touch ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd \
${destroot}${prefix}/${name}-${version}/var/run/.turd"
cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv .packlist.new .packlist"
}

}

post-install {

file mkdir ${prefix}/${name}-${version}/var/log/httpd
file mkdir ${prefix}/${name}-${version}/var/run

system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \
${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd"

if { [variant_isset activate_server]} {
file mkdir ${destroot}${prefix}/etc/rc.d/
system "install -bC -o root ${workpath}/apache.sh \
${destroot}${prefix}/etc/rc.d/"
}

if { [variant_isset mod_perl]} {
cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv .packlist.new .packlist"
}
}


long_description \
Apache is an HTTP server designed as a plug-in replacement for \
the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \

0 comments on commit 9e0cffc

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