1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Add itk MPM

mpm-itk allows you to run each of your vhost under a separate UID and GID
  WWW: http://home.samfundet.no/~sesse/mpm-itk/
- use LD_CONFIG
This commit is contained in:
Clement Laforet 2006-11-01 15:47:50 +00:00
parent f90b5ced2f
commit cd04e0e4c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176100
5 changed files with 1679 additions and 25 deletions

View File

@ -53,8 +53,7 @@ USE_PERL5= yes
USE_RC_SUBR= yes
USE_APACHE= common20
LIBTOOLFILES= configure
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${PREFIX}/lib/apache2
USE_LDCONFIG= ${PREFIX}/lib/apache2
USE_BZIP2= yes
CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \
@ -190,8 +189,6 @@ post-patch:
@${RM} -f ${WRKSRC}/docs/docroot/*.bak
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh
@${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr
@${RM} -f ${WRKSRC}/docs/conf/highperformance-std.conf
@${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \
@ -217,15 +214,11 @@ pre-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
install-startup-script:
.if !exists(${WRKDIR}/apache2libs.sh) || !exists(${WRKDIR}/apache2.sh)
.if !exists(${WRKDIR}/apache2.sh
@${MKDIR} ${WRKDIR}
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh
.endif
@${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup script."
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh
@${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/apache2.sh startup script."
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh

View File

@ -20,15 +20,19 @@ PKGNAMESUFFIX= -${SLAVE_PORT_MPM}
.else
. if ${WITH_MPM} != "prefork"
PKGNAMESUFFIX= -${WITH_MPM:L}
. if ${WITH_MPM:L} != "itk"
WITH_THREADS= yes
WITH_THREADS_MODULES= yes
WITHOUT_MODULES+= cgi
. endif
. if ${WITH_MPM:L} == "worker"
PLIST_SUB+= PREFORK="@comment " WORKER="" THREADPOOL="@comment "
. elif ${WITH_MPM:L} == "perchild"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
. elif ${WITH_MPM:L} == "threadpool"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL=""
. elif ${WITH_MPM:L} == "itk"
PLIST_SUB+= PREFORK="@comment " WORKER="@comment " THREADPOOL="@comment "
. else
IGNORE= "Unknown MPM: ${WITH_MPM}"
. endif

View File

@ -1,15 +0,0 @@
#!/bin/sh
case "$1" in
start)
/sbin/ldconfig -m %%PREFIX%%/lib/apache2
;;
stop)
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,6 @@
@unexec if cmp -s %D/etc/apache2/ssl.conf %D/%%EXAMPLESDIR%%/ssl-std.conf; then rm -f %D/etc/apache2/ssl.conf; fi
%%EXAMPLESDIR%%/ssl-std.conf
@exec [ -f %D/etc/apache2/ssl.conf ] || cp %D/%%EXAMPLESDIR%%/ssl-std.conf %D/etc/apache2/ssl.conf
etc/rc.d/000.apache2libs.sh
etc/rc.d/apache2.sh
include/apache2/ap_compat.h
include/apache2/ap_config.h