summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kriegner <dominik.kriegner@gmail.com>2019-01-03 11:46:00 +0100
committerDominik Kriegner <dominik.kriegner@gmail.com>2019-01-03 11:48:04 +0100
commita1670543992a273b13fc3d7c23cd5beef4371a22 (patch)
treeddd0e553d46e60d09c5811c5dd024c9c362ae394
parentnet-misc/netvirt: update live ebuild (diff)
downloadanaximander-a1670543992a273b13fc3d7c23cd5beef4371a22.tar.gz
anaximander-a1670543992a273b13fc3d7c23cd5beef4371a22.tar.bz2
anaximander-a1670543992a273b13fc3d7c23cd5beef4371a22.zip
net-misc/netvirt: add post install message
systemd/initd files have to be changes after installation and proper setup Signed-off-by: Dominik Kriegner <dominik.kriegner@gmail.com> Package-Manager: Portage-2.3.53, Repoman-2.3.12 Manifest-Sign-Key: 0x6D0F122FFA4B630F
-rw-r--r--net-misc/netvirt/Manifest6
-rw-r--r--net-misc/netvirt/files/netvirt-agent.rc4
-rw-r--r--net-misc/netvirt/files/netvirt-agent.service2
-rw-r--r--net-misc/netvirt/netvirt-9999.ebuild10
4 files changed, 14 insertions, 8 deletions
diff --git a/net-misc/netvirt/Manifest b/net-misc/netvirt/Manifest
index 5c43911..1919cf6 100644
--- a/net-misc/netvirt/Manifest
+++ b/net-misc/netvirt/Manifest
@@ -1,4 +1,4 @@
-AUX netvirt-agent.rc 304 BLAKE2B 6c2bbf0d8e2afb4e30f0357ec96b900699faec1f92753035c280956a8acfb7a746d73c95e99c06f555f126195a26f498209559c652fbfffe129569c2f604619b SHA512 ce5cdf5a131084467213664296c8a397f1cddbc38cf424bfa52e95f77dd9432585ec2bdb3e050f4fba904ec5dd0d8c1e4c08748fe44608796e604f7ce1f9049a
-AUX netvirt-agent.service 229 BLAKE2B 540ffa0372a4e94f312293df60a8bc7bae1107ad41754c3d7ea1357c3c0f0b592ceeb25db19542b5192f5374d0207c1ff7b1f389d163192c5c20d0cad264e3ca SHA512 49ab9785671302a12a7af20f04f9c1590475ee986ef69d1f8c8068f0f61bf7ac90d480aa5a30a7c73073b23c2751672d95b34d6ad8b0c14d19c8a39161b65bd3
-EBUILD netvirt-9999.ebuild 891 BLAKE2B 2bcba9130661eaf96883c4faa08b6dacb30084c667d32c23872b2263cd960f92b3ab3308bf2e3d91984f6d80a762039dc72f51e718595ecff4deed45d2b7682d SHA512 cfec106b07144e60267eb1380fc1e087246ca2092ffc88443f2798b9ddf4cb2411a06a41664be3947602a0abe7fa9e3e1a609c544632e44c9c35e1de743f48f2
+AUX netvirt-agent.rc 316 BLAKE2B 2332e5ed86dbbbb2ab5643a605785922f9a463f6e01d85fb5c035b79bd74b0d533b3ba3f72ef18b85a67cc10471507ae6ee8dee6716d93c19d92bfe36c1e5172 SHA512 18c229fa3b334a14d14570c7aab7e8459bfed870e9ecfeeb009904196b19fa580e81afbd6db612dc5e0e017d9e915ebe5facfb59c52bad6e847f2a18c93cdecc
+AUX netvirt-agent.service 244 BLAKE2B b53c4e2374998ace75aac36aeaebbe8e4693cdf09ee1561ab3ceb7734f2c3dc59255d2f7ddcfa930a73b7152294758dc1ad1e8653bef37240320e2e1817912c6 SHA512 61e1c26e2428b92a7751bd257491507bc29df68a51cd409c17ee30a0c53a286f156215cdc96330feb78369d59320c405dcd99c1c0b4a1f935c589f4dc3fb239d
+EBUILD netvirt-9999.ebuild 1125 BLAKE2B 406bde40112e1ef91ad139f21512ccc5c09b4e6efbf6f01c8dd2fb287f0486eaf89d9a53f7072f15e6d919715cb073eab7c8deb362f9bc402d3445f038ffd42b SHA512 bf2a3e593fd7c00f6f142af9aa7256bac305907988361894011afb2397d3b656798f8aa4f69dd7a1fc7553245d603bad985e6537c60c57da4a237f09e55166ca
MISC metadata.xml 602 BLAKE2B 573998e1a077bbc6111964fa5d47c912ed2a5e18c0e2c4aa625f7eff30d8c4468bd5a55ee10b327df199e1e6831c056c604a5e398bc4b69e06728f34daf6ffdb SHA512 89c067677fd4ecfba9ac524cf58737f306898171f6a33f4416bfd807f32a30539298b42fcd75e7f24304fa7088b1c966e98a6495229ada3958589c060c93c179
diff --git a/net-misc/netvirt/files/netvirt-agent.rc b/net-misc/netvirt/files/netvirt-agent.rc
index d5803eb..0561934 100644
--- a/net-misc/netvirt/files/netvirt-agent.rc
+++ b/net-misc/netvirt/files/netvirt-agent.rc
@@ -1,11 +1,11 @@
#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
description="start a daemon to maintain a DynVPN connection"
-command="netvirt-agent2"
+command="netvirt-agent2 -c NETWORKNAME"
command_background="true"
pidfile="/var/run/${SVCNAME}.pid"
diff --git a/net-misc/netvirt/files/netvirt-agent.service b/net-misc/netvirt/files/netvirt-agent.service
index 57887cd..0125c49 100644
--- a/net-misc/netvirt/files/netvirt-agent.service
+++ b/net-misc/netvirt/files/netvirt-agent.service
@@ -4,7 +4,7 @@ After=network.target
[Service]
Environment="HOME=/root"
-ExecStart=/usr/bin/netvirt-agent2
+ExecStart=/usr/bin/netvirt-agent2 -c NETWORKNAME
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
diff --git a/net-misc/netvirt/netvirt-9999.ebuild b/net-misc/netvirt/netvirt-9999.ebuild
index 16c5e79..98edadc 100644
--- a/net-misc/netvirt/netvirt-9999.ebuild
+++ b/net-misc/netvirt/netvirt-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -18,7 +18,7 @@ IUSE="gui"
RDEPEND="sys-libs/libcap
dev-libs/libconfig
gui? ( dev-qt/qtgui:4
- dev-qt/qtdeclarative:4 )"
+ dev-qt/qtdeclarative:4 )"
DEPEND="${RDEPEND}
dev-util/scons
dev-util/cmake"
@@ -40,3 +40,9 @@ src_install() {
systemd_newunit "${FILESDIR}"/netvirt-agent.service netvirt-agent.service
newinitd "${FILESDIR}"/netvirt-agent.rc netvirt-agent
}
+
+pkg_postinst() {
+ elog "Carefully read https://doc.dynvpn.com to get started. In particular"
+ elog "you will have to provision a network using netvirt-agent2 -k ... and"
+ elog "edit the init scripts to connect to the right network."
+}