Merge updates from master

This commit is contained in:
Repository mirror & CI
2024-01-01 14:46:46 +00:00
29 changed files with 2903 additions and 229 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@
/metadata/md5-cache
/packages/
/profiles/use.local.desc
/tags

View File

@@ -0,0 +1,10 @@
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-group
DESCRIPTION="A group for net-dns/blocky"
ACCT_GROUP_ID="69"

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,13 @@
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="A user for net-dns/blocky"
ACCT_USER_ID="100"
ACCT_USER_GROUPS=( "blocky" )
acct-user_add_deps

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
</pkgmetadata>

3
app-crypt/lego/Manifest Normal file
View File

@@ -0,0 +1,3 @@
DIST lego-4.14.2-deps.tar.xz 204384528 BLAKE2B 5db3b7b6c194b4042b4c81a490c99f79339c9c0c4571bf31061a352626f08afcf8508edaf104af784243476264edd03c3e992aef711d05f26f5270f27b98e7bd SHA512 a07c5bf3fa0b99e3b2af06141b1049ff030b7d74c2a38fbe7c15fc46a622d4cc02c2e563e03eb5aede1ef8dc0ea3d16b775f2381a41caafbe3c6e45831d56544
DIST lego-4.14.2-docs.tar.gz 3639965 BLAKE2B deb991244c93cd317a8e3acb90acc5f6712d5f5a1cf65ce615a13830e5a91fb35070b1eb9ce808322fa1e6e3cc9a6ee4253b488c1c8cbef0d7899b000a00d45f SHA512 13ea06e72581aee038d8cc4906b357d506b1dd20f1c8bd32a1c3fcfa364bdac2ccb76416bf6328f07e8feabc934329358ab75b0a440ede859caf350febac69fd
DIST lego-4.14.2.tar.gz 672197 BLAKE2B b633d6ed12fd7d38c35db392a58785fd32c3475961a49c5dbb3fe4986ca17c322a39ff604e73688928db1fa26eee70c8d9774fb560f96c5e017b680e2f89dbf2 SHA512 089788d1df077bdf8731250664628c9dbf44c8db7f2755242029c69b450eb892845b4c0b549a7affe80e351a29a6cc9d07514df3d0b7d1d17b42e20d1c85eca1

View File

@@ -0,0 +1,82 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go"
HOMEPAGE="https://github.com/go-acme/lego/"
DOCUMENTATION_COMMIT=e28a6ff22f2b7f75b8aaae5012672cfcca2be690
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/go-acme/lego.git"
else
SRC_URI="
https://github.com/go-acme/lego/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
doc? ( https://github.com/go-acme/lego/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
"
KEYWORDS="~amd64"
fi
# main
LICENSE="MIT"
# deps
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MPL-2.0"
SLOT="0"
IUSE="doc"
# some tests require network access otherwise get following error
# expected: "zoneee: unexpected status code: [status code: 401] body: Unauthorized"
# actual : "zoneee: could not find zone for domain \"prefix.example.com\" (_acme-challenge.prefix.example.com.): could not find the start of authority for _acme-challenge.prefix.example.com.: read udp 10.0.0.1:54729->10.0.0.1:53: read: connection refused"
PROPERTIES="test_network"
RESTRICT="test"
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
if use doc; then
EGIT_BRANCH="gh-pages"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
git-r3_src_unpack
fi
else
go-module_src_unpack
fi
}
src_compile() {
export CGO_ENABLED=0
local VERSION
if [[ ${PV} == 9999* ]]; then
VERSION="$(git rev-parse HEAD)" || die
else
VERSION="${PV}"
fi
ego build -trimpath -ldflags "-X main.version=${VERSION}" -o dist/"${PN}" ./cmd/lego/
}
src_test() {
ego test -v -cover ./...
}
src_install() {
# primary program
dobin dist/"${PN}"
# docs
einstalldocs
if use doc; then
if [[ ${PV} == 9999* ]]; then
dodoc -r ../"${P}"-doc/*
else
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/*
fi
fi
}

View File

@@ -0,0 +1,82 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go"
HOMEPAGE="https://github.com/go-acme/lego/"
DOCUMENTATION_COMMIT=e28a6ff22f2b7f75b8aaae5012672cfcca2be690
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/go-acme/lego.git"
else
SRC_URI="
https://github.com/go-acme/lego/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
doc? ( https://github.com/go-acme/lego/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
"
KEYWORDS="~amd64"
fi
# main
LICENSE="MIT"
# deps
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MPL-2.0"
SLOT="0"
IUSE="doc"
# some tests require network access otherwise get following error
# expected: "zoneee: unexpected status code: [status code: 401] body: Unauthorized"
# actual : "zoneee: could not find zone for domain \"prefix.example.com\" (_acme-challenge.prefix.example.com.): could not find the start of authority for _acme-challenge.prefix.example.com.: read udp 10.0.0.1:54729->10.0.0.1:53: read: connection refused"
PROPERTIES="test_network"
RESTRICT="test"
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
if use doc; then
EGIT_BRANCH="gh-pages"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
git-r3_src_unpack
fi
else
go-module_src_unpack
fi
}
src_compile() {
export CGO_ENABLED=0
local VERSION
if [[ ${PV} == 9999* ]]; then
VERSION="$(git rev-parse HEAD)" || die
else
VERSION="${PV}"
fi
ego build -trimpath -ldflags "-X main.version=${VERSION}" -o dist/"${PN}" ./cmd/lego/
}
src_test() {
ego test -v -cover ./...
}
src_install() {
# primary program
dobin dist/"${PN}"
# docs
einstalldocs
if use doc; then
if [[ ${PV} == 9999* ]]; then
dodoc -r ../"${P}"-doc/*
else
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/*
fi
fi
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
<upstream>
<remote-id type="github">go-acme/lego</remote-id>
<bugs-to>https://github.com/go-acme/lego/issues</bugs-to>
<doc>https://go-acme.github.io/lego/</doc>
</upstream>
</pkgmetadata>

View File

@@ -1,2 +1 @@
DIST v_2.3.2.tar.gz 6232935 BLAKE2B ea146088c518bfeb0d935313a07f00a37fd2b6998388060514d144494946565661d3554e8ffb63b4bed8b9f1c3cea2ba4ec4c0787b0fa89df7f8d39720606b03 SHA512 e610a2b92ab3e7896f3aa5a59872cf273ab1c60ff6aac8e71d1d7152c2e8cb36fb8552167e13c8a4bcec9138052a3397c202cfa4b57cddf2053508421eb66799
DIST v_2.4.0.tar.gz 6223889 BLAKE2B 25c13233dc53b4be7ba97eb20c6455cda2d1ffd332ece0c6869cd88f7af16b052fab13968a20bf12d6549e17b46fc894503d59f58a893e550808759fde974279 SHA512 096f7a755f71be2b5f80ad091ed4f796e064af6f91d7313bb3c898ea65cb743e406963df3c8b1a263df0d3b2a628f2f47653a14b8fe78a32ee9379ff424f9594
DIST v_2.5.3.tar.gz 6529657 BLAKE2B fe0a1fad689594c1f472301b1f39e813fc7a5d949a99db38120f4beb4d703854ce0e6fc844e881623cf3a255357ec3680a9efbc78090a800c4c6d3455d6eafea SHA512 a4569511428f7d1465554e9c8075b9481be73f5383831b46e1c5e6ab25e5672585dbbe96bbf22c6dd5115c38e62916f0eef8206718374110b78389fde54086bd

View File

@@ -1,92 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_10 )
WX_GTK_VER="3.0-gtk3"
inherit cmake xdg wxwidgets python-r1
DESCRIPTION="Linux port of FAR Manager v2"
HOMEPAGE="https://github.com/elfmz/far2l"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
else
MY_PV="v_${PV/_alpha/}"
MY_P="${PN}-${MY_PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://github.com/elfmz/far2l/archive/${MY_PV}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="mirror"
BDEPEND="sys-devel/m4"
RDEPEND="dev-libs/xerces-c
dev-libs/spdlog
app-i18n/uchardet
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
ssl? ( dev-libs/openssl )
sftp? ( net-libs/libssh[sftp] )
samba? ( net-fs/samba )
nfs? ( net-fs/libnfs )
webdav? ( net-libs/neon )
archive? (
dev-libs/libpcre2
app-arch/libarchive )
python? (
${PYTHON_DEPS}
virtual/python-cffi
dev-python/debugpy
)"
DEPEND="${RDEPEND}"
DOCS=( README.md )
pkg_setup() {
if use wxwidgets; then
setup-wxwidgets
fi
}
src_prepare() {
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/objinfo/plug/objinfo.far-plug-mb)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/farftp/plug/farftp.far-plug-mb && echo Removed existing farftp plugin)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python.far-plug-wide && echo Removed existing python plugin)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: prepaing virtual environment)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${PYTHON3} -m venv --system-site-packages \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: installing packages)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python/bin/python -m pip install cffi debugpy)::" -i "${S}"/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-DPYTHON="$(usex python)"
-DBUILD_SHARED_LIBS=OFF
)
cmake_src_configure
}
src_install(){
cmake_src_install
einstalldocs
dosym "../../bin/far2l" "usr/lib/far2l/far2l_askpass"
dosym "../../bin/far2l" "usr/lib/far2l/far2l_sudoapp"
}

View File

@@ -1,20 +1,17 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_10 )
EAPI=8
WX_GTK_VER="3.0-gtk3"
inherit cmake xdg wxwidgets python-r1
inherit cmake xdg wxwidgets
DESCRIPTION="Linux port of FAR Manager v2"
HOMEPAGE="https://github.com/elfmz/far2l"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
else
@@ -27,8 +24,7 @@ fi
LICENSE="GPL-2"
SLOT="0"
IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets"
RESTRICT="mirror"
BDEPEND="sys-devel/m4"
@@ -44,11 +40,7 @@ RDEPEND="dev-libs/xerces-c
webdav? ( net-libs/neon )
archive? (
dev-libs/libpcre2
app-arch/libarchive )
python? (
${PYTHON_DEPS}
virtual/python-cffi
dev-python/debugpy
app-arch/libarchive
)"
DEPEND="${RDEPEND}"
@@ -65,17 +57,15 @@ src_prepare() {
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/.*::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: prepaing virtual environment)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${PYTHON3} -m venv --system-site-packages \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: installing packages)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python/bin/python -m pip install cffi debugpy)::" -i "${S}"/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-DPYTHON="$(usex python)"
# FIXME: add python plugins support
# We need pcpp for this
# -DPYTHON="$(usex python)"
-DBUILD_SHARED_LIBS=OFF
)

View File

@@ -1,20 +1,17 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_10 )
EAPI=8
WX_GTK_VER="3.0-gtk3"
inherit cmake xdg wxwidgets python-r1
inherit cmake xdg wxwidgets
DESCRIPTION="Linux port of FAR Manager v2"
HOMEPAGE="https://github.com/elfmz/far2l"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
else
@@ -27,8 +24,7 @@ fi
LICENSE="GPL-2"
SLOT="0"
IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets"
RESTRICT="mirror"
BDEPEND="sys-devel/m4"
@@ -44,11 +40,7 @@ RDEPEND="dev-libs/xerces-c
webdav? ( net-libs/neon )
archive? (
dev-libs/libpcre2
app-arch/libarchive )
python? (
${PYTHON_DEPS}
virtual/python-cffi
dev-python/debugpy
app-arch/libarchive
)"
DEPEND="${RDEPEND}"
@@ -65,17 +57,15 @@ src_prepare() {
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/.*::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: prepaing virtual environment)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${PYTHON3} -m venv --system-site-packages \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: installing packages)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python/bin/python -m pip install cffi debugpy)::" -i "${S}"/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-DPYTHON="$(usex python)"
# FIXME: add python plugins support
# We need pcpp for this
# -DPYTHON="$(usex python)"
-DBUILD_SHARED_LIBS=OFF
)

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>syutkin@gmail.com</email>
@@ -11,7 +11,6 @@
<use>
<flag name="archive">Multiarc extended archives support</flag>
<flag name="nfs">NFS support in NetRocks</flag>
<flag name="python">Python scripting support</flag>
<flag name="samba">SMB support in NetRocks</flag>
<flag name="sftp">SFTP support in NetRocks</flag>
<flag name="ssl">FTPS support in NetRocks</flag>

View File

@@ -1,3 +0,0 @@
DIST drawio-desktop-bin-22.1.15.tar.gz 454755 BLAKE2B 3fcdb54bd397919f21145d6912091d84baa5d55731babcc70a3d9a7a7c4db67eed2ff7fd62660e1915721e856d09244ef05bf6135bb00039f8b998f94986ae75 SHA512 164d18b723c65aa095dc71dab75b886cf99ef6a462dce1440c8547063658c3063cc0951dad6552fd01edaa3c1a41002b184d4e2fe7ec87f0c31dfc6fd25643c9
DIST drawio-x86_64-21.6.5.AppImage 163718032 BLAKE2B 04a9a0b0a19442110eecf199bb92d3f4f98d218abc6873c59fa2539c3c661de1e78137edab614a198d36f93e4f09ba47c185e8bb3b859d1d37f71f9cdefb2048 SHA512 eb3e998d7ef430fd38d9f6aaa3c625766637615bec5f735e2e9740c16dcbbcd6d671c619f7dac8ae5cd2ee9a4618c23d00bdf34c6d8a21b463c4fdcb95b5b7f2
DIST drawio-x86_64-22.1.15.AppImage 199610803 BLAKE2B aa443e2177c7230d322f9db50a2e5315ae43ae4f44fd5e9bbcfd372288276716222fc24e2f513cbbc9180d44871c654dd75016672ef64e602ecfbfc1c5d0865a SHA512 2ee285ad6ac6295f319b8dc5503610a6965a230d5f8d7348811b1d81319fdc784db974d31ccb4253061ba9474659ac1fb6a39f6e6784dc58bb4908027b329c8f

View File

@@ -1,26 +0,0 @@
# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN/-bin/}"
DESCRIPTION="Diagram drawing application built on web technologies"
HOMEPAGE="https://github.com/jgraph/drawio-desktop"
SRC_URI="https://github.com/jgraph/${MY_PN}/releases/download/v${PV}/drawio-x86_64-${PV}.AppImage"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="strip"
RDEPEND="sys-fs/fuse:0"
S="${WORKDIR}"
QA_PREBUILT="*"
src_install() {
newbin "${DISTDIR}/drawio-x86_64-21.6.5.AppImage" drawio-appimage
}

View File

@@ -1,51 +0,0 @@
# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
MY_PN="${PN/-bin/}"
DESCRIPTION="Diagram drawing application built on web technologies"
HOMEPAGE="https://github.com/jgraph/drawio-desktop"
SRC_URI="
https://github.com/jgraph/${MY_PN}/releases/download/v${PV}/drawio-x86_64-${PV}.AppImage
https://github.com/jgraph/drawio-desktop/archive/v${PV}.tar.gz -> ${P}.tar.gz
"
KEYWORDS="-* ~amd64"
LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="strip"
RDEPEND="sys-fs/fuse:0"
S="${WORKDIR}"
QA_PREBUILT="*"
src_install() {
newbin "${DISTDIR}/drawio-x86_64-${PV}.AppImage" drawio-appimage
pushd "${MY_PN}-${PV}/build" || die
for f in *x*.png; do
case "${f}" in
# not all icon sizes are supported
720x720.png)
continue
;;
*)
newicon -s "${f%.png}" "${f}" "drawio.png"
;;
esac
done
popd || die
make_desktop_entry \
"/usr/bin/drawio-appimage" \
"draw.io" \
"drawio" \
"Graphics;Office"
}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Vitaly Zdanevich</name>
<email>zdanevich.vitaly@ya.ru</email>
</maintainer>
<upstream>
<remote-id type="github">jgraph/drawio-desktop</remote-id>
<bugs-to>https://github.com/jgraph/drawio-desktop/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -16,7 +16,7 @@ S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
@@ -28,8 +28,9 @@ BDEPEND="
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest
python_test() {
cd tests/suite
distutils-r1_python_test
}

View File

@@ -0,0 +1,106 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps go-module systemd
DESCRIPTION="Network-wide ads & trackers blocking DNS server like Pi-Hole with web ui"
HOMEPAGE="https://github.com/AdguardTeam/AdGuardHome/"
SRC_URI="
https://github.com/AdguardTeam/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/AdguardTeam/${PN}/releases/download/v${PV}/AdGuardHome_frontend.tar.gz -> ${P}-frontend.tar.gz
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
"
# main
LICENSE="GPL-3"
# deps
LICENSE+=" Apache-2.0 BSD BSD-2 MIT ZLIB"
SLOT="0"
KEYWORDS="~amd64"
FILECAPS=(
-m 755 'cap_net_bind_service=+eip cap_net_raw=+eip' usr/bin/${PN}
)
src_prepare() {
default
# move frontend to project directory
rm build/gitkeep && mv ../build ./ || die
}
src_compile() {
# mimicking https://github.com/AdguardTeam/AdGuardHome/blob/master/scripts/make/go-build.sh
local MY_LDFLAGS="-s -w"
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.version=${PV}"
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.channel=release"
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.committime=$(date +%s)"
if [ "$(go env GOARM)" != '' ]
then
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.goarm=$(go env GOARM)"
elif [ "$(go env GOMIPS)" != '' ]
then
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.gomips=$(go env GOMIPS)"
fi
ego build -ldflags "${MY_LDFLAGS}" -trimpath
}
src_test() {
# mimicking https://github.com/AdguardTeam/AdGuardHome/blob/master/scripts/make/go-test.sh
count_flags='--count=1'
cover_flags='--coverprofile=./coverage.txt'
shuffle_flags='--shuffle=on'
timeout_flags="--timeout=30s"
fuzztime_flags="--fuzztime=20s"
readonly count_flags cover_flags shuffle_flags timeout_flags fuzztime_flags
# race only works when pie is disabled
export GOFLAGS="${GOFLAGS/-buildmode=pie/}"
# following test is failing without giving any reason. Tried disabling internal/updater internal/whois tests toggling race, but still failing.
# ego test\
# "$count_flags"\
# "$cover_flags"\
# "$shuffle_flags"\
# --race=1\
# "$timeout_flags"\
# ./...
# mimicking https://github.com/AdguardTeam/AdGuardHome/blob/master/scripts/make/go-bench.sh
ego test\
"$count_flags"\
"$shuffle_flags"\
--race=0\
"$timeout_flags"\
--bench='.'\
--benchmem\
--benchtime=1s\
--run='^$'\
./...
# mimicking https://github.com/AdguardTeam/AdGuardHome/blob/master/scripts/make/go-fuzz.sh
ego test\
"$count_flags"\
"$shuffle_flags"\
--race=0\
"$timeout_flags"\
"$fuzztime_flags"\
--fuzz='.'\
--run='^$'\
./internal/filtering/rulelist/\
;
}
src_install() {
dobin "${PN}"
einstalldocs
systemd_newunit "${FILESDIR}"/AdGuardHome-0.107.43.service "${PN}".service
}

View File

@@ -0,0 +1,3 @@
DIST AdGuardHome-0.107.43-deps.tar.xz 104529544 BLAKE2B 4fde3b1e2f85cf85209eb2149c40a5478e4d55cbae90847fafdb5f056b7af2a8234a5880fac6bbed1b62e64d7e849162abbc9e5fef3b262ecea8760fcb21c21c SHA512 44458c3d1d46c7ccf50308227ff765927e1b6d4876065af13004bd0ec2c82c7727e76a81bfc52cf920ea2dee361e5c761db73ed610d04b23568c6e7611301348
DIST AdGuardHome-0.107.43-frontend.tar.gz 2781809 BLAKE2B 72d42f40a5f671f5dab72a7fcbd77fdfbd58126b67c73fd6e1dbec5f956c017ff64c01cb8c89ec5c72ef2058640e7cea5b93fe1b3c2c7b76edc6de32ab7f4801 SHA512 1c1fd527638c3e35fa21b5738868dae04b41a0bbb04942c94cc36d1dc7f6961bd202c7862fdfffe3ed52039c75b3f358e399c17ccd121e78432ec58fa837f4a0
DIST AdGuardHome-0.107.43.tar.gz 2227903 BLAKE2B a4811969b2e156a33d6267edeca4be3535e095e8133c6c8d761e132e5f95d21403df37f8ac5567d85994b89ff8912f1799f21f648d6a26a6bf7971d02bd11ffd SHA512 cc9f7602ada6e40ff7c8449bfc1c40fb184c848019ff95b1db46a974f4a72606c587015d440e25094c51cc0b6d01eb68686765d0a92f01752615db63e4527803

View File

@@ -0,0 +1,22 @@
# This unit is inspired from
# `AdGuardHome -s install` on systemd machine and
# https://aur.archlinux.org/cgit/aur.git/tree/adguardhome.service?h=adguardhome
[Unit]
Description=Network-wide ads & trackers blocking DNS server with WebUI
After=network-online.target
ConditionFileIsExecutable=/usr/bin/AdGuardHome
[Service]
StartLimitInterval=5
StartLimitBurst=10
DynamicUser=true
StateDirectory=AdGuardHome
WorkingDirectory=/var/lib/AdGuardHome
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
ExecStart=/usr/bin/AdGuardHome --no-check-update --work-dir /var/lib/AdGuardHome
ExecReload=/usr/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
<upstream>
<remote-id type="github">AdguardTeam/AdGuardHome</remote-id>
<bugs-to>https://github.com/AdguardTeam/AdGuardHome/issues</bugs-to>
<doc>https://github.com/AdguardTeam/AdGuardHome/</doc>
</upstream>
</pkgmetadata>

3
net-dns/blocky/Manifest Normal file
View File

@@ -0,0 +1,3 @@
DIST blocky-0.22-deps.tar.xz 163869124 BLAKE2B e98614feaeb11604866d08003147871096c993cdb90c85bba46ea999a339570ca1500a80bddee202595372ec5d22baa6ec0345d8cf50ffee6d61dd8d6495d49f SHA512 883e5dd66cf974c6d8c73a94c7677d5003ceb7a3ba68001c2d9d36e1e4d1ea64f0818d30240fe77f192ad3f95ede93127bed9adc9647da07a9b9bebc958ffd33
DIST blocky-0.22-docs.tar.gz 5639822 BLAKE2B e177790deb7493f84d8217661e4e4296004a9db7e00ff8d37dbd3c4ed8b7ba0a7cf431067c103f25784e46ca7a8bf80532cdd8f305f3e4ce119890027f0eb186 SHA512 3eed0ff726479826fbefb4140c36bb26825124134d1fbbecf74a31b2fbdde993630adc645ea2e582ce8d415736cc85b20f64a835c87da98700b715c03d368e75
DIST blocky-0.22.tar.gz 712644 BLAKE2B d74881026421337a0fc32a6af2cf6bff736e0130ac599cd80714f0cafff1e81864e0327bc773f8377106421642cf545b76407fca94f07425c428ff8512a7113b SHA512 928ba882cb567f80b9b00c1ab74ba2fba0324b9e5fb6439789d50d8fd438a26f84772d36f91ef9c3a2351c798a399c15aa1b69927a2da11795edd576b7bae6a4

View File

@@ -0,0 +1,104 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps go-module systemd shell-completion
DESCRIPTION="Fast and lightweight DNS proxy as ad-blocker with many features written in Go"
HOMEPAGE="https://github.com/0xERR0R/blocky/"
DOCUMENTATION_COMMIT=9c6a86eb163e758686c5d6d4d5259deb086a8aa9
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/0xERR0R/blocky.git"
else
SRC_URI="
https://github.com/0xERR0R/blocky/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
doc? ( https://github.com/0xERR0R/blocky/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
"
KEYWORDS="~amd64"
fi
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" AGPL-3 BSD-2 BSD ISC MIT MPL-2.0"
SLOT="0"
IUSE="doc"
# RESTRICT="test"
RDEPEND="
acct-user/blocky
acct-group/blocky
"
PATCHES=(
"${FILESDIR}"/disable-failed-tests-0.22.patch
)
FILECAPS=(
-m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}"
)
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
if use doc; then
EGIT_BRANCH="gh-pages"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
git-r3_src_unpack
fi
else
go-module_src_unpack
fi
}
src_compile() {
[[ ${PV} != 9999* ]] && export VERSION="${PV}"
# mimicking project's Dockerfile
emake GO_SKIP_GENERATE=yes GO_BUILD_FLAGS="-tags static -v " build
local shell
for shell in bash fish zsh; do
bin/"${PN}" completion "${shell}" > "${PN}"."${shell}" || die
done
}
src_test() {
# mimcking make test
ego run github.com/onsi/ginkgo/v2/ginkgo --label-filter="!e2e" --coverprofile=coverage.txt --covermode=atomic --cover -r -p
ego tool cover -html coverage.txt -o coverage.html
}
src_install() {
# primary program
dobin bin/"${PN}"
# secondary supplements
insinto /etc/"${PN}"
newins docs/config.yml config.yml.sample
newbashcomp "${PN}".bash "${PN}"
dofishcomp "${PN}".fish
newzshcomp "${PN}".zsh _"${PN}"
# TODO openrc services
systemd_newunit "${FILESDIR}"/blocky-0.22.service "${PN}".service
# docs
einstalldocs
if use doc; then
if [[ ${PV} == 9999* ]]; then
dodoc -r ../"${P}"-doc/main/*
else
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/v"${PV}"/*
fi
fi
}

View File

@@ -0,0 +1,104 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps go-module systemd shell-completion
DESCRIPTION="Fast and lightweight DNS proxy as ad-blocker with many features written in Go"
HOMEPAGE="https://github.com/0xERR0R/blocky/"
DOCUMENTATION_COMMIT=9c6a86eb163e758686c5d6d4d5259deb086a8aa9
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/0xERR0R/blocky.git"
else
SRC_URI="
https://github.com/0xERR0R/blocky/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
doc? ( https://github.com/0xERR0R/blocky/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
"
KEYWORDS="~amd64"
fi
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" AGPL-3 BSD-2 BSD ISC MIT MPL-2.0"
SLOT="0"
IUSE="doc"
RESTRICT="test"
RDEPEND="
acct-user/blocky
acct-group/blocky
"
# PATCHES=(
# "${FILESDIR}"/disable-failed-tests-0.22.patch
# )
FILECAPS=(
-m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}"
)
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
go-module_live_vendor
if use doc; then
EGIT_BRANCH="gh-pages"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
git-r3_src_unpack
fi
else
go-module_src_unpack
fi
}
src_compile() {
[[ ${PV} != 9999* ]] && export VERSION="${PV}"
# mimicking project's Dockerfile
emake GO_SKIP_GENERATE=yes GO_BUILD_FLAGS="-tags static -v " build
local shell
for shell in bash fish zsh; do
bin/"${PN}" completion "${shell}" > "${PN}"."${shell}" || die
done
}
src_test() {
# mimcking make test
ego run github.com/onsi/ginkgo/v2/ginkgo --label-filter="!e2e" --coverprofile=coverage.txt --covermode=atomic --cover -r -p
ego tool cover -html coverage.txt -o coverage.html
}
src_install() {
# primary program
dobin bin/"${PN}"
# secondary supplements
insinto /etc/"${PN}"
newins docs/config.yml config.yml.sample
newbashcomp "${PN}".bash "${PN}"
dofishcomp "${PN}".fish
newzshcomp "${PN}".zsh _"${PN}"
# TODO openrc services
systemd_newunit "${FILESDIR}"/blocky-0.22.service "${PN}".service
# docs
einstalldocs
if use doc; then
if [[ ${PV} == 9999* ]]; then
dodoc -r ../"${P}"-doc/main/*
else
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/v"${PV}"/*
fi
fi
}

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Fast and lightweight DNS proxy as ad-blocker
Documentation=https://0xerr0r.github.io/blocky/
After=network-online.target
Wants=network-online.target
[Service]
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
User=blocky
ExecStart=/usr/bin/blocky --config /etc/blocky/config.yml
Restart=on-failure
[Install]
WantedBy=multi-user.target

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
<longdescription>
Blocky is a DNS proxy and ad-blocker alternative to Pi-Hole and AdGuard Home written in Go with support for DNSSEC, DNS over HTTPS (DoH), DNS over TLS (DoT), metrics via prometheus-grafana, REST api, per client per group blacklists and whitelists, custom domains, conditional forwarding and simple YAML config.
</longdescription>
<upstream>
<remote-id type="github">0xERR0R/blocky</remote-id>
<bugs-to>https://github.com/0xERR0R/blocky/issues</bugs-to>
<doc>https://0xerr0r.github.io/blocky/</doc>
</upstream>
</pkgmetadata>