www-apps/ohsnap: new package
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
parent
92e32909c3
commit
ad8b37ffba
3
www-apps/ohsnap/Manifest
Normal file
3
www-apps/ohsnap/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX ohsnap.init 539 SHA256 7b4b459e1c7fb30dfd417582eb2e492004c0b651770d2c0c20db45f3f1b0d744 SHA512 efadc93cea8c29bf15f32d0718f785a426fd228151bfc01e6a1ad891b73a70832bb72cc314ac9d3ab822c2f05adee0bb4d417b9b25d8d9afab2cc362d5689437 WHIRLPOOL 2a772ff1847da50b2011001614acd976bfa4f1feaed36863f084d18efa7f368804be216ff7ce6226982b73dd7d07b02ece6de25d48b58637080656579c447559
|
||||
EBUILD ohsnap-9999.ebuild 863 SHA256 579a00750d52932ec82c3e787943ba0e87bfbc41aa57c413a9d7aa9f7b914aca SHA512 f15eba555c203fd4b545a0f028e8e2673dfbb0dfe51a85dbc90dbe5854993b6852e353f23802820720a5e2215bd3870ed8ad557648bb045bbfc3f3fea6efbfe9 WHIRLPOOL eb0bb03d595de8ab9e68bbe04a36a4f6d0cd19d85ef9c61d834f2c642e458bb4fe3ff6c9449bc17041fa76be6e0f5365900d812b5a43d37a9e9f9a26c1c16457
|
||||
MISC metadata.xml 338 SHA256 c079d96e00c1c1b2f70f72f5027b35a4c1c10a4ab4328c2732f377b33eaf654f SHA512 2a91c47412e2503c25a1f272ffa62ccdc55f7972d0190775b58216ecaa0f587dca3e8b276968a78c7e26822ebc7530268cf9ca54e98a0865eae74a68566897b6 WHIRLPOOL 69e33a9862c32a6fcb6fe6d55bf966883a7ad33b5f081651b5213492a3b6296e684882f81d806f6117adbd0f28b54ca5ccde90639e132d9a07ca7597472591e4
|
16
www-apps/ohsnap/files/ohsnap.init
Normal file
16
www-apps/ohsnap/files/ohsnap.init
Normal 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/ohsnap
|
||||
command_args="-port 8079"
|
||||
pidfile=/var/run/ohsnap/ohsnap.pid
|
||||
start_stop_daemon_args="--make-pidfile --background --user nobody --group nobody --chdir /var/lib/ohsnap/ --stdout /var/log/ohsnap/ohsnap.log --stderr /var/log/ohsnap/ohsnap.log"
|
||||
|
||||
depend() {
|
||||
need localmount mysql net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0750 -o nobody:nobody /var/run/ohsnap/ /var/lib/ohsnap/ /var/log/ohsnap/
|
||||
}
|
13
www-apps/ohsnap/metadata.xml
Normal file
13
www-apps/ohsnap/metadata.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?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>
|
||||
<use>
|
||||
<flag name="smtp-bridge">
|
||||
Enable the SMTP bridge.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
42
www-apps/ohsnap/ohsnap-9999.ebuild
Normal file
42
www-apps/ohsnap/ohsnap-9999.ebuild
Normal file
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN=git.nemunai.re/ohsnap.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="Snapchat clone using email"
|
||||
HOMEPAGE="https://ohsnap.p0m.fr"
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="+smtp-bridge"
|
||||
DEPEND="dev-go/mysql"
|
||||
RDEPEND="
|
||||
smtp-bridge? (
|
||||
dev-perl/Email-MIME
|
||||
dev-perl/JSON
|
||||
dev-perl/LWP-Protocol-https
|
||||
dev-perl/MailTools
|
||||
)
|
||||
virtual/mysql
|
||||
"
|
||||
|
||||
src_install() {
|
||||
use smtp-bridge && dobin src/${EGO_PN}/smtp_bridge.pl
|
||||
|
||||
mv ${PN}.git ${PN}
|
||||
dobin ${PN}
|
||||
dodoc src/${EGO_PN}/doc/*.md
|
||||
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
||||
keepdir /var/lib/${PN}
|
||||
}
|
Loading…
Reference in New Issue
Block a user