From ffa1d284223edef16375f436cab98e0c51102632 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 19 Feb 2019 16:18:33 +0100 Subject: [PATCH] www-apps/eurocollec: new package Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- www-apps/eurocollec/Manifest | 3 ++ www-apps/eurocollec/eurocollec-9999.ebuild | 40 ++++++++++++++++++++++ www-apps/eurocollec/files/eurocollec.init | 16 +++++++++ www-apps/eurocollec/metadata.xml | 8 +++++ 4 files changed, 67 insertions(+) create mode 100644 www-apps/eurocollec/Manifest create mode 100644 www-apps/eurocollec/eurocollec-9999.ebuild create mode 100644 www-apps/eurocollec/files/eurocollec.init create mode 100644 www-apps/eurocollec/metadata.xml diff --git a/www-apps/eurocollec/Manifest b/www-apps/eurocollec/Manifest new file mode 100644 index 0000000..b62b412 --- /dev/null +++ b/www-apps/eurocollec/Manifest @@ -0,0 +1,3 @@ +AUX eurocollec.init 527 BLAKE2B 6f3886fadb81c3426639c797d477e768db94619d029c055de8ee978323e9375a3c6bfe813520901c1ee1694f9eaf5c533a98e24638fe2a609809c378957af852 SHA512 7cec7b6387d73199f023eec105a532c9403bb89ef5d369d0d17626393bfe2d89645ee3a0bd14f5603387cf7e18c0bbf6f4ffc2a4eb4dc7ea6f157c0d04028bbd +EBUILD eurocollec-9999.ebuild 794 BLAKE2B b1e7ca798429a445da411405242f9d865da7cd697aadb121b86d35a3cfa1e6250df4786512d193b8e56bf0b5d29096fc9c4c5aa6edba3f0ce1c7f76ddfb7b9f4 SHA512 3c0c7658edad6361286b559e1d6b62d8e0338653b84162928ff73b9f75692af3a65b48b2904188eba4358ad0c7a515c35974d7d8f4dadcf82fc3e527817c0d7d +MISC metadata.xml 258 BLAKE2B 56a930f47b1b24a142aa53c18ff04027c0d01a123c41953c1138c773d8aac67e9a193787bbd980fd2d16482f04e99365bd8538550dd3df3d1959935a7cc378e5 SHA512 bae5e9eb659f7355c95800c2231976b3f91dd6a1c9215d8c5865f3e710109c9442477d374a4e70f70ac73f52fd8ce357dfa937f7b7aababaeaea310677dc143d diff --git a/www-apps/eurocollec/eurocollec-9999.ebuild b/www-apps/eurocollec/eurocollec-9999.ebuild new file mode 100644 index 0000000..f7a6357 --- /dev/null +++ b/www-apps/eurocollec/eurocollec-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGO_PN=git.nemunai.re/eurocollec + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64 ~arm ~mips" + EGIT_COMMIT=v${PV} + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +DESCRIPTION="Explore your coins collection" +HOMEPAGE="https://eurocollec.p0m.fr" +LICENSE="AGPL-3" +SLOT="0" +IUSE="" +DEPEND=" + dev-go/go-bindata + dev-go/httprouter + dev-go/mysql +" +RDEPEND="virtual/mysql" + +src_prepare() { + cd "src/${EGO_PN}" + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go generate -v + default +} + +src_install() { + dobin ${PN} + #dodoc src/${EGO_PN}/*.md + newinitd "${FILESDIR}"/${PN}.init ${PN} +} diff --git a/www-apps/eurocollec/files/eurocollec.init b/www-apps/eurocollec/files/eurocollec.init new file mode 100644 index 0000000..752c21f --- /dev/null +++ b/www-apps/eurocollec/files/eurocollec.init @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/bin/eurocollec +command_args="-bind :8074" +pidfile=/var/run/ohsnap/eurocollec.pid +start_stop_daemon_args="--make-pidfile --background --user nobody --group nobody --stdout /var/log/eurocollec/eurocollec.log --stderr /var/log/eurocollec/eurocollec.log" + +depend() { + need localmount mysql net +} + +start_pre() { + checkpath -d -m 0750 -o nobody:nobody /var/run/eurocollec/ /var/log/eurocollec/ +} diff --git a/www-apps/eurocollec/metadata.xml b/www-apps/eurocollec/metadata.xml new file mode 100644 index 0000000..ee4ff8b --- /dev/null +++ b/www-apps/eurocollec/metadata.xml @@ -0,0 +1,8 @@ + + + + + nemunaire@nemunai.re + Pierre-Olivier Mercier + +