Make standalone wesnothd more useful:
- Add _wesnothd user to run wesnothd as - Create socket in /var/wesnothd - Add rc script ok kirby@ (MAINTAINER) jasper@
This commit is contained in:
parent
efbbb4e0ba
commit
9efcdb7f33
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.47 2012/10/12 14:29:22 kirby Exp $
|
||||
# $OpenBSD: Makefile,v 1.48 2012/11/20 15:08:00 pascal Exp $
|
||||
|
||||
COMMENT= fantasy turn-based strategy game
|
||||
|
||||
DISTNAME= wesnoth-1.10.4
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
CATEGORIES= games x11
|
||||
|
||||
@ -43,7 +43,9 @@ LIB_DEPENDS= devel/boost \
|
||||
RUN_DEPENDS= devel/desktop-file-utils \
|
||||
textproc/libxslt
|
||||
|
||||
CONFIGURE_ARGS+=-DFIFO_DIR=/var/run/ \
|
||||
CONFIGURE_ARGS+=-DFIFO_DIR=/var/wesnothd \
|
||||
-DSERVER_UID=708 \
|
||||
-DSERVER_GID=708 \
|
||||
-DENABLE_CAMPAIGN_SERVER=ON \
|
||||
-DENABLE_STRICT_COMPILATION=OFF \
|
||||
-DMANDIR=${PREFIX}/man
|
||||
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.27 2012/10/08 22:28:34 kirby Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.28 2012/11/20 15:08:00 pascal Exp $
|
||||
@newgroup _wesnothd:708
|
||||
@newuser _wesnothd:708:_wesnothd:daemon:Wesnoth Server:/var/wesnothd:/sbin/nologin
|
||||
@pkgpath games/wesnoth,tinygui
|
||||
!%%lite%%
|
||||
@bin bin/campaignd
|
||||
@ -13388,5 +13390,13 @@ share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth-tutorial.mo
|
||||
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth-units.mo
|
||||
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth-utbs.mo
|
||||
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth.mo
|
||||
@owner _wesnothd
|
||||
@group _wesnothd
|
||||
@mode 770
|
||||
@sample /var/wesnothd/
|
||||
@owner
|
||||
@group
|
||||
@mode
|
||||
@rcscript ${RCDIR}/wesnothd
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
||||
|
11
games/wesnoth/pkg/wesnothd.rc
Normal file
11
games/wesnoth/pkg/wesnothd.rc
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: wesnothd.rc,v 1.1 2012/11/20 15:08:00 pascal Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/wesnothd"
|
||||
daemon_flags="-d"
|
||||
daemon_user="_wesnothd"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user