aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSertonix <sertonix@posteo.net>2023-11-15 12:02:29 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2023-11-21 16:05:02 +0000
commit9c15df8386aeac5c0ce7cf99f7d8a04a7a346619 (patch)
treebfaaf48f756971f4ecebfff7202d9f3da59d3f6d
parent78a1637b235b9f20da235d0742fab8a581ed93c7 (diff)
community/kiwiirc: don't try to create /var/run/kiwiirc
-rw-r--r--community/kiwiirc/APKBUILD6
-rw-r--r--community/kiwiirc/kiwiirc.initd6
2 files changed, 7 insertions, 5 deletions
diff --git a/community/kiwiirc/APKBUILD b/community/kiwiirc/APKBUILD
index af1bd2ca97e..f7a87572f8c 100644
--- a/community/kiwiirc/APKBUILD
+++ b/community/kiwiirc/APKBUILD
@@ -3,7 +3,7 @@
pkgname=kiwiirc
_pkgname=KiwiIRC
pkgver=0.9.4
-pkgrel=2
+pkgrel=3
pkgdesc="A hand-crafted webirc client"
url="https://www.kiwiirc.com/"
arch="noarch"
@@ -33,7 +33,6 @@ package() {
install -D -m644 package.json $pkgdir/usr/share/webapps/kiwiirc/package.json
install -d -m755 $pkgdir/usr/lib/kiwiirc/server_modules
install -d -m755 $pkgdir/var/lib/kiwiirc
- install -d -m775 $pkgdir/var/run/kiwiirc
install -d -m644 $pkgdir/var/log/kiwiirc
install -d -m755 $pkgdir/usr/share/webapps/kiwiirc/server
install -d -m755 $pkgdir/usr/share/webapps/kiwiirc/node_modules
@@ -47,7 +46,6 @@ package() {
chown -R $pkgusers:$pkggroups "$pkgdir"/usr/lib/kiwiirc
chown -R $pkgusers:$pkggroups "$pkgdir"/usr/share/webapps/kiwiirc
chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/kiwiirc
- chown $pkgusers:$pkggroups "$pkgdir"/var/run/kiwiirc
install -D -m755 $srcdir/$pkgname.initd $pkgdir/etc/init.d/$pkgname
install -D -m644 $srcdir/$pkgname.confd $pkgdir/etc/conf.d/$pkgname
@@ -57,5 +55,5 @@ package() {
sha512sums="81034d4b1d6af93bd2fbacd302c0780996b87bbf0b936b61abb1ca04fb97939d956bf4704ada63766a4da04feb56957abf141ed74fff02fd7db237b6272a6ac4 kiwiirc-0.9.4.tar.gz
2b2b61d579fe73ba59c05b3bf9a8ac1bc43225ad414ab34474746731a443c56431ddc9156005a7d3890c65e2344c882d8731c1c36b7a07af0c7014fd4d37e811 kiwilauncher.patch
1bc8829398d1311384f8411bd65f6231831d2f24728d779f97a99b5e7e46758771c36b5daba215fe6508c728162bfbb22fdaa3be2b44988d59c53804e7005c40 kiwipath.patch
-a0612b562313eaa6eb2f4fafab2d40ce4784685c8a14e57a5eae8c9126cab3370957dc0a56dace370e10ddb02bda01800063baf6fa66b8159d9f99c06ac85c39 kiwiirc.initd
+1ccb89dca08b9ddb97d7555421ad73268eab3c54ab84089668b29dc04ffd94881895fe59469f3733e8f10e4d07aa41746f73570b9c82876fa28f85bb44d0ab42 kiwiirc.initd
416b807dee290b0d55020fd980dbf232615f173899d13fe859834cdb61af96a30c5edbeafa35e290cb9d9ed9695ae53abfc876fb4b73687dabfcb3467046a304 kiwiirc.confd"
diff --git a/community/kiwiirc/kiwiirc.initd b/community/kiwiirc/kiwiirc.initd
index 0d58b4fb49f..b4ebfa5d4f6 100644
--- a/community/kiwiirc/kiwiirc.initd
+++ b/community/kiwiirc/kiwiirc.initd
@@ -8,10 +8,14 @@ command="/usr/bin/kiwi"
pidfile="/var/run/kiwiirc/kiwiirc.pid"
depend() {
- use net
+ use net
after firewall
}
+start_pre() {
+ checkpath -d -m 0755 -o kiwiirc:kiwiirc -q /run/kiwiirc
+}
+
start() {
if ! [ -f /var/lib/kiwiirc/index.html ]; then
$command build