Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2002 18:17:15 +0400 (MSD)
From:      "Lev A. Serebryakov" <lev@serebryakov.spb.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40188: [MAINTAINER UPDATE] Update for port russian/apache13-modssl to version 1.3.26PL30.15+2.8.10
Message-ID:  <200207041417.g64EHFa62976@ftp.translate.ru>

next in thread | raw e-mail | index | archive | help

>Number:         40188
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] Update for port russian/apache13-modssl to version 1.3.26PL30.15+2.8.10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 04 07:20:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lev A. Serebryakov <lev@serebryakov.spb.ru>
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:

System: FreeBSD freebsd.sereb.net 4.4-STABLE FreeBSD 4.4-STABLE #1: Sat Dec 8 13:48:40 MSK 2001 root@freebsd.sereb.net:/usr/obj/usr/src/sys/LEVMAIL i386
Ports collection: 4 Jul 2002

>Description:

  This PR updates Russian Apache + mod_ssl to latest versions of:
    Apache http server: 1.3.26
    Russian patch (RA): 30.15
    mod_ssl:            2.8.10

  Also, this PR adds support for building pure-DSO version and
  building of SUEXEC like www/apache13 port.

>How-To-Repeat:
	

>Fix:

diff -ruN apache13-modssl.orig/Makefile apache13-modssl/Makefile
--- apache13-modssl.orig/Makefile	Thu Jul  4 16:33:40 2002
+++ apache13-modssl/Makefile	Thu Jul  4 17:53:33 2002
@@ -55,35 +55,110 @@
 
 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 @@
 
 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 -ruN apache13-modssl.orig/distinfo apache13-modssl/distinfo
--- apache13-modssl.orig/distinfo	Thu Jul  4 16:33:40 2002
+++ apache13-modssl/distinfo	Thu Jul  4 16:38:16 2002
@@ -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 -ruN apache13-modssl.orig/pkg-plist apache13-modssl/pkg-plist
--- apache13-modssl.orig/pkg-plist	Thu Jul  4 16:33:40 2002
+++ apache13-modssl/pkg-plist	Thu Jul  4 17:27:54 2002
@@ -245,17 +245,38 @@
 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
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207041417.g64EHFa62976>