summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2013-01-26 19:34:43 +0000
committerChristoph Mende <angelos@gentoo.org>2013-01-26 19:34:43 +0000
commitb21f5092c0d4450284166b01d7ec717ff6d63404 (patch)
tree980bc7d47bbd27ddb7e350d44b1ad48df3990510 /net-misc/chaosvpn/chaosvpn-2.15.ebuild
parentchaosvpn: Drop keywords (diff)
downloadangelos-b21f5092c0d4450284166b01d7ec717ff6d63404.tar.gz
angelos-b21f5092c0d4450284166b01d7ec717ff6d63404.tar.bz2
angelos-b21f5092c0d4450284166b01d7ec717ff6d63404.zip
chaosvpn: Version bump
Package-Manager: portage-2.2.0_alpha161 Manifest-Sign-Key: 84F20B43
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."
+}