logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 419541ed7d30d505c7d7636b1bba413d05a78a99
parent 739d65a009b9ba471ff0c11d69ea7bbb01badcd0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 28 Jan 2021 10:04:40 +0100

net-misc/cjdns: Delete

Diffstat:

Dnet-misc/cjdns/Manifest1-
Dnet-misc/cjdns/cjdns-20.2.ebuild79-------------------------------------------------------------------------------
Dnet-misc/cjdns/files/cjdns-fix_systemd_units.patch39---------------------------------------
Dnet-misc/cjdns/metadata.xml8--------
4 files changed, 0 insertions(+), 127 deletions(-)

diff --git a/net-misc/cjdns/Manifest b/net-misc/cjdns/Manifest @@ -1 +0,0 @@ -DIST cjdns-v20.2.tar.gz 4082584 BLAKE2B 62a1c76359cb09aca29f3570cba2ee8a3b6408d6f94d003eee5aeeda2ccc2959d8f4c4ecb4ef5d3273f56b634799f61aacbf5d10ecef1cddd7e48578dc453211 SHA512 31edd3ff7e62bfe2ab555da1e34d4b900829180d9558eecdd93a3d726126067c8094419683f047abdcabc444e3b2ae933a68ca4fa1b535731f977e07983b7d39 diff --git a/net-misc/cjdns/cjdns-20.2.ebuild b/net-misc/cjdns/cjdns-20.2.ebuild @@ -1,79 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Copyright 2018-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{4,5,6} ) - -inherit linux-info systemd python-single-r1 flag-o-matic - -DESCRIPTION="encrypted IPv6 using public-key cryptography for allocation and DHT for routing" -HOMEPAGE="https://github.com/cjdelisle/cjdns" -SRC_URI="https://github.com/cjdelisle/cjdns/archive/cjdns-v${PV}.tar.gz" -LICENSE="GPL-3" - -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -S="${WORKDIR}/cjdns-cjdns-v${PV}" - -PATCHES=( "${FILESDIR}/${PN}-fix_systemd_units.patch" ) -DOCS=( "README.md" "doc" ) - -pkg_setup() { - linux-info_pkg_setup - if ! linux_config_exists; then - eerror "Unable to check your kernel for TUN support" - else - CONFIG_CHECK="~TUN" - ERROR_TUN="Your kernel lacks TUN support." - fi -} - -src_compile() { - python-single-r1_pkg_setup - append-flags -Wno-error - Seccomp_NO=1 ./do || die "./do failed" -} - -src_install() { - systemd_dounit contrib/systemd/cjdns.service - systemd_dounit contrib/systemd/cjdns-resume.service - newinitd contrib/openrc/cjdns cjdns - - einstalldocs - - dosbin cjdroute - - insinto "${ROOT}usr/share/${P}" - doins -r tools - doins -r contrib -} - -pkg_postinst() { - local config_file="cjdroute.conf" - local config_path="${ROOT}etc/${config_file}" - - if [[ ! -e "${config_path}" ]] ; then - ebegin "Generating ${config_file}..." - (umask 077 && cjdroute --genconf > "${T}/${config_file}") || die "cjdroute --genconf failed" - mv "${T}/${config_file}" "${config_path}" - eend ${?} || die "Failed to generate and install ${config_file}" - elog "The keys in ${config_path} have been autogenerated during" - elog "emerge, they are not defaults and do not need to be overwritten." - fi - - ewarn "Protect ${config_path}! A lost conf file means you have " - ewarn "lost your password and connections and anyone who connected " - ewarn "to you will no longer be able to connect. A *compromised* " - ewarn "conf file means that other people can impersonate you on " - ewarn "the network." - ewarn - - einfo "The cjdns runscript will load the TUN kernel module automatically." - einfo "If you are using systemd and have TUN built as a module, add tun " - einfo "to /etc/modules-load.d/ for automatic loading at boot-time." - einfo "echo tun > /etc/modules-load.d/cjnds.conf" -} diff --git a/net-misc/cjdns/files/cjdns-fix_systemd_units.patch b/net-misc/cjdns/files/cjdns-fix_systemd_units.patch @@ -1,39 +0,0 @@ -From 9303439700406cc0dc3b9817c672147848687e82 Mon Sep 17 00:00:00 2001 -From: Alex Acevedo <alex-acevedo@protonmail.com> -Date: Thu, 26 Oct 2017 16:40:29 -0400 -Subject: [PATCH] fix systemd units - ---- - contrib/systemd/cjdns-resume.service | 2 +- - contrib/systemd/cjdns.service | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/contrib/systemd/cjdns-resume.service b/contrib/systemd/cjdns-resume.service -index 3e6ce991..92c0bdc1 100644 ---- a/contrib/systemd/cjdns-resume.service -+++ b/contrib/systemd/cjdns-resume.service -@@ -4,7 +4,7 @@ After=sleep.target - - [Service] - Type=oneshot --ExecStart=/bin/systemctl restart cjdns -+ExecStart=/usr/bin/systemctl restart cjdns - - [Install] - WantedBy=sleep.target -diff --git a/contrib/systemd/cjdns.service b/contrib/systemd/cjdns.service -index 3238aefb..aa4a49fb 100644 ---- a/contrib/systemd/cjdns.service -+++ b/contrib/systemd/cjdns.service -@@ -9,7 +9,7 @@ ProtectSystem=true - SyslogIdentifier=cjdroute - ExecStartPre=/bin/sh -ec "if ! test -s /etc/cjdroute.conf; \ - then umask 077; \ -- /usr/bin/cjdroute --genconf > /etc/cjdroute.conf; \ -+ /usr/sbin/cjdroute --genconf > /etc/cjdroute.conf; \ - echo 'WARNING: A new /etc/cjdroute.conf file has been generated.'; \ - fi" - ExecStart=/bin/sh -c "exec cjdroute --nobg < /etc/cjdroute.conf" --- -2.13.6 - diff --git a/net-misc/cjdns/metadata.xml b/net-misc/cjdns/metadata.xml @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - <name>Haelwenn (lanodan) Monnier</name> - </maintainer> -</pkgmetadata>