Update packages

This commit is contained in:
moparisthebest
2019-03-03 20:21:14 -05:00
parent e2fd47cde7
commit 59e4cffa8b
130 changed files with 1079 additions and 2539 deletions

View File

@@ -3,7 +3,7 @@
_pkgbase='movim'
pkgname=movim-git
pkgver=r7026.f44bc2c9
pkgver=r7308.8a32ba694
pkgrel=1
pkgdesc="Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol."
arch=('any')
@@ -11,17 +11,21 @@ url='https://movim.eu'
license=('AGPL3')
provides=('movim')
conflicts=('movim')
depends=('php-gd' 'php-imagick' 'php-zmq')
depends=('php-gd' 'php-imagick')
optdepends=('postgresql: to use the postgresql database backend'
'php-pgsql: php bindings for postgresql'
'php-sqlite: php bindings for sqlite'
'mariadb: to use the mysql database backend'
'sqlite3: to use the sqlite database backend'
'nginx: reverse proxy'
'apache: reverse proxy'
'php-fpm: PHP FactCGI process manager')
makedepends=('git' 'composer')
source=("$_pkgbase::git+https://github.com/movim/movim"
movim.env
movim.service)
movim.service
sysuser.conf
tmpfiles.conf)
install=movim.install
backup=("etc/webapps/$_pkgbase/db.inc.php"
"etc/default/movim")
@@ -40,17 +44,16 @@ build() {
package() {
cd "$srcdir/$_pkgbase"
# Systemd files
install -m755 -d "$pkgdir/etc/default"
install -Dm640 "$srcdir/movim.env" "$pkgdir/etc/default/$_pkgbase"
install -Dm644 "$srcdir/movim.service" "$pkgdir/usr/lib/systemd/system/movim.service"
install -Dm644 "$srcdir/sysuser.conf" "$pkgdir/usr/lib/sysusers.d/movim.conf"
install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/movim.conf"
install -m755 -d "$pkgdir/usr/share/webapps/$_pkgbase"
# Cache
install -m750 -d "$pkgdir/var/cache/webapps/$_pkgbase/cache"\
"$pkgdir/var/cache/webapps/$_pkgbase/users"
chown -R root:http "$pkgdir/var/cache/webapps/$_pkgbase"
chmod -R u+rwX,g+rwX,o-rwx "$pkgdir/var/cache/webapps/$_pkgbase"
# XXX: Symlinks created post_upgrade. Waiting for upstream to fix
# https://github.com/movim/movim/issues/509.
cp -r app database lib locales src themes vendor \
cp -r app database lib locales src theme vendor \
"$pkgdir/usr/share/webapps/$_pkgbase"
install -Dm644 VERSION CHANGELOG.md INSTALL.md README.md index.php \
linker.php phinx.php "$pkgdir/usr/share/webapps/$_pkgbase"
@@ -58,22 +61,11 @@ package() {
# Configuration file
install -m750 -d "$pkgdir/etc/webapps/$_pkgbase"
install -Dm750 config/db.example.inc.php "$pkgdir/etc/webapps/$_pkgbase/db.inc.php"
chown -R root:http "$pkgdir/etc/webapps/$_pkgbase"
chmod -R u+rwX,g+rwX,o-rwx "$pkgdir/etc/webapps/$_pkgbase"
ln -s "/etc/webapps/$_pkgbase" "$pkgdir/usr/share/webapps/$_pkgbase/config"
# Log files
install -m770 -d "$pkgdir/var/log/webapps/$_pkgbase"
chown -R root:http "$pkgdir/var/log/webapps/$_pkgbase"
ln -s "/var/log/webapps/$_pkgbase" "$pkgdir/usr/share/webapps/$_pkgbase/log"
# Systemd unit file
install -m755 -d "$pkgdir/etc/default"
install -g http -Dm640 "$srcdir/movim.env" "$pkgdir/etc/default/$_pkgbase"
install -Dm644 "$srcdir/movim.service" "$pkgdir/usr/lib/systemd/system/movim.service"
install -Dm640 config/db.example.inc.php "$pkgdir/etc/webapps/$_pkgbase/db.inc.php"
}
sha256sums=('SKIP'
'5dfff91dd4a54f3d3713530e204370a96d37898b670a61123d8cad42f92da306'
'b348b86ccfe56b104ada9134672bf77054b148b2a2eb9f704be429905fc3d834')
'813d580300ee5bb7f1f9603db2404f5af67fd02f49017708d4adb919d4422045'
'c8b569f1eafb97d8d03bbaabb9b4d6ed3415f922a05a52bd865942676368f4c5'
'e3cd2ceb71f4ef4689028313188def52aa19859e35aa8abcaa200495cd187935')

View File

@@ -3,7 +3,7 @@ Description=Movim Daemon
After=network.target
[Service]
Group=http
User=movim
WorkingDirectory=/usr/share/webapps/movim
EnvironmentFile=/etc/default/movim
ExecStartPre=/usr/bin/php vendor/bin/phinx migrate