blob: 0a431cadda788209de8cdcc55b1207349ee69fa0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/ntlmaps-0.9.9-r1.ebuild,v 1.3 2005/09/16 05:00:08 agriffis Exp $
inherit eutils
DESCRIPTION="NTLM proxy Authentication against MS proxy/web server"
HOMEPAGE="http://ntlmaps.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm ~hppa ia64 ~ppc ~ppc64 ~s390 x86"
IUSE=""
DEPEND="dev-lang/python"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
#stupid windoze style
sed -i -e 's/\r//' lib/*.py server.cfg *.txt doc/*.{txt,htm}
}
src_install() {
# exes ------------------------------------------------------------------
exeinto /usr/bin
newexe main.py ${PN} || die
insinto /usr/lib/${PN}
doins lib/* || die
# doc -------------------------------------------------------------------
dodoc *.txt doc/*.txt
dohtml doc/*
# conf ------------------------------------------------------------------
insinto /etc/${PN}
doins server.cfg
newinitd ${FILESDIR}/${PN}.init ${PN}
# log -------------------------------------------------------------------
diropts -m 0770 -g nobody
keepdir /var/log/${PN}
}
pkg_prerm() {
einfo "Removing python compiled bytecode"
rm -f /usr/lib/${PN}/*.py?
}
|