[gentoo-commits] repo/gentoo:master commit in: net-proxy/cntlm/files/
commit: 4cbb4974d4a9d89c5d830d1eb4eaf8a8dbaec238 Author: Pacho Ramos gentoo org> AuthorDate: Sun May 27 17:13:18 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Sun May 27 18:01:58 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cbb4974 net-proxy/cntlm: Enhance init.d (#524198 by Andrew Petelin) Package-Manager: Portage-2.3.38, Repoman-2.3.9 net-proxy/cntlm/files/cntlm.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-proxy/cntlm/files/cntlm.initd b/net-proxy/cntlm/files/cntlm.initd index 106a4a163a6..f0044b0dcb1 100644 --- a/net-proxy/cntlm/files/cntlm.initd +++ b/net-proxy/cntlm/files/cntlm.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 PIDFILE=${PIDFILE:-/var/run/cntlm.pid} @@ -16,6 +16,6 @@ start() { stop() { ebegin "Stopping cntlm" - start-stop-daemon --stop --pidfile ${PIDFILE} + start-stop-daemon --stop --pidfile ${PIDFILE} -R SIGTERM/2/SIGKILL/2 eend $? }
[gentoo-commits] repo/gentoo:master commit in: net-proxy/cntlm/files/, net-proxy/cntlm/
commit: 1cae73b27b17f7b64ed6cf0fe9ca47b0fbe60a81 Author: Austin English gentoo org> AuthorDate: Tue May 3 18:52:50 2016 + Commit: Austin English gentoo org> CommitDate: Tue May 3 19:17:01 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cae73b2 net-proxy/cntlm: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild | 57 ++ net-proxy/cntlm/files/cntlm.initd | 4 +-- 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild b/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild new file mode 100644 index 000..bd7cbb1 --- /dev/null +++ b/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils systemd toolchain-funcs user + +DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy" +HOMEPAGE="http://cntlm.sourceforge.net/; +SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${P//_}" + +src_prepare() { + eapply -p0 "${FILESDIR}"/${P}-buildsystem.patch # 334647 + + default +} + +src_configure() { + tc-export CC + + econf + + # 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 V=1 +} + +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 + systemd_dounit "${FILESDIR}"/cntlm.service + 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 daa19e3..6ebe838 100644 --- a/net-proxy/cntlm/files/cntlm.initd +++ b/net-proxy/cntlm/files/cntlm.initd @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$