# ChangeLog for net-www/mod_bandwidth
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/ChangeLog,v 1.15 2006/12/02 23:05:23 beandog Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/ChangeLog,v 1.16 2007/01/14 01:59:02 chtekk Exp $
+
+ 14 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ -files/mod_bandwidth-2.0.4-register.patch,
+ -files/mod_bandwidth-2.0.5-register.patch, -files/mod_bandwidth.conf,
+ mod_bandwidth-2.0.5-r1.ebuild:
+ Cleanup.
02 Dec 2006; Steve Dibb <beandog@gentoo.org>
mod_bandwidth-2.0.5-r1.ebuild:
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/mod_bandwidth-2.0.5-r1.ebuild,v 1.5 2006/12/02 23:05:23 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/mod_bandwidth-2.0.5-r1.ebuild,v 1.6 2007/01/14 01:59:02 chtekk Exp $
-inherit eutils apache-module
+inherit apache-module
-DESCRIPTION="Bandwidth Management Module for Apache"
+DESCRIPTION="Bandwidth Management Module for Apache1."
HOMEPAGE="http://www.cohprog.com/v3/bandwidth/intro-en.html"
-SRC_URI="ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c"
+SRC_URI="ftp://ftp.cohprog.com/pub/apache/module/1.3.0/${PN}.c"
KEYWORDS="~amd64 ppc ~sparc x86"
-DEPEND=""
LICENSE="Apache-1.1"
SLOT="0"
IUSE=""
+DEPEND=""
+RDEPEND=""
+
APACHE1_MOD_CONF="10_${PN}"
APACHE1_MOD_DEFINE="BANDWIDTH"
need_apache1
src_unpack() {
- mkdir -p ${S} && cp ${DISTDIR}/${A} ${S} || die
- cd ${S} || die
+ cp -f "${DISTDIR}/${PN}.c" "${S}/" || die "source copy failed"
}
pkg_postinst() {
- # empty dirs
- install -m0755 -o apache -g apache -d ${ROOT}/var/cache/mod_bandwidth/{link,master}
+ install -m0755 -o apache -g apache -d "${ROOT}"/var/cache/${PN}/{link,master}
apache1_pkg_postinst
}