summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/chaosvpn/chaosvpn-2.15.ebuild')
-rw-r--r--net-misc/chaosvpn/chaosvpn-2.15.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/net-misc/chaosvpn/chaosvpn-2.15.ebuild b/net-misc/chaosvpn/chaosvpn-2.15.ebuild
new file mode 100644
index 0000000..ed5d2a9
--- /dev/null
+++ b/net-misc/chaosvpn/chaosvpn-2.15.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit toolchain-funcs user vcs-snapshot
+
+DESCRIPTION="ChaosVPN client"
+HOMEPAGE="http://wiki.hamburg.ccc.de/index.php/ChaosVPN"
+SRC_URI="https://github.com/ryd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-libs/openssl
+ net-misc/tinc"
+
+pkg_setup() {
+ enewuser chaosvpn "" "" /etc/tinc/chaos/
+}
+
+src_prepare() {
+ sed -i -e "/strip/d" Makefile || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ default
+
+ 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."
+}