1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Use tmpfiles to create link to config file

This commit is contained in:
J. King 2021-05-23 17:57:50 -04:00
parent 8aa9d81fd1
commit 0236b42052
3 changed files with 7 additions and 10 deletions

11
dist/arch/PKGBUILD vendored
View file

@ -1,5 +1,6 @@
# Maintainer: J. King <jking@jkingweb.ca>
pkgname="arsse" pkgname="arsse"
pkgver=0.9.1 pkgver=0.9.2
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="Multi-protocol RSS/Atom newsfeed synchronization server" pkgdesc="Multi-protocol RSS/Atom newsfeed synchronization server"
@ -23,9 +24,7 @@ backup=("etc/webapps/arsse/config.php"
"etc/webapps/arsse/apache/example.conf" "etc/webapps/arsse/apache/example.conf"
"etc/webapps/arsse/apache/arsse.conf" "etc/webapps/arsse/apache/arsse.conf"
"etc/webapps/arsse/apache/arsse-loc.conf") "etc/webapps/arsse/apache/arsse-loc.conf")
install= source=("arsse-0.9.2.tar.gz")
changelog=
source=("arsse-0.9.1.tar.gz")
md5sums=("SKIP") md5sums=("SKIP")
package() { package() {
@ -45,10 +44,6 @@ package() {
cp dist/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf" cp dist/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
cp -r dist/nginx dist/apache config.defaults.php "$pkgdir/etc/webapps/arsse" cp -r dist/nginx dist/apache config.defaults.php "$pkgdir/etc/webapps/arsse"
cd "$pkgdir" cd "$pkgdir"
# adjust permissions, just in case
chmod -R u=rwX,g=rX,o=rX *
# create a symbolic link for the configuration file
ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php"
# copy files requiring special permissions # copy files requiring special permissions
cd "$srcdir/arsse" cd "$srcdir/arsse"
install -Dm755 dist/arsse "$pkgdir/usr/bin" install -Dm755 dist/arsse "$pkgdir/usr/bin"

4
dist/tmpfiles.conf vendored
View file

@ -1 +1,3 @@
z /etc/arsse/config.php - root arsse - - z /usr/bin/arsse 0755 root arsse - -
z /etc/arsse/config.php 0640 root arsse - -
L /usr/share/arsse/config.php - root arsse - /etc/arsse/config.php

View file

@ -7,7 +7,7 @@ declare(strict_types=1);
namespace JKingWeb\Arsse; namespace JKingWeb\Arsse;
class Arsse { class Arsse {
public const VERSION = "0.9.1"; public const VERSION = "0.9.2";
/** @var Factory */ /** @var Factory */
public static $obj; public static $obj;