www-apps/pleroma-installer: Version 6, fixed init script.

Package-Manager: Portage-2.3.62, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
tastytea 2019-03-28 08:40:45 +01:00
parent 6361208b76
commit 523df7a9de
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 87 additions and 4 deletions

View File

@ -7,11 +7,12 @@ AUX upgrade_pleroma-r1.sh 852 BLAKE2B 2442d34fd1ba5d551c22e8f4cac319ac562022a40d
AUX upgrade_pleroma.sh 791 BLAKE2B 3123e3bcc06bab422a554eeb9c5da6b100107125d16e9a661c90b1c09d1f4b8fd5cbdc743ed521db0ba7593a4967bd384695834d1951fa84ca2dd802773e31c1 SHA512 d08ffce3cfeba971022c0e1f9a08daffc10e60fa8d7920d99a840bbe7744d487d064e9d641f57ff89db77ba9c5fe0fd51999cce112ef7e8a2c1a5bf5a8c021ad
EBUILD pleroma-installer-4.ebuild 2614 BLAKE2B 429cc8e36e763aed3349b9d2496387cb503a6aba0d108fcf72a8eb50ebb5272fa5c5bf4bb0ef3144c85fc5e1792397f53a8fe427444ee99b65286a897c0a2a47 SHA512 251a8a4851cff0e565ab14b5c6999fe0208115e3337f04b550acc4dc61d9113e9182002c4fcb3103a91bb183818ea97a9601988c190b4b64d303ca75344b4609
EBUILD pleroma-installer-5.ebuild 2567 BLAKE2B f3768a19e70602a8945440685ffeb0fb20f6c9d2f60db2bea5e0a141c28d9d56432d07b15c25402b12385bd1e20b4329647c936b4659afa3182b94f82121c634 SHA512 935e548e224e9480f48e378a37c8a6b6e42ec234720c0846d8f89e09c0d19db80a1ebbe2991237f8fe4ba696c5941e8b9ea802fef4fdc831d156b7ec3ab2ca1f
EBUILD pleroma-installer-6.ebuild 2266 BLAKE2B d2ad4b9129e81ada5d924366ce459fa19bdd529e6ddd4941f5476cfbd9a47752b6b32c06e4567ebc3bba5c272a8416574e6b8e61d7af73b30b661b56abbe63c6 SHA512 5fd86a6f0929a01fffbac1d285310349127eb97c5bbf38c5056941fcebefe77dc896e1fbb3ef02e29f3b4f46a2274015dd9f098a53c1b75f308b7fd4be338003
MISC metadata.xml 993 BLAKE2B adc5c72fe12b6fdb4eb20c1d79dde227b088b437ffd21d16cc5775fa5bb7fa6363890dd5017fbe7f5a00a794a38fb298ce17e6402f6d3d5441985effd0d7e1db SHA512 6ff23fa60c0f22ef7a433e3d1b4919d074508898504b7168c925da8840f542afcdc891a9f4df69dc8eb6c44b7d9c41e6b94fdecd404ca738169124bcdab0af0d
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXHEP+AAKCRDPw5SX8bJu
Bw/mAPwOOcHno4q8xz8QSf/+SkJiCHZu1FAGMDG+0FCo70OwJAEAgZV6bRGbgHX2
Z/4AW5qmPXq1GDSjXQXF6HdTWbBmoCI=
=uL+S
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXJx6fQAKCRDPw5SX8bJu
B6QkAP9fqZ6STJjAjSOjjlHtJP7znE7yHf0/Kw5/WnlQUyrxuAD+K4by0jg2qjxL
bDots6ZssHSgHhcE21reyiUTSRTTtTo=
=j6Vu
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,82 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 user systemd
DESCRIPTION="Microblogging server software that can federate with other servers."
HOMEPAGE="https://pleroma.social/ https://git.pleroma.social/pleroma/pleroma/"
EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma.git"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS=""
IUSE="apache +nginx systemd"
RDEPEND="
>=dev-lang/elixir-1.6.6
dev-vcs/git
>=dev-db/postgresql-9.6.11[uuid]
app-admin/sudo
apache? ( www-servers/apache )
nginx? ( www-servers/nginx )
"
DEPEND=""
pkg_preinst() {
ewarn "This ebuild installs an installation script for the development-branch of Pleroma."
ewarn "If you want a stabler version, install www-apps/pleroma."
ewarn "Beginning with 2019-02-10, the Pleroma init scripts expect the installation in ${EPREFIX}/opt/pleroma."
ewarn "If it is in ${EPREFIX}/var/lib/pleroma, this ebuild will fail. Move it now and remerge."
}
pkg_setup() {
enewgroup pleroma
enewuser pleroma -1 -1 /opt/pleroma pleroma
}
src_prepare() {
default
if use systemd; then
sed -i 's|/etc/init.d/pleroma stop|systemctl stop pleroma|' "${FILESDIR}/upgrade_pleroma.sh" || die
sed -i 's|/etc/init.d/pleroma restart|systemctl restart pleroma|' "${FILESDIR}/upgrade_pleroma.sh" || die
fi
}
src_install() {
local pleromadir="${EPREFIX}/opt/pleroma"
diropts -o pleroma -g pleroma
exeopts -o pleroma -g pleroma
dodir "${pleromadir}"
exeinto "${pleromadir}"
newexe "${FILESDIR}/install_pleroma-r1.sh" install_pleroma.sh
newexe "${FILESDIR}/upgrade_pleroma-r1.sh" upgrade_pleroma.sh
if use nginx; then
dodoc installation/pleroma.nginx
fi
if use apache; then
dodoc installation/pleroma-apache.conf
fi
dodoc docs/*
if use systemd; then
systemd_dounit installation/pleroma.service
else
doinitd installation/init.d/pleroma
fi
}
pkg_postinst() {
elog "For the initial installation, cd to ${EPREFIX}/opt/pleroma and run ./install_pleroma.sh."
elog "To upgrade, run ./upgrade_pleroma.sh."
if use nginx; then
einfo "An example config for nginx has been installed in the doc directory."
fi
if use apache; then
einfo "An example config for apache has been installed in the doc directory."
fi
}