diff --git a/ser2net-config.patch b/ser2net-config.patch new file mode 100644 index 0000000..e937a94 --- /dev/null +++ b/ser2net-config.patch @@ -0,0 +1,39 @@ +--- ser2net.conf.orig ++++ ser2net.conf +@@ -105,19 +105,22 @@ CLOSESTR:close1:close str\r\n + # Don't do this by default + #CONTROLPORT:2000 + +-2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS ++#example for modern USB<->serial adapters, telnet to port 6969 ++#6969:telnet:0:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS -XONXOFF -LOCAL -RTSCTS ++# ++#2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS + #2002:raw:600:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS +-2003:raw:5:/dev/ttyS2:9600 +-2004:raw:5:/dev/ttyS3:115200 +-2005:raw:5:/dev/ttyS4:9600 +-2006:raw:5:/dev/ttyS5:9600 +-2007:raw:5:/dev/ttyS6:9600 tw=tw1 tr=tr1 +-3001:telnet:0:/dev/ttyS0:19200 remctl banner1 +-3011:telnet:3:/dev/ttyS0:19200 banner2 ++#2003:raw:5:/dev/ttyS2:9600 ++#2004:raw:5:/dev/ttyS3:115200 ++#2005:raw:5:/dev/ttyS4:9600 ++#2006:raw:5:/dev/ttyS5:9600 ++#2007:raw:5:/dev/ttyS6:9600 tw=tw1 tr=tr1 ++#3001:telnet:0:/dev/ttyS0:19200 remctl banner1 ++#3011:telnet:3:/dev/ttyS0:19200 banner2 + #3002:telnet:0:/dev/ttyS1:9600 +-3003:telnet:0:/dev/ttyS2:9600 banner3 +-3004:telnet:0:/dev/ttyS3:115200 +-3005:telnet:0:/dev/ttyS4:9600 +-3006:telnet:0:/dev/ttyS5:9600 open1 +-3007:telnet:0:/dev/ttyS6:9600 close1 +-5001:rawlp:10:/dev/lp0 ++#3003:telnet:0:/dev/ttyS2:9600 banner3 ++#3004:telnet:0:/dev/ttyS3:115200 ++#3005:telnet:0:/dev/ttyS4:9600 ++#3006:telnet:0:/dev/ttyS5:9600 open1 ++#3007:telnet:0:/dev/ttyS6:9600 close1 ++#5001:rawlp:10:/dev/lp0 diff --git a/ser2net.changes b/ser2net.changes index 8269610..7be1669 100644 --- a/ser2net.changes +++ b/ser2net.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Dec 21 20:21:12 UTC 2012 - crrodriguez@opensuse.org + +- Enable tcp-wrappers support +- ser2net-config.patch Do not open any serial2net connections + by default, it is up to the user to do so. + ------------------------------------------------------------------- Thu Dec 20 22:11:44 UTC 2012 - crrodriguez@opensuse.org diff --git a/ser2net.spec b/ser2net.spec index c086bb6..778034c 100644 --- a/ser2net.spec +++ b/ser2net.spec @@ -27,8 +27,10 @@ Source: http://download.sourceforge.net/ser2net/%{name}-%{version}-%{ext Source2: ser2net.service Summary: Serial port to network proxy License: GPL-2.0+ -Group: Productivity/Networking +Group: Productivity/Networking/Other BuildRequires: pkgconfig(systemd) +BuildRequires: tcpd-devel +Patch0: ser2net-config.patch %{?systemd_requires} %description @@ -39,9 +41,9 @@ monitoring ports, and controlling ports. %prep %setup -q -n %{name}-%{version}-%{extra_ver} - +%patch0 %build -%configure --disable-static +%configure --disable-static --with-tcp-wrappers %{__make} %{?_smp_mflags} %install