summaryrefslogtreecommitdiff
blob: 38c322996b9e8a0ba80b2de731d8663d25bd4265 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/pound/pound-1.7.ebuild,v 1.4 2004/06/25 01:09:56 agriffis Exp $

MY_P=${P/p/P}

DESCRIPTION="A http/https reverse-proxy and load-balancer."
SRC_URI="http://www.apsis.ch/pound/${MY_P}.tgz"
HOMEPAGE="http://www.apsis.ch/pound/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc alpha ~mips ~hppa"
IUSE="ssl msdav unsafe"

DEPEND="virtual/glibc
	ssl? ( dev-libs/openssl )"

S=${WORKDIR}/${MY_P}

src_compile() {
	local myconf

	## check for ssl-support:
	myconf="${myconf} `use_with ssl` `use_enable msdav` `use_enable unsafe`"

	econf ${myconf} || die "configure failed"
	emake || die "compile failed"
}

src_install() {
	dosbin pound
	doman pound.8

	dodoc README

	exeinto /etc/init.d
	newexe ${FILESDIR}/pound.init pound

	insinto /etc
	doins ${FILESDIR}/pound.cfg
}

pkg_postinst() {
	einfo "No demo-/sample-configfile is included in the distribution -- read the man-page"
	einfo "for more info."
	einfo "A sample (localhost:8888 -> localhost:80) for gentoo is given in \"/etc/pound.cfg\"."
}