commit:     3db2e6fb294e331348613851f4adae0beea5127d
Author:     Xin Yang <yangmame <AT> icloud <DOT> com>
AuthorDate: Wed Aug 21 14:24:25 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 08:00:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3db2e6fb

net-vpn/candy: new package, add 5.10.3

Closes: https://github.com/gentoo/gentoo/pull/38237
Signed-off-by: Xin Yang <yangmame <AT> icloud.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 net-vpn/candy/Manifest            |  1 +
 net-vpn/candy/candy-5.10.3.ebuild | 42 +++++++++++++++++++++++++++++++++++++++
 net-vpn/candy/files/README.gentoo | 10 ++++++++++
 net-vpn/candy/metadata.xml        | 23 +++++++++++++++++++++
 4 files changed, 76 insertions(+)

diff --git a/net-vpn/candy/Manifest b/net-vpn/candy/Manifest
new file mode 100644
index 000000000000..5c32f1d0d2a1
--- /dev/null
+++ b/net-vpn/candy/Manifest
@@ -0,0 +1 @@
+DIST candy-5.10.3.gh.tar.gz 115258 BLAKE2B 
70d698d69fbb0a28adeb1ba515a1a1f6986c083d3a04b688bfd5b7ead98941bac46af47cd745b74928fc56466ebe3fa7d570f7ecaa1716b2eac948d9eaf52fe2
 SHA512 
c56ab81f599c5fbf72c509265b3fc0189a17e36b8738e536f21702585e7994c706a277d8c1dbf8b68e7f3609518fec0b4daccc0b180d375463e898bb7d41bbdc

diff --git a/net-vpn/candy/candy-5.10.3.ebuild 
b/net-vpn/candy/candy-5.10.3.ebuild
new file mode 100644
index 000000000000..9460dccd05c1
--- /dev/null
+++ b/net-vpn/candy/candy-5.10.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd readme.gentoo-r1
+
+DESCRIPTION="A reliable, low-latency, and anti-censorship virtual private 
network"
+HOMEPAGE="https://github.com/lanthora/candy";
+SRC_URI="https://github.com/lanthora/candy/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+DEPEND="
+       dev-libs/poco
+       dev-libs/openssl
+       dev-libs/spdlog
+       dev-libs/libfmt
+"
+RDEPEND="
+       ${DEPEND}
+"
+
+src_install(){
+       cmake_src_install
+       default
+
+       insinto /etc
+       doins candy.cfg
+
+       systemd_dounit candy.service
+       systemd_dounit [email protected]
+       newinitd candy.initd candy
+
+       readme.gentoo_create_doc
+}
+
+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 000000000000..810d833321b0
--- /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}

diff --git a/net-vpn/candy/metadata.xml b/net-vpn/candy/metadata.xml
new file mode 100644
index 000000000000..997cf71315bb
--- /dev/null
+++ b/net-vpn/candy/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Xin Yang</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Yixun Lan</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">lanthora/candy</remote-id>
+               <maintainer>
+                       <name>lanthora</name>
+                       <email>[email protected]</email>
+               </maintainer>
+       </upstream>
+</pkgmetadata>

Reply via email to