diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/rxtx | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/rxtx')
-rw-r--r-- | dev-java/rxtx/Manifest | 9 | ||||
-rw-r--r-- | dev-java/rxtx/files/lockfiled.xinetd | 13 | ||||
-rw-r--r-- | dev-java/rxtx/files/rxtx-2.1-7r2-lfd.diff | 14 | ||||
-rw-r--r-- | dev-java/rxtx/files/rxtx-2.1-7r2-nouts.diff | 90 | ||||
-rw-r--r-- | dev-java/rxtx/files/rxtx-2.2_pre2-add-ttyACM.patch | 10 | ||||
-rw-r--r-- | dev-java/rxtx/files/rxtx-2.2_pre2-limits.patch | 10 | ||||
-rw-r--r-- | dev-java/rxtx/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/rxtx/rxtx-2.2_pre2-r1.ebuild | 101 | ||||
-rw-r--r-- | dev-java/rxtx/rxtx-2.2_pre2.ebuild | 101 |
9 files changed, 359 insertions, 0 deletions
diff --git a/dev-java/rxtx/Manifest b/dev-java/rxtx/Manifest new file mode 100644 index 000000000000..656b0b80ce5a --- /dev/null +++ b/dev-java/rxtx/Manifest @@ -0,0 +1,9 @@ +AUX lockfiled.xinetd 202 BLAKE2B 38ecf8d5faadf521d5253e60183d13c3040a88035d5e039e11515e876a0ee80799d3fd31a736fb9176ae88b5e58ea40e2fff1beadb593770f2a4774acc10e32c SHA512 5ad71db04f2cc44348572876079b9548a3aafb84aa53aa6f6d422468c54911cc149cae94743d86eaf7dc62a1cc1479b95893dfa0909367778f20e1ad72b99fea +AUX rxtx-2.1-7r2-lfd.diff 497 BLAKE2B 1e74708071d4645e0444d4ac2bffb8b952f17723d1ce98a784a75c5e1f1d22f2472ebbe0aa16c40b830be0255bd04b8d3a13ffe8d54b4d787e3a03e4d07f4be9 SHA512 fd06c021ad496036556f979e783864d6d88d1a0c039396eefacc569d66e6942b08b246970be640c73c0c2d209aa0c3247db61bdc19a99066789d4f4d0e4d390e +AUX rxtx-2.1-7r2-nouts.diff 3583 BLAKE2B a92f5459ec2309f941ca7f8c3437a1c392da06972d4511905c73e1676fab4ad772a9d22aa3d639095798def629cba794f93add6e67878fff8441f628063ce421 SHA512 c7c6c11785089d321ee9680f4b67c590fe0c3cc0f031196eb71831ef7f319867fb156912c0c934a751d5d9e97774d6c26cab5c710055e919e97bcf39a789787d +AUX rxtx-2.2_pre2-add-ttyACM.patch 328 BLAKE2B 93e5ddca58bf3886c1ed7d34ef6e718d844eb067b55d9ff4fde7faa083735b135a853ebad7f9baf9ce1877fbc5cc3ce9bbd88b342aac4f040a2c0b6045629b99 SHA512 c81ae4e3f6fe09722709b6a9ae09fd3a300c9ef94641a3aa9f821b6fd4e4c28f15e9f672d2bfe6b51715f9e6b2caa5f637be20a76027cb31098062f60a0b0d0f +AUX rxtx-2.2_pre2-limits.patch 272 BLAKE2B 8f49c4a9dbf852f444a742ab3b2b5c846d3d0035307415dd3b4ba34bf3a37179e82d63e04eeb3b553e678fcfc5d0cc3ab0651fdcbf6be20228e35d13db3bf1b0 SHA512 0e4d5b8e622515c75613aeb8c5e4fc1786f1c05ef2619b65c4b1060776933172479957b9f9a15195c79f10c90a1802956eac32cd60939b9b0a15540901e62180 +DIST rxtx-2.2pre2.zip 1491209 BLAKE2B fe115833ee89cfe9a3ae58117ac4a4326e8f79e6fdc0528cb8dd2824e231c862e4b421c94784059e4cf03f6cc93a32636444916a5c8cebe002da470b460bf23b SHA512 cd94bd08bc8b5689fc9a0e539f17645f530a3a280998e9838a2e4c8b3386f2b00a592ab41c07bd720eadf26fddb324bf80d8f7b9ecb35ea8507120c16048f514 +EBUILD rxtx-2.2_pre2-r1.ebuild 2227 BLAKE2B 5d1452dbaddce8f467f46ed44a789e10dfa2717e6683c6823319129fea5960603a078795b7d75f2fd9db144b6ec331da9d14d9418928ff2dd383ff7c57f66271 SHA512 4a97e69b8601c3ec5ced216f3236c5e564fe2edc91f813ac0a620bd602b07bbc15d471c6f10c3d05d4a6720e12d914d0236e228723ad74f607f7a46dec6e6c1d +EBUILD rxtx-2.2_pre2.ebuild 2300 BLAKE2B bac12b8d60a71184581a8c6fd72e02aae1d13359bdd47cd06599edd82c4e30e690556e4271ddb746a9db1f8da073cb58a3020d4213223bf67693125fb11f5c88 SHA512 04eea992fa9f8553ecd4fa8eef777db949996bfae176ed8f23e575034d334c1eff3ebb783452899edefbabae459ac04e5c59ca41fadb78ff530ce90d4191ed70 +MISC metadata.xml 333 BLAKE2B 1863349617d00ca1b5076d4a8f626e43afbe0be700385cd46a4c6a9636486ce100cb916ac6013b6fe8de41bc69dae4bfd95f96c60c960ca04730411e90fdb94d SHA512 fa687c6a61c8be4e5b80f14b9eb6ef7637f9de649e3c35dd81f81096c1bbafe67ee5979c551d958422fdbff1ebb08b43a1630d9cbdf283e56c4ea5aca1cd3ac7 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.." diff --git a/dev-java/rxtx/metadata.xml b/dev-java/rxtx/metadata.xml new file mode 100644 index 000000000000..fc99089425fa --- /dev/null +++ b/dev-java/rxtx/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <use> + <flag name="lfd">Installs and uses LockFileServer daemon (lfd)</flag> + </use> +</pkgmetadata> diff --git a/dev-java/rxtx/rxtx-2.2_pre2-r1.ebuild b/dev-java/rxtx/rxtx-2.2_pre2-r1.ebuild new file mode 100644 index 000000000000..4a59306f198f --- /dev/null +++ b/dev-java/rxtx/rxtx-2.2_pre2-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit toolchain-funcs versionator autotools java-pkg-2 + +MY_PV="$(delete_version_separator 2)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Native lib providing serial and parallel communication for Java" +HOMEPAGE="http://rxtx.qbang.org/" +SRC_URI="ftp://ftp.qbang.org/pub/rxtx/${MY_P}.zip" +LICENSE="LGPL-2.1+" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="lfd" + +RDEPEND=">=virtual/jre-1.6 + lfd? ( sys-apps/xinetd )" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i -e "s:\(\$(JAVADOC)\):\1 -d api:g" Makefile.am || die + sed -i \ + -e "s:UTS_RELEASE::g" \ + -e "s:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g" \ + -e "s:-source ... -target ...:$(java-pkg_javac-args):g" \ + configure.in || die + + epatch \ + "${FILESDIR}/${PN}-2.1-7r2-lfd.diff" \ + "${FILESDIR}/${PN}-2.1-7r2-nouts.diff" \ + "${FILESDIR}/${P}-add-ttyACM.patch" \ + "${FILESDIR}/${P}-limits.patch" + + rm acinclude.m4 || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable lfd lockfile_server) +} + +src_compile() { + emake + + if use lfd ; then + # see INSTALL in src/ldf + $(tc-getCC) ${LDFLAGS} ${CFLAGS} src/lfd/lockdaemon.c -o src/lfd/in.lfd || die + fi + + if use doc ; then + emake docs + fi + + # Fix for src zip creation + if use source ; then + mkdir -p src_with_pkg/gnu || die + ln -s ../../src src_with_pkg/gnu/io || die + fi +} + +src_install() { + java-pkg_dojar RXTXcomm.jar + java-pkg_doso ${CHOST}/.libs/*.so + + dodoc AUTHORS ChangeLog INSTALL PORTING TODO SerialPortInstructions.txt + docinto html + dodoc RMISecurityManager.html + + if use lfd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/lockfiled.xinetd" lfd + dosbin src/lfd/in.lfd + dodoc src/lfd/LockFileServer.rfc + fi + + use doc && java-pkg_dojavadoc api + use source && java-pkg_dosrc src_with_pkg/gnu +} + +pkg_postinst() { + if use lfd ; then + elog "Don't forget to enable the LockFileServer" + elog "daemon (lfd) in /etc/xinetd.d/lfd" + else + elog "RXTX uses UUCP style device-locks. You should" + elog "add every user who needs to access serial ports" + elog "to the 'uucp' group:" + elog + elog " usermod -aG uucp <user>" + fi +} diff --git a/dev-java/rxtx/rxtx-2.2_pre2.ebuild b/dev-java/rxtx/rxtx-2.2_pre2.ebuild new file mode 100644 index 000000000000..906a1b6e0471 --- /dev/null +++ b/dev-java/rxtx/rxtx-2.2_pre2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit toolchain-funcs versionator autotools java-pkg-2 + +MY_PV="$(delete_version_separator 2)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Native lib providing serial and parallel communication for Java" +HOMEPAGE="http://rxtx.qbang.org/" +SRC_URI="ftp://ftp.qbang.org/pub/rxtx/${MY_P}.zip" + +LICENSE="LGPL-2" +SLOT="2" +KEYWORDS="amd64 x86" +IUSE="doc source lfd" + +RDEPEND=">=virtual/jre-1.4" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + dev-java/ant-core + lfd? ( sys-apps/xinetd ) + source? ( app-arch/zip )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # some minor fixes + sed -i -e "s:UTS_RELEASE::g" configure.in || die + sed -i -e "s:|1.5\*:|1.5*|1.6*|1.7*:g" configure.in || die + sed -i -e "s:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g" configure.in || die + sed -i -e "s:\(\$(JAVADOC)\):\1 -d api:g" Makefile.am || die + + # some patches + epatch "${FILESDIR}/${PN}-2.1-7r2-lfd.diff" + epatch "${FILESDIR}/${PN}-2.1-7r2-nouts.diff" + epatch "${FILESDIR}/${P}-add-ttyACM.patch" + + # update autotools stuff + rm acinclude.m4 + eautoreconf + elibtoolize +} + +src_configure() { + econf \ + $(use_enable lfd lockfile_server) +} + +src_compile() { + emake + + if use lfd ; then + # see INSTALL in src/ldf + $(tc-getCC) ${LDFLAGS} ${CFLAGS} src/lfd/lockdaemon.c -o src/lfd/in.lfd || die "compiling lfd failed" + fi + + if use doc ; then + emake docs + fi + + #Fix for src zip creation + if use source ; then + mkdir -p src_with_pkg/gnu + ln -s ../../src src_with_pkg/gnu/io + fi +} + +src_install() { + java-pkg_dojar RXTXcomm.jar + java-pkg_doso ${CHOST}/.libs/*.so + + dodoc AUTHORS ChangeLog INSTALL PORTING TODO SerialPortInstructions.txt + dohtml RMISecurityManager.html + + if use lfd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/lockfiled.xinetd" lfd + dosbin src/lfd/in.lfd + dodoc src/lfd/LockFileServer.rfc + fi + + use doc && java-pkg_dojavadoc api + use source && java-pkg_dosrc src_with_pkg/gnu +} + +pkg_postinst() { + if use lfd ; then + elog "Don't forget to enable the LockFileServer" + elog "daemon (lfd) in /etc/xinetd.d/lfd" + else + elog "RXTX uses UUCP style device-locks. You should" + elog "add every user who needs to access serial ports" + elog "to the 'uucp' group:" + elog + elog " usermod -aG uucp <user>" + fi +} |