public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: net-misc/purritobin/files/, net-misc/purritobin/
@ 2021-01-12 20:12 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-01-12 20:12 UTC (permalink / raw
  To: gentoo-commits

commit:     d0d685768daab8011c44f8675b7978d4474ef312
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Mon Jan 11 16:07:35 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jan 11 16:30:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0d68576

net-misc/purritobin: add init file

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 net-misc/purritobin/files/purritobin.initd              | 16 ++++++++++++++++
 net-misc/purritobin/files/purritobin.service            | 17 +++++++++++++++++
 ...rritobin-0.3.3.ebuild => purritobin-0.3.3-r1.ebuild} | 15 ++++++++++++---
 net-misc/purritobin/purritobin-9999.ebuild              | 15 ++++++++++++---
 4 files changed, 57 insertions(+), 6 deletions(-)

diff --git a/net-misc/purritobin/files/purritobin.initd b/net-misc/purritobin/files/purritobin.initd
new file mode 100644
index 00000000..8c070466
--- /dev/null
+++ b/net-misc/purritobin/files/purritobin.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="PurritoBin"
+description="ultra fast, minimalistic command line paste-bin"
+
+command="/usr/bin/purrito"
+command_background=true
+command_args="${ARGS:- -d /var/www/purritobin/}"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_user="purritobin:purritobin"
+
+depend() {
+        need net
+}

diff --git a/net-misc/purritobin/files/purritobin.service b/net-misc/purritobin/files/purritobin.service
new file mode 100644
index 00000000..1a55dbcd
--- /dev/null
+++ b/net-misc/purritobin/files/purritobin.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=PurritoBin
+After=network.target
+
+[Service]
+SyslogIdentifier=purritobin
+Restart=always
+RestartSec=5
+Type=simple
+User=purritobin
+Group=purritobin
+WorkingDirectory=/var/www/purritobin
+ExecStart=/usr/bin/purritobin
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-misc/purritobin/purritobin-0.3.3.ebuild b/net-misc/purritobin/purritobin-0.3.3-r1.ebuild
similarity index 63%
rename from net-misc/purritobin/purritobin-0.3.3.ebuild
rename to net-misc/purritobin/purritobin-0.3.3-r1.ebuild
index 37179319..fd9c6136 100644
--- a/net-misc/purritobin/purritobin-0.3.3.ebuild
+++ b/net-misc/purritobin/purritobin-0.3.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2020 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,7 +6,7 @@ EAPI=7
 DESCRIPTION="minimalistic commandline pastebin"
 HOMEPAGE="https://bsd.ac"
 
-inherit toolchain-funcs
+inherit systemd toolchain-funcs
 
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
@@ -20,7 +20,11 @@ fi
 LICENSE="ISC"
 SLOT="0"
 
-RDEPEND="net-libs/usockets[ssl]"
+RDEPEND="
+	net-libs/usockets[ssl]
+	acct-user/purritobin
+	acct-group/purritobin
+"
 DEPEND="${RDEPEND}
 	www-apps/uwebsockets
 "
@@ -32,5 +36,10 @@ src_configure() {
 
 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 "${FILESDIR}"/purritobin.initd purritobin
+	systemd_dounit "${FILESDIR}"/purritobin.service
 	einstalldocs
 }

diff --git a/net-misc/purritobin/purritobin-9999.ebuild b/net-misc/purritobin/purritobin-9999.ebuild
index 37179319..fd9c6136 100644
--- a/net-misc/purritobin/purritobin-9999.ebuild
+++ b/net-misc/purritobin/purritobin-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2020 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,7 +6,7 @@ EAPI=7
 DESCRIPTION="minimalistic commandline pastebin"
 HOMEPAGE="https://bsd.ac"
 
-inherit toolchain-funcs
+inherit systemd toolchain-funcs
 
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
@@ -20,7 +20,11 @@ fi
 LICENSE="ISC"
 SLOT="0"
 
-RDEPEND="net-libs/usockets[ssl]"
+RDEPEND="
+	net-libs/usockets[ssl]
+	acct-user/purritobin
+	acct-group/purritobin
+"
 DEPEND="${RDEPEND}
 	www-apps/uwebsockets
 "
@@ -32,5 +36,10 @@ src_configure() {
 
 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 "${FILESDIR}"/purritobin.initd purritobin
+	systemd_dounit "${FILESDIR}"/purritobin.service
 	einstalldocs
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: net-misc/purritobin/files/, net-misc/purritobin/
@ 2021-02-11 19:27 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-02-11 19:27 UTC (permalink / raw
  To: gentoo-commits

commit:     ae7b0bfbb92f3ee9001e409405f7e98d33ee2611
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Thu Feb 11 18:20:32 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Feb 11 19:01:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ae7b0bfb

net-misc/purritobin: drop old version

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 net-misc/purritobin/Manifest                 |  1 -
 net-misc/purritobin/files/purritobin.initd   | 16 ----------
 net-misc/purritobin/files/purritobin.service | 17 ----------
 net-misc/purritobin/purritobin-0.4.1.ebuild  | 47 ----------------------------
 4 files changed, 81 deletions(-)

diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest
index 84ad34bf..93d703f7 100644
--- a/net-misc/purritobin/Manifest
+++ b/net-misc/purritobin/Manifest
@@ -1,2 +1 @@
-DIST purritobin-0.4.1.tar.gz 14363 BLAKE2B 96bcfe76556f430db52ea99bb991acd66c92926faf3c3259b56db16c0195b1a5c70e311e51054a7c1d7d78d687de2e162c214933f9ba6f16dbf3189536e98f06 SHA512 83b448e9599ab87d324d8ff988f339cafe38f8681c92ab986cea0042862db8fe8ce51d979edffedd0a819baa4d25ebffa26fa5362e5e96ab76b8a982a8cb0877
 DIST purritobin-0.4.2.tar.gz 15436 BLAKE2B 3e632738a9dc17beb331f80a79b52cf75716401d5aa6c6ebb696fd22ea6c65a5f0b7b80e78f8849783ef9688adcc740837d0ae0ab24407f49b274cb09e60eb7d SHA512 1e348ba30ffc1d79643b15da275e29536d3c0a7719ecf27455fafe84a066c7f8d08c5fad5be513d9d6b2b9a7e094dbe38f982eb791b2224a5c32e6fe2a41e0bc

diff --git a/net-misc/purritobin/files/purritobin.initd b/net-misc/purritobin/files/purritobin.initd
deleted file mode 100644
index aebbb117..00000000
--- a/net-misc/purritobin/files/purritobin.initd
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="PurritoBin"
-description="ultra fast, minimalistic command line paste-bin"
-
-command="/usr/bin/purrito"
-command_background=true
-command_args="${command_args:- -d /var/www/purritobin/}"
-pidfile="/run/${RC_SVCNAME}.pid"
-command_user="purritobin:purritobin"
-
-depend() {
-        need net
-}

diff --git a/net-misc/purritobin/files/purritobin.service b/net-misc/purritobin/files/purritobin.service
deleted file mode 100644
index 7a274879..00000000
--- a/net-misc/purritobin/files/purritobin.service
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=PurritoBin
-After=network.target
-
-[Service]
-SyslogIdentifier=purritobin
-Restart=always
-RestartSec=5
-Type=simple
-User=purritobin
-Group=purritobin
-WorkingDirectory=/var/www/purritobin
-ExecStart=/usr/bin/purrito -d /var/www/purritobin/
-TimeoutStopSec=30
-
-[Install]
-WantedBy=multi-user.target

diff --git a/net-misc/purritobin/purritobin-0.4.1.ebuild b/net-misc/purritobin/purritobin-0.4.1.ebuild
deleted file mode 100644
index 5bfefc1e..00000000
--- a/net-misc/purritobin/purritobin-0.4.1.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# 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 "${FILESDIR}"/purritobin.initd purritobin
-	systemd_dounit "${FILESDIR}"/purritobin.service
-	einstalldocs
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-11 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12 20:12 [gentoo-commits] repo/proj/guru:master commit in: net-misc/purritobin/files/, net-misc/purritobin/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2021-02-11 19:27 Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox