inspircd: simplify creation of /run/inspircd

This commit is contained in:
maxice8 2019-01-17 09:14:37 -02:00 committed by maxice8
parent 2d52c0739c
commit d29a0a8fae
2 changed files with 2 additions and 7 deletions

7
srcpkgs/inspircd/files/inspircd/run Executable file → Normal file
View file

@ -1,10 +1,5 @@
#!/bin/sh #!/bin/sh
if [ ! -d /var/run/inspircd ]; then install -d -m0755 -o inspircd -g inspircd /run/inspircd
mkdir -m0755 -p /var/run/inspircd
fi
chown inspircd:inspircd /var/run/inspircd
exec chpst -u inspircd inspircd \ exec chpst -u inspircd inspircd \
--nofork --config /etc/inspircd/inspircd.conf \ --nofork --config /etc/inspircd/inspircd.conf \
--logfile /var/log/inspircd/ircd.log --logfile /var/log/inspircd/ircd.log

View file

@ -1,7 +1,7 @@
# Template file for 'inspircd' # Template file for 'inspircd'
pkgname=inspircd pkgname=inspircd
version=2.0.27 version=2.0.27
revision=1 revision=2
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="perl pkg-config" hostmakedepends="perl pkg-config"
makedepends="geoip-devel libressl-devel sqlite-devel" makedepends="geoip-devel libressl-devel sqlite-devel"