summaryrefslogtreecommitdiff
path: root/net-vpn/candy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-23 14:56:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-23 14:56:14 +0100
commitb818f6a820dceae80d6e3faac5fdf7be0c6fcbe2 (patch)
treeecc35732c51ff9d610d4a9e0cc77e940ef5ac9da /net-vpn/candy
parent2bae4d8bcdc3862f8d7cf1963acc0a9036762d2d (diff)
gentoo auto-resync : 23:08:2024 - 14:56:14
Diffstat (limited to 'net-vpn/candy')
-rw-r--r--net-vpn/candy/Manifest4
-rw-r--r--net-vpn/candy/candy-5.10.3.ebuild42
-rw-r--r--net-vpn/candy/files/README.gentoo10
-rw-r--r--net-vpn/candy/metadata.xml23
4 files changed, 79 insertions, 0 deletions
diff --git a/net-vpn/candy/Manifest b/net-vpn/candy/Manifest
new file mode 100644
index 000000000000..d8c37abcc056
--- /dev/null
+++ b/net-vpn/candy/Manifest
@@ -0,0 +1,4 @@
+AUX README.gentoo 243 BLAKE2B 5d1f06d45faa91aea39845067d3b29d602edde6debbedee5fc99a1064b0d02844a942cc7686b73de5333353586e523150717321df97bb64b94776d639a39eef5 SHA512 6e3122217df1a20be8cb32fa024a668febf23c2b553582e7c007af3f3d245e4f32db385f93555c14133bc1e370591b95afe45fc677ece5f4e122c5887a5dbbb3
+DIST candy-5.10.3.gh.tar.gz 115258 BLAKE2B 70d698d69fbb0a28adeb1ba515a1a1f6986c083d3a04b688bfd5b7ead98941bac46af47cd745b74928fc56466ebe3fa7d570f7ecaa1716b2eac948d9eaf52fe2 SHA512 c56ab81f599c5fbf72c509265b3fc0189a17e36b8738e536f21702585e7994c706a277d8c1dbf8b68e7f3609518fec0b4daccc0b180d375463e898bb7d41bbdc
+EBUILD candy-5.10.3.ebuild 762 BLAKE2B 75e7d0254ba7cfaa65e4767dfdb69383aa3c8a5c718f65449451f63941938e4feb57f8678b2935f8b054c42eab52f6057e269d16ceaeb9068a0aa87a1bb16b09 SHA512 6fe6cc205790770453d1d2956bca77272b163c960ce95f74850908e892331c1075794eb43687417b9bf7ead3cf4085f9d4a3d5b1d13fe3a076dcf4689863a2b2
+MISC metadata.xml 652 BLAKE2B 06b58cdfd20b29707d598e13d11b7d5416a764db3a28898e63046f819bbe6a83c2c43e88d9b1045a6a25d36c2ebcac60d38e1b1807729664ef30c291254d0585 SHA512 0fc493eab187b7bd73387d08002312f540f75671f17f82a7c84f9669ee31fd33c67752cd7baf2b65094057dc24d551f2deaea1a650466b94110fda5dcc1997c5
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 candy@.service
+ 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>yangmame@icloud.com</email>
+ <name>Xin Yang</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lanthora/candy</remote-id>
+ <maintainer>
+ <name>lanthora</name>
+ <email>lanthora@outlook.com</email>
+ </maintainer>
+ </upstream>
+</pkgmetadata>