net-proxy/cntlm: drop old version

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2021-04-17 21:19:36 +02:00
parent 6db97a29e1
commit 0d70eac60f
@@ -1,56 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit 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
}