diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest index 36186e2131..05daba6642 100644 --- a/net-misc/purritobin/Manifest +++ b/net-misc/purritobin/Manifest @@ -1 +1,2 @@ DIST purritobin-0.6.6.tar.gz 19433 BLAKE2B 3a54915968baffd53eef3430268047d9c67d6cff226d52e6f514ed456acd62d75c17f091bf0c3f3571a5715c45001c09287dfe591ba1447c7abdfe74e474db67 SHA512 b08fd8c087e7ff95bd980749e0b404836542343ba69808cf2a8aa0915a836272a621de75267e52756e8571bf165158db9d8d0e7c5a5442b10568f4951ada69a9 +DIST purritobin-0.6.7.tar.gz 20461 BLAKE2B 4fe99afa5e648970f7ad0858f0a47651a7f33a0f210be8e543de441c619f561aa0bf8a8f4e5eb4d9548efd229fdc50c48e1998f90d1437e41e2f625d01b7ad8f SHA512 072df73f4d48127b03729005340e69424d776d3fff7e4ae69a0194a9dc565c19cb6a17e236c4377fb22823fdeb556f2c4a6709daf042f3f5adc8ab139bad26e2 diff --git a/net-misc/purritobin/purritobin-0.6.7.ebuild b/net-misc/purritobin/purritobin-0.6.7.ebuild new file mode 100644 index 0000000000..8e69a6744d --- /dev/null +++ b/net-misc/purritobin/purritobin-0.6.7.ebuild @@ -0,0 +1,57 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="minimalistic commandline pastebin" +HOMEPAGE="https://bsd.ac" + +inherit systemd meson + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git" +else + SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/PurritoBin-${PV}" +fi + +LICENSE="ISC" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-db/lmdb-0.9.29 + net-libs/usockets[ssl] + acct-user/purritobin + acct-group/purritobin +" +DEPEND="${RDEPEND} + www-apps/uwebsockets + >=dev-db/lmdb++-1.0.0 +" +BDEPEND="test? ( + net-misc/curl[ssl] + sys-apps/coreutils +)" + +src_configure() { + local emesonargs=( + $(meson_use test enable_testing) + -Dtest_dd_flags="iflag=fullblock" + ) + meson_src_configure +} + +src_install() { + meson_src_install + insinto /var/www/purritobin + doins frontend/paste.html + keepdir /var/db/purritobin + fowners purritobin:purritobin /var/www/purritobin /var/db/purritobin + newinitd services/openrc purritobin + systemd_newunit services/systemd purritobin.service + einstalldocs +} diff --git a/net-misc/purritobin/purritobin-9999.ebuild b/net-misc/purritobin/purritobin-9999.ebuild index 2eff4e922a..8e69a6744d 100644 --- a/net-misc/purritobin/purritobin-9999.ebuild +++ b/net-misc/purritobin/purritobin-9999.ebuild @@ -32,7 +32,10 @@ DEPEND="${RDEPEND} www-apps/uwebsockets >=dev-db/lmdb++-1.0.0 " -BDEPEND="test? ( sys-apps/coreutils )" +BDEPEND="test? ( + net-misc/curl[ssl] + sys-apps/coreutils +)" src_configure() { local emesonargs=(