www-apps/youp0m: new package

Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
nemunaire 2018-01-30 08:06:43 +01:00 committed by nemunaire
parent c82e295f42
commit 12310ca65d
4 changed files with 61 additions and 0 deletions

3
www-apps/youp0m/Manifest Normal file
View File

@ -0,0 +1,3 @@
AUX youp0m.init 534 SHA256 c76a91922bcd04d6041ae66b122c7ec5daf9ba859fd700164db4ce8a6f1350ee SHA512 bdfc58c0a35d6194f8dfa85051e93b4e04f9e1c811b1436782836905bd816a662b27891d1470e4da39fc54d929518dd1463dfdc74c44829d1249d3d24ef2c4e1 WHIRLPOOL ac40685d0191b2b746adf01b4555d64f83430b025e833cb7fba84bed1f1248d833ff3452d825df5636ac9cce750060613cc959fe370bbd1e001b5995bef9b12f
EBUILD youp0m-9999.ebuild 664 SHA256 0b7b31b7edcf1408ad55e7b581333a63f5edda352bdf12052db6ada13a5b5603 SHA512 1d7a2cbf28dc1924f06593ab00899109d26df901ceddc6f75f681bdcb1bf8e5b147874d5454f1c2ac4898ded37dba723919f1c9615f3a41388536e6981789546 WHIRLPOOL 91e0b1e49e36cefda0d04a5f00ac00082dda13e75c8994c65378c26cd1c060f461117b90f5e6b9245c064b1341d16e8d9ce40071368bd7713393023e67cfd097
MISC metadata.xml 258 SHA256 203bbc2633048b61203eeec36c373dd066069c68776d8c79695eb0701ff8bda3 SHA512 bae5e9eb659f7355c95800c2231976b3f91dd6a1c9215d8c5865f3e710109c9442477d374a4e70f70ac73f52fd8ce357dfa937f7b7aababaeaea310677dc143d WHIRLPOOL 54eabdd3c44b53a528b4ca9e5e810ea13002e55794de65d358ad2fcbeb31f3ea3b3f9fa54dfd8536d9d942b6dd1753e52305175e9d69ae6f6129c2f09b93748e

View File

@ -0,0 +1,16 @@
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command=/usr/bin/youp0m
command_args="-bind :8078"
pidfile=/var/run/youp0m/youp0m.pid
start_stop_daemon_args="--make-pidfile --background --user nobody --group nobody --chdir /var/lib/youp0m/ --stdout /var/log/youp0m/youp0m.log --stderr /var/log/youp0m/youp0m.log"
depend() {
need localmount net
}
start_pre() {
checkpath -d -m 0750 -o nobody:nobody /var/run/youp0m/ /var/lib/youp0m/ /var/log/youp0m/
}

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>

View File

@ -0,0 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGO_PN=git.nemunai.re/youp0m.git
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="Display a daily cute picture"
HOMEPAGE="https://ohsnap.p0m.fr"
LICENSE="AGPL-3"
SLOT="0"
IUSE=""
DEPEND="
dev-go/go-crypt
dev-go/resize
"
RDEPEND=""
src_install() {
mv ${PN}.git ${PN}
dobin ${PN}
newinitd "${FILESDIR}"/${PN}.init ${PN}
keepdir /var/lib/${PN}
}