www-apps/eurocollec: new package

Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
nemunaire 2019-02-19 16:18:33 +01:00
parent 862b2aa632
commit ffa1d28422
4 changed files with 67 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nemunaire@nemunai.re</email>
<name>Pierre-Olivier Mercier</name>
</maintainer>
</pkgmetadata>