commit: de4104905fa163df1dfffad147f141905646ad47
Author: Xin Yang <yangmame <AT> icloud <DOT> com>
AuthorDate: Fri Jun 7 06:21:41 2024 +0000
Commit: Xin Yang <yangmame <AT> icloud <DOT> com>
CommitDate: Fri Jun 7 06:21:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de410490
net-vpn/candy: add openrc initd and readme
Signed-off-by: Xin Yang <yangmame <AT> icloud.com>
net-vpn/candy/candy-5.8.7.ebuild | 5 +++++
net-vpn/candy/files/README.gentoo | 10 ++++++++++
2 files changed, 15 insertions(+)
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 [email protected]
+ 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}