quassel: create /var/lib/quassel and /var/log/quassel with make_dirs=

This commit is contained in:
maxice8 2019-01-17 09:28:27 -02:00 committed by Toyam Cox
parent f69a13f694
commit 719e2dc4df
2 changed files with 5 additions and 8 deletions

View File

@ -1,11 +1,4 @@
#!/bin/sh
for dir in lib log; do
if [ ! -d /var/${dir}/quassel ]; then
mkdir /var/${dir}/quassel &&
chown -R quassel:quassel /var/${dir}/quassel &&
chmod 750 /var/${dir}/quassel
fi
done
exec chpst -u quassel quasselcore \
--logfile=/var/log/quassel/quasselcore.log \
--configdir=/var/lib/quassel \

View File

@ -1,7 +1,7 @@
# Template file for 'quassel'
pkgname=quassel
version=0.13.0
revision=2
revision=3
build_style=cmake
configure_args="-DEMBED_DATA=ON -DWANT_QTCLIENT=ON -DWANT_MONO=ON -DWANT_CORE=ON
-DUSE_QT5=ON -DWITH_BUNDLED_ICONS=OFF"
@ -43,6 +43,10 @@ quassel-core_package() {
depends="qt5-plugin-sqlite"
short_desc="${_desc} - server"
system_accounts="quassel"
quassel_homedir=/var/lib/quassel
make_dirs="
/var/lib/quassel 0750 quassel quassel
/var/log/quassel 0750 quassel quassel"
pkg_install() {
vmove /usr/bin/quasselcore
vmove /etc/sv