# pgrum/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The sources were obtained as follows: ocgitfetch --run https://github.com/postgrespro/rum.git #--------------------------------------------------------------------- 2. To finish RUM index setup at the Pleroma level: This procedure assumes the following: (a) The host is a Linux distro. Pleroma has been built from source. It's running in "prod" mode. (b) PostgreSQL is release 11 or above. If possible, it should be newer than 11. (c) The Pleroma Linux username and the Pleroma PostgreSQL username are both "pleroma". (d) There is a standard Pleroma "prod.secret.exs" file in the Pleroma "config" subdirectory. (e) There is a standard "rum_enabled" setting [either true or false initially] in the latter file. 1) Stop Pleroma. In Laclin: pleroma-stop 2) Start a CLI session as "root". Execute the following CLI commands. Modify the TOPDIR setting appropriately. TOPDIR should specify the ab- solute directory path for the top-level Pleroma directory; i.e., the directory that contains the top-level "mix.exs" file. set -e TOPDIR=/opt/pleroma # If you've built the "pgrum" package, the code block right below # should be skipped. cd $HOME rm -fr rum git clone https://github.com/postgrespro/rum.git cd rum export PG_CONFIG=`which pg_config` make USE_PGXS=1 make USE_PGXS=1 install su postgres -c "echo 'CREATE EXTENSION rum;' | psql" || true bep='sudo -Hu pleroma MIX_ENV=prod' cd $TOPDIR/config/ sed -e 's/rum_enabled: false/rum_enabled: true/' \ -i prod.secret.exs cd $TOPDIR su postgres -c "echo 'ALTER USER pleroma SUPERUSER;' | psql" $bep mix ecto.migrate \ --migrations-path priv/repo/optional_migrations/rum_indexing/ su postgres -c "echo 'ALTER USER pleroma NOSUPERUSER;' | psql" 4) Restart Pleroma. In Laclin: pleroma-restart #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] configure = none license = tbd proddir = none shareddir = yes unpack = relaxed #--------------------------------------------------------------------- [depends] postgresql:strict #--------------------------------------------------------------------- [build] export PG_CONFIG=`which pg_config` make USE_PGXS=1 make USE_PGXS=1 install su postgres -c "echo 'CREATE EXTENSION rum;' | psql" || true #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian_page = tbd url_home = tbd url_lfs = tbd url_tarball = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 240708 Added package 240708 Started with 9e78b972d - "git" hash