2021-05-23 21:57:50 +00:00
|
|
|
# Maintainer: J. King <jking@jkingweb.ca>
|
2021-05-16 02:26:06 +00:00
|
|
|
pkgname="arsse"
|
2023-01-28 17:43:42 +00:00
|
|
|
pkgver=0.10.4
|
2021-05-16 02:26:06 +00:00
|
|
|
pkgrel=1
|
|
|
|
epoch=
|
2021-05-20 21:47:02 +00:00
|
|
|
pkgdesc="Multi-protocol RSS/Atom newsfeed synchronization server"
|
2021-05-16 02:26:06 +00:00
|
|
|
arch=("any")
|
|
|
|
url="https://thearsse.com/"
|
|
|
|
license=("MIT")
|
2024-01-05 16:20:56 +00:00
|
|
|
conflicts=("arsse-git")
|
2021-05-16 19:59:52 +00:00
|
|
|
depends=()
|
2021-05-19 19:06:37 +00:00
|
|
|
makedepends=()
|
2021-05-16 02:26:06 +00:00
|
|
|
checkdepends=()
|
2021-05-19 19:06:37 +00:00
|
|
|
optdepends=("nginx: HTTP server"
|
2021-05-24 16:40:11 +00:00
|
|
|
"apache>=2.4: HTTP server"
|
2021-05-19 19:06:37 +00:00
|
|
|
"percona-server: Alternate database"
|
2021-05-24 16:40:11 +00:00
|
|
|
"postgresql>=10: Alternate database"
|
2023-12-22 18:27:02 +00:00
|
|
|
"php-pgsql-interpreter>=7.3: PostgreSQL database support")
|
2021-05-20 14:20:08 +00:00
|
|
|
backup=("etc/webapps/arsse/config.php"
|
2023-12-30 00:42:33 +00:00
|
|
|
"etc/webapps/arsse/systemd-environment"
|
2021-05-20 14:20:08 +00:00
|
|
|
"etc/php/php-fpm.d/arsse.conf"
|
2023-12-30 00:42:33 +00:00
|
|
|
"etc/php-legacy/php-fpm.d/arsse.conf"
|
2021-05-20 14:20:08 +00:00
|
|
|
"etc/webapps/arsse/nginx/example.conf"
|
|
|
|
"etc/webapps/arsse/nginx/arsse.conf"
|
|
|
|
"etc/webapps/arsse/nginx/arsse-loc.conf"
|
|
|
|
"etc/webapps/arsse/nginx/arsse-fcgi.conf"
|
|
|
|
"etc/webapps/arsse/apache/example.conf"
|
|
|
|
"etc/webapps/arsse/apache/arsse.conf"
|
2023-12-22 18:27:02 +00:00
|
|
|
"etc/webapps/arsse/apache/arsse-fcgi.conf"
|
2021-05-20 14:20:08 +00:00
|
|
|
"etc/webapps/arsse/apache/arsse-loc.conf")
|
2023-01-28 17:43:42 +00:00
|
|
|
source=("arsse-0.10.4.tar.gz")
|
2021-05-17 03:06:49 +00:00
|
|
|
md5sums=("SKIP")
|
|
|
|
|
2021-05-16 02:26:06 +00:00
|
|
|
package() {
|
2021-05-19 19:06:37 +00:00
|
|
|
# define runtime dependencies
|
2023-12-22 18:27:02 +00:00
|
|
|
depends=("php-interpreter>=7.3" "php-sqlite-interpreter>=7.3" "php-fpm-interpreter>=7.3")
|
2021-05-23 16:46:13 +00:00
|
|
|
# create most directories necessary for the final package
|
2021-05-18 00:08:32 +00:00
|
|
|
cd "$pkgdir"
|
2023-12-22 21:35:09 +00:00
|
|
|
mkdir -p "usr/share/webapps/arsse" "usr/share/doc/arsse" "usr/share/licenses/arsse" "usr/lib/systemd/system" "usr/lib/sysusers.d" "usr/lib/tmpfiles.d" "etc/php/php-fpm.d" "etc/php-legacy/php-fpm.d" "etc/webapps/arsse"
|
2021-05-29 20:29:53 +00:00
|
|
|
# copy requisite files
|
2021-05-18 00:08:32 +00:00
|
|
|
cd "$srcdir/arsse"
|
|
|
|
cp -r lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "$pkgdir/usr/share/webapps/arsse"
|
|
|
|
cp -r manual/* "$pkgdir/usr/share/doc/arsse"
|
|
|
|
cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse"
|
2021-05-19 19:06:37 +00:00
|
|
|
cp dist/sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf"
|
|
|
|
cp dist/tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/arsse.conf"
|
|
|
|
cp dist/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
|
2021-05-29 20:29:53 +00:00
|
|
|
cp -r dist/man "$pkgdir/usr/share"
|
2021-05-19 22:59:20 +00:00
|
|
|
cp -r dist/nginx dist/apache config.defaults.php "$pkgdir/etc/webapps/arsse"
|
2021-05-19 19:06:37 +00:00
|
|
|
# copy files requiring special permissions
|
2021-05-27 23:39:53 +00:00
|
|
|
install -Dm640 dist/config.php "$pkgdir/etc/webapps/arsse"
|
2021-05-19 19:06:37 +00:00
|
|
|
# patch generic configuration files to use Arch-specific paths and identifiers
|
2024-01-07 17:28:47 +00:00
|
|
|
sed -i -se 's/\/\(etc\|usr\/share\)\/arsse\//\/\1\/webapps\/arsse\//g' "$pkgdir/etc/webapps/arsse/nginx/"* "$pkgdir/etc/webapps/arsse/apache/"* "$pkgdir/usr/lib/tmpfiles.d/arsse.conf"
|
2021-05-24 18:50:21 +00:00
|
|
|
sed -i -se 's/\/var\/run\/php\//\/run\/php-fpm\//g' "$pkgdir/etc/webapps/arsse/nginx/"* "$pkgdir/etc/webapps/arsse/apache/"* "$pkgdir/etc/php/php-fpm.d/arsse.conf"
|
|
|
|
sed -i -se 's/www-data/http/g' "$pkgdir/etc/php/php-fpm.d/arsse.conf"
|
2023-12-22 21:35:09 +00:00
|
|
|
# make a duplicate PHP-FPM pool for php-legacy
|
|
|
|
sed -se 's/php-fpm/php-fpm-legacy/' "$pkgdir/etc/php/php-fpm.d/arsse.conf" > "$pkgdir/etc/php-legacy/php-fpm.d/arsse.conf"
|
2023-12-22 18:27:02 +00:00
|
|
|
# copy Arch-specific versions of files
|
|
|
|
install -Dm755 dist/arch/arsse "$pkgdir/usr/bin/arsse"
|
|
|
|
cp dist/arch/nginx-arsse-fcgi.conf "$pkgdir/etc/webapps/arsse/nginx/arsse-fcgi.conf"
|
|
|
|
cp dist/arch/apache-arsse-fcgi.conf "$pkgdir/etc/webapps/arsse/apache/arsse-fcgi.conf"
|
2023-12-24 19:39:42 +00:00
|
|
|
cp dist/arch/*.service "$pkgdir/usr/lib/systemd/system"
|
|
|
|
cp dist/arch/systemd-environment "$pkgdir/etc/webapps/arsse/systemd-environment"
|
2021-05-16 02:26:06 +00:00
|
|
|
}
|