diff options
-rw-r--r-- | net-proxy/cntlm/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/cntlm/cntlm-0.35.1-r2.ebuild | 47 | ||||
-rw-r--r-- | net-proxy/cntlm/files/cntlm.initd | 6 |
3 files changed, 58 insertions, 5 deletions
diff --git a/net-proxy/cntlm/ChangeLog b/net-proxy/cntlm/ChangeLog index a5c06fdb9c52..80888381b5c1 100644 --- a/net-proxy/cntlm/ChangeLog +++ b/net-proxy/cntlm/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/cntlm -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.1 2010/02/24 13:18:15 mduft Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.2 2011/11/07 07:29:31 mduft Exp $ + +*cntlm-0.35.1-r2 (07 Nov 2011) + + 07 Nov 2011; Markus Duft <mduft@gentoo.org> +cntlm-0.35.1-r2.ebuild, + files/cntlm.initd: + bug#307523: fixed init script wrt stopping, and revbumped *cntlm-0.35.1-r1 (24 Feb 2010) diff --git a/net-proxy/cntlm/cntlm-0.35.1-r2.ebuild b/net-proxy/cntlm/cntlm-0.35.1-r2.ebuild new file mode 100644 index 000000000000..c2941fe679c0 --- /dev/null +++ b/net-proxy/cntlm/cntlm-0.35.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.35.1-r2.ebuild,v 1.1 2011/11/07 07:29:31 mduft Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy" +HOMEPAGE="http://cntlm.sourceforge.net/" +SRC_URI="mirror://sourceforge/cntlm/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_configure() { + econf || die "econf failed" + + # Replace default config file path in Makefile + sed -i -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' \ + "${S}"/Makefile || die "sed failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin cntlm + dodoc COPYRIGHT README VERSION doc/cntlm.conf + doman doc/cntlm.1 + newinitd "${FILESDIR}"/cntlm.initd cntlm + newconfd "${FILESDIR}"/cntlm.confd cntlm + insinto /etc + insopts -m0600 + doins doc/cntlm.conf +} + +pkg_postinst() { + enewgroup cntlm + enewuser cntlm -1 -1 -1 cntlm +} diff --git a/net-proxy/cntlm/files/cntlm.initd b/net-proxy/cntlm/files/cntlm.initd index ae2ff0b95a2d..52042d3bb80d 100644 --- a/net-proxy/cntlm/files/cntlm.initd +++ b/net-proxy/cntlm/files/cntlm.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/files/cntlm.initd,v 1.1 2010/02/24 13:18:14 mduft Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/files/cntlm.initd,v 1.2 2011/11/07 07:29:31 mduft Exp $ PIDFILE=${PIDFILE:-/var/run/cntlm.pid} @@ -11,7 +11,7 @@ depend() { start() { ebegin "Starting cntlm" - start-stop-daemon --start --pidfile ${PIDFILE} --exec /usr/bin/cntlm -- -U cntlm ${CNTLM_OPTS} + start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec /usr/bin/cntlm -- -f -U cntlm ${CNTLM_OPTS} eend $? } |