diff options
author | 2006-07-29 20:08:23 +0000 | |
---|---|---|
committer | 2006-07-29 20:08:23 +0000 | |
commit | ceedcdc6c1479758a3681d2e8d3b1195349f4185 (patch) | |
tree | 5b00e9d9377d62368c4fb4b69f69d1a6ec6159c6 /net-www | |
parent | ppc stable, bug #141842 (diff) | |
download | historical-ceedcdc6c1479758a3681d2e8d3b1195349f4185.tar.gz historical-ceedcdc6c1479758a3681d2e8d3b1195349f4185.tar.bz2 historical-ceedcdc6c1479758a3681d2e8d3b1195349f4185.zip |
Bump version, bug 141986.
Package-Manager: portage-2.1.1_pre4
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/apache/ChangeLog | 7 | ||||
-rw-r--r-- | net-www/apache/apache-1.3.37.ebuild | 306 | ||||
-rw-r--r-- | net-www/apache/files/digest-apache-1.3.37 | 12 | ||||
-rw-r--r-- | net-www/mod_ssl/ChangeLog | 7 | ||||
-rw-r--r-- | net-www/mod_ssl/files/digest-mod_ssl-2.8.28 | 3 | ||||
-rw-r--r-- | net-www/mod_ssl/mod_ssl-2.8.28.ebuild | 75 |
6 files changed, 408 insertions, 2 deletions
diff --git a/net-www/apache/ChangeLog b/net-www/apache/ChangeLog index f5909fa261dd..995340184cfd 100644 --- a/net-www/apache/ChangeLog +++ b/net-www/apache/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-www/apache # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.488 2006/07/28 12:35:24 vericgar Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.489 2006/07/29 20:08:22 kloeri Exp $ + +*apache-1.3.37 (29 Jul 2006) + + 29 Jul 2006; Bryan Østergaard <kloeri@gentoo.org> +apache-1.3.37.ebuild: + Bump version, bug 141986. *apache-2.2.2-r1 (26 Jul 2006) *apache-2.0.58-r2 (26 Jul 2006) diff --git a/net-www/apache/apache-1.3.37.ebuild b/net-www/apache/apache-1.3.37.ebuild new file mode 100644 index 000000000000..c3b48f23663c --- /dev/null +++ b/net-www/apache/apache-1.3.37.ebuild @@ -0,0 +1,306 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-1.3.37.ebuild,v 1.1 2006/07/29 20:08:23 kloeri Exp $ + +inherit eutils fixheadtails multilib + +# latest gentoo apache files +GENTOO_PATCHNAME="gentoo-apache-${PVR}" +GENTOO_PATCHSTAMP="20060729" +GENTOO_DEVSPACE="kloeri" +GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" + +# The mod_ssl archive is only for providing the EAPI patch in here. +# You should install the net-www/mod_ssl package for the actual DSO. +mod_ssl_ver=2.8.28 +lingerd_ver=0.94 + +DESCRIPTION="The Apache Web Server" +HOMEPAGE="http://httpd.apache.org" +SRC_URI="mirror://apache/httpd/apache_${PV}.tar.gz + ssl? ( ftp://ftp.modssl.org/source/mod_ssl-${mod_ssl_ver}-${PV}.tar.gz ) + lingerd? ( http://images.iagora.com/media/software/lingerd/lingerd-${lingerd_ver}.tar.gz ) + http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="1" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="doc ssl pam lingerd no-suexec static-modules selinux" + +DEPEND="dev-lang/perl + || ( sys-libs/gdbm ~sys-libs/db-1.85 ) + sys-libs/db + >=dev-libs/mm-1.1.3 + >=dev-libs/expat-1.95.2 + net-www/gentoo-webroot-default + app-misc/mime-types + selinux? ( sec-policy/selinux-apache ) + lingerd? ( =net-www/lingerd-${lingerd_ver} )" + +# so leave it out until it's available +PDEPEND="ssl? ( =net-www/mod_ssl-${mod_ssl_ver} )" + +S=${WORKDIR}/${PN}_${PV} + +pkg_setup() { + # setup apache user and group + enewgroup apache 81 + enewuser apache 81 -1 /var/www apache +} + +src_unpack() { + unpack ${A} || die + cd ${S} || die + + # Use correct multilib libdir in gentoo patches + sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ + ${GENTOO_PATCHDIR}/{conf/httpd.conf,init/*,patches/config.layout} \ + || die "sed failed" + + # patch codes: + # 00-29 patches to work with gentoo + # 30-89 USE-flag patches + # 90-99 security patches + EPATCH_SUFFIX="patch" + epatch ${GENTOO_PATCHDIR}/patches/[0-2]* + #epatch ${GENTOO_PATCHDIR}/patches/9* + + # setup the filesystem layout config + cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout + sed -i -e 's:version:${PF}:g' config.layout + + if useq pam; then + epatch ${GENTOO_PATCHDIR}/patches/31_all_gentoo_suexec_pam.patch || die "pam patch failed" + fi + + # fix obsolete 'head -1' and 'tail -1' calls + ht_fix_file src/Configure src/helpers/getuid.sh src/helpers/buildinfo.sh src/helpers/fmn.sh + + # setup mod_ssl eapi + if useq ssl; then + local myssl + myssl=${WORKDIR}/mod_ssl-${mod_ssl_ver}-${PV} + cp ${myssl}/pkg.eapi/*.h src/include + cp ${myssl}/pkg.eapi/*.c src/ap + epatch ${myssl}/pkg.eapi/eapi.patch || die "failed to setup mod_ssl eapi" + fi + + # set a reasonable MM_CORE_PATH location.. + sed -i -e 's:logs/mm:/var/cache/apache-mm/mm:' src/include/httpd.h + + if useq lingerd; then + local mylingerd=${WORKDIR}/lingerd-${lingerd_ver} + cp ${mylingerd}/apache-1.3/ap_lingerd.c ${mylingerd}/li_config.h src/main + cd src + if useq ssl; then + epatch ${mylingerd}/apache-1.3/aplinger-ssl.diff + else + epatch ${mylingerd}/apache-1.3/aplinger.diff + fi + cd .. + fi +} + +src_compile() { + local myconf + + setup_apache_vars + + select_modules_config || die "determining modules" + + if ! useq no-suexec; then + myconf="${myconf} + --enable-suexec + --suexec-uidmin=1000 \ + --suexec-gidmin=100 \ + --suexec-caller=apache \ + --suexec-userdir=public_html \ + --suexec-docroot=/var/www \ + --suexec-safepath="/usr/local/bin:/usr/bin:/bin" \ + --suexec-logfile=/var/log/apache/suexec_log" + fi + + if useq ssl; then + myconf="${myconf} --enable-rule=EAPI" + fi + + OPTIM="${MY_CFLAGS} -DHARD_SERVER_LIMIT=${HARD_SERVER_LIMIT:=512} \ + -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ + LIBS="-ldb -lgdbm -lgdbm_compat -lpthread" \ + EAPI_MM=SYSTEM \ + ./configure \ + --with-layout=Gentoo \ + --target=apache \ + --server-uid=apache \ + --server-gid=apache \ + --with-perl=/usr/bin/perl \ + --enable-rule=SHARED_CHAIN \ + ${MY_BUILTINS} ${myconf} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log" + + emake || die "problem compiling apache" + + # build ssl version of apache bench (ab-ssl) + if useq ssl; then + cd src/support + rm -f ab ab.o + make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl -I/usr/include/openssl -L/usr/$(get_libdir)" || die + mv ab ab-ssl + rm -f ab.o + make ab || die + fi +} + +src_install() { + # general install + make install-quiet root=${D} || die + dodoc ABOUT_APACHE Announcement INSTALL LICENSE README* ${GENTOO_PATCHDIR}/docs/robots.txt + + # protect the suexec binary + if ! useq no-suexec; then + fowners root:apache /usr/sbin/suexec + fperms 4710 /usr/sbin/suexec + fi + + # apxs needs this to pickup the right lib for install + dosym /usr/$(get_libdir) /usr/$(get_libdir)/apache/lib + dosym /var/log/apache /usr/$(get_libdir)/apache/logs + dosym /etc/apache /usr/$(get_libdir)/apache/conf + + # nice support scripts + exeinto /usr/sbin + for i in apachelogserverstatus apachesplitlogfile; do + doexe ${GENTOO_PATCHDIR}/scripts/${i} + done + + # some more scripts + for i in split-logfile logresolve.pl log_server_status; do + doexe ${S}/src/support/${i} + done + + # the ssl version of apache bench + if useq ssl; then + doexe src/support/ab-ssl + fi + + # drop in a convenient link to the manual + if useq doc; then + insinto /etc/apache/modules.d + doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf + sed -i -e "s:1.3.32:${PVR}:" ${D}/etc/apache/modules.d/00_apache_manual.conf + else + rm -rf ${D}/usr/share/doc/${PF}/manual + fi + + # tidy up + cd ${D} + dodoc etc/apache/*.default + rm -f etc/apache/*.default + rm -f etc/apache/*.conf + rm -f etc/apache/mime.types + + # we DEPEND on net-www/gentoo-webroot-default for sharing this by now + rm -rf var/www/localhost + + # config files + insinto /etc/conf.d + newins ${GENTOO_PATCHDIR}/init/apache.confd apache + + exeinto /etc/init.d + newexe ${GENTOO_PATCHDIR}/init/apache.initd apache + + insinto /etc/apache + doins ${GENTOO_PATCHDIR}/conf/apache-builtin-mods + doins ${GENTOO_PATCHDIR}/conf/httpd.conf + + insinto /etc/apache/vhosts.d + doins ${GENTOO_PATCHDIR}/conf/vhosts.d/00_default_vhost.conf + + keepdir /etc/apache/vhosts.d + keepdir /etc/apache/modules.d + + # Added by Jason Wever <weeve@gentoo.org> + # A little sedfu to fix bug #7172 for sparc64s + if [ ${ARCH} = "sparc" ]; then + sed -i -e '15a\AcceptMutex fcntl' ${D}/etc/apache/httpd.conf + fi + + if useq lingerd; then + sed -i 's:\(need net.*\):\1 lingerd:g' ${D}/etc/init.d/apache + fi + + if useq pam; then + insinto /etc/pam.d + newins ${GENTOO_PATCHDIR}/patches/suexec.pam suexec + fi + + # empty dirs + for i in /var/log/apache /var/cache/apache /var/cache/apache-mm; do + keepdir ${i} + fowners apache:apache ${i} + fperms 755 ${i} + done +} + +pkg_postinst() { + + if has_version '<net-www/apache-1.3.33-r10' ; then + einfo "Configuration locations have changed, you will need to migrate" + einfo "your configuration from /etc/apache/conf/apache.conf and" + einfo "/etc/apache/conf/commonapache.conf to /etc/apache/httpd.conf." + einfo + einfo "Apache now checks for the old configuration and refuses to start" + einfo "if it exists. You must remove the old configuration first" + einfo + einfo "For more information, see" + einfo " http://www.gentoo.org/doc/en/apache-upgrading.xml" + einfo + fi + + einfo "If you want modules to be installed for this version of apache" + einfo "then please ensure that apache2 is not in your USE flags. To remove" + einfo "the USE-flag, add '-apache2' to USE in /etc/make.conf." + +} + +setup_apache_vars() { + MY_CFLAGS="${CFLAGS}" + unset CFLAGS + unset CXXFLAGS + + # standard location for Gentoo Linux + DATADIR="${DATADIR:-/var/www/localhost}" + einfo "DATADIR is set to: ${DATADIR}" +} + +parse_modules_config() { + local name="" + local disable="" + [ -f ${1} ] || return 1 + + for i in `cat $1 | sed "s/^#.*//"` ; do + if [ $i == "-" ]; then + disable="true" + elif [ -z "$name" ] && [ ! -z "`echo $i | grep "mod_"`" ]; then + name=`echo $i | sed "s/mod_//"` + elif [ "$disable" ] && ( [ $i == "static" ] || [ $i == "shared" ] ); then + MY_BUILTINS="${MY_BUILTINS} --disable-module=$name" + name="" ; disable="" + elif [ $i == "static" ] || useq static-modules; then + MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --disable-shared=$name" + name="" ; disable="" + elif [ $i == "shared" ]; then + MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --enable-shared=$name" + name="" ; disable="" + fi + done + + einfo "${1} options:\n${MY_BUILTINS}" +} + +select_modules_config() { + parse_modules_config /etc/apache/apache-builtin-mods || \ + parse_modules_config ${GENTOO_PATCHDIR}/conf/apache-builtin-mods || \ + return 1 +} + +# vim:ts=4 diff --git a/net-www/apache/files/digest-apache-1.3.37 b/net-www/apache/files/digest-apache-1.3.37 new file mode 100644 index 000000000000..fe89016d9133 --- /dev/null +++ b/net-www/apache/files/digest-apache-1.3.37 @@ -0,0 +1,12 @@ +MD5 b278f0969a9ccadeb781316e79e3520f apache_1.3.37.tar.gz 2665370 +RMD160 de84adf2fd0a745c32072ca5dc5e1374cfcf04f7 apache_1.3.37.tar.gz 2665370 +SHA256 9f27889bfbf418b987a892160e52fd217d66391df2870f3ecac877ef565c4bfc apache_1.3.37.tar.gz 2665370 +MD5 a63730fecf4a5b1c40a6a05c5c4f5464 gentoo-apache-1.3.37-20060729.tar.bz2 27552 +RMD160 a11de53cb8e6251caae93c194fd9c99a86d1802b gentoo-apache-1.3.37-20060729.tar.bz2 27552 +SHA256 8aff068a743f6f658afe94cef29d2ce3a26a4092ec22cb5e9fe205300c859d0d gentoo-apache-1.3.37-20060729.tar.bz2 27552 +MD5 6401015bafad4f44fdf8a9a1795d9258 lingerd-0.94.tar.gz 33938 +RMD160 2d7363b763a68c0c7acdadc23779929f4d02153f lingerd-0.94.tar.gz 33938 +SHA256 632030f9c1b9e8f817ee19bad74988f3dce7f6ec617677ad5a522e8d491382a0 lingerd-0.94.tar.gz 33938 +MD5 5e9486a86fcd4efef395f58fd795aaea mod_ssl-2.8.28-1.3.37.tar.gz 820417 +RMD160 6b12c0a52fe0fbb7b91221d1cb37f93fbe59bb11 mod_ssl-2.8.28-1.3.37.tar.gz 820417 +SHA256 76437105b5b5593a7dbd8ee45af417233897dcaf910cbc337a68b0db24e35489 mod_ssl-2.8.28-1.3.37.tar.gz 820417 diff --git a/net-www/mod_ssl/ChangeLog b/net-www/mod_ssl/ChangeLog index 807e5aca878f..2da4b74bf0a7 100644 --- a/net-www/mod_ssl/ChangeLog +++ b/net-www/mod_ssl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-www/mod_ssl # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/mod_ssl/ChangeLog,v 1.109 2006/06/05 03:22:38 vericgar Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/mod_ssl/ChangeLog,v 1.110 2006/07/29 20:04:34 kloeri Exp $ + +*mod_ssl-2.8.28 (29 Jul 2006) + + 29 Jul 2006; Bryan Østergaard <kloeri@gentoo.org> +mod_ssl-2.8.28.ebuild: + Bump version, bug 141986. 05 Jun 2006; Michael Stewart <vericgar@gentoo.org> -mod_ssl-2.8.21.ebuild, -mod_ssl-2.8.22.ebuild, -mod_ssl-2.8.22-r1.ebuild, -mod_ssl-2.8.24.ebuild, diff --git a/net-www/mod_ssl/files/digest-mod_ssl-2.8.28 b/net-www/mod_ssl/files/digest-mod_ssl-2.8.28 new file mode 100644 index 000000000000..7b48f2a3160d --- /dev/null +++ b/net-www/mod_ssl/files/digest-mod_ssl-2.8.28 @@ -0,0 +1,3 @@ +MD5 5e9486a86fcd4efef395f58fd795aaea mod_ssl-2.8.28-1.3.37.tar.gz 820417 +RMD160 6b12c0a52fe0fbb7b91221d1cb37f93fbe59bb11 mod_ssl-2.8.28-1.3.37.tar.gz 820417 +SHA256 76437105b5b5593a7dbd8ee45af417233897dcaf910cbc337a68b0db24e35489 mod_ssl-2.8.28-1.3.37.tar.gz 820417 diff --git a/net-www/mod_ssl/mod_ssl-2.8.28.ebuild b/net-www/mod_ssl/mod_ssl-2.8.28.ebuild new file mode 100644 index 000000000000..dd292d7bec00 --- /dev/null +++ b/net-www/mod_ssl/mod_ssl-2.8.28.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/mod_ssl/mod_ssl-2.8.28.ebuild,v 1.1 2006/07/29 20:04:34 kloeri Exp $ + +inherit apache-module + +MY_P=${P}-1.3.37 + +DESCRIPTION="An SSL module for the Apache 1.3 Web server" +HOMEPAGE="http://www.modssl.org/" +SRC_URI="http://www.modssl.org/source/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND=">=dev-libs/openssl-0.9.6k" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +APACHE1_MOD_FILE="${S}/pkg.sslmod/libssl.so" +APACHE1_MOD_CONF="10_${PN}" +APACHE1_MOD_DEFINE="SSL" + +VHOSTFILE="default-ssl" + +DOCFILES="ANNOUNCE CHANGES CREDITS LICENSE NEWS README*" + +need_apache1 + +src_unpack() { + unpack ${A} || die + cd ${S} || die + + # proper path to openssl + sed -i -e 's:^\(openssl=\).*:\1"/usr/bin/openssl":' pkg.contrib/cca.sh +} + +src_compile() { + if has_version '=sys-libs/gdbm-1.8.3*' ; then + myconf="--enable-rule=SSL_SDBM" + fi + + SSL_BASE=SYSTEM \ + ./configure \ + --with-apxs=${APXS1} ${myconf} || die "bad ./configure" + make || die "compile problem" +} + +src_install() { + apache1_src_install + + insinto ${APACHE1_VHOSTDIR} + doins ${FILESDIR}/${VHOSTFILE}.conf + + exeinto /usr/lib/ssl/mod_ssl + doexe pkg.contrib/*.sh ${FILESDIR}/gentestcrt.sh + + dodir /usr/share/doc/${PF}/html + cp -pPR pkg.ssldoc/* ${D}/usr/share/doc/${PF}/html +} + +pkg_postinst() { + install -d -o root -g root -m0755 ${ROOT}${APACHE1_CONFDIR}/ssl + + apache1_pkg_postinst + + cd ${ROOT}${APACHE1_CONFDIR}/ssl + einfo "Generating self-signed test certificate in ${APACHE1_CONFDIR}/ssl..." + einfo "(Ignore any message from the yes command below)" + yes "" | ${ROOT}/usr/lib/ssl/mod_ssl/gentestcrt.sh >/dev/null 2>&1 + einfo +} |