blob: 228d9bd5c508146a316d6a3fbdf19052cd6d5cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.92.3.ebuild,v 1.2 2014/01/08 06:23:51 vapier Exp $
EAPI=2
inherit eutils toolchain-funcs user
DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
HOMEPAGE="http://cntlm.sourceforge.net/"
SRC_URI="mirror://sourceforge/cntlm/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${P}-buildsystem.patch # 334647
}
src_configure() {
tc-export CC
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 V=1 || 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
}
|