summaryrefslogtreecommitdiff
blob: 55b373183164f66befef6bb97fab6ff8f3e2e869 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/lingerd/lingerd-0.94.ebuild,v 1.14 2005/09/20 01:39:06 cryos Exp $

inherit eutils

DESCRIPTION="Lingerd is a daemon designed to take over the job of properly closing network connections from an http server"
HOMEPAGE="http://www.iagora.com/about/software/lingerd/"
SRC_URI="http://images.iagora.com/media/software/lingerd/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~sparc x86"
IUSE=""

DEPEND=">=sys-apps/sed-4"
RDEPEND=""

src_compile() {
	sed -i -e "s/\(CFLAGS  = -Wall \).*/\1 ${CFLAGS}/g" Makefile || die "Makefile fixing failed."
	emake || die "Emake failed."
}

src_install() {
	enewuser lingerd
	exeinto /usr/bin/ ; doexe lingerd || die "Installation failed."
	exeinto /etc/init.d ; newexe ${FILESDIR}/lingerd.rc lingerd
	dodoc ChangeLog LICENSE README TUNING INSTALL TODO extra/lingerd.rc
}

pkg_postinst() {
	install -m0770 -o lingerd -g apache -d ${ROOT}/var/run/lingerd/
}