1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
4 |
|
5 |
EAPI="5" |
6 |
|
7 |
DESCRIPTION="distributed.net personal proxy" |
8 |
HOMEPAGE="http://www.distributed.net" |
9 |
SRC_URI="http://http.distributed.net/pub/dcti/${PN}/${PN}${PV}-linux-x86-uclibc.tar.gz" |
10 |
|
11 |
LICENSE="distributed.net GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="-alpha -ppc -sparc ~x86" |
14 |
|
15 |
RDEPEND="net-dns/host" |
16 |
|
17 |
S=${WORKDIR}/${PN}${PV}-linux-x86-uclibc |
18 |
|
19 |
RESTRICT="mirror" |
20 |
|
21 |
QA_PRESTRIPPED="opt/proxyper/proxyper" |
22 |
|
23 |
src_install() { |
24 |
local DESTDIR=/opt/proxyper |
25 |
exeinto ${DESTDIR} |
26 |
doexe proxyper |
27 |
|
28 |
# don't clobber an already existing ini file! |
29 |
insinto ${DESTDIR} |
30 |
if [ ! -f ${DESTDIR}/proxyper.ini ] |
31 |
then |
32 |
doins proxyper.ini |
33 |
else |
34 |
newins ${DESTDIR}/proxyper.ini proxyper.ini |
35 |
fi |
36 |
|
37 |
dodoc ChangeLog.txt |
38 |
dohtml manual.html |
39 |
|
40 |
newinitd "${FILESDIR}"/proxyper.init proxyper |
41 |
} |
42 |
|
43 |
pkg_postinst() { |
44 |
einfo "Don't forget to modify the config file" |
45 |
einfo "located in /opt/proxyper/proxyper.ini" |
46 |
einfo "It's recommend to reading the manual first :-)" |
47 |
} |
48 |
|
49 |
pkg_postrm() { |
50 |
local DESTDIR="/opt/proxyper" |
51 |
if [ -d ${DESTDIR} ]; then |
52 |
einfo "All files have not been removed from ${DESTDIR}" |
53 |
fi |
54 |
} |