summaryrefslogtreecommitdiff
blob: 04d0f133d969185fb1651242c0fe36f05630a9f8 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/proxyper/proxyper-341a.ebuild,v 1.9 2010/10/28 12:30:14 ssuominen Exp $

DESCRIPTION="distributed.net personal proxy"
HOMEPAGE="http://www.distributed.net"
SRC_URI="http://http.distributed.net/pub/dcti/${PN}/${PN}${PV}-linux-x86-uclibc.tar.gz"
LICENSE="distributed.net"
SLOT="0"
KEYWORDS="-alpha -ppc -sparc x86"
IUSE=""
DEPEND=""
RDEPEND="net-dns/host"

S=${WORKDIR}/${PN}${PV}-linux-x86-uclibc

RESTRICT="mirror"

QA_PRESTRIPPED="opt/proxyper/proxyper"

src_install() {
	local DESTDIR=/opt/proxyper
	exeinto ${DESTDIR}
	doexe proxyper || die

	# don't clobber an already existing ini file!
	insinto ${DESTDIR}
	if [ ! -f ${DESTDIR}/proxyper.ini ]
	then
		doins proxyper.ini || die
	else
		newins ${DESTDIR}/proxyper.ini proxyper.ini || die
	fi

	dodoc ChangeLog.txt
	dohtml manual.html

	newinitd "${FILESDIR}"/proxyper.init proxyper
}

pkg_postinst() {
	einfo "Don't forget to modify the config file"
	einfo "located in /opt/proxyper/proxyper.ini"
	einfo "It's recommend to reading the manual first :-)"
}

pkg_postrm() {
	local DESTDIR="/opt/proxyper"
	if [ -d ${DESTDIR} ]; then
		einfo "All files have not been removed from ${DESTDIR}"
	fi
}