aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--russian/apache13-modssl/Makefile159
-rw-r--r--russian/apache13-modssl/distinfo2
-rw-r--r--russian/apache13-modssl/pkg-plist21
3 files changed, 145 insertions, 37 deletions
diff --git a/russian/apache13-modssl/Makefile b/russian/apache13-modssl/Makefile
index 8653d1c6e62e..6126d7302ea2 100644
--- a/russian/apache13-modssl/Makefile
+++ b/russian/apache13-modssl/Makefile
@@ -55,35 +55,110 @@ LIB_DEPENDS= mm.11:${PORTSDIR}/devel/mm
VERSION_APACHE= 1.3.26
VERSION_MODSSL= 2.8.10
-VERSION_RA= 30.14
+VERSION_RA= 30.15
+
+#
+# some defaults
+#
+
+DATADIR=${PREFIX}/www
+DOCUMENT_ROOT=${DATADIR}/data
+DEFAULT_PATH?=/bin:/usr/bin:${PREFIX}/bin
+
+#
+# suexec support
+#
+.if defined(WITH_APACHE_SUEXEC)
+
+APACHE_SUEXEC_DOCROOT?=${DOCUMENT_ROOT}
+APACHE_SUEXEC_USERDIR?=public_html
+
+SUEXEC_CONF= \
+ --enable-suexec \
+ --suexec-docroot=${APACHE_SUEXEC_DOCROOT} \
+ --suexec-caller=www \
+ --suexec-uidmin=1000 \
+ --suexec-gidmin=1000 \
+ --suexec-logfile=/var/log/httpd-suexec.log \
+ --suexec-userdir=${APACHE_SUEXEC_USERDIR} \
+ --suexec-safepath=${DEFAULT_PATH}
+
+.if defined(APACHE_SUEXEC_UMASK)
+SUEXEC_CONF+= --suexec-umask=${APACHE_SUEXEC_UMASK}
+.endif
+
+PLIST_SUB+= SUEXEC=""
+SUEXEC_MAN= suexec.8
+
+.else # WITH_APACHE_SUEXEC
+
+SUEXEC_CONF=
+PLIST_SUB+= SUEXEC="@comment "
+SUEXEC_MAN=
+
+.endif # WITH_APACHE_SUEXEC
+
+
+#
+# Configutre parameters
+#
-USE_PERL5= yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX} \
- --server-uid=www \
- --server-gid=www \
- --with-perl=${PERL} \
- --with-layout=${FILESDIR}/FreeBSD.layout:FreeBSD \
- --suexec-docroot=${PREFIX}/www/data \
- --without-confadjust \
- --enable-shared=remain \
- --enable-module=most \
- --enable-module=auth_db \
- --enable-module=ssl \
- --disable-shared=ssl \
- --enable-module=define \
- --disable-shared=define \
- --disable-module=auth_dbm
+CONFIGURE_ARGS= \
+ --prefix=${PREFIX} \
+ --server-uid=www \
+ --server-gid=www \
+ --with-perl=${PERL} \
+ --with-layout=${FILESDIR}/FreeBSD.layout:FreeBSD \
+ --without-confadjust
OPTIM= -DHARD_SERVER_LIMIT=512 \
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\" \
-DACCEPT_FILTER_NAME=\\"httpready\\"
-.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
-OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024
-CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
- -fexpensive-optimizations -ffast-math
+.if defined(WITH_DSO_MODULES)
+CONFIGURE_ARGS+= \
+ --enable-shared=max \
+ --disable-shared=so \
+ --disable-shared=charset \
+ --enable-module=most \
+ --enable-module=auth_db \
+ --enable-module=mmap_static \
+ --enable-module=define \
+ --disable-module=auth_dbm \
+ ${SUEXEC_CONF}
+
+PLIST_SUB+= DSO_MOD=""
+.else
+CONFIGURE_ARGS+= \
+ --enable-shared=remain \
+ --enable-module=most \
+ --enable-module=auth_db \
+ --enable-module=mmap_static \
+ --enable-module=define \
+ --disable-shared=define \
+ --enable-module=ssl \
+ --disable-shared=ssl \
+ --disable-module=auth_dbm \
+ ${SUEXEC_CONF}
+
+PLIST_SUB+= DSO_MOD="@comment "
+.endif
+
+OPTIM= -DDOCUMENT_LOCATION=\\"${DOCUMENT_ROOT}\\" \
+ -DDEFAULT_PATH=\\"${DEFAULT_PATH}\\"
+
+.if defined(APACHE_HARD_SERVER_LIMIT)
+OPTIM+= -DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}
+.else
+OPTIM+= -DHARD_SERVER_LIMIT=512
+.endif
+
+
+.if defined(APACHE_PERF_TUNING)
+OPTIM+= -DBUFFERED_LOGS
+CFLAGS+= -O6 -fomit-frame-pointer
.endif
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
@@ -94,29 +169,41 @@ CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
INSTALL_TARGET= install-quiet
-MAN1= dbmmanage.1 htdigest.1 htpasswd.1
-MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8
+MAN1= dbmmanage.1 htdigest.1 htpasswd.1
+MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \
+ ${SUEXEC_MAN}
TYPE= test
CRT=
KEY=
-pre-extract:
-.if defined(WITH_SUEXEC)
- @${ECHO} "Be sure to edit suexec specific arguments to configure in the Makefile."
-CONFIGURE_ARGS+=--enable-suexec \
- --suexec-caller=nobody \
- --suexec-logfile=/var/log/suexec.log \
- --suexec-uidmin=50000 \
- --suexec-gidmin=60000
-MAN8+= suexec.8
+pre-fetch:
+ @${ECHO_MSG} ""
+.if defined(WITH_DSO_MODULES)
+ @${ECHO_MSG} "Build all modules (except mod_so and mod_charest) as DSO."
.else
- @${ECHO} "Define WITH_SUEXEC to build with suexec support."
+ @${ECHO_MSG} "You could define WITH_DSO_MODULES to build all modules as DSO."
.endif
-
-.if defined(APACHE_CONFIGURE_ARGS)
-CONFIGURE_ARGS+= ${APACHE_CONFIGURE_ARGS}
+.if defined(APACHE_PERF_TUNING)
+ @${ECHO_MSG} "Build Apache for maximum performance."
+.else
+ @${ECHO_MSG} "You could define APACHE_PERF_TUNING to build Apache for maximum performace."
+.endif
+.if defined(APACHE_HARD_SERVER_LIMIT)
+ @${ECHO_MSG} "Build Apache with HARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}"
+.else
+ @${ECHO_MSG} "You could define APACHE_HARD_SERVER_LIMIT, default one is 512"
+.endif
+.if defined(WITH_APACHE_SUEXEC)
+ @${ECHO_MSG} "Build apache with suexec support"
+ @${ECHO_MSG} " suexec docroot: ${APACHE_SUEXEC_DOCROOT}"
+ @${ECHO_MSG} " suexec userdir: ${APACHE_SUEXEC_USERDIR}"
+ @${ECHO_MSG} " suexec safepath: ${DEFAULT_PATH}"
+ @${ECHO_MSG} " These values could be defined as APACHE_SUEXEC_DOCROOT, APACHE_SUEXEC_USERDIR and DEFAULT_PATH."
+.else
+ @${ECHO_MSG} "You could define WITH_APACHE_SUEXEC to build suexec support."
.endif
+ @${ECHO_MSG} ""
pre-patch:
@cd ${WRKDIR}/apache_${VERSION_APACHE} \
diff --git a/russian/apache13-modssl/distinfo b/russian/apache13-modssl/distinfo
index a6fb6190669e..ba78bbbe0b61 100644
--- a/russian/apache13-modssl/distinfo
+++ b/russian/apache13-modssl/distinfo
@@ -1,3 +1,3 @@
MD5 (apache_1.3.26.tar.gz) = 52e9b875597a208fca9d393e710087b6
MD5 (mod_ssl-2.8.10-1.3.26.tar.gz) = 11260700ab52fb7ff54a25f14052eed4
-MD5 (patches_1.3.26rusPL30.14.tar.gz) = 6fbe1a4dc2b14911dc1bbe9b22e639bd
+MD5 (patches_1.3.26rusPL30.15.tar.gz) = 5ccfb76804631e4cf1c9df71eb1f96e2
diff --git a/russian/apache13-modssl/pkg-plist b/russian/apache13-modssl/pkg-plist
index fbc05efaa58f..68fa14bfa00c 100644
--- a/russian/apache13-modssl/pkg-plist
+++ b/russian/apache13-modssl/pkg-plist
@@ -245,17 +245,38 @@ libexec/apache/mod_expires.so
libexec/apache/mod_headers.so
libexec/apache/mod_info.so
libexec/apache/mod_mime_magic.so
+libexec/apache/mod_mmap_static.so
libexec/apache/mod_rewrite.so
libexec/apache/mod_speling.so
libexec/apache/mod_unique_id.so
libexec/apache/mod_usertrack.so
libexec/apache/mod_vhost_alias.so
+%%DSO_MOD%%libexec/apache/mod_access.so
+%%DSO_MOD%%libexec/apache/mod_actions.so
+%%DSO_MOD%%libexec/apache/mod_alias.so
+%%DSO_MOD%%libexec/apache/mod_asis.so
+%%DSO_MOD%%libexec/apache/mod_auth.so
+%%DSO_MOD%%libexec/apache/mod_autoindex.so
+%%DSO_MOD%%libexec/apache/mod_cgi.so
+%%DSO_MOD%%libexec/apache/mod_define.so
+%%DSO_MOD%%libexec/apache/mod_dir.so
+%%DSO_MOD%%libexec/apache/mod_env.so
+%%DSO_MOD%%libexec/apache/mod_imap.so
+%%DSO_MOD%%libexec/apache/mod_include.so
+%%DSO_MOD%%libexec/apache/mod_log_config.so
+%%DSO_MOD%%libexec/apache/mod_mime.so
+%%DSO_MOD%%libexec/apache/mod_negotiation.so
+%%DSO_MOD%%libexec/apache/mod_setenvif.so
+%%DSO_MOD%%libexec/apache/libssl.so
+%%DSO_MOD%%libexec/apache/mod_status.so
+%%DSO_MOD%%libexec/apache/mod_userdir.so
sbin/ab
sbin/apachectl
sbin/apxs
sbin/httpd
sbin/logresolve
sbin/rotatelogs
+%%SUEXEC%%sbin/suexec
share/doc/apache/apache_pb.gif
share/doc/apache/ra-powered.gif
@exec mkdir -p %D/www