Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 7372 Details for
Bug 14040
Subversion 0.16.1 ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Apache 2.0.44 developer version ebuild.
apache-2.0.44_beta.ebuild (text/plain), 9.12 KB, created by
Alain Penders (RETIRED)
on 2003-01-16 10:26:51 UTC
(
hide
)
Description:
Apache 2.0.44 developer version ebuild.
Filename:
MIME Type:
Creator:
Alain Penders (RETIRED)
Created:
2003-01-16 10:26:51 UTC
Size:
9.12 KB
patch
obsolete
># Copyright 1999-2002 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/net-www/apache/apache-2.0.43-r1.ebuild,v 1.4 2002/12/15 11:58:45 bjb Exp $ > >inherit eutils > >DESCRIPTION="Apache Web Server, Version 2.0.x" >HOMEPAGE="http://www.apache.org/" > >S="${WORKDIR}/httpd-2.0.44-dev" >SRC_URI="http://subversion.tigris.org/files/documents/15/2609/httpd-2.0.44-dev.tar.gz > http://www.rexorient.com/photos/${P}-gentoo.diff.bz2" >KEYWORDS="~x86 ~ppc ~alpha" >LICENSE="Apache-1.1" >SLOT="2" > >DEPEND="virtual/glibc sys-libs/db sys-devel/perl > >=sys-libs/zlib-1.1.4 > >=sys-libs/gdbm-1.8 > >=dev-libs/expat-1.95.2 > >=dev-libs/openssl-0.9.6e" ># ldap? =net-nds/openldap-2* >#IUSE="ldap" >IUSE="" > >src_unpack() { > unpack ${A} || die > cd ${S} || die > epatch ../${P}-gentoo.diff > > #give it the stamp > perl -pi -e 's|" PLATFORM "|Gentoo/Linux|;' server/core.c > #fix perl with perl! > find -type f | xargs perl -pi -e \ > "s|/usr/local/bin/perl|/usr/bin/perl|g; \ > s|/usr/local/bin/perl5|/usr/bin/perl|g; \ > s|/path/to/bin/perl|/usr/bin/perl|g;" > #dont want this cruft in /usr/bin > perl -pi -e 's|\@exp_bindir\@(/envvars)|\@exp_installbuilddir\@\1|;' \ > support/apachectl.in > > #allow users to customize their data directory by setting the > #home directory of the 'apache' user elsewhere. > local datadir=`grep ^apache: /etc/passwd | cut -d: -f6` > if [ -z "$datadir" ] > then > datadir="/home/httpd" > eerror "Please create the apache user and set his home" > eerror "directory to your desired datadir location." > eerror "Defaulting to \"/home/httpd\"." > else > einfo "$datadir is your Apache2 data directory ..." > fi > > local prefix=/usr > echo "" >>config.layout > cat >>config.layout <<-EOF > <Layout Gentoo> > prefix: ${prefix} > exec_prefix: ${prefix} > bindir: ${prefix}/bin > sbindir: ${prefix}/sbin > libdir: ${prefix}/lib > libexecdir: ${prefix}/lib/apache2 > mandir: ${prefix}/share/man > infodir: ${prefix}/share/info > includedir: ${prefix}/include/apache2 > installbuilddir: ${prefix}/lib/apache2/build > datadir: ${datadir} > errordir: ${datadir}/error > iconsdir: ${datadir}/icons > htdocsdir: ${datadir}/htdocs > cgidir: ${datadir}/cgi-bin > manualdir: /usr/share/doc/${PF}/manual > sysconfdir: /etc/apache2/conf > localstatedir: /var > runtimedir: /var/run > logfiledir: /var/log/apache2 > proxycachedir: /var/cache/apache2 > </Layout> > EOF > > ./buildconf || die >} > >src_compile() { ># local myconf ># use ldap && myconf="--with-ldap --enable-auth-ldap=shared \ ># --enable-ldap=shared" > select_modules_config || die "determining modules" > > SSL_BASE="SYSTEM" \ > ./configure \ > --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \ > --with-suexec-logfile=/var/log/apache2/suexec_log \ > --with-suexec-bin=/usr/sbin/suexec2 \ > --with-suexec-userdir=public_html \ > --with-suexec-caller=apache \ > --with-suexec-docroot=/home \ > --with-suexec-uidmin=1000 \ > --with-suexec-gidmin=100 \ > --with-suexec-umask=077 \ > --enable-suexec=shared \ > \ > ${MY_BUILTINS} \ > \ > --with-perl=/usr/bin/perl \ > --with-expat=/usr \ > --with-ssl=/usr \ > --with-z=/usr \ > --with-port=80 \ > --with-mpm=${MPM:=prefork} \ > --enable-layout=Gentoo \ > --with-program-name=apache2 \ > --host=${CHOST} ${myconf} || die "bad ./configure" > #--with-mpm={worker|prefork|perchild|leader|threadpool} > > emake || die "problem compiling Apache2 :(" > > #build ssl version of apache bench (ab-ssl) > cd support; rm -f ab .libs/ab ab.lo ab.o > make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl \ > -I/usr/include/openssl -L/usr/lib" || die > mv ab ab-ssl; mv .libs/ab .libs/ab-ssl; rm -f ab.lo ab.o > make ab || die >} > >src_install () { > local i > make DESTDIR=${D} install || die > dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT \ > LICENSE README* ROADMAP ${FILESDIR}/robots.txt > > #bogus values pointing at /var/tmp/portage > #hmm theres more too.. doesnt appear to hurt anything though... > perl -pi -e "s/(APR_SOURCE_DIR=).*/\1\"\"/" ${D}/usr/bin/apr-config > perl -pi -e "s/(APU_SOURCE_DIR=).*/\1\"\"/" ${D}/usr/bin/apu-config > perl -pi -e "s/(APU_BUILD_DIR=).*/\1\"\"/" ${D}/usr/bin/apu-config > > #protect the suexec binary > local gid=`grep ^apache: /etc/group |cut -d: -f3` > [ -z "${gid}" ] && gid=81 > fowners root.${gid} /usr/sbin/suexec > fperms 4710 /usr/sbin/suexec > > #setup links in /etc/apache2 > cd ${D}/etc/apache2 > ln -sf ../../usr/lib/apache2 modules > #apxs needs this to pickup the right lib for install > ln -sf ../../usr/lib lib > ln -sf ../../var/log/apache2 logs > ln -sf ../../usr/lib/apache2-extramodules extramodules > cd ${S} > > #credits to advx.org people for these scripts > exeinto /usr/sbin > for i in apache2logserverstatus apache2splitlogfile > do > doexe ${FILESDIR}/2.0.40/$i > done > exeinto /usr/lib/ssl/apache2-mod_ssl > doexe ${FILESDIR}/2.0.40/gentestcrt.sh > > #some more scripts > exeinto /usr/sbin > for i in split-logfile list_hooks.pl logresolve.pl log_server_status > do > doexe ${S}/support/$i > done > #the ssl version of apache bench > doexe support/.libs/ab-ssl > > #move some mods to extramodules > dodir /usr/lib/apache2-extramodules > for i in mod_ssl.so mod_ldap.so mod_auth_ldap.so > do > [ -x ${D}/usr/lib/apache2/$i ] && \ > mv ${D}/usr/lib/apache2/$i ${D}/usr/lib/apache2-extramodules > done > > #modules.d config file snippets > insinto /etc/apache2/conf/modules.d > for i in 40_mod_ssl.conf 41_mod_ssl.default-vhost.conf 45_mod_dav.conf > do > doins ${FILESDIR}/2.0.40/$i > done > use ldap && doins ${FILESDIR}/2.0.40/46_mod_ldap.conf > > #drop in a convenient link to the manual > local datadir=`grep ^apache: /etc/passwd | cut -d: -f6` > [ -z "$datadir" ] && datadir="/home/httpd" > dosym /usr/share/doc/${PF}/manual ${datadir}/htdocs/manual > > #SLOT=2! can probably get rid of this junk down the road... > cd ${D} > mv -v usr/sbin/apachectl usr/sbin/apache2ctl > mv -v usr/sbin/htdigest usr/sbin/htdigest2 > mv -v usr/sbin/htpasswd usr/sbin/htpasswd2 > mv -v usr/sbin/logresolve usr/sbin/logresolve2 > mv -v usr/sbin/apxs usr/sbin/apxs2 > mv -v usr/sbin/ab usr/sbin/ab2 > mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl > mv -v usr/sbin/suexec usr/sbin/suexec2 > mv -v usr/sbin/rotatelogs usr/sbin/rotatelogs2 > mv -v usr/sbin/dbmmanage usr/sbin/dbmmanage2 > mv -v usr/sbin/checkgid usr/sbin/checkgid2 > mv -v usr/sbin/split-logfile usr/sbin/split-logfile2 > mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl > mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl > mv -v usr/sbin/log_server_status usr/sbin/log_server_status2 > mv -v usr/share/man/man1/htdigest.1 usr/share/man/man1/htdigest2.1 > mv -v usr/share/man/man1/htpasswd.1 usr/share/man/man1/htpasswd2.1 > mv -v usr/share/man/man1/dbmmanage.1 usr/share/man/man1/dbmmanage2.1 > mv -v usr/share/man/man8/ab.8 usr/share/man/man8/ab2.8 > mv -v usr/share/man/man8/apxs.8 usr/share/man/man8/apxs2.8 > mv -v usr/share/man/man8/apachectl.8 usr/share/man/man8/apache2ctl.8 > mv -v usr/share/man/man8/httpd.8 usr/share/man/man8/apache2.8 > mv -v usr/share/man/man8/logresolve.8 usr/share/man/man8/logresolve2.8 > mv -v usr/share/man/man8/rotatelogs.8 usr/share/man/man8/rotatelogs2.8 > mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.8 > > #tidy up > mv ${D}/usr/sbin/envvars* ${D}/usr/lib/apache2/build > dodoc ${D}/etc/apache2/conf/*-std.conf > rm -f ${D}/etc/apache2/conf/*.conf > rm -rf ${D}/var/run ${D}/var/log > > #config files > insinto /etc/conf.d; newins ${FILESDIR}/2.0.40/apache2.confd apache2 > exeinto /etc/init.d; newexe ${FILESDIR}/2.0.40/apache2.initd apache2 > insinto /etc/apache2; doins ${FILESDIR}/2.0.40/apache2-builtin-mods > insinto /etc/apache2/conf > doins ${FILESDIR}/2.0.40/commonapache2.conf > doins ${FILESDIR}/2.0.40/apache2.conf > insinto /etc/apache2/conf/vhosts > doins ${FILESDIR}/2.0.40/virtual-homepages.conf > doins ${FILESDIR}/2.0.40/dynamic-vhosts.conf > doins ${FILESDIR}/2.0.40/vhosts.conf >} > >parse_modules_config() { > local filename=$1 > local name="" > local dso="" > local disable="" > [ -f ${filename} ] || return 1 > for i in `cat $filename | 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-$name" > name="" ; disable="" > elif [ $i == "static" ] ; then > MY_BUILTINS="${MY_BUILTINS} --enable-$name=yes" > name="" ; disable="" > elif [ $i == "shared" ] ; then > MY_BUILTINS="${MY_BUILTINS} --enable-$name=shared" > name="" ; disable="" > fi > done > einfo "${filename} options:\n${MY_BUILTINS}" >} > >select_modules_config() { > parse_modules_config /etc/apache2/apache2-builtin-mods || \ > parse_modules_config ${FILESDIR}/2.0.40/apache2-builtin-mods || \ > return 1 >} > >pkg_postinst() { > #empty dirs... > install -d -m0755 -o root -g root ${ROOT}/var/lib/dav > install -d -m0755 -o root -g root ${ROOT}/var/log/apache2 > install -d -m0755 -o root -g root ${ROOT}/var/cache/apache2 > install -d -m0755 -o root -g root ${ROOT}/etc/apache2/conf/ssl > > cd ${ROOT}/etc/apache2/conf/ssl > einfo "Generating self-signed test certificate in /etc/apache2/conf/ssl..." > einfo "(Ignore any message from the yes command below)" > yes "" | ${ROOT}/usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh >/dev/null 2>&1 > einfo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14040
:
7371
|
7372
|
7405
|
7429