diff options
Diffstat (limited to 'www-proxy/middleman/middleman-2.0.1-r1.ebuild')
-rw-r--r-- | www-proxy/middleman/middleman-2.0.1-r1.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/www-proxy/middleman/middleman-2.0.1-r1.ebuild b/www-proxy/middleman/middleman-2.0.1-r1.ebuild new file mode 100644 index 000000000000..28fcd7d14133 --- /dev/null +++ b/www-proxy/middleman/middleman-2.0.1-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-proxy/middleman/middleman-2.0.1-r1.ebuild,v 1.1 2004/08/15 18:52:50 stuart Exp $ + +inherit eutils + +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" +HOMEPAGE="http://sourceforge.net/projects/middle-man" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="${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 +} + +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" +} + +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 +} + +#pkg_preinst() { +# enewgroup mman 8080 +# enewuser mman 8080 +#} + +pkg_postinst() { + #einfo "A mman user has been added to your system if one did not already exist" + einfo "-" + einfo "Note: init/conf scripts and a sample config has been provided for you." + einfo "They can be found at or in /etc/conf.d/mman /etc/init.d/mman /etc/mman/" + + if [ -d /etc/mman/mman ]; then + ewarn "A previous version of this ebuild installed the config scripts into" + ewarn + ewarn " /etc/mman/mman/" + ewarn + ewarn "by mistake. Please move these files into /etc/mman instead, and remove" + ewarn "your /etc/mman/mman/ directory." + fi +} |