diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-07-15 00:02:47 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-07-15 00:02:47 +0000 |
commit | 8b1870a67d0e5bd233e268b272734ef4ac7384d6 (patch) | |
tree | bfd95fbfd85e70d72ef462bc492951ec568ecd9c /net-proxy/middleman | |
parent | sync IUSE (-arts) (diff) | |
download | gentoo-2-8b1870a67d0e5bd233e268b272734ef4ac7384d6.tar.gz gentoo-2-8b1870a67d0e5bd233e268b272734ef4ac7384d6.tar.bz2 gentoo-2-8b1870a67d0e5bd233e268b272734ef4ac7384d6.zip |
QA: Do not loop over IUSE for configuring. IUSE includes flags from eclasses and that might result in unpredictable behaviour.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-proxy/middleman')
-rw-r--r-- | net-proxy/middleman/ChangeLog | 7 | ||||
-rw-r--r-- | net-proxy/middleman/middleman-2.0.1-r2.ebuild | 40 | ||||
-rw-r--r-- | net-proxy/middleman/middleman-2.0.1.ebuild | 47 |
3 files changed, 31 insertions, 63 deletions
diff --git a/net-proxy/middleman/ChangeLog b/net-proxy/middleman/ChangeLog index a44c01160765..3bcb5d1e3c79 100644 --- a/net-proxy/middleman/ChangeLog +++ b/net-proxy/middleman/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-proxy/middleman # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/ChangeLog,v 1.2 2005/04/23 13:07:01 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/ChangeLog,v 1.3 2005/07/15 00:02:47 swegener Exp $ + + 15 Jul 2005; Sven Wegener <swegener@gentoo.org> middleman-2.0.1.ebuild, + middleman-2.0.1-r2.ebuild: + QA: Do not loop over IUSE for configuring. IUSE includes flags from eclasses + and that might result in unpredictable behaviour. 22 Apr 2005; Alin Nastac <mrness@gentoo.org> : Rename category & herd www-proxy to net-proxy diff --git a/net-proxy/middleman/middleman-2.0.1-r2.ebuild b/net-proxy/middleman/middleman-2.0.1-r2.ebuild index 0cd06e795e56..0f5175349dc0 100644 --- a/net-proxy/middleman/middleman-2.0.1-r2.ebuild +++ b/net-proxy/middleman/middleman-2.0.1-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/middleman-2.0.1-r2.ebuild,v 1.2 2005/07/14 23:30:06 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/middleman-2.0.1-r2.ebuild,v 1.3 2005/07/15 00:02:47 swegener Exp $ inherit eutils @@ -15,45 +15,33 @@ IUSE="pam zlib" DEPEND="virtual/libc dev-libs/libpcre - pam? ( sys-libs/pam ) - zlib? ( sys-libs/zlib ) -" + pam? ( sys-libs/pam ) + zlib? ( sys-libs/zlib )" src_unpack() { unpack ${A} - [ -f ${FILESDIR}/${P}-gentoo.diff ] && epatch ${FILESDIR}/${P}-gentoo.diff - cd ${S} - epatch ${FILESDIR}/${P}-putlog-fix.patch - epatch ${FILESDIR}/${P}-gcc-34.patch + cd "${S}" + + epatch "${FILESDIR}"/${P}-putlog-fix.patch + epatch "${FILESDIR}"/${P}-gcc-34.patch } src_compile() { - local myconf="" - MAKEOPTS="-j1" - - cd ${S} - for opt in ${IUSE}; do - use ${opt} && - myconf="${myconf} --enable-${opt}" || - myconf="$myconf --disable-${opt}" - done - - econf --sysconfdir=/etc ${myconf} || die "econf failed: ${myconf}" - emake || die "emake failed" + econf \ + $(use_enable pam) \ + $(use_enable zlib) \ + || die "econf failed" + emake -j1 || die "emake failed" } src_install() { - cd ${S} - # mkdir -p ${D}/usr/share/man/man8/ make DESTDIR="${D}" install || die "einstall failed" dodoc CHANGELOG COPYING dohtml README.html - insinto /etc/conf.d - newins ${FILESDIR}/conf.d/mman mman - exeinto /etc/init.d - newexe ${FILESDIR}/init.d/mman mman + newconfd "${FILESDIR}"/conf.d/mman mman + newinitd "${FILESDIR}"/init.d/mman mman } #pkg_preinst() { diff --git a/net-proxy/middleman/middleman-2.0.1.ebuild b/net-proxy/middleman/middleman-2.0.1.ebuild index 8924b276de57..b92756193ae1 100644 --- a/net-proxy/middleman/middleman-2.0.1.ebuild +++ b/net-proxy/middleman/middleman-2.0.1.ebuild @@ -1,8 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/middleman-2.0.1.ebuild,v 1.2 2005/07/14 23:30:06 agriffis Exp $ - -inherit eutils +# $Header: /var/cvsroot/gentoo-x86/net-proxy/middleman/middleman-2.0.1.ebuild,v 1.3 2005/07/15 00:02:47 swegener Exp $ DESCRIPTION="Advanced HTTP/1.1 proxy server with features designed to increase privacy and remove unwanted content" SRC_URI="mirror://sourceforge/middle-man/${P}.tar.gz" @@ -13,51 +11,28 @@ SLOT="0" KEYWORDS="x86" IUSE="pam zlib" -#S=${WORKDIR}/ - DEPEND="virtual/libc dev-libs/libpcre - pam? ( sys-libs/pam ) - zlib? ( sys-libs/zlib ) -" - -src_unpack() { - unpack ${A} - [ -f ${FILESDIR}/${P}-gentoo.diff ] && epatch ${FILESDIR}/${P}-gentoo.diff - cd ${S} - #if [ "$PV" = "1.9" ]; then - # einfo "Patching Makefile.in to avoid sandbox problems" - # sed -i -e s:"INSTALL) -d /var":"INSTALL) -d \$(DESTDIR)/var":g Makefile.in - #fi -} + pam? ( sys-libs/pam ) + zlib? ( sys-libs/zlib )" src_compile() { - local myconf="" - MAKEOPTS="-j1" - - cd ${S} - for opt in ${IUSE}; do - use ${opt} && - myconf="${myconf} --enable-${opt}" || - myconf="$myconf --disable-${opt}" - done - - econf --sysconfdir=/etc/mman ${myconf} || die "econf failed: ${myconf}" - emake || die "emake failed" + econf \ + --sysconfdir=/etc/mman \ + $(use_enable pam) \ + $(use_enable zlib) \ + || die "econf failed" + emake -j1 || die "emake failed" } src_install() { - cd ${S} - # mkdir -p ${D}/usr/share/man/man8/ make DESTDIR="${D}" install || die "einstall failed" dodoc CHANGELOG COPYING dohtml README.html - insinto /etc/conf.d - newins ${FILESDIR}/conf.d/mman mman - exeinto /etc/init.d - newexe ${FILESDIR}/init.d/mman mman + newconfd "${FILESDIR}"/conf.d/mman mman + newinitd "${FILESDIR}"/init.d/mman mman } #pkg_preinst() { |