summaryrefslogtreecommitdiff
blob: 2bee8d9ddccd559e4ee73af0e9ecff6dae6a359d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/apache-ssl/apache-ssl-1.3.12.2.6.6.ebuild,v 1.4 2000/09/15 20:09:16 drobbins Exp $

P=apache-ssl-1.3.12-2.6.6
A="apache_1.3.12.tar.gz mod_ssl-2.6.6-1.3.12.tar.gz"
S=${WORKDIR}/apache_1.3.12
DESCRIPTION="The Apache Web Server v1.3.12 with mod_ssl"
SRC_URI="http://www.apache.de/dist/apache_1.3.12.tar.gz
	 ftp://ftp.modssl.org/source/mod_ssl-2.6.6-1.3.12.tar.gz"
HOMEPAGE="http://www.apache.org http://www.modssl.org"


src_compile() {                           
   export SSL_BASE=SYSTEM
   cd ${S}/../mod_ssl-2.6.6-1.3.12
    try ./configure --with-apache=${S} --with-ssl=SYSTEM
   cd ${S}
   try ./configure --prefix=/usr/local/httpd --bindir=/usr/bin \
	--sbindir=/usr/sbin --datadir=/usr/local/httpd \
	--sysconfdir=/etc/httpd --libexecdir=/usr/lib/apache \
	--mandir=/usr/man --logfiledir=/var/log/apache --localstatedir=/var/lock \
	--proxycachedir=/var/cache/httpd --includedir=/usr/include/apache \
	--enable-module=all --enable-module=ssl \
	--enable-shared=max --enable-suexec --suexec-caller=wwwrun \
	--suexec-userdir=public_html --suexec-uidmin=96 \
	--suexec-gidmin=96 --suexec-safepath="/bin:/usr/bin"
    try make
}

src_install() { 
    cd ${S}
    try make install-quiet root=${D}
    prepman

    dodoc ABOUT_APACHE Announcement INSTALL* KEYS LICENSE* README* WARNING*
    docinto mod_ssl
    cd ../mod_ssl-2.6.6-1.3.12
    dodoc ANNOUNCE CHANGES CREDITS INSTALL* LICENSE NEWS README*
    dodir /etc/rc.d/init.d
    cp ${O}/files/httpd.conf ${D}/etc/httpd
    cp ${O}/files/httpd	${D}/etc/rc.d/init.d
}

pkg_config() {

  source ${ROOT}/var/db/pkg/install.config

  # Make apache start at boot
  ${ROOT}/usr/sbin/rc-update add httpd

  # Set ServerName and ServerAdmin
  einfo "Setting Servername to $ServerName..."
  cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
  sed -e "s/^\#ServerName.*/ServerName $ServerName/" \
      -e "s/^ServerName.*/ServerName $ServerName/" \
      -e "s/^ServerAdmin.*/ServerAdmin $ServerAdmin/" \
	${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf

}