Browse files

openbsd port

  • Loading branch information...
1 parent 2e97498 commit 3aac349579d01b0b5c3ed4d593e59bc85ffdb70d @klacke committed Dec 29, 2010
Showing with 22 additions and 2 deletions.
  1. +2 −2 doc/Makefile
  2. +20 −0 scripts/openbsd/yaws.sh
View
4 doc/Makefile
@@ -43,6 +43,6 @@ clean:
rm -f *.ps *.dvi *.log *.aux *.pdf *.toc *.beam 2> /dev/null || true
install:
- -install -d $(DESTDIR)$(PREFIX)/share/doc/yaws-$(YAWS_VSN)
- -cp yaws.pdf $(DESTDIR)$(PREFIX)/share/doc/yaws-$(YAWS_VSN)
+ -install -d $(DESTDIR)$(PREFIX)/share/doc/yaws
+ -cp yaws.pdf $(DESTDIR)$(PREFIX)/share/doc/yaws
View
20 scripts/openbsd/yaws.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+daemon="/usr/local/bin/yaws"
+daemon_flags="--daemon --conf /etc/yaws/yaws.conf"
+
+. /etc/rc.d/rc.subr
+
+pexp="/usr/local/lib/erlang/erts.*/usr/local/lib/yaws/ebin -run yaws"
+
+rc_stop() {
+ su -l -c ${daemon_class} -s ${daemon_shell} ${daemon_user} \
+ -c "${daemon} --stop" >/dev/null
+}
+
+rc_reload() {
+ su -l -c ${daemon_class} -s ${daemon_shell} ${daemon_user} \
+ -c "${daemon} --hup" >/dev/null
+}
+
+rc_cmd $1

0 comments on commit 3aac349

Please sign in to comment.