1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 07:04:53 +00:00

Don't try to enable extensions

This commit is contained in:
J. King 2021-05-17 18:03:47 -04:00
parent e2b182ebe6
commit a97ca23631
3 changed files with 14 additions and 31 deletions

27
dist/arch/PKGBUILD vendored
View file

@ -1,5 +1,5 @@
pkgname="arsse" pkgname="arsse"
pkgver=0.9.1.r10.7abdf05 pkgver=0.9.1.r14.e2b182e
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="RSS/Atom newsfeed synchronization server" pkgdesc="RSS/Atom newsfeed synchronization server"
@ -39,21 +39,16 @@ build() {
package() { package() {
depends=("php" "php-intl" "php-sqlite" "php-fpm") depends=("php" "php-intl" "php-sqlite" "php-fpm")
cd "$pkgdir"
mkdir -p "usr/bin" "usr/share/webapps/arsse" "usr/share/doc/arsse" "usr/share/licenses/arsse" "usr/lib/systemd/system" "usr/lib/sysusers.d" "etc/php/php-fpm.d/" "etc/webapps/arsse" "etc/webapps/arsse/nginx"
cd "$srcdir/arsse" cd "$srcdir/arsse"
cp dist/arch/arsse.sh "$pkgdir/usr/bin/arsse" install -DTm755 dist/arch/arsse.sh "$pkgdir/usr/bin/arsse"
cp -r lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "$pkgdir/usr/share/webapps/arsse" install -D lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "$pkgdir/usr/share/webapps/arsse"
cp -r manual/* "$pkgdir/usr/share/doc/arsse" install -D manual/* "$pkgdir/usr/share/doc/arsse"
cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse" install -D LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse"
cp dist/arch/*.service "$pkgdir/usr/lib/systemd/system" install -D dist/arch/*.service "$pkgdir/usr/lib/systemd/system"
cp dist/arch/sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf" install -DT dist/arch/sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf"
cp dist/arch/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf" install -DT dist/arch/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
cp dist/arch/config.php config.defaults.php "$pkgdir/etc/webapps/arsse" install -Dm640 dist/arch/config.php "$pkgdir/etc/webapps/arsse"
cp dist/arch/nginx/* "$pkgdir/etc/webapps/arsse/nginx" install -D config.defaults.php "$pkgdir/etc/webapps/arsse"
cd "$pkgdir" install -D dist/arch/nginx/* "$pkgdir/etc/webapps/arsse/nginx"
chmod -R a=rX *
chmod a=rx usr/bin/arsse
chmod u=r etc/webapps/arsse/*
ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php" ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php"
} }

13
dist/arch/arsse.sh vendored
View file

@ -1,10 +1,3 @@
#! /usr/bin/bash #! /usr/bin/php
<?php
if [ `id -u` -eq 0 ]; then require "/usr/share/webapps/arsse/arsse.php";
setpriv --clear-groups --inh-caps -all --egid=arsse --euid=arsse php /usr/share/webapps/arsse/arsse.php $@
elif [ `id -un` == "arsse" ]; then
php /usr/share/webapps/arsse/arsse.php $@
else
echo "Not authorized." >&2
exit 1
fi

View file

@ -9,8 +9,3 @@ pm.max_children = 5
pm.start_servers = 2 pm.start_servers = 2
pm.min_spare_servers = 1 pm.min_spare_servers = 1
pm.max_spare_servers = 3 pm.max_spare_servers = 3
php_value[extension] = intl
php_value[extension] = dom
php_value[extension] = iconv
php_value[extension] = sqlite3