www-apps/pleroma: Version bump 2.0.1.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
87f323cea1
commit
cee8e24355
|
@ -2,14 +2,16 @@
|
||||||
Hash: SHA256
|
Hash: SHA256
|
||||||
|
|
||||||
AUX syslog.exs 193 BLAKE2B 63ec05041a10b7f3a5c7fbd8bf454819eafbd98efd635a2888d7db7333e212a872ea212889bb9ee81c1810bf9f55d6d7d7133e0a6619d23c9e3bdcac04d70c73 SHA512 fd47e00575a64cd519a1229ca429059eb9ca5c0a1e8454b56995606e25f9fcfad0107d92207eab41aad36ccf30b506a5475781225274fc55841fd55ec74928f1
|
AUX syslog.exs 193 BLAKE2B 63ec05041a10b7f3a5c7fbd8bf454819eafbd98efd635a2888d7db7333e212a872ea212889bb9ee81c1810bf9f55d6d7d7133e0a6619d23c9e3bdcac04d70c73 SHA512 fd47e00575a64cd519a1229ca429059eb9ca5c0a1e8454b56995606e25f9fcfad0107d92207eab41aad36ccf30b506a5475781225274fc55841fd55ec74928f1
|
||||||
|
DIST pleroma-v2.0.1.tar.bz2 27117839 BLAKE2B 6ad369260de09309bab54e4811d83bd756f621b70ab0b0601fb3f3d144d95e1f2b03b870d4d6dc29b9891c82733c2eecb0a50fac77bc04669e6f175e6d3d7b42 SHA512 d2a0e5e1458cec6911d9920c62f9a645f8aec2b3818dd8768b69ca6d7f1e3feff70c46d3d6e76116bf0176f0e90fe0ff2dd1dbd5e8eddc8bb0bb2d6c2c14bfce
|
||||||
EBUILD pleroma-1.1.8.ebuild 3372 BLAKE2B 37173e0ddbca3dfbe5e37ae370c5d9e5e9f9e47a2f7fea36f7da2f4d8cd945711597871f1a2bd09c733994a5211c08596dce1d8b238cd7d59ab14eb909030da8 SHA512 bdbf8490668d1ca5917f3708f6f41a295b321efc958b4cff25fdb7baeff366e3a1f084524d7e09bbed8865cefe41d0c23cc6ff12636cff1ea48688e2bfe571d0
|
EBUILD pleroma-1.1.8.ebuild 3372 BLAKE2B 37173e0ddbca3dfbe5e37ae370c5d9e5e9f9e47a2f7fea36f7da2f4d8cd945711597871f1a2bd09c733994a5211c08596dce1d8b238cd7d59ab14eb909030da8 SHA512 bdbf8490668d1ca5917f3708f6f41a295b321efc958b4cff25fdb7baeff366e3a1f084524d7e09bbed8865cefe41d0c23cc6ff12636cff1ea48688e2bfe571d0
|
||||||
EBUILD pleroma-1.1.9.ebuild 3372 BLAKE2B 37173e0ddbca3dfbe5e37ae370c5d9e5e9f9e47a2f7fea36f7da2f4d8cd945711597871f1a2bd09c733994a5211c08596dce1d8b238cd7d59ab14eb909030da8 SHA512 bdbf8490668d1ca5917f3708f6f41a295b321efc958b4cff25fdb7baeff366e3a1f084524d7e09bbed8865cefe41d0c23cc6ff12636cff1ea48688e2bfe571d0
|
EBUILD pleroma-1.1.9.ebuild 3372 BLAKE2B 37173e0ddbca3dfbe5e37ae370c5d9e5e9f9e47a2f7fea36f7da2f4d8cd945711597871f1a2bd09c733994a5211c08596dce1d8b238cd7d59ab14eb909030da8 SHA512 bdbf8490668d1ca5917f3708f6f41a295b321efc958b4cff25fdb7baeff366e3a1f084524d7e09bbed8865cefe41d0c23cc6ff12636cff1ea48688e2bfe571d0
|
||||||
EBUILD pleroma-2.0.0.ebuild 3366 BLAKE2B 8bced6f6c08f2175cbdb04810ade6149b2bdb1f058f963649130011682841b43f55de743ddfe0a518af430b901a3bddfb8c858b7f769bdd7011245bdcada1d1c SHA512 2a4b91f7c039c6fbdccecee6291b5de4b7c3236e8f6e04b4a11491ef800f6b8fc2179140ce91d502eacad1cbb77e578dd74335a46c3fe4eae95090023e8129ce
|
EBUILD pleroma-2.0.0.ebuild 3366 BLAKE2B 8bced6f6c08f2175cbdb04810ade6149b2bdb1f058f963649130011682841b43f55de743ddfe0a518af430b901a3bddfb8c858b7f769bdd7011245bdcada1d1c SHA512 2a4b91f7c039c6fbdccecee6291b5de4b7c3236e8f6e04b4a11491ef800f6b8fc2179140ce91d502eacad1cbb77e578dd74335a46c3fe4eae95090023e8129ce
|
||||||
|
EBUILD pleroma-2.0.1.ebuild 3580 BLAKE2B 2041ca32fd7d62510e18f9f5cc33d5505f649f2efbc75e5d10ab49d9e646a112d714651bf3633c50f65fa64ac9ff1cecd826dd1e88c81f91e6dee9dc1575a427 SHA512 c49f835a7f7c7685be45fa78187ae5e0d2a6fa35d34a55b85c70bb4bbb1a26c7462e1550d8353ecaccf720832a8b1001fc5e2e9a71a11cd4c152ba0996ef1a32
|
||||||
MISC metadata.xml 993 BLAKE2B adc5c72fe12b6fdb4eb20c1d79dde227b088b437ffd21d16cc5775fa5bb7fa6363890dd5017fbe7f5a00a794a38fb298ce17e6402f6d3d5441985effd0d7e1db SHA512 6ff23fa60c0f22ef7a433e3d1b4919d074508898504b7168c925da8840f542afcdc891a9f4df69dc8eb6c44b7d9c41e6b94fdecd404ca738169124bcdab0af0d
|
MISC metadata.xml 993 BLAKE2B adc5c72fe12b6fdb4eb20c1d79dde227b088b437ffd21d16cc5775fa5bb7fa6363890dd5017fbe7f5a00a794a38fb298ce17e6402f6d3d5441985effd0d7e1db SHA512 6ff23fa60c0f22ef7a433e3d1b4919d074508898504b7168c925da8840f542afcdc891a9f4df69dc8eb6c44b7d9c41e6b94fdecd404ca738169124bcdab0af0d
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXmTuKAAKCRDPw5SX8bJu
|
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXm87cAAKCRDPw5SX8bJu
|
||||||
B67fAP9rrWWlbeW1tzwdWiDlmrBxYWIj9Ln7iqf/wFthMWe7WgEAhtESilRpfmvS
|
B6iYAP4yZYaAtXXMM5nsbSkQGW6wH7z5UdQW5iNJmi87vuPXywD/QkQX11vGwGiR
|
||||||
KH4ZDjwlp3pWn1vRk4+6CfkKvKMirGk=
|
y40+yZOlp/QI7WwvaYcyYodSpwO9mVQ=
|
||||||
=EmQj
|
=oIkP
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
|
127
www-apps/pleroma/pleroma-2.0.1.ebuild
Normal file
127
www-apps/pleroma/pleroma-2.0.1.ebuild
Normal file
|
@ -0,0 +1,127 @@
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit user systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Microblogging server software that can federate with other servers."
|
||||||
|
HOMEPAGE="https://pleroma.social/ https://git.pleroma.social/pleroma/pleroma/"
|
||||||
|
SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/pleroma-v${PV}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="apache +nginx syslog"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-lang/elixir-1.8.1
|
||||||
|
>=dev-db/postgresql-9.6.13[uuid]
|
||||||
|
apache? ( www-servers/apache )
|
||||||
|
nginx? ( www-servers/nginx[nginx_modules_http_slice] )
|
||||||
|
"
|
||||||
|
DEPEND=""
|
||||||
|
|
||||||
|
S="${WORKDIR}/pleroma-v2.0.1"
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
ewarn "This ebuild will overwrite modified files in /opt/pleroma/priv/static/"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup pleroma
|
||||||
|
enewuser pleroma -1 -1 /opt/pleroma pleroma
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto "/opt/pleroma"
|
||||||
|
insopts -o pleroma -g pleroma -m 0664
|
||||||
|
doins -r * .*
|
||||||
|
# insopts doesn't affect directories.
|
||||||
|
chown -R pleroma:pleroma "${ED}/opt/pleroma"
|
||||||
|
chmod -R ug=rwX "${ED}/opt/pleroma"
|
||||||
|
|
||||||
|
if use nginx; then
|
||||||
|
dodoc installation/pleroma.nginx
|
||||||
|
fi
|
||||||
|
if use apache; then
|
||||||
|
dodoc installation/pleroma-apache.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc -r docs/*
|
||||||
|
|
||||||
|
doinitd installation/init.d/pleroma
|
||||||
|
systemd_dounit installation/pleroma.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "You need to run emerge --config www-apps/pleroma after each upgrade."
|
||||||
|
if use nginx; then
|
||||||
|
einfo "An example config for nginx has been installed in the doc directory."
|
||||||
|
ewarn "If you're upgrading from pre-2.0.1, remove"
|
||||||
|
ewarn "proxy_ignore_headers Cache-Control; and"
|
||||||
|
ewarn "proxy_hide_header Cache-Control; from your nginx config."
|
||||||
|
fi
|
||||||
|
if use apache; then
|
||||||
|
einfo "An example config for apache has been installed in the doc directory."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_config() {
|
||||||
|
local configfile="${EROOT}/opt/pleroma/config/prod.secret.exs"
|
||||||
|
cd "${EROOT}/opt/pleroma" || die
|
||||||
|
|
||||||
|
if [[ ! -f ${configfile} ]]; then # Fresh install.
|
||||||
|
einfo "Installing the dependencies..."
|
||||||
|
einfo "Answer with yes if it asks you to install Hex."
|
||||||
|
su -ls /bin/bash -c "mix deps.get" pleroma || die
|
||||||
|
|
||||||
|
einfo "Generating the configuration..."
|
||||||
|
einfo "Answer with yes if it asks you to install rebar3."
|
||||||
|
su -ls /bin/bash -c "mix pleroma.instance gen" pleroma || die
|
||||||
|
mv -v config/{generated_config.exs,prod.secret.exs} || die
|
||||||
|
|
||||||
|
if use syslog; then
|
||||||
|
einfo "Activating syslog in ${configfile} ..."
|
||||||
|
cat "${FILESDIR}/syslog.exs" >> ${configfile}
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Creating the database..."
|
||||||
|
su -ls /bin/bash -c "psql -f config/setup_db.psql" postgres || die
|
||||||
|
|
||||||
|
einfo "Running the database migration..."
|
||||||
|
su -ls /bin/bash -c "MIX_ENV=prod mix ecto.migrate" pleroma || die
|
||||||
|
|
||||||
|
einfo "Your configuration file is in ${configfile}."
|
||||||
|
else # Update.
|
||||||
|
einfo "Pleroma will be stopped for the duration of the update."
|
||||||
|
einfo "Hit enter to proceed."
|
||||||
|
read
|
||||||
|
|
||||||
|
declare -i started=0
|
||||||
|
if "${EROOT}"/etc/init.d/pleroma --nocolor status | grep -q started; then
|
||||||
|
started=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${started} -eq 1 ]]; then
|
||||||
|
einfo "Stopping pleroma..."
|
||||||
|
"${EROOT}"/etc/init.d/pleroma stop || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Updating the dependencies..."
|
||||||
|
su -ls /bin/bash -c "mix deps.get" pleroma || die
|
||||||
|
|
||||||
|
einfo "Running the database migration..."
|
||||||
|
su -ls /bin/bash -c "MIX_ENV=prod mix ecto.migrate" pleroma || die
|
||||||
|
|
||||||
|
if [[ ${started} -eq 1 ]]; then
|
||||||
|
einfo "Starting pleroma..."
|
||||||
|
"${EROOT}"/etc/init.d/pleroma start || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -q MIX_ENV ~pleroma/.profile 2>/dev/null; then
|
||||||
|
elog "Setting MIX_ENV=prod in ~pleroma/.profile ..."
|
||||||
|
echo "export MIX_ENV=prod" >> ~pleroma/.profile || die
|
||||||
|
fi
|
||||||
|
}
|
Reference in New Issue
Block a user