Skip to content

Commit

Permalink
installing xinetd service file
Browse files Browse the repository at this point in the history
  • Loading branch information
velnias75 committed Jan 9, 2015
1 parent bf38ec5 commit 1b7ff6d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
SUBDIRS = src doc

xinetddir = $(sysconfdir)/xinetd.d
xinetd_DATA = netmaumau

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = COPYING netmaumau.ico
EXTRA_DIST = COPYING netmaumau.ico netmaumau.xinetd.in

CLEANFILES = netmaumau

DISTCLEANFILES = NetMauMau-dbg.db

AM_DISTCHECK_CONFIGURE_FLAGS = --disable-client --enable-cli-client --enable-pidfile

netmaumau: $(top_srcdir)/netmaumau.xinetd.in
$(AM_V_GEN)$(SED) -e 's|@bindir[@]|$(bindir)|g' < $< > $@

if CHECKCPP
# suppression template: // cppcheck-suppress {id}
cppcheck:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A *sample **xinetd** service configuration* can look as following:
protocol = tcp
user = root
server = /usr/bin/nmm-server
server_args = --inetd --port=8899
server_args = --inetd
type = UNLISTED
wait = yes
instances = 1
Expand Down
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Homepage: https://github.com/velnias75/NetMauMau/

Package: netmaumau-server-common
Architecture: all
Recommends: xinetd
Depends: ${misc:Depends}
Description: Server for the popular card game Mau Mau - common server files
Provides a server for the popular card game NetMauMau. Up to 5 players can
Expand Down
1 change: 1 addition & 0 deletions debian/netmaumau-server-common.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/xinetd.d
1 change: 1 addition & 0 deletions debian/netmaumau-server-common.install
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/etc/xinetd.d/netmaumau
/usr/share/netmaumau/*.PNG
14 changes: 14 additions & 0 deletions netmaumau.xinetd.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
service netmaumau
{
disable = no
per_source = 1
port = 8899
socket_type = stream
protocol = tcp
user = root
server = @bindir@/nmm-server
server_args = --inetd
type = UNLISTED
wait = yes
instances = 1
}

0 comments on commit 1b7ff6d

Please sign in to comment.