import misc/srcpd: daemon to control digital model railroad systems
DESCR: SRCP is an communication protocol designed to integrate all model railroad systems. Further key features are full multiuser capabilities and simplified user interface development.
This commit is contained in:
parent
22f3e05d61
commit
541e99fb7d
28
misc/srcpd/Makefile
Normal file
28
misc/srcpd/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
|
||||
COMMENT = daemon to control digital model railroad systems
|
||||
|
||||
DISTNAME = srcpd-2.1.1
|
||||
CATEGORIES = misc net
|
||||
|
||||
HOMEPAGE = http://srcpd.sourceforge.net/
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=srcpd/}
|
||||
|
||||
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MODULES += converters/libiconv
|
||||
WANTLIB += c m pthread z xml2
|
||||
LIB_DEPENDS += textproc/libxml
|
||||
|
||||
AUTOCONF_VERSION = 2.64
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/srcpd
|
||||
|
||||
.include <bsd.port.mk>
|
5
misc/srcpd/distinfo
Normal file
5
misc/srcpd/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (srcpd-2.1.1.tar.gz) = xcHC3rAkEYsxcHgHQDgBfw==
|
||||
RMD160 (srcpd-2.1.1.tar.gz) = 3bz3a9Oh8O99CxxHpTsHQ2mu2Sg=
|
||||
SHA1 (srcpd-2.1.1.tar.gz) = shxP4wA4yURMMIZqLmH8wWnNd4k=
|
||||
SHA256 (srcpd-2.1.1.tar.gz) = 6bIAybarnHv/Lo33zNkgiv9B7tYP5XHOmPZ+IuMacjQ=
|
||||
SIZE (srcpd-2.1.1.tar.gz) = 344019
|
12
misc/srcpd/patches/patch-Makefile_in
Normal file
12
misc/srcpd/patches/patch-Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- Makefile.in.orig Fri Dec 3 17:17:04 2010
|
||||
+++ Makefile.in Fri Dec 3 17:17:25 2010
|
||||
@@ -681,7 +681,7 @@ info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
-install-data-am: install-dist_udevDATA
|
||||
+install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
31
misc/srcpd/patches/patch-man_de_srcpd_conf_5
Normal file
31
misc/srcpd/patches/patch-man_de_srcpd_conf_5
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-man_de_srcpd_conf_5,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- man/de/srcpd.conf.5.orig Fri Dec 3 17:21:36 2010
|
||||
+++ man/de/srcpd.conf.5 Fri Dec 3 17:22:08 2010
|
||||
@@ -52,8 +52,8 @@ vorkonfigurierten Bus. Sie hat den folgenden Aufbau:
|
||||
<server>
|
||||
<tcp-port>4303</tcp-port>
|
||||
<pid-file>/var/run/srcpd.pid</pid-file>
|
||||
- <username>nobody</username>
|
||||
- <groupname>nogroup</groupname>
|
||||
+ <username>_srcpd</username>
|
||||
+ <groupname>_srcpd</groupname>
|
||||
</server>
|
||||
<verbosity>5</verbosity>
|
||||
</bus>
|
||||
@@ -251,14 +251,14 @@ username
|
||||
Benutzerkennung, unter der
|
||||
.IR srcpd
|
||||
auf dem System läuft. Voreingestellt ist
|
||||
-.IR nobody .
|
||||
+.IR _srcpd .
|
||||
.\"
|
||||
.TP
|
||||
groupname
|
||||
Gruppenkennung unter der
|
||||
.IR srcpd
|
||||
auf dem System läuft. Voreingestellt ist
|
||||
-.IR nogroup .
|
||||
+.IR _srcpd .
|
||||
.\"
|
||||
.\"
|
||||
.SS ddl
|
29
misc/srcpd/patches/patch-man_srcpd_conf_5
Normal file
29
misc/srcpd/patches/patch-man_srcpd_conf_5
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-man_srcpd_conf_5,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- man/srcpd.conf.5.orig Fri Dec 3 17:21:01 2010
|
||||
+++ man/srcpd.conf.5 Fri Dec 3 17:21:28 2010
|
||||
@@ -39,8 +39,8 @@ default settings and an example bus configuration.
|
||||
<server>
|
||||
<tcp-port>4303</tcp-port>
|
||||
<pid-file>/var/run/srcpd.pid</pid-file>
|
||||
- <username>nobody</username>
|
||||
- <groupname>nogroup</groupname>
|
||||
+ <username>_srcpd</username>
|
||||
+ <groupname>_srcpd</groupname>
|
||||
</server>
|
||||
<verbosity>5</verbosity>
|
||||
</bus>
|
||||
@@ -202,12 +202,12 @@ is
|
||||
.TP
|
||||
username
|
||||
srcpd runs under this user. Default is
|
||||
-.IR nobody .
|
||||
+.IR _srcpd .
|
||||
.\"
|
||||
.TP
|
||||
groupname
|
||||
srcpd runs under this group. Default is
|
||||
-.IR nogroup .
|
||||
+.IR _srcpd .
|
||||
.\"
|
||||
.\"
|
||||
.SS ddl
|
11
misc/srcpd/patches/patch-src_clientservice_c
Normal file
11
misc/srcpd/patches/patch-src_clientservice_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_clientservice_c,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- src/clientservice.c.orig Sun Nov 28 19:02:08 2010
|
||||
+++ src/clientservice.c Sun Nov 28 19:02:23 2010
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "clientservice.h"
|
20
misc/srcpd/patches/patch-src_loconet_c
Normal file
20
misc/srcpd/patches/patch-src_loconet_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-src_loconet_c,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- src/loconet.c.orig Mon Mar 1 21:21:37 2010
|
||||
+++ src/loconet.c Tue Dec 7 20:03:27 2010
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#include <netinet/in.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifdef HAVE_LINUX_SERIAL_H
|
||||
@@ -254,7 +255,7 @@ static int init_lineLOCONET_lbserver(bus_t busnumber)
|
||||
|
||||
/* Set preferred network connection options, for Cygwin use IPv4-only
|
||||
* as IPv6 is not supported yet */
|
||||
-#ifdef __CYGWIN__
|
||||
+#if defined(__CYGWIN__) || defined(__OpenBSD__)
|
||||
hi.ai_family = AF_INET;
|
||||
hi.ai_protocol = IPPROTO_TCP;
|
||||
#else
|
12
misc/srcpd/patches/patch-src_netservice_c
Normal file
12
misc/srcpd/patches/patch-src_netservice_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_netservice_c,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- src/netservice.c.orig Wed Mar 3 21:45:58 2010
|
||||
+++ src/netservice.c Fri Dec 3 16:56:00 2010
|
||||
@@ -6,6 +6,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <grp.h>
|
11
misc/srcpd/patches/patch-src_srcp-command_c
Normal file
11
misc/srcpd/patches/patch-src_srcp-command_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_srcp-command_c,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- src/srcp-command.c.orig Sun Nov 28 19:18:17 2010
|
||||
+++ src/srcp-command.c Sun Nov 28 19:18:30 2010
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "config-srcpd.h"
|
12
misc/srcpd/patches/patch-src_srcp-server_c
Normal file
12
misc/srcpd/patches/patch-src_srcp-server_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_srcp-server_c,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- src/srcp-server.c.orig Sun Feb 28 21:01:39 2010
|
||||
+++ src/srcp-server.c Fri Dec 3 16:56:41 2010
|
||||
@@ -5,6 +5,8 @@
|
||||
* Version 2, 1991. (c) Matthias Trute, 2000-2001.
|
||||
*/
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
14
misc/srcpd/patches/patch-srcpd_conf
Normal file
14
misc/srcpd/patches/patch-srcpd_conf
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-srcpd_conf,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
--- srcpd.conf.orig Fri Dec 3 17:20:33 2010
|
||||
+++ srcpd.conf Fri Dec 3 17:20:50 2010
|
||||
@@ -4,8 +4,8 @@
|
||||
<server>
|
||||
<tcp-port>4303</tcp-port>
|
||||
<pid-file>/var/run/srcpd.pid</pid-file>
|
||||
- <username>nobody</username>
|
||||
- <groupname>nogroup</groupname>
|
||||
+ <username>_srcpd</username>
|
||||
+ <groupname>_srcpd</groupname>
|
||||
</server>
|
||||
<verbosity>3</verbosity>
|
||||
</bus>
|
3
misc/srcpd/pkg/DESCR
Normal file
3
misc/srcpd/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
SRCP is an communication protocol designed to integrate all model
|
||||
railroad systems. Further key features are full multiuser capabilities
|
||||
and simplified user interface development.
|
15
misc/srcpd/pkg/PLIST
Normal file
15
misc/srcpd/pkg/PLIST
Normal file
@ -0,0 +1,15 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
@newgroup _srcpd:660
|
||||
@newuser _srcpd:660:_srcpd:daemon:srcpd user:/nonexistent:/bin/false
|
||||
man/de/
|
||||
man/de/man5/
|
||||
@man man/de/man5/srcpd.conf.5
|
||||
man/de/man8/
|
||||
@man man/de/man8/srcpd.8
|
||||
@man man/man5/srcpd.conf.5
|
||||
@man man/man8/srcpd.8
|
||||
@bin sbin/srcpd
|
||||
share/examples/srcpd/
|
||||
share/examples/srcpd/srcpd.conf
|
||||
@sample ${SYSCONFDIR}/srcpd.conf
|
||||
@rcscript ${RCDIR}/srcpd
|
13
misc/srcpd/pkg/srcpd.rc
Normal file
13
misc/srcpd/pkg/srcpd.rc
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: srcpd.rc,v 1.1.1.1 2010/12/11 11:14:54 sebastia Exp $
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/srcpd"
|
||||
|
||||
rc_stop() {
|
||||
pkill -9 -f "^${pexp}"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user