aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Yang <yangmame@icloud.com>2024-06-07 14:21:41 +0800
committerXin Yang <yangmame@icloud.com>2024-06-07 14:21:41 +0800
commitde4104905fa163df1dfffad147f141905646ad47 (patch)
tree4a9e2e84b0cee850f540233f8fa67d75165aee86 /net-vpn
parentnet-vpn/candy: add 5.8.7, drop 5.8.6 (diff)
downloadguru-de4104905fa163df1dfffad147f141905646ad47.tar.gz
guru-de4104905fa163df1dfffad147f141905646ad47.tar.bz2
guru-de4104905fa163df1dfffad147f141905646ad47.zip
net-vpn/candy: add openrc initd and readme
Signed-off-by: Xin Yang <yangmame@icloud.com>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/candy/candy-5.8.7.ebuild5
-rw-r--r--net-vpn/candy/files/README.gentoo10
2 files changed, 15 insertions, 0 deletions
diff --git a/net-vpn/candy/candy-5.8.7.ebuild b/net-vpn/candy/candy-5.8.7.ebuild
index bbf4d7c96..6da8fc22d 100644
--- a/net-vpn/candy/candy-5.8.7.ebuild
+++ b/net-vpn/candy/candy-5.8.7.ebuild
@@ -35,4 +35,9 @@ src_install(){
systemd_dounit candy.service
systemd_dounit candy@.service
+ newinitd candy.initd candy
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
}
diff --git a/net-vpn/candy/files/README.gentoo b/net-vpn/candy/files/README.gentoo
new file mode 100644
index 000000000..810d83332
--- /dev/null
+++ b/net-vpn/candy/files/README.gentoo
@@ -0,0 +1,10 @@
+Notes:
+ Running candy with multi instances
+
+ 1) Using OpenRC
+ Prepare /etc/candy.d/${foo}.cfg first
+ # ln -s /etc/init.d/candy{,.${foo}}
+ # rc-update add candy.${foo} default
+
+ 2) Using Systemd
+ # systemctl enable candy@${foo}