summaryrefslogtreecommitdiff
path: root/dev-java/rxtx/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/rxtx/files
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/rxtx/files')
-rw-r--r--dev-java/rxtx/files/lockfiled.xinetd13
-rw-r--r--dev-java/rxtx/files/rxtx-2.1-7r2-lfd.diff14
-rw-r--r--dev-java/rxtx/files/rxtx-2.1-7r2-nouts.diff90
-rw-r--r--dev-java/rxtx/files/rxtx-2.2_pre2-add-ttyACM.patch10
-rw-r--r--dev-java/rxtx/files/rxtx-2.2_pre2-limits.patch10
5 files changed, 137 insertions, 0 deletions
diff --git a/dev-java/rxtx/files/lockfiled.xinetd b/dev-java/rxtx/files/lockfiled.xinetd
new file mode 100644
index 000000000000..8d6e95a5e444
--- /dev/null
+++ b/dev-java/rxtx/files/lockfiled.xinetd
@@ -0,0 +1,13 @@
+service lfd
+{
+ port = 50001
+ bind = localhost
+ type = UNLISTED
+ flags = REUSE
+ socket_type = stream
+ wait = no
+ user = uucp
+ server = /usr/sbin/in.lfd
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/dev-java/rxtx/files/rxtx-2.1-7r2-lfd.diff b/dev-java/rxtx/files/rxtx-2.1-7r2-lfd.diff
new file mode 100644
index 000000000000..496d732ae2fa
--- /dev/null
+++ b/dev-java/rxtx/files/rxtx-2.1-7r2-lfd.diff
@@ -0,0 +1,14 @@
+--- src/lfd/lockdaemon.c.orig 2004-10-12 10:59:28.000000000 +0200
++++ src/lfd/lockdaemon.c 2006-10-29 22:46:58.000000000 +0100
+@@ -248,9 +248,8 @@
+
+ if ( check_group_uucp() )
+ {
+- syslog( LOG_INFO, "check_lock_status: No permission to create lock file.
+-
+- please see: How can I use Lock Files with rxtx? in INSTALL\n" );
++ syslog( LOG_INFO, "check_lock_status: No permission to create lock file.\n\n"
++ "please see: How can I use Lock Files with rxtx? in INSTALL\n" );
+ return 1;
+ }
+
diff --git a/dev-java/rxtx/files/rxtx-2.1-7r2-nouts.diff b/dev-java/rxtx/files/rxtx-2.1-7r2-nouts.diff
new file mode 100644
index 000000000000..fb05955c65f1
--- /dev/null
+++ b/dev-java/rxtx/files/rxtx-2.1-7r2-nouts.diff
@@ -0,0 +1,90 @@
+--- src/I2CImp.c.orig 2004-10-17 16:23:02.000000000 +0200
++++ src/I2CImp.c 2006-10-26 21:25:32.000000000 +0200
+@@ -87,6 +87,7 @@
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+ #if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
+@@ -98,6 +99,7 @@
+ fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
+ getchar();
+ }
++#endif
+ #endif /* __linux__ */
+ #endif /* WIN32 */
+ }
+--- src/RawImp.c.orig 2004-10-16 18:20:35.000000000 +0200
++++ src/RawImp.c 2006-10-26 21:25:59.000000000 +0200
+@@ -231,6 +231,7 @@
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+ #if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
+@@ -242,6 +243,7 @@
+ fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
+ getchar();
+ }
++#endif
+ #endif /* __linux__ */
+ #endif /* WIN32 */
+ }
+--- src/RS485Imp.c.orig 2004-10-16 18:20:35.000000000 +0200
++++ src/RS485Imp.c 2006-10-26 21:26:23.000000000 +0200
+@@ -87,6 +87,7 @@
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+ #if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
+@@ -98,6 +99,7 @@
+ fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
+ getchar();
+ }
++#endif
+ #endif /* __linux__ */
+ #endif /* WIN32 */
+ }
+--- src/SerialImp.c.orig 2006-01-29 23:19:04.000000000 +0100
++++ src/SerialImp.c 2006-10-26 21:26:59.000000000 +0200
+@@ -280,6 +280,7 @@
+ gettimeofday(&seloop, NULL);
+ #endif /* DEBUG_TIMING */
+ #if defined(DEBUG) && defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
+@@ -295,6 +296,7 @@
+ getchar();
+ }
+ LEAVE( "RXTXPort:Initialize" );
++#endif
+ #endif /* DEBUG && __linux__ */
+ }
+
+--- src/SerialImp.cpp.orig 2004-10-12 10:59:27.000000000 +0200
++++ src/SerialImp.cpp 2006-10-26 21:27:44.000000000 +0200
+@@ -102,6 +102,7 @@
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+ #ifdef DEBUG
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
+@@ -114,6 +115,7 @@
+ name.release);
+ getchar();
+ }
++#endif
+ #endif /* DEBUG */
+ #endif /* __BEOS__ */
+ #endif /* WIN32 */
diff --git a/dev-java/rxtx/files/rxtx-2.2_pre2-add-ttyACM.patch b/dev-java/rxtx/files/rxtx-2.2_pre2-add-ttyACM.patch
new file mode 100644
index 000000000000..ac3a0a9dbee5
--- /dev/null
+++ b/dev-java/rxtx/files/rxtx-2.2_pre2-add-ttyACM.patch
@@ -0,0 +1,10 @@
+--- rxtx-2.2pre2/src/gnu/io/RXTXCommDriver.java.orig
++++ rxtx-2.2pre2/src/gnu/io/RXTXCommDriver.java
+@@ -574,6 +574,7 @@
+ if(osName.equals("Linux"))
+ {
+ String[] Temp = {
++ "ttyACM", // linux USB modems
+ "ttyS", // linux Serial Ports
+ "ttySA", // for the IPAQs
+ "ttyUSB", // for USB frobs
diff --git a/dev-java/rxtx/files/rxtx-2.2_pre2-limits.patch b/dev-java/rxtx/files/rxtx-2.2_pre2-limits.patch
new file mode 100644
index 000000000000..1e4ff4af57b7
--- /dev/null
+++ b/dev-java/rxtx/files/rxtx-2.2_pre2-limits.patch
@@ -0,0 +1,10 @@
+--- src/lfd/lockdaemon.c.orig 2007-04-26 06:26:07.000000000 +0100
++++ src/lfd/lockdaemon.c 2016-02-17 20:41:09.137509089 +0000
+@@ -69,6 +69,7 @@
+ #include <errno.h>
+ #include <signal.h>
+ #include <pwd.h>
++#include <limits.h>
+
+ #define FHS
+ #define LOCKFILEPREFIX "LCK.."