1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Use user and group "www"

- fix PLIST
- add patch from ports/36363 (from ryan@servercity.com)
- verify ports/36361
- fix ports/36364
This commit is contained in:
Dirk Meyer 2003-01-27 17:05:36 +00:00
parent 9222584b28
commit b6f8a04382
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74097
4 changed files with 40 additions and 14 deletions

View File

@ -9,7 +9,7 @@
PORTNAME= apache+ssl
PORTVERSION= ${APACHE_VERSION}.${APACHE_SSL_VERSION}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www security
MASTER_SITES= http://www.apache.org/dist/httpd/ \
ftp://src.doc.ic.ac.uk/packages/apache/dist/ \
@ -58,7 +58,8 @@ CFLAGS+= -I${OPENSSLINC}/openssl
HAS_CONFIGURE= yes
CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--server-gid=nogroup \
--server-uid=www \
--server-gid=www \
--with-perl=${PERL} \
--with-layout=GNU \
--suexec-docroot=${PREFIX}/www/data \
@ -96,9 +97,11 @@ post-patch:
@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./FixPatch ${OPENSSLBASE}
certificate:
-${MKDIR} ${PREFIX}/etc/apache/certs
@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
cd ${WRKSRC}/src; ${MAKE} ${MAKE_ENV} $@; \
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem; \
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem \
${PREFIX}/etc/apache/certs/cert.pem; \
else \
${ECHO} "You must create the file ${OPENSSLDIR}/openssl.cnf first."; \
fi

View File

@ -1,10 +0,0 @@
--- configure.org Sun Feb 13 11:11:46 2000
+++ configure Sun Feb 13 11:12:16 2000
@@ -366,8 +366,8 @@
##
## Initialize server user ID and group ID variables
##
-conf_user=""
-conf_group=""
+conf_user="nobody"
+conf_group="nogroup"

View File

@ -0,0 +1,32 @@
--- conf/httpd.conf-dist.orig Wed Sep 4 06:39:41 2002
+++ conf/httpd.conf-dist Mon Jan 27 17:29:26 2003
@@ -943,6 +943,29 @@
#</IfModule>
# End of proxy directives.
+# Note that all SSL options can apply to virtual hosts.
+# Disable SSL. Useful in combination with virtual hosts. Note that SSLEnable is
+# now also supported.
+#SSLDisable
+SSLEnable
+
+# Set the path for the global cache server executable.
+# If this facility gives you trouble, you can disable it by setting
+# CACHE_SESSIONS to FALSE in apache_ssl.c
+SSLCacheServerPath @@ServerRoot@@/sbin/gcache
+
+# Set the global cache server port number, or path. If it is a path, a Unix
+# domain socket is used. If a number, a TCP socket.
+SSLCacheServerPort logs/gcache_port
+#SSLCacheServerPort 1234
+
+# Directory for the cache server to run in (in case of crashes). Optional.
+SSLCacheServerRunDir /usr/tmp
+
+# Set the session cache timeout, in seconds (set to 15 for testing, use a
+# higher value in real life)
+SSLSessionCacheTimeout 15
+
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your

View File

@ -1,10 +1,11 @@
bin/checkgid
bin/dbmmanage
bin/htdigest
bin/htpasswd
@unexec if cmp -s %D/etc/apache/access.conf %D/etc/apache/access.conf.default; then rm -f %D/etc/apache/access.conf; fi
etc/apache/access.conf.default
@exec [ -f %B/access.conf ] || cp %B/%f %B/access.conf
@unexec if cmp -s %D/etc/apache/httpsd.conf %D/etc/apache/httpsd.conf.default; then rm -f %D/etc/apache/httpd.conf; fi
@unexec if cmp -s %D/etc/apache/httpsd.conf %D/etc/apache/httpsd.conf.default; then rm -f %D/etc/apache/httpsd.conf; fi
etc/apache/httpsd.conf.default
@exec [ -f %B/httpsd.conf ] || cp %B/%f %B/httpsd.conf
@unexec if cmp -s %D/etc/apache/magic %D/etc/apache/magic.default; then rm -f %D/etc/apache/magic; fi