www-apps/pleroma-installer: Delete package.

This commit is contained in:
tastytea 2020-05-22 22:00:46 +02:00
parent 588bc5ddfd
commit 6d93e79997
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
8 changed files with 0 additions and 274 deletions

View File

@ -1,7 +1,3 @@
# tastytea <tastytea+gentoo@tastytea.de> (2020-04-21)
# I don't use it anymore. Masked for removal in 30 days.
www-apps/pleroma-installer
# tastytea <tastytea+gentoo@tastytea.de> (2020-04-23)
# The package is in the GURU[1] repository now. Please use that instead. Masked
# for removal in 30 days.

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX install_pleroma-r1.sh 1361 BLAKE2B d6bf84e9c84a7953fdd9d5b5ebcb0834aeecfbee6c7338d5ed013ca9e1f07571a083d55756933cb8fde990cd421cf8e22605bfc21ff33113502ffe1019fbc0b2 SHA512 7596a017c60b8a4da54c698806927660cb71df15e50650597df6ef78ad5d0c70b6ec303920ac49999178f049083a5d219a486a7279ef31d525d53f808d8c072a
AUX install_pleroma.sh 1297 BLAKE2B efa93ff38d80202fcfe716a6fd4d3fc85882747acedd582fcafa03eafd6bf4d870f521525430c6c688fc13ae39da89ad8f3bc12c50a96b0e5e91e4cd5c5cb193 SHA512 a33fd3da78bd5c0db8e2dd92a8d7640b5bfab90b485d4d47f678b4ce1c86b92995c741a5aa9ab82dec4538469dc30d7cf6755691103a27057b3afabb2f42e1f2
AUX upgrade_pleroma-r1.sh 852 BLAKE2B 2442d34fd1ba5d551c22e8f4cac319ac562022a40d03102aba038c5d807576445bf8189ccb7a11a42788ff8d2783eba32120c23b1483874cd70089612aa739c7 SHA512 c7269115af94fec0cac211ed795425a5a2f6f8b3acfe9212169d9e444751354e52b2fab427aafcfa152903ea98dd6de133839be9a92e5ad8f6236534f74a44f9
AUX upgrade_pleroma.sh 791 BLAKE2B 3123e3bcc06bab422a554eeb9c5da6b100107125d16e9a661c90b1c09d1f4b8fd5cbdc743ed521db0ba7593a4967bd384695834d1951fa84ca2dd802773e31c1 SHA512 d08ffce3cfeba971022c0e1f9a08daffc10e60fa8d7920d99a840bbe7744d487d064e9d641f57ff89db77ba9c5fe0fd51999cce112ef7e8a2c1a5bf5a8c021ad
EBUILD pleroma-installer-6.ebuild 2081 BLAKE2B 957d0d11d2966b886820f11d93be91badbf6ac260b3eeb817293b06b3dee71f745e2bf77b06996f22d889e0f499377200b3b65ea76eb8623bb5821e9cf584a2e SHA512 2722fd17a0e729434c9a475981f47cdf831ce11f84902f58e8ec951ec7bd2018f9282179bd02edec9a1fbcaae721c57ba0786342a68335db20b5f89f612cfae2
MISC metadata.xml 993 BLAKE2B adc5c72fe12b6fdb4eb20c1d79dde227b088b437ffd21d16cc5775fa5bb7fa6363890dd5017fbe7f5a00a794a38fb298ce17e6402f6d3d5441985effd0d7e1db SHA512 6ff23fa60c0f22ef7a433e3d1b4919d074508898504b7168c925da8840f542afcdc891a9f4df69dc8eb6c44b7d9c41e6b94fdecd404ca738169124bcdab0af0d
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXRZrxwAKCRDPw5SX8bJu
B8oeAP9UEYtZlSOVCP7Yl3RzxPgv67kSDQL7gEyJeZpvvIte1AD8DhogCrawMyiW
ICSXKc7mkymfOhvk6ZWi2JmcNmNGCTg=
=jqHH
-----END PGP SIGNATURE-----

View File

@ -1,44 +0,0 @@
#!/bin/sh
echo "This script is only suitable for the initial installation, not for upgrades."
echo "Make sure postgresql is configured and running."
echo "Hit enter to proceed."
read sure
if [ -n "${sure}" ]; then
exit
fi
purple='\033[1;35m'
nocolor='\033[0m'
function die()
{
if [ -n "${1}" ]; then
echo "${1}" >&2
fi
exit 1
}
echo -e "${purple}Cloning pleroma into current dir...${nocolor}"
sudo -u pleroma git clone https://git.pleroma.social/pleroma/pleroma.git || die
mv pleroma/{*,.[a-zA-Z0-9]*} . || die
rmdir pleroma || die
echo -e "${purple}Installing the dependencies for pleroma..."
echo -e "Answer with yes if it asks you to install Hex.${nocolor}"
sudo -u pleroma mix deps.get || die
echo -e "${purple}Generating the configuration..."
echo -e "Answer with yes if it asks you to install rebar3.${nocolor}"
sudo -u pleroma mix pleroma.instance gen || die
mv -v config/{generated_config.exs,prod.secret.exs} || die
echo -e "${purple}Creating the database...${nocolor}"
sudo -u postgres psql -f config/setup_db.psql || die
echo -e "${purple}Running the database migration...${nocolor}"
sudo -u pleroma MIX_ENV=prod mix ecto.migrate || die
echo -en "\n${purple}Done! You can now start pleroma with${nocolor} "
echo "/etc/init.d/pleroma start"
echo "{purple}The configuration file is in${nocolor} config/prod.secret.exs"

View File

@ -1,44 +0,0 @@
#!/bin/sh
echo "This script is only suitable for the initial installation, not for upgrades."
echo "Make sure postgresql is configured and running."
echo "Hit enter to proceed."
read sure
if [ -n "${sure}" ]; then
exit
fi
purple='\033[1;35m'
nocolor='\033[0m'
function die()
{
if [ -n "${1}" ]; then
echo "${1}" >&2
fi
exit 1
}
echo -e "${purple}Cloning pleroma into current dir...${nocolor}"
git clone https://git.pleroma.social/pleroma/pleroma.git || die
mv pleroma/{*,.[a-zA-Z0-9]*} . || die
rmdir pleroma || die
echo -e "${purple}Installing the dependencies for pleroma..."
echo -e "Answer with yes if it asks you to install Hex.${nocolor}"
mix deps.get || die
echo -e "${purple}Generating the configuration..."
echo -e "Answer with yes if it asks you to install rebar3.${nocolor}"
mix pleroma.instance gen || die
mv -v config/{generated_config.exs,prod.secret.exs} || die
echo -e "${purple}Creating the database...${nocolor}"
sudo -u postgres psql -f config/setup_db.psql || die
echo -e "${purple}Running the database migration...${nocolor}"
MIX_ENV=prod mix ecto.migrate || die
echo -en "\n${purple}Done! You can now start pleroma with${nocolor} "
echo "/etc/init.d/pleroma start"
echo "{purple}The configuration file is in${nocolor} config/prod.secret.exs"

View File

@ -1,34 +0,0 @@
#!/bin/sh
echo "This script will upgrade your pleroma installation."
echo "Pleroma will be stopped for the duration of the update."
echo "Hit enter to proceed."
read sure
if [ -n "${sure}" ]; then
exit
fi
purple='\033[1;35m'
nocolor='\033[0m'
function die()
{
if [ -n "${1}" ]; then
echo "${1}" >&2
fi
exit 1
}
echo -e "${purple}Stopping pleroma...${nocolor}"
sudo /etc/init.d/pleroma stop || die
echo -e "${purple}Pulling the latest changes from upstream...${nocolor}"
sudo -u pleroma git pull || die
echo -e "${purple}Upgrading dependencies...${nocolor}"
sudo -u pleroma MIX_ENV=prod mix deps.get || die
echo -e "${purple}Performing database migrations...${nocolor}"
sudo -u pleroma MIX_ENV=prod mix ecto.migrate || die
echo -e "\n${purple}Done! Restarting pleroma...${nocolor}"
sudo /etc/init.d/pleroma restart || die

View File

@ -1,34 +0,0 @@
#!/bin/sh
echo "This script will upgrade your pleroma installation."
echo "Pleroma will be stopped for the duration of the update."
echo "Hit enter to proceed."
read sure
if [ -n "${sure}" ]; then
exit
fi
purple='\033[1;35m'
nocolor='\033[0m'
function die()
{
if [ -n "${1}" ]; then
echo "${1}" >&2
fi
exit 1
}
echo -e "${purple}Stopping pleroma...${nocolor}"
sudo /etc/init.d/pleroma stop || die
echo -e "${purple}Pulling the latest changes from upstream...${nocolor}"
git pull || die
echo -e "${purple}Upgrading dependencies...${nocolor}"
mix deps.get || die
echo -e "${purple}Performing database migrations...${nocolor}"
MIX_ENV=prod mix ecto.migrate || die
echo -e "\n${purple}Done! Restarting pleroma...${nocolor}"
sudo /etc/init.d/pleroma restart || die

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
Pleroma is a microblogging server software that can federate (= exchange messages with) other servers that support the same federation standards (OStatus and ActivityPub). Pleroma will federate with all servers that implement either OStatus or ActivityPub, like Friendica, GNU Social, Hubzilla, Mastodon, Misskey, Peertube, and Pixelfed. For clients it supports both the GNU Social API with Qvitter extensions and the Mastodon client API.
</longdescription>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>tastytea</name>
</maintainer>
<upstream>
<bugs-to>https://git.pleroma.social/pleroma/pleroma/issues</bugs-to>
</upstream>
<use>
<flag name="apache">Installs a configuration file for apache.</flag>
<flag name="nginx">Installs a configuration file for nginx.</flag>
</use>
</pkgmetadata>

View File

@ -1,80 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 user systemd
DESCRIPTION="Federating microblogging server software. Development version."
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[nginx_modules_http_slice] )
"
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."
}
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 -r 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
}