blob: eabcec904e91793551c37bb5b23122eff89aae7b (
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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils toolchain-funcs
DESCRIPTION="ChaosVPN client"
HOMEPAGE="http://wiki.hamburg.ccc.de/index.php/ChaosVPN"
SRC_URI="https://github.com/ryd/${PN}/tarball/${PV} -> ${P}.tar.gz"
REV=f1b4b62
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=">=net-misc/tinc-1.0.13"
S=${WORKDIR}/ryd-${PN}-${REV}
pkg_setup() {
enewuser chaosvpn "" "" /etc/tinc/chaos/
}
src_prepare() {
sed -i -e "/strip/d" Makefile || die
}
src_compile() {
emake CC=$(tc-getCC) || die
}
src_install() {
emake DESTDIR="${D}" install || die
diropts -m0700 -o chaosvpn -g chaosvpn
dodir /etc/tinc/chaos/
newinitd "${FILESDIR}/${PN}.init" ${PN}
}
pkg_postinst() {
elog "Don't forget to run"
elog " # tincd -n chaos --generate-keys=2048"
elog "if this is your first install."
}
|