/[gentoo-x86]/net-proxy/cntlm/cntlm-0.93_beta5.ebuild
Gentoo

Contents of /net-proxy/cntlm/cntlm-0.93_beta5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Oct 2 13:47:12 2012 UTC (2 years, 2 months ago) by haubi
Branch: MAIN
Revbump beta version, bug#403375.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.92.3.ebuild,v 1.1 2012/10/02 13:16:42 haubi Exp $
4
5 EAPI=2
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
10 HOMEPAGE="http://cntlm.sourceforge.net/"
11 SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 DEPEND=""
19 RDEPEND=""
20
21 S="${WORKDIR}/${P//_}"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${P}-buildsystem.patch # 334647
25 }
26
27 src_configure() {
28 tc-export CC
29
30 econf || die "econf failed"
31
32 # Replace default config file path in Makefile
33 sed -i -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' \
34 "${S}"/Makefile || die "sed failed"
35 }
36
37 src_compile() {
38 emake V=1 || die "emake failed"
39 }
40
41 src_install() {
42 dobin cntlm
43 dodoc COPYRIGHT README VERSION doc/cntlm.conf
44 doman doc/cntlm.1
45 newinitd "${FILESDIR}"/cntlm.initd cntlm
46 newconfd "${FILESDIR}"/cntlm.confd cntlm
47 insinto /etc
48 insopts -m0600
49 doins doc/cntlm.conf
50 }
51
52 pkg_postinst() {
53 enewgroup cntlm
54 enewuser cntlm -1 -1 -1 cntlm
55 }

  ViewVC Help
Powered by ViewVC 1.1.20