# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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="~x86" IUSE="" DEPEND=">=sys-apps/sed-4" RDEPEND="" src_compile() { sed -i "s/\(CFLAGS = -Wall \).*/\1 ${CFLAGS}/g" Makefile || die "Makefile fixing failed." emake || die "Emake failed." } src_install() { enewuser lingerd exeinto ${D}/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/ }