net-misc/purritobin: version bump to 0.4.2

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2021-02-11 18:17:30 +00:00
parent eeb17618e1
commit d43819b4b9
3 changed files with 50 additions and 2 deletions

View File

@@ -1 +1,2 @@
DIST purritobin-0.4.1.tar.gz 14363 BLAKE2B 96bcfe76556f430db52ea99bb991acd66c92926faf3c3259b56db16c0195b1a5c70e311e51054a7c1d7d78d687de2e162c214933f9ba6f16dbf3189536e98f06 SHA512 83b448e9599ab87d324d8ff988f339cafe38f8681c92ab986cea0042862db8fe8ce51d979edffedd0a819baa4d25ebffa26fa5362e5e96ab76b8a982a8cb0877
DIST purritobin-0.4.2.tar.gz 15436 BLAKE2B 3e632738a9dc17beb331f80a79b52cf75716401d5aa6c6ebb696fd22ea6c65a5f0b7b80e78f8849783ef9688adcc740837d0ae0ab24407f49b274cb09e60eb7d SHA512 1e348ba30ffc1d79643b15da275e29536d3c0a7719ecf27455fafe84a066c7f8d08c5fad5be513d9d6b2b9a7e094dbe38f982eb791b2224a5c32e6fe2a41e0bc

View File

@@ -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
}

View File

@@ -41,7 +41,7 @@ src_install() {
insinto /var/www/purritobin
doins frontend/paste.html
fowners purritobin:purritobin /var/www/purritobin
newinitd "${FILESDIR}"/purritobin.initd purritobin
systemd_dounit "${FILESDIR}"/purritobin.service
newinitd services/openrc purritobin
systemd_newunit services/systemd purritobin.service
einstalldocs
}