Skip to content

Commit f35b813

Browse files
committed
Fixing OpenBSD package script
1 parent d58bb62 commit f35b813

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

installers/openbsd/build.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
shutil.copytree(srcdir / 'config/openbsd', stagedir, dirs_exist_ok=True)
4545

46-
copyTemplated(mydir.parent / 'wsddn.conf', stagedir / 'etc/wsddn.conf.sample', {
46+
copyTemplated(mydir.parent / 'wsddn.conf', stagedir / 'etc/wsddn/wsddn.conf.sample', {
4747
'SAMPLE_IFACE_NAME': "em0",
4848
'RELOAD_INSTRUCTIONS': """
4949
# sudo rcctl reload wsddn
@@ -76,20 +76,22 @@
7676

7777
(workdir / 'packinglist').write_text(
7878
f"""
79-
@mode go-w
79+
@owner 0
80+
@group 0
8081
8182
@unexec if rcctl check wsddn > /dev/null 2>&1; then rcctl stop wsddn; fi
8283
@unexec-delete rm -rf /var/run/wsddn.pid
8384
@unexec-delete rm -rf /var/log/wsddn.*
8485
8586
@mode 755
8687
@bin usr/local/bin/wsddn
88+
@rcscript etc/rc.d/wsddn
89+
@dir etc/wsddn
8790
8891
@mode 644
8992
@man usr/local/man/man8/wsddn.8.gz
90-
@file etc/wsddn.conf.sample
91-
@sample etc/wsddn.conf
92-
@rcscript etc/rc.d/wsddn
93+
@file etc/wsddn/wsddn.conf.sample
94+
@sample etc/wsddn/wsddn.conf
9395
9496
@newgroup _wsddn:
9597
@newuser _wsddn::_wsddn:daemon:WS-Discovery Daemon:/var/empty:/sbin/nologin

0 commit comments

Comments
 (0)