blob: 7fbb728c30b5b9856fd9e19a5f09c37e03125989 (
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
|
# Copyright 1999-2006 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.16 2006/01/19 12:22:05 vapier 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 s390 sh sparc x86"
IUSE=""
DEPEND=">=sys-apps/sed-4"
RDEPEND=""
pkg_setup() {
enewuser lingerd
}
src_compile() {
sed -i -e "s/\(CFLAGS = -Wall \).*/\1 ${CFLAGS}/g" Makefile || die "Makefile fixing failed."
emake || die "Emake failed."
}
src_install() {
dobin lingerd || die "Installation failed."
newinitd "${FILESDIR}"/lingerd.rc lingerd
dodoc ChangeLog EADME TUNING INSTALL TODO extra/lingerd.rc
}
pkg_postinst() {
install -m0770 -o lingerd -g apache -d ${ROOT}/var/run/lingerd/
}
|