diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest index 4b22d4b9e7..907b8a9f49 100644 --- a/net-misc/purritobin/Manifest +++ b/net-misc/purritobin/Manifest @@ -1 +1,2 @@ DIST purritobin-0.5.0.tar.gz 16535 BLAKE2B e24943fcd459691a5c5d22c7a1345de1a1101769d502bf3f517310827857315b4c8ea10acc6295cea725959e908b938d3ef6d9379def4c5eaff6000a38a51361 SHA512 fea4127fd9908f86529c80c711bdba90a26b93186b29f1a06a2d541689ef924adc3c62b865ce66d7329c12dcb00d4e3e143ee1db033660ffeea04b8c77e4bd6a +DIST purritobin-0.5.1.tar.gz 18273 BLAKE2B 8040e8f6e4d0cf6bfa9d915365420be40900f685fcce8ddf28236a1874f3b317ca3dae0e59fd54650ceeffd21513a9ed3c272f637b7c5b9f7a9ee12b6e3c2e07 SHA512 80e6e88d1081d30e8cfb34608e9e6c6d78ff67960954e73ffcb8844d3e654c91b6e701b2f2e082869196a3bf5e132b6111bd40c7261082034f9e38f36b6536ff diff --git a/net-misc/purritobin/purritobin-0.5.1.ebuild b/net-misc/purritobin/purritobin-0.5.1.ebuild new file mode 100644 index 0000000000..cbfc6e3527 --- /dev/null +++ b/net-misc/purritobin/purritobin-0.5.1.ebuild @@ -0,0 +1,47 @@ +# 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 toolchain-funcs + +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 ~arm64 ~x86" + S="${WORKDIR}/PurritoBin-${PV}" +fi + +LICENSE="ISC" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + net-libs/usockets[ssl] + acct-user/purritobin + acct-group/purritobin +" +DEPEND="${RDEPEND} + www-apps/uwebsockets +" + +src_configure() { + default + tc-export CXX +} + +src_install() { + emake PREFIX="/usr" MANDIR="/usr/share/man" DESTDIR="${ED}" install + insinto /var/www/purritobin + doins frontend/paste.html + fowners purritobin:purritobin /var/www/purritobin + newinitd services/openrc purritobin + systemd_newunit services/systemd purritobin.service + einstalldocs +}