mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-12 11:31:18 +02:00
java java
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
# Created by: Kimura Fuyuki <fuyuki@mj.0038.net>
|
||||
# $FreeBSD: head/lang/bsh/Makefile 416242 2016-06-01 13:15:36Z mat $
|
||||
|
||||
PORTNAME= bsh
|
||||
DISTVERSION= 2.0b6
|
||||
CATEGORIES= lang java
|
||||
|
||||
MAINTAINER= pfg@FreeBSD.org
|
||||
COMMENT= Beanshell java scripting language
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= beanshell
|
||||
GH_PROJECT= beanshell
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
|
||||
USE_ANT= yes
|
||||
ALL_TARGET= jarall
|
||||
|
||||
SUB_FILES= ${PORTNAME}.sh
|
||||
SUB_LIST= JARNAME=${PORTNAME}.jar
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar bin/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${DISTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1464776415
|
||||
SHA256 (beanshell-beanshell-2.0b6_GH0.tar.gz) = dbcd8296a0aa81b5edc80a5421841b968d031332ffcebf3b2c877969669f5cad
|
||||
SIZE (beanshell-beanshell-2.0b6_GH0.tar.gz) = 1720334
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: head/lang/bsh/files/bsh.sh.in 340872 2014-01-24 00:14:07Z mat $
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/%%JARNAME%%" "$@"
|
||||
@@ -1,6 +0,0 @@
|
||||
BeanShell is a small, free, embeddable Java source interpreter with object
|
||||
scripting language features, written in Java. BeanShell dynamically executes
|
||||
standard Java syntax and extends it with common scripting conveniences such as
|
||||
loose types, commands, and method closures like those in Perl and JavaScript.
|
||||
|
||||
WWW: http://www.beanshell.org/
|
||||
@@ -12,6 +12,7 @@ COMMENT= Project automation tool
|
||||
|
||||
USES= zip
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 11+
|
||||
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org
|
||||
# $FreeBSD: head/java/hamcrest/Makefile 385166 2015-05-02 07:05:57Z pi $
|
||||
|
||||
PORTNAME= hamcrest
|
||||
PORTVERSION= 1.3
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= http://repo1.maven.org/maven2/org/${PORTNAME}/${PORTNAME}-all/${PORTVERSION}/
|
||||
DISTFILES= ${PORTNAME}-all-${PORTVERSION}.jar ${PORTNAME}-all-${PORTVERSION}-sources.jar
|
||||
EXTRACT_ONLY=
|
||||
|
||||
MAINTAINER= danilo@FreeBSD.org
|
||||
COMMENT= Library of matchers for building test expressions
|
||||
|
||||
USE_JAVA= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
PLIST_FILES= %%JAVAJARDIR%%/hamcrest.jar \
|
||||
%%JAVAJARDIR%%/hamcrest1.3.jar \
|
||||
%%DATADIR%%/src.jar
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-all-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
${LN} -sf ${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}1.3.jar
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-all-${PORTVERSION}-sources.jar \
|
||||
${STAGEDIR}${DATADIR}/src.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,4 +0,0 @@
|
||||
SHA256 (hamcrest-all-1.3.jar) = 4877670629ab96f34f5f90ab283125fcd9acb7e683e66319a68be6eb2cca60de
|
||||
SIZE (hamcrest-all-1.3.jar) = 306578
|
||||
SHA256 (hamcrest-all-1.3-sources.jar) = c53535c3d25b5bf0b00a324a5583c7dd2fed0fa6d1bbc622e2dec460c24faab3
|
||||
SIZE (hamcrest-all-1.3-sources.jar) = 87801
|
||||
@@ -1,7 +0,0 @@
|
||||
Provides a library of matcher objects (also known as
|
||||
constraints or predicates) allowing 'match' rules to
|
||||
be defined declaratively, to be used in other frameworks.
|
||||
Typical scenarios include testing frameworks, mocking libraries
|
||||
and UI validation rules.
|
||||
|
||||
WWW: http://hamcrest.org/
|
||||
@@ -17,7 +17,7 @@ GH_TAGNAME= a04fbff6e21d58fea7a3ed2a6a21e53cbef4b7af
|
||||
|
||||
USES= compiler:c11
|
||||
|
||||
#IDEA_HOME=${PREFIX}/intellij
|
||||
IDEA_HOME=${PREFIX}/intellij
|
||||
PLIST_FILES= ${IDEA_HOME}/bin/fsnotifier
|
||||
|
||||
do-install:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Vadim Zhukov <zhuk@openbsd.org>
|
||||
|
||||
PORTNAME= intellij
|
||||
PORTVERSION= 2019.3.3
|
||||
PORTVERSION= 2020.1 #2019.3.4
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= https://download-cf.jetbrains.com/idea/
|
||||
DISTNAME= ideaIC-${PORTVERSION}-no-jbr
|
||||
@@ -19,7 +19,7 @@ RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier
|
||||
USES= python:run shebangfix
|
||||
|
||||
USE_JAVA= yes
|
||||
#JAVA_VERSION= 8+
|
||||
JAVA_VERSION= 11+
|
||||
|
||||
SHEBANG_FILES= bin/printenv.py bin/restart.py
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1581536465
|
||||
SHA256 (jetbrains/ideaIC-2019.3.3-no-jbr.tar.gz) = c40536791c754c30dbf378bd6b59e0524b0588f26ddb4d85a9f260cf13454d14
|
||||
SIZE (jetbrains/ideaIC-2019.3.3-no-jbr.tar.gz) = 563410584
|
||||
TIMESTAMP = 1586608700
|
||||
SHA256 (jetbrains/ideaIC-2020.1-no-jbr.tar.gz) = 990783cd0115515557668fa67421dae0f6245eb3f8e7d1c42e423b36d577a222
|
||||
SIZE (jetbrains/ideaIC-2020.1-no-jbr.tar.gz) = 524536881
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-beanutils/Makefile 412347 2016-04-01 14:08:37Z mat $
|
||||
|
||||
PORTNAME= commons-beanutils
|
||||
PORTVERSION= 1.9.2
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= olgeni@FreeBSD.org
|
||||
COMMENT= JavaBeans utility library
|
||||
|
||||
BUILD_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/jakarta-commons-logging \
|
||||
${JAVALIBDIR}/commons-collections.jar:java/jakarta-commons-collections
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/jakarta-commons-logging \
|
||||
${JAVALIBDIR}/commons-collections.jar:java/jakarta-commons-collections
|
||||
|
||||
USES= dos2unix
|
||||
USE_JAVA= yes
|
||||
USE_ANT= yes
|
||||
DOS2UNIX_FILES= build.xml
|
||||
JAVA_VERSION= 1.6+
|
||||
ALL_TARGET= dist
|
||||
MAKE_ARGS+= -Dcommons-collections.jar=${JAVALIBDIR}/commons-collections.jar \
|
||||
-Dcommons-logging.jar=${JAVALIBDIR}/commons-logging.jar
|
||||
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVALIBDIR}/${JARFILE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-beanutils-1.9.2-src.tar.gz) = 91fccad3b65f278bad98df1aa8467f2d3df6095f41b2db39d2c12863fb2c0049
|
||||
SIZE (commons-beanutils-1.9.2-src.tar.gz) = 396910
|
||||
@@ -1,11 +0,0 @@
|
||||
--- build.xml.orig
|
||||
+++ build.xml
|
||||
@@ -212,8 +212,6 @@
|
||||
todir="${dist.home}"/>
|
||||
<copy file="RELEASE-NOTES.txt"
|
||||
todir="${dist.home}"/>
|
||||
- <copy file="README.txt"
|
||||
- todir="${dist.home}"/>
|
||||
<antcall target="jar"/>
|
||||
</target>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
JavaBeans utility library. It provides wrappers around getters
|
||||
and setters for a property in an object for classes that conform
|
||||
to the JavaBeans naming standard.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/beanutils/
|
||||
@@ -1,28 +0,0 @@
|
||||
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-cli/Makefile 436134 2017-03-14 08:53:21Z vanilla $
|
||||
|
||||
PORTNAME= commons-cli
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_BINARIES
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Java library for command line arguments and options
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||
DESTJARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${JARFILE} \
|
||||
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1489478273
|
||||
SHA256 (commons-cli-1.4-bin.tar.gz) = e9f134cd94c13a77b87648871140104338a3b90320658c1860b73f4d5732a793
|
||||
SIZE (commons-cli-1.4-bin.tar.gz) = 505547
|
||||
@@ -1,4 +0,0 @@
|
||||
The Jakarta Commons CLI library provides a simple and easy to use
|
||||
API for working with the command line arguments and options.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/cli/
|
||||
@@ -1,28 +0,0 @@
|
||||
# $FreeBSD: head/java/jakarta-commons-codec/Makefile 403333 2015-12-08 18:33:24Z amdmi3 $
|
||||
|
||||
PORTNAME= commons-codec
|
||||
PORTVERSION= 1.10
|
||||
CATEGORIES= java converters
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= Implementations of common encoders and decoders
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
|
||||
ALL_TARGET= dist
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's/1.9-SNAPSHOT/1.10/' ${WRKSRC}/default.properties
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-codec-1.10-src.tar.gz) = c5e48eacc96b16478ff86c752c113ad6d1eb2991cf895ced431d68e2c17838f1
|
||||
SIZE (commons-codec-1.10-src.tar.gz) = 322874
|
||||
@@ -1,4 +0,0 @@
|
||||
Commons Codec provides implementations of common encoders and decoders
|
||||
such as Base64, Hex, various phonetic encodings, and URLs.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/codec/
|
||||
@@ -1,28 +0,0 @@
|
||||
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-collections/Makefile 425137 2016-11-02 11:15:40Z makc $
|
||||
|
||||
PORTNAME= commons-collections
|
||||
PORTVERSION= 3.2.1
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= makc@FreeBSD.org
|
||||
COMMENT= Classes that extend/augment the Java Collections Framework
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
USES= dos2unix
|
||||
DOS2UNIX_GLOB= Multi*.java Test*.java
|
||||
|
||||
ALL_TARGET= jar
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-collections-3.2.1-src.tar.gz) = 9a4a800cb7ecdaf3b6f608cd608682b88b506f1b1c4b727d15471ae3329fc63d
|
||||
SIZE (commons-collections-3.2.1-src.tar.gz) = 609930
|
||||
@@ -1,144 +0,0 @@
|
||||
--- src/java/org/apache/commons/collections/MultiHashMap.java
|
||||
+++ src/java/org/apache/commons/collections/MultiHashMap.java
|
||||
@@ -331,21 +331,21 @@ public class MultiHashMap extends HashMap implements MultiMap {
|
||||
* @param item the value to remove
|
||||
* @return the value removed (which was passed in), null if nothing removed
|
||||
*/
|
||||
- public Object remove(Object key, Object item) {
|
||||
+ public boolean remove(Object key, Object item) {
|
||||
Collection valuesForKey = getCollection(key);
|
||||
if (valuesForKey == null) {
|
||||
- return null;
|
||||
+ return false;
|
||||
}
|
||||
boolean removed = valuesForKey.remove(item);
|
||||
if (removed == false) {
|
||||
- return null;
|
||||
+ return false;
|
||||
}
|
||||
// remove the list if it is now empty
|
||||
// (saves space, and allows equals to work)
|
||||
if (valuesForKey.isEmpty()){
|
||||
remove(key);
|
||||
}
|
||||
- return item;
|
||||
+ return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
--- src/java/org/apache/commons/collections/MultiMap.java
|
||||
+++ src/java/org/apache/commons/collections/MultiMap.java
|
||||
@@ -66,7 +66,7 @@ public interface MultiMap extends Map {
|
||||
* @throws ClassCastException if the key or value is of an invalid type
|
||||
* @throws NullPointerException if the key or value is null and null is invalid
|
||||
*/
|
||||
- public Object remove(Object key, Object item);
|
||||
+ public boolean remove(Object key, Object item);
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
@@ -144,7 +144,7 @@ public interface MultiMap extends Map {
|
||||
* @throws ClassCastException if the key is of an invalid type
|
||||
* @throws NullPointerException if the key is null and null keys are invalid
|
||||
*/
|
||||
- Object remove(Object key);
|
||||
+ //boolean remove(Object key);
|
||||
|
||||
/**
|
||||
* Gets a collection containing all the values in the map.
|
||||
|
||||
--- src/java/org/apache/commons/collections/map/MultiKeyMap.java
|
||||
+++ src/java/org/apache/commons/collections/map/MultiKeyMap.java
|
||||
@@ -197,7 +197,7 @@ public class MultiKeyMap
|
||||
* @param key2 the second key
|
||||
* @return the value mapped to the removed key, null if key not in map
|
||||
*/
|
||||
- public Object remove(Object key1, Object key2) {
|
||||
+ public boolean remove(Object key1, Object key2) {
|
||||
int hashCode = hash(key1, key2);
|
||||
int index = map.hashIndex(hashCode, map.data.length);
|
||||
AbstractHashedMap.HashEntry entry = map.data[index];
|
||||
@@ -206,12 +206,14 @@ public class MultiKeyMap
|
||||
if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2)) {
|
||||
Object oldValue = entry.getValue();
|
||||
map.removeMapping(entry, index, previous);
|
||||
- return oldValue;
|
||||
+ //return oldValue;
|
||||
+ return true;
|
||||
}
|
||||
previous = entry;
|
||||
entry = entry.next;
|
||||
}
|
||||
- return null;
|
||||
+ //return null;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
--- src/java/org/apache/commons/collections/map/MultiValueMap.java
|
||||
+++ src/java/org/apache/commons/collections/map/MultiValueMap.java
|
||||
@@ -153,19 +153,19 @@ public class MultiValueMap extends AbstractMapDecorator implements MultiMap {
|
||||
* @param value the value to remove
|
||||
* @return the value removed (which was passed in), null if nothing removed
|
||||
*/
|
||||
- public Object remove(Object key, Object value) {
|
||||
+ public boolean remove(Object key, Object value) {
|
||||
Collection valuesForKey = getCollection(key);
|
||||
if (valuesForKey == null) {
|
||||
- return null;
|
||||
+ return false;
|
||||
}
|
||||
boolean removed = valuesForKey.remove(value);
|
||||
if (removed == false) {
|
||||
- return null;
|
||||
+ return false;
|
||||
}
|
||||
if (valuesForKey.isEmpty()) {
|
||||
remove(key);
|
||||
}
|
||||
- return value;
|
||||
+ return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
--- src/test/org/apache/commons/collections/TestMultiHashMap.java
|
||||
+++ src/test/org/apache/commons/collections/TestMultiHashMap.java
|
||||
@@ -464,11 +464,11 @@ public class TestMultiHashMap extends AbstractTestMap {
|
||||
map.put("A", "AA");
|
||||
map.put("A", "AB");
|
||||
map.put("A", "AC");
|
||||
- assertEquals(null, map.remove("C", "CA"));
|
||||
- assertEquals(null, map.remove("A", "AD"));
|
||||
- assertEquals("AC", map.remove("A", "AC"));
|
||||
- assertEquals("AB", map.remove("A", "AB"));
|
||||
- assertEquals("AA", map.remove("A", "AA"));
|
||||
+ assertEquals(false, map.remove("C", "CA"));
|
||||
+ assertEquals(false, map.remove("A", "AD"));
|
||||
+ assertEquals(true, map.remove("A", "AC"));
|
||||
+ assertEquals(true, map.remove("A", "AB"));
|
||||
+ assertEquals(true, map.remove("A", "AA"));
|
||||
assertEquals(new MultiHashMap(), map);
|
||||
}
|
||||
|
||||
|
||||
--- src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
|
||||
+++ src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
|
||||
@@ -315,10 +315,10 @@ public class TestMultiKeyMap extends AbstractTestIterableMap {
|
||||
switch (key.size()) {
|
||||
case 2:
|
||||
assertEquals(true, multimap.containsKey(key.getKey(0), key.getKey(1)));
|
||||
- assertEquals(value, multimap.remove(key.getKey(0), key.getKey(1)));
|
||||
+ assertEquals(true, multimap.remove(key.getKey(0), key.getKey(1)));
|
||||
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
|
||||
assertEquals(size - 1, multimap.size());
|
||||
- assertEquals(null, multimap.remove(key.getKey(0), key.getKey(1)));
|
||||
+ assertEquals(false, multimap.remove(key.getKey(0), key.getKey(1)));
|
||||
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
|
||||
break;
|
||||
case 3:
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
A suite of classes that extend or augment the Java Collections Framework.
|
||||
|
||||
There are certain holes left unfilled by Sun's implementations, and the
|
||||
Jakarta-Commons Collections Component strives to fulfill them. Among the
|
||||
features of this package are:
|
||||
|
||||
Special-purpose implementations of Lists and Maps for fast access Adapter
|
||||
classes from Java1-style containers (arrays, enumerations) to Java 2-style
|
||||
collections. Methods to test or create typical set-theory properties of
|
||||
collections such as union, intersection, and closure.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/collections/
|
||||
@@ -1,33 +0,0 @@
|
||||
# Created by: Anton Yudin <toha@toha.org.ua>
|
||||
# $FreeBSD: head/java/jakarta-commons-dbcp/Makefile 412347 2016-04-01 14:08:37Z mat $
|
||||
|
||||
PORTNAME= commons-dbcp
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= java databases
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= The DBCP Component
|
||||
|
||||
BUILD_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/jakarta-commons-pool \
|
||||
${JAVALIBDIR}/jta.jar:java/jta
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/jakarta-commons-pool \
|
||||
${JAVALIBDIR}/jta.jar:java/jta
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6
|
||||
|
||||
USE_ANT= yes
|
||||
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
||||
ALL_TARGET= build-jar
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-dbcp-1.4-src.tar.gz) = f5f10846e79fc71121fe7402c61d71575506b01b59e719e974ebc4d99e6df283
|
||||
SIZE (commons-dbcp-1.4-src.tar.gz) = 932507
|
||||
@@ -1,23 +0,0 @@
|
||||
The DBCP Component
|
||||
|
||||
Many Jakarta projects support interaction with a relational database.
|
||||
Creating a new connection for each user can be time consuming (often
|
||||
requiring multiple seconds of clock time), in order to perform a
|
||||
database transaction that might take milliseconds. Opening a
|
||||
connection per user can be unfeasible in a publicly-hosted Internet
|
||||
application where the number of simultaneous users can be very large.
|
||||
Accordingly, developers often wish to share a "pool" of open
|
||||
connections between all of the application's current users. The number
|
||||
of users actually performing a request at any given time is usually a
|
||||
very small percentage of the total number of active users, and during
|
||||
request processing is the only time that a database connection is
|
||||
required. The application itself logs into the DBMS, and handles any
|
||||
user account issues internally.
|
||||
There are several Database Connection Pools already available, both
|
||||
within Jakarta products and elsewhere. This Commons package provides
|
||||
an opportunity to coordinate the efforts required to create and
|
||||
maintain an efficient, feature-rich package under the ASF license.
|
||||
The commons-dbcp package relies on code in the commons-pool package to
|
||||
provide the underlying object pool mechanisms that it utilizes.
|
||||
|
||||
WWW: http://commons.apache.org/dbcp/
|
||||
@@ -1,30 +0,0 @@
|
||||
# Created by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
||||
# $FreeBSD: head/java/jakarta-commons-discovery/Makefile 386097 2015-05-11 18:34:57Z mat $
|
||||
|
||||
PORTNAME= commons-discovery
|
||||
PORTVERSION= 0.5
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_BINARIES
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
||||
|
||||
MAINTAINER= olgeni@FreeBSD.org
|
||||
COMMENT= Java library for locating resources (including classes)
|
||||
|
||||
USE_JAVA= YES
|
||||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= YES
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PORTDOCS= *
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${JARFILE}
|
||||
cd ${WRKSRC}/apidocs && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
|
||||
cd ${WRKSRC}/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-discovery-0.5-bin.tar.gz) = 05637d67e5025ea37fb2de4ef4f5a5489bcca31555fadadfeb5e59f0481b0204
|
||||
SIZE (commons-discovery-0.5-bin.tar.gz) = 714772
|
||||
@@ -1,16 +0,0 @@
|
||||
The Discovery Component is about discovering, or finding, implementations for
|
||||
pluggable interfaces. It provides facilities instantiating classes in general,
|
||||
and for lifecycle management of singleton (factory) classes.
|
||||
|
||||
Fundamentally, Discovery locates classes that implement a given Java interface.
|
||||
The discovery pattern, though not necessarily this package, is used in many
|
||||
projects including JAXP (SaxParserFactory and others) and commons-logging
|
||||
(LogFactory). By extracting this pattern, other projects can (re)use it and
|
||||
take advantage of improvements to the pattern as Discovery evolves.
|
||||
|
||||
Discovery improves over previous implementations by establishing facilities for
|
||||
working within managed environments. These allow configuration and property
|
||||
overrides without appealing to the global System properties (which are scoped
|
||||
across an entire JVM).
|
||||
|
||||
WWW: http://commons.apache.org/discovery/
|
||||
@@ -1,38 +0,0 @@
|
||||
# Created by: Alex Dupre <ale@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-httpclient/Makefile 431796 2017-01-18 13:20:31Z tijl $
|
||||
|
||||
PORTNAME= commons-httpclient
|
||||
DISTVERSION= 3.1
|
||||
CATEGORIES= java www
|
||||
MASTER_SITES= APACHE/httpcomponents/${PORTNAME}/source
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
|
||||
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= Package implementing the client side of the HTTP standard
|
||||
|
||||
BUILD_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/jakarta-commons-logging
|
||||
BUILD_DEPENDS+= ${JAVALIBDIR}/commons-codec.jar:java/jakarta-commons-codec
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/jakarta-commons-logging
|
||||
RUN_DEPENDS+= ${JAVALIBDIR}/commons-codec.jar:java/jakarta-commons-codec
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
||||
NO_ARCH= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
||||
ALL_TARGET= dist
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's/Ortwin Gl.*ck/Ortwin Glueck/' \
|
||||
${WRKSRC}/src/java/org/apache/commons/httpclient/*.java \
|
||||
${WRKSRC}/src/java/org/apache/commons/httpclient/*/*.java
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-httpclient-3.1-src.tar.gz) = f9a496d3418b0e15894fb351652cd4fa5ca434ebfc3ce3bb8da40defd8b097f2
|
||||
SIZE (commons-httpclient-3.1-src.tar.gz) = 1882664
|
||||
@@ -1,18 +0,0 @@
|
||||
--- build.xml.orig 2007-10-28 09:00:18.000000000 +0100
|
||||
+++ build.xml 2007-10-28 09:00:37.000000000 +0100
|
||||
@@ -184,13 +184,13 @@
|
||||
optimize ="${compile.optimize}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
- <javac srcdir ="${source.home}/examples"
|
||||
+ <!--javac srcdir ="${source.home}/examples"
|
||||
destdir ="${build.home}/examples"
|
||||
debug ="${compile.debug}"
|
||||
deprecation ="${compile.deprecation}"
|
||||
optimize ="${compile.optimize}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
- </javac>
|
||||
+ </javac-->
|
||||
</target>
|
||||
|
||||
<target name="compile.tests" depends="compile"
|
||||
@@ -1,11 +0,0 @@
|
||||
The Jakarta Commons HttpClient component provides an efficient, up-to-date,
|
||||
and feature-rich package implementing the client side of the most recent HTTP
|
||||
standards and recommendations.
|
||||
|
||||
Designed for extension while providing robust support for the base HTTP
|
||||
protocol, the HttpClient component may be of interest to anyone building
|
||||
HTTP-aware client applications such as web browsers, web service clients,
|
||||
or systems that leverage or extend the HTTP protocol for distributed
|
||||
communication.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/httpclient/
|
||||
@@ -1,37 +0,0 @@
|
||||
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-lang/Makefile 386097 2015-05-11 18:34:57Z mat $
|
||||
|
||||
PORTNAME= commons-lang
|
||||
PORTVERSION= 2.6
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Jakarta library with helper utilities for the java.lang API
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
ALL_TARGET= jar
|
||||
|
||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||
DESTJARFILE= ${PORTNAME}.jar
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
||||
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
||||
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
|
||||
|
||||
.if ${JDK_API} != ""
|
||||
MAKE_ARGS+= -Djdk.javadoc=${JDK_API}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} \
|
||||
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-lang-2.6-src.tar.gz) = 05479771851be0af057032fa26ad90aa0c91c10e1fc4439558a1ffa6f053bcd7
|
||||
SIZE (commons-lang-2.6-src.tar.gz) = 564032
|
||||
@@ -1,13 +0,0 @@
|
||||
The standard Java libraries fail to provide enough methods for
|
||||
manipulation of its core classes. The Lang Component provides
|
||||
these extra methods.
|
||||
|
||||
The Lang Component provides a host of helper utilities for the
|
||||
java.lang API, notably String manipulation methods, basic
|
||||
numerical methods, object reflection, creation and serialization,
|
||||
and System properties. Additionally it contains an inheritable
|
||||
enum type, an exception structure that supports multiple types of
|
||||
nested-Exceptions and a series of utlities dedicated to help with
|
||||
building methods, such as hashCode, toString and equals.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/lang/
|
||||
@@ -1,29 +0,0 @@
|
||||
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
||||
# $FreeBSD: head/java/jakarta-commons-logging/Makefile 392379 2015-07-17 15:31:45Z makc $
|
||||
|
||||
PORTNAME= commons-logging
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_BINARIES
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
||||
|
||||
MAINTAINER= makc@FreeBSD.org
|
||||
COMMENT= Generic logging wrapper library
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= yes
|
||||
|
||||
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \
|
||||
%%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
|
||||
${LN} -sf ${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-logging-1.2-bin.tar.gz) = 3f758805c7290d9c6d22d1451587c9f7232744aef4c984e88aa683cdea0587bd
|
||||
SIZE (commons-logging-1.2-bin.tar.gz) = 315429
|
||||
@@ -1,12 +0,0 @@
|
||||
Jakarta Commons Logging library.
|
||||
|
||||
There is a great need for debugging and logging information inside of Commons
|
||||
components such as HTTPClient and DBCP. However, there are many logging APIs
|
||||
out there and it is difficult to choose among them.
|
||||
|
||||
The Logging package is an ultra-thin bridge between different logging
|
||||
libraries. Commons components may use the Logging API to remove compile-time
|
||||
and run-time dependencies on any particular logging package, and contributors
|
||||
may write Log implementations for the library of their choice.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/logging/
|
||||
@@ -1,30 +0,0 @@
|
||||
# Created by: Anton Yudin <toha@toha.org.ua>
|
||||
# $FreeBSD: head/java/jakarta-commons-pool/Makefile 417166 2016-06-20 16:23:28Z mat $
|
||||
|
||||
PORTNAME= commons-pool
|
||||
PORTVERSION= 1.6
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= Jakarta Object-pooling API
|
||||
|
||||
USES= dos2unix
|
||||
DOS2UNIX_GLOB= *.xml *.java
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
|
||||
USE_ANT= yes
|
||||
ALL_TARGET= build-jar
|
||||
|
||||
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-pool-1.6-src.tar.gz) = 31d182e5dc857666dba640caf9529158c679075f4f137deceff128e268d9195a
|
||||
SIZE (commons-pool-1.6-src.tar.gz) = 321409
|
||||
@@ -1,11 +0,0 @@
|
||||
--- build.xml.orig 2016-06-20 15:05:02 UTC
|
||||
+++ build.xml
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<property name="name" value="commons-pool"/>
|
||||
<property name="title" value="Apache Commons Object Pooling Package"/>
|
||||
- <property name="version" value="1.6-SNAPSHOT"/>
|
||||
+ <property name="version" value="1.6"/>
|
||||
<property name="package" value="org.apache.commons.pool.*"/>
|
||||
|
||||
<property name="src.dir" value="${basedir}/src"/>
|
||||
@@ -1,9 +0,0 @@
|
||||
The Pool Component
|
||||
|
||||
Pool provides an Object-pooling API, with three major aspects:
|
||||
1. A generic object pool interface that clients and implementors can
|
||||
use to provide easily interchangable pooling implementations.
|
||||
2. A toolkit for creating modular object pools.
|
||||
3. Several general purpose pool implementations.
|
||||
|
||||
WWW: http://commons.apache.org/pool/
|
||||
@@ -1,42 +0,0 @@
|
||||
# Created by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
||||
# $FreeBSD: head/java/jakarta-commons-primitives/Makefile 386097 2015-05-11 18:34:57Z mat $
|
||||
|
||||
PORTNAME= commons-primitives
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= java
|
||||
MASTER_SITES= APACHE_COMMONS_SOURCE
|
||||
PKGNAMEPREFIX= jakarta-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Library supporting Java primitive types
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
USE_ANT= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
ALL_TARGET= jar
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
ALL_TARGET+= javadoc
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/target/docs && ${COPYTREE_SHARE} api ${STAGEDIR}${DOCSDIR})
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (commons-primitives-1.0-src.tar.gz) = 96927b484b8cac7e33612469099e7bbd7139cbc79666d5612a32c997fa671ac4
|
||||
SIZE (commons-primitives-1.0-src.tar.gz) = 172369
|
||||
@@ -1,9 +0,0 @@
|
||||
Apache Jakarta Commons Primitives provides a collection of types and utilities
|
||||
optimized for working with Java primitives (boolean, byte, char, double, float,
|
||||
int, long, short). Generally, the Commons-Primitives classes are faster,
|
||||
smaller and easier to work with than their purely Object based alternatives.
|
||||
|
||||
Currently Commons Primitives is primarily composed of implementations of the
|
||||
java.util collections adapted for the primitive types.
|
||||
|
||||
WWW: http://jakarta.apache.org/commons/primitives
|
||||
@@ -1,46 +0,0 @@
|
||||
# $FreeBSD: head/comms/java-simple-serial-connector/Makefile 451721 2017-10-10 21:31:30Z linimon $
|
||||
|
||||
PORTNAME= java-simple-serial-connector
|
||||
PORTVERSION= 2.8.0
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= comms java
|
||||
|
||||
MAINTAINER= kevans@FreeBSD.org
|
||||
COMMENT= Library for working with serial ports from Java
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= scream3r
|
||||
|
||||
MAJOR_MINOR= ${PORTVERSION:C/(.*)\.[0-9]*/\\1/}
|
||||
USE_JAVA= yes
|
||||
USE_ANT= yes
|
||||
ALL_TARGET= dist
|
||||
CXXFLAGS+= -I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd
|
||||
WRKSRC_LIBS= ${WRKSRC}/src/java/libs
|
||||
|
||||
PLIST_FILES= ${JAVA_HOME}/jre/lib/ext/jssc-${PORTVERSION}.jar
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
|
||||
JSSC_ARCH= arm
|
||||
.else
|
||||
JSSC_ARCH= ${ARCH}
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
${CP} ${FILESDIR}/build.xml.in ${WRKSRC}/build.xml
|
||||
${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/build.xml
|
||||
|
||||
pre-build:
|
||||
${RM} -r ${WRKSRC_LIBS}/*
|
||||
${MKDIR} ${WRKSRC_LIBS}/freebsd
|
||||
cd ${WRKSRC}/src/cpp/_nix_based && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -shared -fPIC -o ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${JSSC_ARCH}.so jssc.cpp
|
||||
${STRIP_CMD} ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${JSSC_ARCH}.so
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/ext
|
||||
${CP} ${WRKSRC}/build/jssc-${PORTVERSION}.jar ${STAGEDIR}${JAVA_HOME}/jre/lib/ext
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#EOF
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1477335330
|
||||
SHA256 (scream3r-java-simple-serial-connector-v2.8.0_GH0.tar.gz) = c3287bfc31ea81929739271b087b833fb7050686af6a90ec953c5b2f41b4d42d
|
||||
SIZE (scream3r-java-simple-serial-connector-v2.8.0_GH0.tar.gz) = 149937
|
||||
@@ -1,25 +0,0 @@
|
||||
<project name="JSSC" basedir=".">
|
||||
<property name="src" location="src/java" />
|
||||
<property name="build" location="build" />
|
||||
<property name="libs" location="${src}/libs" />
|
||||
<property name="libsto" location="${build}/libs" />
|
||||
<property name="dist" location="dist" />
|
||||
|
||||
<target name="init">
|
||||
<tstamp />
|
||||
<mkdir dir="${build}" />
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init" description="Compile JSSC">
|
||||
<javac srcdir="${src}" destdir="${build}" encoding="UTF-8" />
|
||||
<copy todir="${libsto}">
|
||||
<fileset dir="${libs}" />
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="compile" description="Build distributable">
|
||||
<jar destfile="${build}/jssc-%%PORTVERSION%%.jar">
|
||||
<fileset dir="${build}" />
|
||||
</jar>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,11 +0,0 @@
|
||||
--- src/cpp/_nix_based/jssc.cpp.orig 2016-10-24 19:48:41 UTC
|
||||
+++ src/cpp/_nix_based/jssc.cpp
|
||||
@@ -545,7 +545,7 @@ JNIEXPORT jbyteArray JNICALL Java_jssc_S
|
||||
FD_CLR(portHandle, &read_fd_set);
|
||||
jbyteArray returnArray = env->NewByteArray(byteCount);
|
||||
env->SetByteArrayRegion(returnArray, 0, byteCount, lpBuffer);
|
||||
- delete lpBuffer;
|
||||
+ delete[] lpBuffer;
|
||||
return returnArray;
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- src/cpp/jssc_SerialNativeInterface.h.orig 2016-10-24 19:47:55 UTC
|
||||
+++ src/cpp/jssc_SerialNativeInterface.h
|
||||
@@ -43,6 +43,8 @@ extern "C" {
|
||||
#define jssc_SerialNativeInterface_OS_SOLARIS 2L
|
||||
#undef jssc_SerialNativeInterface_OS_MAC_OS_X
|
||||
#define jssc_SerialNativeInterface_OS_MAC_OS_X 3L
|
||||
+#undef jssc_SerialNativeInterface_OS_FREEBSD
|
||||
+#define jssc_SerialNativeInterface_OS_FREEBSD 4L
|
||||
#undef jssc_SerialNativeInterface_ERR_PORT_BUSY
|
||||
#define jssc_SerialNativeInterface_ERR_PORT_BUSY -1LL
|
||||
#undef jssc_SerialNativeInterface_ERR_PORT_NOT_FOUND
|
||||
@@ -1,62 +0,0 @@
|
||||
--- src/java/jssc/SerialNativeInterface.java.orig 2014-01-24 14:34:02 UTC
|
||||
+++ src/java/jssc/SerialNativeInterface.java
|
||||
@@ -43,6 +43,7 @@ public class SerialNativeInterface {
|
||||
public static final int OS_WINDOWS = 1;
|
||||
public static final int OS_SOLARIS = 2;//since 0.9.0
|
||||
public static final int OS_MAC_OS_X = 3;//since 0.9.0
|
||||
+ public static final int OS_FREEBSD = 4;
|
||||
|
||||
private static int osType = -1;
|
||||
|
||||
@@ -108,36 +109,16 @@ public class SerialNativeInterface {
|
||||
osName = "mac_os_x";
|
||||
osType = OS_MAC_OS_X;
|
||||
}//<- since 0.9.0
|
||||
+ else if(osName.equals("FreeBSD")){
|
||||
+ osName = "freebsd";
|
||||
+ osType = OS_FREEBSD;
|
||||
+ }
|
||||
|
||||
if(architecture.equals("i386") || architecture.equals("i686")){
|
||||
- architecture = "x86";
|
||||
+ architecture = "i386";
|
||||
}
|
||||
else if(architecture.equals("amd64") || architecture.equals("universal")){//os.arch "universal" since 2.6.0
|
||||
- architecture = "x86_64";
|
||||
- }
|
||||
- else if(architecture.equals("arm")) {//since 2.1.0
|
||||
- String floatStr = "sf";
|
||||
- if(javaLibPath.toLowerCase().contains("gnueabihf") || javaLibPath.toLowerCase().contains("armhf")){
|
||||
- floatStr = "hf";
|
||||
- }
|
||||
- else {
|
||||
- try {
|
||||
- Process readelfProcess = Runtime.getRuntime().exec("readelf -A /proc/self/exe");
|
||||
- BufferedReader reader = new BufferedReader(new InputStreamReader(readelfProcess.getInputStream()));
|
||||
- String buffer = "";
|
||||
- while((buffer = reader.readLine()) != null && !buffer.isEmpty()){
|
||||
- if(buffer.toLowerCase().contains("Tag_ABI_VFP_args".toLowerCase())){
|
||||
- floatStr = "hf";
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
- reader.close();
|
||||
- }
|
||||
- catch (Exception ex) {
|
||||
- //Do nothing
|
||||
- }
|
||||
- }
|
||||
- architecture = "arm" + floatStr;
|
||||
+ architecture = "amd64";
|
||||
}
|
||||
|
||||
libFolderPath = libRootFolder + fileSeparator + ".jssc" + fileSeparator + osName;
|
||||
@@ -259,7 +240,7 @@ public class SerialNativeInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
- * Get OS type (OS_LINUX || OS_WINDOWS || OS_SOLARIS)
|
||||
+ * Get OS type (OS_LINUX || OS_WINDOWS || OS_SOLARIS || OS_FREEBSD)
|
||||
*
|
||||
* @since 0.8
|
||||
*/
|
||||
@@ -1,32 +0,0 @@
|
||||
--- src/java/jssc/SerialPort.java.orig 2016-10-24 19:44:26 UTC
|
||||
+++ src/java/jssc/SerialPort.java
|
||||
@@ -264,7 +264,8 @@ public class SerialPort {
|
||||
checkPortOpened("setEventsMask()");
|
||||
if(SerialNativeInterface.getOsType() == SerialNativeInterface.OS_LINUX ||
|
||||
SerialNativeInterface.getOsType() == SerialNativeInterface.OS_SOLARIS ||
|
||||
- SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X){//since 0.9.0
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X ||
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_FREEBSD){//since 0.9.0
|
||||
linuxMask = mask;
|
||||
if(mask > 0){
|
||||
maskAssigned = true;
|
||||
@@ -298,7 +299,8 @@ public class SerialPort {
|
||||
checkPortOpened("getEventsMask()");
|
||||
if(SerialNativeInterface.getOsType() == SerialNativeInterface.OS_LINUX ||
|
||||
SerialNativeInterface.getOsType() == SerialNativeInterface.OS_SOLARIS ||
|
||||
- SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X){//since 0.9.0
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X ||
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_FREEBSD){//since 0.9.0
|
||||
return linuxMask;
|
||||
}
|
||||
return serialInterface.getEventsMask(portHandle);
|
||||
@@ -1041,7 +1043,8 @@ public class SerialPort {
|
||||
private EventThread getNewEventThread() {
|
||||
if(SerialNativeInterface.getOsType() == SerialNativeInterface.OS_LINUX ||
|
||||
SerialNativeInterface.getOsType() == SerialNativeInterface.OS_SOLARIS ||
|
||||
- SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X){//since 0.9.0
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_MAC_OS_X ||
|
||||
+ SerialNativeInterface.getOsType() == SerialNativeInterface.OS_FREEBSD){//since 0.9.0
|
||||
return new LinuxEventThread();
|
||||
}
|
||||
return new EventThread();
|
||||
@@ -1,14 +0,0 @@
|
||||
--- src/java/jssc/SerialPortList.java.orig 2016-10-24 19:46:27 UTC
|
||||
+++ src/java/jssc/SerialPortList.java
|
||||
@@ -57,6 +57,11 @@ public class SerialPortList {
|
||||
PORTNAMES_PATH = "/dev/";
|
||||
break;
|
||||
}
|
||||
+ case SerialNativeInterface.OS_FREEBSD: {
|
||||
+ PORTNAMES_REGEXP = Pattern.compile("cuaU[0-9]{1,3}");
|
||||
+ PORTNAMES_PATH = "/dev/";
|
||||
+ break;
|
||||
+ }
|
||||
case SerialNativeInterface.OS_WINDOWS: {
|
||||
PORTNAMES_REGEXP = Pattern.compile("");
|
||||
PORTNAMES_PATH = "";
|
||||
@@ -1,3 +0,0 @@
|
||||
Library for working with serial ports in Java.
|
||||
|
||||
WWW: https://github.com/scream3r/java-simple-serial-connector
|
||||
@@ -1,51 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
PORTNAME= jboss71
|
||||
PORTVERSION= 7.1.3
|
||||
CATEGORIES= java www
|
||||
MASTER_SITES= https://javaz.org/distfiles/
|
||||
DISTNAME2= ${GH_PROJECT}-${GH_TAGNAME}
|
||||
DISTFILES= m2-${DISTNAME2}.tar.xz ${DISTNAME}.tar.gz
|
||||
|
||||
MAINTAINER= yerenkow@gmail.com
|
||||
COMMENT= JBoss 7.1.3.Final
|
||||
|
||||
USE_GITHUB= YES
|
||||
GH_ACCOUNT= jbossas
|
||||
GH_PROJECT= jboss-as
|
||||
GH_TAGNAME= 7.1.3.Final
|
||||
|
||||
USE_RC_SUBR= jboss71
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
|
||||
OWNER= www
|
||||
GROUP= www
|
||||
|
||||
VAR_DIR= /var
|
||||
LOG_DIR= ${VAR_DIR}/log/${PORTNAME}
|
||||
DEPLOY_DIR?= ${VAR_DIR}/${PORTNAME}
|
||||
PID_FILE= /var/run/${PORTNAME}.pid
|
||||
JBOSSOUTPUT= ${WRKSRC}/build/target/${DISTNAME2}
|
||||
|
||||
SUB_LIST= APP_SHORTNAME=${PORTNAME} \
|
||||
LOG_DIR=${LOG_DIR} \
|
||||
OWNER=${OWNER}\
|
||||
PID_FILE=${PID_FILE} \
|
||||
APP_HOME=${PREFIX}/${PORTNAME}
|
||||
|
||||
post-patch:
|
||||
${MV} ${WRKSRC}/tools/maven/conf/settings.xml ${WRKSRC}/tools/maven/conf/settings.xml.orig
|
||||
${SED} -e 's,<!-- localRepository,<localRepository>${WRKDIR}/.m2/repository</localRepository><!-- localRepository,g' \
|
||||
${WRKSRC}/tools/maven/conf/settings.xml.orig > ${WRKSRC}/tools/maven/conf/settings.xml
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ./build.sh -Dmaven.test.skip=true -DskipTests
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} && cd ${JBOSSOUTPUT} && \
|
||||
${FIND} . | ${CPIO} -pdmu -R ${OWNER}:${GROUP} ${STAGEDIR}${PREFIX}/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
#EOF
|
||||
@@ -1,4 +0,0 @@
|
||||
SHA256 (m2-jboss-as-7.1.3.Final.tar.xz) = 736834e6ea4db0179e4861234229e8ede75bc8e653aba37da5f3d4acd5e0051d
|
||||
SIZE (m2-jboss-as-7.1.3.Final.tar.xz) = 156590076
|
||||
SHA256 (jbossas-jboss-as-7.1.3-7.1.3.Final_GH0.tar.gz) = 15f32871b4b9262ece0492486cd2f2860201fbe45f314ae6296aefda6eb9cfdc
|
||||
SIZE (jbossas-jboss-as-7.1.3-7.1.3.Final_GH0.tar.gz) = 11663306
|
||||
@@ -1,62 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# %%APP_SHORTNAME%% startup script.
|
||||
#
|
||||
# $FreeBSD: head/java/jboss71/files/jboss71.in 308949 2012-12-15 14:29:38Z fluffy $
|
||||
#
|
||||
|
||||
# PROVIDE: %%APP_SHORTNAME%%
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
|
||||
# Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%:
|
||||
# %%APP_SHORTNAME%%_enable (bool): Set to "YES" to enable %%APP_SHORTNAME%%
|
||||
# %%APP_SHORTNAME%%_jvm_opts (str): Extra JVM flags.
|
||||
# %%APP_SHORTNAME%%_args (str): Optional arguments to JBoss
|
||||
# %%APP_SHORTNAME%%_logging (str) JBoss log output. A pipe command may be used.
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
%%APP_SHORTNAME%%_user="%%OWNER%%"
|
||||
%%APP_SHORTNAME%%_logdir="%%LOG_DIR%%"
|
||||
|
||||
name="%%APP_SHORTNAME%%"
|
||||
rcvar=%%APP_SHORTNAME%%_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
%%APP_SHORTNAME%%_enable="${%%APP_SHORTNAME%%_enable:-"NO"}"
|
||||
%%APP_SHORTNAME%%_logging="${%%APP_SHORTNAME%%_logging:-">> ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> ${%%APP_SHORTNAME%%_logdir}/stderr.log"}"
|
||||
|
||||
start_cmd="%%APP_SHORTNAME%%_start"
|
||||
stop_cmd="%%APP_SHORTNAME%%_stop"
|
||||
pidfile="%%PID_FILE%%"
|
||||
|
||||
JBOSS_HOME="%%APP_HOME%%"
|
||||
|
||||
%%APP_SHORTNAME%%_start ()
|
||||
{
|
||||
if [ ! -d "${%%APP_SHORTNAME%%_logdir}" ]
|
||||
then
|
||||
mkdir -p ${%%APP_SHORTNAME%%_logdir}
|
||||
chown ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir}
|
||||
fi
|
||||
|
||||
echo "Starting %%APP_SHORTNAME%%."
|
||||
daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log
|
||||
|
||||
sleep 1 # let daemon(8) and sh(1) finish before executing pgrep(1)
|
||||
pgrep -U ${%%APP_SHORTNAME%%_user} -f ${JBOSS_HOME}/modules > ${pidfile}
|
||||
chown ${%%APP_SHORTNAME%%_user} $pidfile
|
||||
}
|
||||
|
||||
%%APP_SHORTNAME%%_stop ()
|
||||
{
|
||||
# Subvert the check_pid_file procname check.
|
||||
if [ -f ${pidfile} ]
|
||||
then
|
||||
kill `cat ${pidfile}`
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
@@ -1,11 +0,0 @@
|
||||
--- connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java.orig 2012-11-14 23:35:33.000000000 +0000
|
||||
+++ connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
|
||||
@@ -92,7 +92,7 @@ public class JCAValidatorFactory impleme
|
||||
if (configuration == null) {
|
||||
ConstraintMapping mapping = new ConstraintMapping();
|
||||
HibernateValidatorConfiguration config =
|
||||
- Validation.byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
|
||||
+ Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
|
||||
config.addMapping(mapping);
|
||||
ValidatorFactory factory = config.buildValidatorFactory();
|
||||
return factory;
|
||||
@@ -1,11 +0,0 @@
|
||||
--- jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java.orig 2012-11-15 00:06:15.000000000 +0000
|
||||
+++ jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
|
||||
@@ -78,7 +78,7 @@ public class JPALazyValidatorFactory imp
|
||||
try {
|
||||
SecurityActions.setContextClassLoader(oldTCCL);
|
||||
ConstraintMapping mapping = new ConstraintMapping();
|
||||
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
||||
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
||||
config.addMapping(mapping);
|
||||
ValidatorFactory factory = config.buildValidatorFactory();
|
||||
return factory;
|
||||
@@ -1,11 +0,0 @@
|
||||
--- ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java.orig 2012-11-14 23:36:12.000000000 +0000
|
||||
+++ ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
|
||||
@@ -91,7 +91,7 @@ public class LazyValidatorFactory implem
|
||||
SecurityActions.setContextClassLoader(classLoader);
|
||||
if (configuration == null) {
|
||||
ConstraintMapping mapping = new ConstraintMapping();
|
||||
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
||||
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
||||
config.addMapping(mapping);
|
||||
ValidatorFactory factory = config.buildValidatorFactory();
|
||||
return factory;
|
||||
@@ -1,10 +0,0 @@
|
||||
--- platform-mbean/src/test/java/org/jboss/as/platform/mbean/PlatformMBeanResourceUnitTestCase.java.orig 2012-11-15 14:52:28.000000000 +0000
|
||||
+++ platform-mbean/src/test/java/org/jboss/as/platform/mbean/PlatformMBeanResourceUnitTestCase.java 2012-11-15 14:52:59.000000000 +0000
|
||||
@@ -337,6 +337,7 @@
|
||||
|
||||
@Test
|
||||
public void testThreadingMXBean() throws IOException {
|
||||
+ boolean bsdSkip = true; if(bsdSkip) { return;}
|
||||
DescribedResource describedResource = basicResourceTest("threading", null);
|
||||
|
||||
ThreadMXBean mbean = ManagementFactory.getThreadMXBean();
|
||||
@@ -1,11 +0,0 @@
|
||||
JBoss Application Server
|
||||
|
||||
Fast Startup
|
||||
Small Footprint
|
||||
Modular Design
|
||||
Unified Configuration and Management
|
||||
OSGi
|
||||
|
||||
And of course Java EE!
|
||||
|
||||
WWW: http://www.jboss.org/jbossas/
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,32 +0,0 @@
|
||||
# Created by: OKAZAKI Tetsurou
|
||||
# $FreeBSD: head/java/junit/Makefile 431402 2017-01-13 16:54:55Z mat $
|
||||
|
||||
PORTNAME= junit
|
||||
PORTVERSION= 4.12
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= http://repo1.maven.org/maven2/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
|
||||
DISTFILES= ${DISTNAME}.jar ${DISTNAME}-sources.jar
|
||||
EXTRACT_ONLY=
|
||||
|
||||
MAINTAINER= danilo@FreeBSD.org
|
||||
COMMENT= Regression testing utility for use with the Java(TM) Language
|
||||
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/hamcrest.jar:java/hamcrest
|
||||
|
||||
USE_JAVA= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
PLIST_FILES= %%JAVAJARDIR%%/junit.jar \
|
||||
%%JAVAJARDIR%%/junit4.jar \
|
||||
%%DATADIR%%/src.jar
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/junit.jar
|
||||
${LN} -sf junit.jar ${STAGEDIR}${JAVAJARDIR}/junit4.jar
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${DISTDIR}/junit-${PORTVERSION}-sources.jar \
|
||||
${STAGEDIR}${DATADIR}/src.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,4 +0,0 @@
|
||||
SHA256 (junit-4.12.jar) = 59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a
|
||||
SIZE (junit-4.12.jar) = 314932
|
||||
SHA256 (junit-4.12-sources.jar) = 9f43fea92033ad82bcad2ae44cec5c82abc9d6ee4b095cab921d11ead98bf2ff
|
||||
SIZE (junit-4.12-sources.jar) = 200355
|
||||
@@ -1,6 +0,0 @@
|
||||
This is a port of JUnit, a simple testing framework for Java developed
|
||||
by Erich Gamma and Kent Beck. Using JUnit you can build a test suite
|
||||
that will help you measure your progress, spot unintended side
|
||||
effects, and focus your development efforts.
|
||||
|
||||
WWW: http://www.junit.org/
|
||||
@@ -17,6 +17,8 @@ WRKSRC= ${WRKDIR}/kotlinc
|
||||
|
||||
USE_JAVA= yes
|
||||
NO_BUILD= yes
|
||||
JAVA_VERSION= 11+
|
||||
|
||||
|
||||
KOTLIN_BIN+= kapt
|
||||
KOTLIN_BIN+= kotlin
|
||||
|
||||
@@ -13,6 +13,7 @@ COMMENT= Java project management tool
|
||||
#RUN_DEPENDS= mvn:devel/maven-wrapper
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 11+
|
||||
|
||||
CPE_PRODUCT= maven
|
||||
CPE_VENDOR= apache
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
# $FreeBSD: head/devel/maven33/Makefile 424411 2016-10-21 12:51:40Z mat $
|
||||
|
||||
PORTNAME= maven33
|
||||
DISTVERSION= 3.3.9
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= APACHE/maven/maven-3/${DISTVERSION}/binaries
|
||||
DISTNAME= apache-maven-${DISTVERSION}-bin
|
||||
|
||||
MAINTAINER= yerenkow@gmail.com
|
||||
COMMENT= Java project management tool, 3.3.x branch
|
||||
|
||||
RUN_DEPENDS= mvn:java/maven-wrapper
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.7+
|
||||
NO_BUILD= yes
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
|
||||
SUB_FILES= mvn.sh
|
||||
SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.5.2.jar
|
||||
INSTANCE_FILE= 030303-${PORTNAME}-${PORTVERSION}
|
||||
INSTANCES_DIR= etc/maven-wrapper/instances.d/
|
||||
|
||||
post-extract:
|
||||
${RM} ${WRKSRC}/bin/*.bat
|
||||
${ECHO_CMD} ${DATADIR} > ${WRKSRC}/${INSTANCE_FILE}
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
|
||||
|
||||
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
|
||||
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1471981912
|
||||
SHA256 (apache-maven-3.3.9-bin.tar.gz) = 6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82
|
||||
SIZE (apache-maven-3.3.9-bin.tar.gz) = 8491533
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: head/devel/maven33/files/mvn.sh.in 454856 2017-11-24 23:17:50Z dbaio $
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "${HOME}/.mavenrc" ] ; then
|
||||
. "${HOME}/.mavenrc"
|
||||
fi
|
||||
|
||||
M2_HOME=${M2_HOME:-"%%DATADIR%%"}
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
# first directory with .mvn subdirectory is considered project base directory
|
||||
find_maven_basedir() {
|
||||
local basedir=$(pwd)
|
||||
local wdir=$(pwd)
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
wdir=$(cd "$wdir/.."; pwd)
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)}
|
||||
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" $MAVEN_OPTS \
|
||||
-classpath "${M2_HOME}/boot/%%CLASSWORLDS_JAR%%" \
|
||||
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
|
||||
"-Dmaven.home=${M2_HOME}" \
|
||||
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
org.codehaus.classworlds.Launcher "$@"
|
||||
@@ -1,6 +0,0 @@
|
||||
Apache Maven is a software project management and comprehension
|
||||
tool. Based on the concept of a project object model (POM), Maven
|
||||
can manage a project's build, reporting and documentation from a
|
||||
central piece of information.
|
||||
|
||||
WWW: http://maven.apache.org/
|
||||
@@ -1,90 +0,0 @@
|
||||
etc/maven-wrapper/instances.d/030303-maven33-3.3.9
|
||||
%%DATADIR%%/030303-maven33-3.3.9
|
||||
%%DATADIR%%/LICENSE
|
||||
%%DATADIR%%/NOTICE
|
||||
%%DATADIR%%/README.txt
|
||||
%%DATADIR%%/bin/m2.conf
|
||||
%%DATADIR%%/bin/mvn
|
||||
%%DATADIR%%/bin/mvn.cmd
|
||||
%%DATADIR%%/bin/mvnDebug
|
||||
%%DATADIR%%/bin/mvnDebug.cmd
|
||||
%%DATADIR%%/bin/mvnyjp
|
||||
%%DATADIR%%/boot/plexus-classworlds-2.5.2.jar
|
||||
%%DATADIR%%/conf/logging/simplelogger.properties
|
||||
%%DATADIR%%/conf/settings.xml
|
||||
%%DATADIR%%/conf/toolchains.xml
|
||||
%%DATADIR%%/lib/aether-api-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-api.license
|
||||
%%DATADIR%%/lib/aether-connector-basic-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-connector-basic.license
|
||||
%%DATADIR%%/lib/aether-impl-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-impl.license
|
||||
%%DATADIR%%/lib/aether-spi-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-spi.license
|
||||
%%DATADIR%%/lib/aether-transport-wagon-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-transport-wagon.license
|
||||
%%DATADIR%%/lib/aether-util-1.0.2.v20150114.jar
|
||||
%%DATADIR%%/lib/aether-util.license
|
||||
%%DATADIR%%/lib/aopalliance-1.0.jar
|
||||
%%DATADIR%%/lib/cdi-api-1.0.jar
|
||||
%%DATADIR%%/lib/cdi-api.license
|
||||
%%DATADIR%%/lib/commons-cli-1.2.jar
|
||||
%%DATADIR%%/lib/commons-io-2.2.jar
|
||||
%%DATADIR%%/lib/commons-lang-2.6.jar
|
||||
%%DATADIR%%/lib/commons-lang3-3.4.jar
|
||||
%%DATADIR%%/lib/commons-lang3.license
|
||||
%%DATADIR%%/lib/ext/README.txt
|
||||
%%DATADIR%%/lib/guava-18.0.jar
|
||||
%%DATADIR%%/lib/guice-4.0-no_aop.jar
|
||||
%%DATADIR%%/lib/javax.inject-1.jar
|
||||
%%DATADIR%%/lib/jsoup-1.7.2.jar
|
||||
%%DATADIR%%/lib/jsoup.license
|
||||
%%DATADIR%%/lib/jsr250-api-1.0.jar
|
||||
%%DATADIR%%/lib/jsr250-api.license
|
||||
%%DATADIR%%/lib/maven-aether-provider-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-aether-provider.license
|
||||
%%DATADIR%%/lib/maven-artifact-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-artifact.license
|
||||
%%DATADIR%%/lib/maven-builder-support-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-builder-support.license
|
||||
%%DATADIR%%/lib/maven-compat-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-compat.license
|
||||
%%DATADIR%%/lib/maven-core-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-core.license
|
||||
%%DATADIR%%/lib/maven-embedder-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-embedder.license
|
||||
%%DATADIR%%/lib/maven-model-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-model-builder-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-model-builder.license
|
||||
%%DATADIR%%/lib/maven-model.license
|
||||
%%DATADIR%%/lib/maven-plugin-api-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-plugin-api.license
|
||||
%%DATADIR%%/lib/maven-repository-metadata-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-repository-metadata.license
|
||||
%%DATADIR%%/lib/maven-settings-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-settings-builder-3.3.9.jar
|
||||
%%DATADIR%%/lib/maven-settings-builder.license
|
||||
%%DATADIR%%/lib/maven-settings.license
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.inject-0.3.2.jar
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.inject.license
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.plexus-0.3.2.jar
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.plexus.license
|
||||
%%DATADIR%%/lib/plexus-cipher-1.7.jar
|
||||
%%DATADIR%%/lib/plexus-cipher.license
|
||||
%%DATADIR%%/lib/plexus-component-annotations-1.6.jar
|
||||
%%DATADIR%%/lib/plexus-interpolation-1.21.jar
|
||||
%%DATADIR%%/lib/plexus-sec-dispatcher-1.3.jar
|
||||
%%DATADIR%%/lib/plexus-sec-dispatcher.license
|
||||
%%DATADIR%%/lib/plexus-utils-3.0.22.jar
|
||||
%%DATADIR%%/lib/slf4j-api-1.7.5.jar
|
||||
%%DATADIR%%/lib/slf4j-api.license
|
||||
%%DATADIR%%/lib/slf4j-simple-1.7.5.jar
|
||||
%%DATADIR%%/lib/slf4j-simple.license
|
||||
%%DATADIR%%/lib/wagon-file-2.10.jar
|
||||
%%DATADIR%%/lib/wagon-file.license
|
||||
%%DATADIR%%/lib/wagon-http-2.10-shaded.jar
|
||||
%%DATADIR%%/lib/wagon-http-shared-2.10.jar
|
||||
%%DATADIR%%/lib/wagon-http-shared.license
|
||||
%%DATADIR%%/lib/wagon-http.license
|
||||
%%DATADIR%%/lib/wagon-provider-api-2.10.jar
|
||||
%%DATADIR%%/lib/wagon-provider-api.license
|
||||
@@ -1,108 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
PORTNAME= openfire
|
||||
PORTVERSION= 3.9.3
|
||||
CATEGORIES= net-im java
|
||||
MASTER_SITES= http://download.igniterealtime.org/openfire/
|
||||
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
|
||||
|
||||
MAINTAINER= gahr@FreeBSD.org
|
||||
COMMENT= Enterprise instant messaging server
|
||||
|
||||
RUN_DEPENDS= ${JAVAJARDIR}/slf4j-api.jar:java/slf4j
|
||||
|
||||
#OPTIONS_DEFINE= DOCS PLUGINS
|
||||
#OPTIONS_DEFAULT=PLUGINS
|
||||
#PLUGINS_DESC= Install bundled plugins
|
||||
|
||||
USES= dos2unix #zip
|
||||
DOS2UNIX_FILES= src/java/org/jivesoftware/openfire/server/ServerDialback.java
|
||||
USE_LDCONFIG= yes
|
||||
USE_ANT= yes
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.7
|
||||
|
||||
ALL_TARGET= openfire
|
||||
USE_RC_SUBR= openfire
|
||||
SUB_FILES+= pkg-message
|
||||
|
||||
#MAKE_ENV+= JAVA_HOME=${LOCALBASE}/openjdk8
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}_src
|
||||
BUILD_WRKSRC= ${WRKSRC}/build
|
||||
INSTALL_WRKSRC= ${WRKSRC}/target/openfire
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
PORTDOCS= *
|
||||
VARLOG= /var/log/openfire
|
||||
VARDB= /var/db/openfire
|
||||
|
||||
ALL_TARGET+= plugins
|
||||
|
||||
|
||||
SUB_FILES+= pkg-install
|
||||
|
||||
OPENFIRE_OWNER= ${PORTNAME}
|
||||
OPENFIRE_GROUP= ${PORTNAME}
|
||||
OPENFIRE_OWNER_ID= 342
|
||||
OPENFIRE_GROUP_ID= 342
|
||||
|
||||
SUB_LIST+= OPENFIRE_DBDIR=${VARDB}
|
||||
SUB_LIST+= OPENFIRE_LOGDIR=${VARLOG}
|
||||
SUB_LIST+= OPENFIRE_ETCDIR=${PREFIX}/etc/${PORTNAME}
|
||||
|
||||
SUB_LIST+= HOME=${DATADIR}
|
||||
|
||||
SUB_LIST+= OPENFIRE_OWNER=${OPENFIRE_OWNER}
|
||||
SUB_LIST+= OPENFIRE_GROUP=${OPENFIRE_GROUP}
|
||||
SUB_LIST+= OPENFIRE_OWNER_ID=${OPENFIRE_OWNER_ID}
|
||||
SUB_LIST+= OPENFIRE_GROUP_ID=${OPENFIRE_GROUP_ID}
|
||||
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/lib
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
# ${MKDIR} ${STAGEDIR}${VARDB}
|
||||
# ${MKDIR} ${STAGEDIR}${VARLOG}
|
||||
|
||||
cd ${INSTALL_WRKSRC}/lib && ${INSTALL} -m 744 *.jar ${STAGEDIR}${DATADIR}/lib
|
||||
cd ${INSTALL_WRKSRC}/lib && ${INSTALL} -m 744 log4j.xml ${STAGEDIR}${DATADIR}/lib
|
||||
|
||||
cd ${INSTALL_WRKSRC}/resources && ${FIND} . \! -path ./security\* \
|
||||
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/resources
|
||||
|
||||
cd ${INSTALL_WRKSRC}/plugins/admin && ${FIND} . \
|
||||
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/plugins/admin
|
||||
|
||||
cd ${INSTALL_WRKSRC}/plugins && ${FIND} . \
|
||||
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/plugins
|
||||
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.html README.html changelog.html \
|
||||
${STAGEDIR}${DOCSDIR}
|
||||
|
||||
cd ${WRKSRC}/documentation/docs && ${FIND} . \! -path ./javadoc\* \
|
||||
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR}
|
||||
${LN} -sf ${ETCDIR} ${STAGEDIR}${DATADIR}/conf
|
||||
${LN} -sf ${ETCDIR} ${STAGEDIR}${DATADIR}/resources/security
|
||||
${LN} -sf ${VARDB} ${STAGEDIR}${DATADIR}/embedded-db
|
||||
${LN} -sf ${VARLOG} ${STAGEDIR}${DATADIR}/logs
|
||||
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/conf/openfire.xml \
|
||||
${STAGEDIR}${EXAMPLESDIR}/openfire.xml.sample
|
||||
${INSTALL} -m 600 ${INSTALL_WRKSRC}/resources/security/truststore \
|
||||
${STAGEDIR}${EXAMPLESDIR}/truststore.sample
|
||||
${INSTALL} -m 600 ${INSTALL_WRKSRC}/resources/security/keystore \
|
||||
${STAGEDIR}${EXAMPLESDIR}/keystore.sample
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/conf/security.xml \
|
||||
${STAGEDIR}${EXAMPLESDIR}/security.xml.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
#EOF
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (openfire_src_3_9_3.tar.gz) = 37001835a3007f115214aa83f2a48f8c33bbf3576937f4d964d9eb3de3933ad2
|
||||
SIZE (openfire_src_3_9_3.tar.gz) = 80785973
|
||||
@@ -1,102 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: openfire
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# openfire_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable openfire.
|
||||
# openfire_user (username): Set to openfire by default.
|
||||
# Set it to required username.
|
||||
# openfire_group (group): Set to openfire by default.
|
||||
# Set it to required group.
|
||||
# openfire_libdir (path): Set to %%DATADIR%%/lib by default.
|
||||
# Set it to java classes directory.
|
||||
# openfire_home (path): Set to %%DATADIR%% by default.
|
||||
# Set it to java home directory.
|
||||
# openfire_javargs (args): Set to -Xmx256M by default.
|
||||
# See java -h for available arguments.
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="openfire"
|
||||
rcvar=openfire_enable
|
||||
load_rc_config $name
|
||||
|
||||
# Set defaults
|
||||
: ${openfire_enable:=NO}
|
||||
: ${openfire_user:=${name}}
|
||||
: ${openfire_group:=${name}}
|
||||
: ${openfire_libdir:=%%DATADIR%%/lib}
|
||||
: ${openfire_home:=%%DATADIR%%}
|
||||
: ${openfire_javargs:='-Xmx256M'}
|
||||
|
||||
pidfile=/var/run/${name}.pid
|
||||
|
||||
required_files="%%ETCDIR%%/openfire.xml"
|
||||
java_options=" -server -jar ${openfire_javargs} \
|
||||
-Dopenfire.lib.dir=${openfire_libdir} \
|
||||
-DopenfireHome=${openfire_home}"
|
||||
|
||||
java_command=" %%LOCALBASE%%/bin/java ${java_options} \
|
||||
%%DATADIR%%/lib/startup.jar"
|
||||
|
||||
# Subvert the check_pid_file procname check.
|
||||
if [ -f $pidfile ]; then
|
||||
read rc_pid junk < $pidfile
|
||||
if [ ! -z "$rc_pid" ]; then
|
||||
procname=`ps -o command= $rc_pid | awk '{print $1 }'`
|
||||
fi
|
||||
fi
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-f -p ${pidfile} ${java_command}"
|
||||
start_precmd="openfire_precmd"
|
||||
status_cmd="openfire_status"
|
||||
stop_cmd="openfire_stop"
|
||||
|
||||
openfire_precmd() {
|
||||
touch ${pidfile}
|
||||
chown ${openfire_user}:${openfire_group} ${pidfile}
|
||||
}
|
||||
|
||||
openfire_status() {
|
||||
rc_pid=$(check_pidfile $pidfile *$procname*)
|
||||
|
||||
if [ -z "$rc_pid" ]; then
|
||||
[ -n "$rc_fast" ] && return 0
|
||||
if [ -n "$pidfile" ]; then
|
||||
echo "${name} not running? (check $pidfile)."
|
||||
else
|
||||
echo "${name} not running?"
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
echo "$name is running as pid ${rc_pid}"
|
||||
}
|
||||
|
||||
|
||||
openfire_stop() {
|
||||
rc_pid=$(check_pidfile $pidfile *$procname*)
|
||||
|
||||
if [ -z "$rc_pid" ]; then
|
||||
[ -n "$rc_fast" ] && return 0
|
||||
if [ -n "$pidfile" ]; then
|
||||
echo "${name} not running? (check $pidfile)."
|
||||
else
|
||||
echo "${name} not running?"
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "Stopping ${name}."
|
||||
kill ${rc_pid}
|
||||
wait_for_pids ${rc_pid}
|
||||
rm ${pidfile}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
@@ -1,42 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
|
||||
OPENFIRE_GROUP="%%OPENFIRE_GROUP%%"
|
||||
OPENFIRE_OWNER="%%OPENFIRE_OWNER%%"
|
||||
|
||||
OPENFIRE_GROUP_ID="%%OPENFIRE_GROUP_ID%%"
|
||||
OPENFIRE_OWNER_ID="%%OPENFIRE_OWNER_ID%%"
|
||||
|
||||
PKG_PREFIX="%%PREFIX%%"
|
||||
OPENFIRE_LOGDIR="%%OPENFIRE_LOGDIR%%"
|
||||
OPENFIRE_DBDIR="%%OPENFIRE_DBDIR%%"
|
||||
OPENFIRE_ETCDIR="%%OPENFIRE_ETCDIR%%"
|
||||
|
||||
OPENFIRE_NAME="openfire"
|
||||
OPENFIRE_SHELL="/bin/sh"
|
||||
OPENFIRE_HOME="%%HOME%%"
|
||||
|
||||
pw group add ${OPENFIRE_GROUP} -g ${OPENFIRE_GROUP_ID}
|
||||
pw group show ${OPENFIRE_GROUP}
|
||||
pw user add ${OPENFIRE_OWNER} -u ${OPENFIRE_OWNER_ID} \
|
||||
-g ${OPENFIRE_GROUP} \
|
||||
-d ${OPENFIRE_HOME} \
|
||||
-s "${OPENFIRE_SHELL}" -u ${OPENFIRE_OWNER_ID} \
|
||||
-c "${OPENFIRE_NAME}"
|
||||
pw group mod ${OPENFIRE_GROUP} -M ${OPENFIRE_OWNER}
|
||||
pw user show ${OPENFIRE_OWNER}
|
||||
pw group show ${OPENFIRE_GROUP}
|
||||
install -d -o ${OPENFIRE_OWNER} -g ${OPENFIRE_GROUP} -m 0750 ${OPENFIRE_DBDIR}
|
||||
install -d -o ${OPENFIRE_OWNER} -g ${OPENFIRE_GROUP} -m 0750 ${OPENFIRE_LOGDIR}
|
||||
install -d -o ${OPENFIRE_OWNER} -g ${OPENFIRE_GROUP} -m 0750 ${OPENFIRE_ETCDIR}
|
||||
|
||||
;;
|
||||
POST-INSTALL)
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
#EOF
|
||||
@@ -1,12 +0,0 @@
|
||||
-----------------------------------------------------------
|
||||
To enable the openfire startup script please add
|
||||
openfire_enable="YES" to your /etc/rc.conf file.
|
||||
|
||||
The following sample configuration files have been
|
||||
placed in %%EXAMPLESDIR%%:
|
||||
|
||||
openfire.xml.sample
|
||||
security.xml.sample
|
||||
keystore.sample
|
||||
truststore.sample
|
||||
-----------------------------------------------------------
|
||||
@@ -1,7 +0,0 @@
|
||||
Openfire (formerly Wildfire) is an enterprise instant messaging (EIM) server
|
||||
dual-licensed under the Open Source GPL and commercially. It uses the leading
|
||||
open protocol for instant messaging, XMPP (also called Jabber).
|
||||
Openfire is incredibly easy to setup and administer, but offers rock-solid
|
||||
security and performance.
|
||||
|
||||
WWW: http://www.igniterealtime.org/projects/openfire/index.jsp
|
||||
@@ -1,404 +0,0 @@
|
||||
share/java/openfire/conf
|
||||
share/java/openfire/embedded-db
|
||||
share/java/openfire/lib/activation.jar
|
||||
share/java/openfire/lib/bcpg-jdk15on.jar
|
||||
share/java/openfire/lib/bcpkix-jdk15on.jar
|
||||
share/java/openfire/lib/bcprov-jdk15on.jar
|
||||
share/java/openfire/lib/commons-el.jar
|
||||
share/java/openfire/lib/hsqldb.jar
|
||||
share/java/openfire/lib/jasper-compiler.jar
|
||||
share/java/openfire/lib/jasper-runtime.jar
|
||||
share/java/openfire/lib/jdic.jar
|
||||
share/java/openfire/lib/jtds.jar
|
||||
share/java/openfire/lib/log4j.xml
|
||||
share/java/openfire/lib/mail.jar
|
||||
share/java/openfire/lib/mysql.jar
|
||||
share/java/openfire/lib/openfire.jar
|
||||
share/java/openfire/lib/postgres.jar
|
||||
share/java/openfire/lib/servlet.jar
|
||||
share/java/openfire/lib/slf4j-log4j12.jar
|
||||
share/java/openfire/lib/startup.jar
|
||||
share/java/openfire/logs
|
||||
share/java/openfire/plugins/admin/plugin.xml
|
||||
share/java/openfire/plugins/admin/webapp/favicon.ico
|
||||
share/java/openfire/plugins/admin/webapp/images/add-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/aim-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/aim.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/arrow_right_blue.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/blank.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/both_32x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/bullet-green-14x14.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/bullet-red-14x14.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/bullet-yellow-14x14.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/bullet.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/cache-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/certificate_ok-16x16.png
|
||||
share/java/openfire/plugins/admin/webapp/images/certificate_warning-16x16.png
|
||||
share/java/openfire/plugins/admin/webapp/images/check-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/check.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/clearspace.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/connection-manager_16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/delete-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/doc-changelog-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/doc-down-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/doc-readme-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/edit-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/enterprise-info-btn.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/enterprise.png
|
||||
share/java/openfire/plugins/admin/webapp/images/error-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/feed-icon-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/forbidden-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/greenlight-24x24.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/header-background_new.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/header-help_new.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/header-title_new.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/icon_update-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/icon_warning-small.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/icq-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/icq.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/im_available.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/im_away.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/im_dnd.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/im_free_chat.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/im_unavailable.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/incoming_32x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/info-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/irc-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/irc.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-body-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-body-contentbox-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-login-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-login-form-bg-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-login-form-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-bg-left.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-bg-on.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-bg-over.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-bg-right.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-nav-div.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-subnav-bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-subnav-div.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-tertnav-arrow.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/jive-tertnav-top.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/language_zh_CN.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/lock.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/login_background.png
|
||||
share/java/openfire/plugins/admin/webapp/images/login_boxbg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/login_header.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/login_logo.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/mark-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/msn-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/msn.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/outgoing_32x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/page-background_new.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/percent-bar-left.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/percent-bar-used-high.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/percent-bar-used-low.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/plugin-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/redlight-24x24.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/refresh-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/server_16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/server-network-24x24.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_btn_bg-bigblue.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_btn_bg-grey.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_btn_bg-orange.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_btn_closetestx.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_btn_gearplay.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_contentbox_bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_header_bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_header_logo.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_helpicon.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_language_zh_CN.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_nextprofile.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_bg-top.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_bg.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_check.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress0.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress1.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress2.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress3.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress4.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup_sidebar_progress5.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup-header.png
|
||||
share/java/openfire/plugins/admin/webapp/images/setup-sidebar-bottom.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/setup-sidebar-top.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/sidebar_top.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/sort_ascending.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/sort_descending.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/star-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/success-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/tape.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/twisty_closed_9x9.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/twisty_inactive_9x9.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/twisty_opened_9x9.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/user-clear-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/user-green-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/user-red-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/user-yellow-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/user.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/wait24trans.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/warning-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/working-16x16.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/x.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/yahoo-gray.gif
|
||||
share/java/openfire/plugins/admin/webapp/images/yahoo.gif
|
||||
share/java/openfire/plugins/admin/webapp/index.html
|
||||
share/java/openfire/plugins/admin/webapp/js/behaviour.js
|
||||
share/java/openfire/plugins/admin/webapp/js/builder.js
|
||||
share/java/openfire/plugins/admin/webapp/js/controls.js
|
||||
share/java/openfire/plugins/admin/webapp/js/cookies.js
|
||||
share/java/openfire/plugins/admin/webapp/js/dragdrop.js
|
||||
share/java/openfire/plugins/admin/webapp/js/effects.js
|
||||
share/java/openfire/plugins/admin/webapp/js/jscalendar/calendar-setup.js
|
||||
share/java/openfire/plugins/admin/webapp/js/jscalendar/calendar-win2k-1.css
|
||||
share/java/openfire/plugins/admin/webapp/js/jscalendar/calendar-win2k-cold-1.css
|
||||
share/java/openfire/plugins/admin/webapp/js/jscalendar/calendar.js
|
||||
share/java/openfire/plugins/admin/webapp/js/lightbox.js
|
||||
share/java/openfire/plugins/admin/webapp/js/pngfix.js
|
||||
share/java/openfire/plugins/admin/webapp/js/prototype.js
|
||||
share/java/openfire/plugins/admin/webapp/js/scriptaculous.js
|
||||
share/java/openfire/plugins/admin/webapp/js/setup.js
|
||||
share/java/openfire/plugins/admin/webapp/js/slider.js
|
||||
share/java/openfire/plugins/admin/webapp/js/tooltips/domLib.js
|
||||
share/java/openfire/plugins/admin/webapp/js/tooltips/domTT_drag.js
|
||||
share/java/openfire/plugins/admin/webapp/js/tooltips/domTT.js
|
||||
share/java/openfire/plugins/admin/webapp/js/tooltips/fadomatic.js
|
||||
share/java/openfire/plugins/admin/webapp/js/unittest.js
|
||||
share/java/openfire/plugins/admin/webapp/setup/setup-style.css
|
||||
share/java/openfire/plugins/admin/webapp/style/global.css
|
||||
share/java/openfire/plugins/admin/webapp/style/ldap.css
|
||||
share/java/openfire/plugins/admin/webapp/style/lightbox.css
|
||||
share/java/openfire/plugins/admin/webapp/style/login.css
|
||||
share/java/openfire/plugins/admin/webapp/style/setup.css
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/admin.tld
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/decorators.xml
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/dwr.xml
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/lib/admin-jsp.jar
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/lib/commons-fileupload.jar
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/lib/commons-io.jar
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/lib/dwr.jar
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/sitemesh.xml
|
||||
share/java/openfire/plugins/admin/webapp/WEB-INF/web.xml
|
||||
share/java/openfire/plugins/broadcast.jar
|
||||
share/java/openfire/plugins/clientControl.jar
|
||||
share/java/openfire/plugins/contentFilter.jar
|
||||
share/java/openfire/plugins/dbaccess.jar
|
||||
share/java/openfire/plugins/emailListener.jar
|
||||
share/java/openfire/plugins/fastpath.jar
|
||||
share/java/openfire/plugins/gojara.jar
|
||||
share/java/openfire/plugins/hazelcast.jar
|
||||
share/java/openfire/plugins/jingleNodes.jar
|
||||
share/java/openfire/plugins/jitsivideobridge.jar
|
||||
share/java/openfire/plugins/justmarried.jar
|
||||
share/java/openfire/plugins/kraken.jar
|
||||
share/java/openfire/plugins/loadStats.jar
|
||||
share/java/openfire/plugins/monitoring.jar
|
||||
share/java/openfire/plugins/motd.jar
|
||||
share/java/openfire/plugins/packetFilter.jar
|
||||
share/java/openfire/plugins/presence.jar
|
||||
share/java/openfire/plugins/rayo.jar
|
||||
share/java/openfire/plugins/registration.jar
|
||||
share/java/openfire/plugins/search.jar
|
||||
share/java/openfire/plugins/sip.jar
|
||||
share/java/openfire/plugins/stunserver.jar
|
||||
share/java/openfire/plugins/subscription.jar
|
||||
share/java/openfire/plugins/userCreation.jar
|
||||
share/java/openfire/plugins/userImportExport.jar
|
||||
share/java/openfire/plugins/userservice.jar
|
||||
share/java/openfire/plugins/xmldebugger.jar
|
||||
share/java/openfire/resources/database/openfire_db2.sql
|
||||
share/java/openfire/resources/database/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/1/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/10/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/11/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/12/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/13/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/14/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/15/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/16/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/17/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/18/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/19/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/2/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/20/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/21/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/4/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/5/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/6/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/7/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/8/openfire_sybase.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_db2.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_hsqldb.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_mysql.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_oracle.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_postgresql.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_sqlserver.sql
|
||||
share/java/openfire/resources/database/upgrade/9/openfire_sybase.sql
|
||||
share/java/openfire/resources/nativeAuth/linux-i386/libshaj.so
|
||||
share/java/openfire/resources/nativeAuth/osx-ppc/libshaj.jnilib
|
||||
share/java/openfire/resources/nativeAuth/solaris-sparc/libshaj.so
|
||||
share/java/openfire/resources/nativeAuth/win32-x86/shaj.dll
|
||||
share/java/openfire/resources/security
|
||||
share/java/openfire/resources/spank/index.html
|
||||
share/java/openfire/resources/spank/WEB-INF/web.xml
|
||||
@dir share/java/openfire/lib
|
||||
@dir share/java/openfire/plugins/admin/webapp/images
|
||||
@dir share/java/openfire/plugins/admin/webapp/js/jscalendar
|
||||
@dir share/java/openfire/plugins/admin/webapp/js/tooltips
|
||||
@dir share/java/openfire/plugins/admin/webapp/js
|
||||
@dir share/java/openfire/plugins/admin/webapp/setup
|
||||
@dir share/java/openfire/plugins/admin/webapp/style
|
||||
@dir share/java/openfire/plugins/admin/webapp/WEB-INF/lib
|
||||
@dir share/java/openfire/plugins/admin/webapp/WEB-INF
|
||||
@dir share/java/openfire/plugins/admin/webapp
|
||||
@dir share/java/openfire/plugins/admin
|
||||
@dir share/java/openfire/plugins
|
||||
@dir share/java/openfire/resources/database/upgrade/1
|
||||
@dir share/java/openfire/resources/database/upgrade/10
|
||||
@dir share/java/openfire/resources/database/upgrade/11
|
||||
@dir share/java/openfire/resources/database/upgrade/12
|
||||
@dir share/java/openfire/resources/database/upgrade/13
|
||||
@dir share/java/openfire/resources/database/upgrade/14
|
||||
@dir share/java/openfire/resources/database/upgrade/15
|
||||
@dir share/java/openfire/resources/database/upgrade/16
|
||||
@dir share/java/openfire/resources/database/upgrade/17
|
||||
@dir share/java/openfire/resources/database/upgrade/18
|
||||
@dir share/java/openfire/resources/database/upgrade/19
|
||||
@dir share/java/openfire/resources/database/upgrade/2
|
||||
@dir share/java/openfire/resources/database/upgrade/20
|
||||
@dir share/java/openfire/resources/database/upgrade/21
|
||||
@dir share/java/openfire/resources/database/upgrade/4
|
||||
@dir share/java/openfire/resources/database/upgrade/5
|
||||
@dir share/java/openfire/resources/database/upgrade/6
|
||||
@dir share/java/openfire/resources/database/upgrade/7
|
||||
@dir share/java/openfire/resources/database/upgrade/8
|
||||
@dir share/java/openfire/resources/database/upgrade/9
|
||||
@dir share/java/openfire/resources/database/upgrade
|
||||
@dir share/java/openfire/resources/database
|
||||
@dir share/java/openfire/resources/nativeAuth/linux-i386
|
||||
@dir share/java/openfire/resources/nativeAuth/osx-ppc
|
||||
@dir share/java/openfire/resources/nativeAuth/solaris-sparc
|
||||
@dir share/java/openfire/resources/nativeAuth/win32-x86
|
||||
@dir share/java/openfire/resources/nativeAuth
|
||||
@dir share/java/openfire/resources/spank/WEB-INF
|
||||
@dir share/java/openfire/resources/spank
|
||||
@dir share/java/openfire/resources
|
||||
@dir share/java/openfire
|
||||
@dir share/java
|
||||
@@ -60,13 +60,19 @@ INSTALLDIR= ${PREFIX}/${PKGBASE}
|
||||
|
||||
NOPRECIOUSMAKEVARS= yes
|
||||
|
||||
#JDK_MAJOR_VERSION= 11
|
||||
#JDK_MINOR_VERSION= 0
|
||||
#JDK_PATCH_VERSION= 5
|
||||
#JDK_BUILD_NUMBER= 10
|
||||
#BSD_JDK_VERSION= 1
|
||||
|
||||
JDK_MAJOR_VERSION= 11
|
||||
JDK_MINOR_VERSION= 0
|
||||
JDK_PATCH_VERSION= 5
|
||||
|
||||
JDK_PATCH_VERSION= 6
|
||||
JDK_BUILD_NUMBER= 10
|
||||
BSD_JDK_VERSION= 1
|
||||
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ENV+= CC=${CC}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1571251905
|
||||
SHA256 (battleblow-openjdk-jdk11u-jdk-11.0.5+10-1_GH0.tar.gz) = 7e9ae3ca72fe048dfcea4a95755e7fef4b2615d5817d809cc3b39519c63ab86b
|
||||
SIZE (battleblow-openjdk-jdk11u-jdk-11.0.5+10-1_GH0.tar.gz) = 116849965
|
||||
TIMESTAMP = 1586617043
|
||||
SHA256 (battleblow-openjdk-jdk11u-jdk-11.0.6+10-1_GH0.tar.gz) = 062450974b7df3ec7128b0361bab1c470f9b7cc4542a77304f4c5eb3b4752a6f
|
||||
SIZE (battleblow-openjdk-jdk11u-jdk-11.0.6+10-1_GH0.tar.gz) = 117035292
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
PORTNAME= postgresql
|
||||
PORTVERSION= 9.2.1004
|
||||
DISTVERSIONSUFFIX=.src
|
||||
CATEGORIES= databases java
|
||||
MASTER_SITES= http://jdbc.postgresql.org/download/
|
||||
PKGNAMESUFFIX= -jdbc
|
||||
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION:C/.([0-9][0-9][0-9]*)/-\1/g}${DISTVERSIONSUFFIX}
|
||||
|
||||
MAINTAINER= pgsql@FreeBSD.org
|
||||
COMMENT= The Java JDBC implementation for PostgreSQL
|
||||
|
||||
DIST_SUBDIR= postgresql
|
||||
|
||||
USE_ANT= yes
|
||||
USE_JAVA= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/postgresql.jar
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's,/usr/local/pgsql/share/java,${JAVAJARDIR},' ${WRKSRC}/README
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${STAGEDIR}${JAVAJARDIR}/postgresql.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
#EOF
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (postgresql/postgresql-jdbc-9.2-1004.src.tar.gz) = eeadff0d830cd19a4f52a9489748a7126b0c1d4863bf9a5d65618158dfc6ae68
|
||||
SIZE (postgresql/postgresql-jdbc-9.2-1004.src.tar.gz) = 1842921
|
||||
@@ -1,14 +0,0 @@
|
||||
--- build.xml.orig 2013-10-31 14:48:34.000000000 +0100
|
||||
+++ build.xml 2014-06-09 08:19:22.000000000 +0200
|
||||
@@ -221,10 +221,7 @@
|
||||
|
||||
<target name="compile" depends="prepare,check_versions,driver">
|
||||
|
||||
- <available classname="org.postgresql.Driver" property="old.driver.present" />
|
||||
- <fail message="Old driver was detected on classpath or in jre/lib/ext, please remove and try again." if="old.driver.present" />
|
||||
-
|
||||
- <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}" source="${java.specification.version}">
|
||||
+ <javac includeAntRuntime="no" classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||
<patternset refid="jdbc.version.src.pattern"/>
|
||||
</javac>
|
||||
</target>
|
||||
@@ -1,5 +0,0 @@
|
||||
PostgreSQL JDBC support installed!
|
||||
|
||||
postgresql.jar resides in
|
||||
%%JAVAJARDIR%%/postgresql.jar
|
||||
Add this to your CLASSPATH!
|
||||
@@ -1,4 +0,0 @@
|
||||
This is the official implementation of JDBC, the Java Database
|
||||
Connectivity API, for accessing PostgreSQL databases from Java.
|
||||
|
||||
WWW: http://jdbc.postgresql.org/
|
||||
@@ -1,30 +0,0 @@
|
||||
# Created by: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
|
||||
# $FreeBSD: head/comms/rxtx/Makefile 455167 2017-11-30 06:13:34Z linimon $
|
||||
|
||||
PORTNAME= rxtx
|
||||
PORTVERSION= 2.2p2
|
||||
CATEGORIES= comms java
|
||||
MASTER_SITES= http://rxtx.qbang.org/pub/rxtx/
|
||||
PKGNAMESUFFIX= -${JAVA_PORT:S/java\///}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:S/p/pre/}
|
||||
|
||||
MAINTAINER= james@elstone.net
|
||||
COMMENT= Native interface to serial ports in Java
|
||||
|
||||
BROKEN_armv6= fails to link: librxtxParallel.so: No such file or directory
|
||||
BROKEN_armv7= fails to link: librxtxParallel.so: No such file or directory
|
||||
|
||||
USES= gmake libtool zip
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
JAVA_OS= native
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= JAVA_HOME=${JAVA_HOME}
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_SUB= ARCH=${ARCH} JAVA_HOME=${JAVA_HOME:S,^${PREFIX}/,,}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (rxtx-2.2pre2.zip) = 3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880495b03
|
||||
SIZE (rxtx-2.2pre2.zip) = 1491209
|
||||
@@ -1,21 +0,0 @@
|
||||
--- Makefile.in.orig 2008-12-31 02:29:12 UTC
|
||||
+++ Makefile.in
|
||||
@@ -619,13 +619,15 @@ $(CLASSES): $(javafiles) $(TOP)/Makefile
|
||||
# install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its
|
||||
# proper location
|
||||
install: all
|
||||
+ @$(MKDIR_P) $(DESTDIR)$(RXTX_PATH)
|
||||
@$(LIBTOOL_INST) \
|
||||
`for i in $(TARGETLIB);do \
|
||||
if [ -f $$i ];then \
|
||||
- echo $$i; \
|
||||
+ echo $(TOP)/$$i; \
|
||||
fi; \
|
||||
- done` $(RXTX_PATH)
|
||||
- $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/
|
||||
+ done` $(DESTDIR)$(RXTX_PATH)
|
||||
+ @$(MKDIR_P) $(DESTDIR)$(JHOME)
|
||||
+ $(BSD_INSTALL_DATA) $(JARTARGET) $(DESTDIR)$(JHOME)/
|
||||
|
||||
clean-generic:
|
||||
rm -rf $(DEST) $(TOP)/$(CLASSTOP)
|
||||
@@ -1,12 +0,0 @@
|
||||
--- src/ParallelImp.c.orig 2008-11-27 20:01:48 UTC
|
||||
+++ src/ParallelImp.c
|
||||
@@ -265,9 +265,6 @@ JNIEXPORT jboolean JNICALL LPRPort(isPri
|
||||
#if defined(__linux__)
|
||||
return( status & LP_BUSY ? JNI_TRUE : JNI_FALSE );
|
||||
#endif
|
||||
-#if defined(__FreeBSD__)
|
||||
- return( status & EBUSY ? JNI_TRUE : JNI_FALSE );
|
||||
-#endif
|
||||
return(JNI_FALSE);
|
||||
}
|
||||
/*----------------------------------------------------------
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,44 +0,0 @@
|
||||
--- src/gnu/io/CommPort.java.orig 2007-04-26 05:26:05 UTC
|
||||
+++ src/gnu/io/CommPort.java
|
||||
@@ -73,7 +73,7 @@ import java.io.IOException;
|
||||
*/
|
||||
public abstract class CommPort extends Object {
|
||||
protected String name;
|
||||
- private final static boolean debug = false;
|
||||
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
||||
|
||||
public abstract void enableReceiveFraming( int f )
|
||||
throws UnsupportedCommOperationException;
|
||||
@@ -94,6 +94,7 @@ public abstract class CommPort extends O
|
||||
public abstract int getInputBufferSize();
|
||||
public abstract void setOutputBufferSize( int size );
|
||||
public abstract int getOutputBufferSize();
|
||||
+
|
||||
public void close()
|
||||
{
|
||||
if (debug) System.out.println("CommPort:close()");
|
||||
@@ -102,12 +103,23 @@ public abstract class CommPort extends O
|
||||
{
|
||||
CommPortIdentifier cp =
|
||||
CommPortIdentifier.getPortIdentifier(this);
|
||||
- if ( cp != null )
|
||||
+
|
||||
+ if (cp != null)
|
||||
+ {
|
||||
+
|
||||
+ if (debug) System.out.println(" Not Null");
|
||||
+
|
||||
cp.getPortIdentifier(this).internalClosePort();
|
||||
+
|
||||
+ }
|
||||
}
|
||||
catch (NoSuchPortException e)
|
||||
{
|
||||
+ if (debug) System.out.println("CommPort:close(): No Such Port");
|
||||
}
|
||||
+
|
||||
+ if (debug) System.out.println("CommPort:close:Exit");
|
||||
+
|
||||
};
|
||||
|
||||
public abstract InputStream getInputStream() throws IOException;
|
||||
@@ -1,108 +0,0 @@
|
||||
--- src/gnu/io/CommPortEnumerator.java.orig 2007-04-26 05:26:05 UTC
|
||||
+++ src/gnu/io/CommPortEnumerator.java
|
||||
@@ -69,50 +69,79 @@ import java.util.Enumeration;
|
||||
class CommPortEnumerator implements Enumeration
|
||||
{
|
||||
private CommPortIdentifier index;
|
||||
- private final static boolean debug = false;
|
||||
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
||||
static
|
||||
{
|
||||
- if (debug)
|
||||
- System.out.println("CommPortEnumerator:{}");
|
||||
+ if (debug) System.out.println("CommPortEnumerator:Static{}");
|
||||
}
|
||||
|
||||
CommPortEnumerator()
|
||||
{
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- nextElement()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public Object nextElement()
|
||||
{
|
||||
- if(debug) System.out.println("CommPortEnumerator:nextElement()");
|
||||
+ if (debug) System.out.println("CommPortEnumerator:nextElement()");
|
||||
+
|
||||
synchronized (CommPortIdentifier.Sync)
|
||||
{
|
||||
- if(index != null) index = index.next;
|
||||
- else index=CommPortIdentifier.CommPortIndex;
|
||||
+ if(index != null)
|
||||
+ {
|
||||
+ index = index.next;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ index=CommPortIdentifier.CommPortIndex;
|
||||
+ }
|
||||
+ if (debug) System.out.println(" CommPortEnumerator:nextElement(" + index + ")");
|
||||
return(index);
|
||||
}
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- hasMoreElements()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public boolean hasMoreElements()
|
||||
{
|
||||
- if(debug) System.out.println("CommPortEnumerator:hasMoreElements() " + CommPortIdentifier.CommPortIndex == null ? false : true );
|
||||
+ if (debug) System.out.println("CommPortEnumerator:hasMoreElements()");
|
||||
+
|
||||
+ if (CommPortIdentifier.CommPortIndex == null)
|
||||
+ {
|
||||
+ if (debug) System.out.println(" ComPortIndex is null...");
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (debug) System.out.println(" ComPortIndex is not null...");
|
||||
+ }
|
||||
+
|
||||
synchronized (CommPortIdentifier.Sync)
|
||||
{
|
||||
- if(index != null) return index.next == null ? false : true;
|
||||
- else return CommPortIdentifier.CommPortIndex == null ?
|
||||
- false : true;
|
||||
+ if (debug) System.out.println(" Syncronised");
|
||||
+ if(index != null)
|
||||
+ {
|
||||
+ if (debug) System.out.println(" Valid index");
|
||||
+ if (index.next == null)
|
||||
+ {
|
||||
+ if (debug) System.out.println("CommPortEnumerator:hasMoreElements: Exit(Next index is null - false)");
|
||||
+ return false;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (debug) System.out.println("CommPortEnumerator:hasMoreElements: Exit(Next index is not null - true)");
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (debug) System.out.println(" Index is not valid");
|
||||
+ if (CommPortIdentifier.CommPortIndex == null)
|
||||
+ {
|
||||
+ if (debug) System.out.println("CommPortEnumerator:hasMoreElements: Exit(CommPortIdentifier.CommPortIndex is null - false)");
|
||||
+ return false;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (debug) System.out.println("CommPortEnumerator:hasMoreElements: Exit(CommPortIdentifier.CommPortIndex is not null - true)");
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,849 +0,0 @@
|
||||
--- src/gnu/io/CommPortIdentifier.java.orig 2008-11-27 20:02:34 UTC
|
||||
+++ src/gnu/io/CommPortIdentifier.java
|
||||
@@ -76,85 +76,138 @@ public class CommPortIdentifier extends
|
||||
public static final int PORT_RS485 = 4; // rs485 Port
|
||||
public static final int PORT_RAW = 5; // Raw Port
|
||||
private String PortName;
|
||||
- private boolean Available = true;
|
||||
+ private static boolean init_clean = false;
|
||||
+ private boolean Available = true;
|
||||
private String Owner;
|
||||
private CommPort commport;
|
||||
private CommDriver RXTXDriver;
|
||||
static CommPortIdentifier CommPortIndex;
|
||||
CommPortIdentifier next;
|
||||
private int PortType;
|
||||
- private final static boolean debug = false;
|
||||
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
||||
static Object Sync;
|
||||
Vector ownershipListener;
|
||||
|
||||
|
||||
|
||||
-/*------------------------------------------------------------------------------
|
||||
- static {} aka initialization
|
||||
- accept: -
|
||||
- perform: load the rxtx driver
|
||||
- return: -
|
||||
- exceptions: Throwable
|
||||
- comments: static block to initialize the class
|
||||
-------------------------------------------------------------------------------*/
|
||||
- // initialization only done once....
|
||||
+ /**
|
||||
+ * static {} aka initialization
|
||||
+ * accept: -
|
||||
+ * perform: load the rxtx driver
|
||||
+ * return: -
|
||||
+ * exceptions: Throwable
|
||||
+ * comments: static block to initialize the class
|
||||
+ *
|
||||
+ * initialization only done once....
|
||||
+ *
|
||||
+ **/
|
||||
+
|
||||
static
|
||||
{
|
||||
- if(debug) System.out.println("CommPortIdentifier:static initialization()");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:Static()");
|
||||
+
|
||||
Sync = new Object();
|
||||
try
|
||||
{
|
||||
+ if(debug) System.out.println(" Pre RXTXDriver.Loading New Class (Clean)");
|
||||
+
|
||||
+ init_clean = true;
|
||||
+
|
||||
CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance();
|
||||
+
|
||||
+ if(debug) System.out.println(" Pre RXTXDriver.initialize()");
|
||||
+
|
||||
RXTXDriver.initialize();
|
||||
+
|
||||
+ if(debug) System.out.println(" Post RXTXDriver.initialize()");
|
||||
+
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
- System.err.println(e + " thrown while loading " + "gnu.io.RXTXCommDriver");
|
||||
+
|
||||
+ if(debug) System.out.println(" " + e + " thrown while loading gnu.io.RXTXCommDriver");
|
||||
+
|
||||
+ System.err.println(e + " thrown while loading gnu.io.RXTXCommDriver");
|
||||
+
|
||||
+ init_clean = false;
|
||||
+
|
||||
}
|
||||
|
||||
String OS;
|
||||
|
||||
OS = System.getProperty("os.name");
|
||||
+
|
||||
+ if(debug) System.out.println(" The OS is " + OS);
|
||||
+
|
||||
if(OS.toLowerCase().indexOf("linux") == -1)
|
||||
{
|
||||
- if (debug)
|
||||
- System.out.println("Have not implemented native_psmisc_report_owner(PortName)); in CommPortIdentifier");
|
||||
+ if (debug)
|
||||
+ {
|
||||
+ System.out.println(" WARNING:");
|
||||
+ System.out.println(" native_psmisc_System.out.println_owner(@)) not implemented");
|
||||
+
|
||||
+ /**
|
||||
+ * Not Implemented:
|
||||
+ *
|
||||
+ * native_psmisc_System.out.println_owner(PortName)
|
||||
+ * in CommPortIdentifier")
|
||||
+ **/
|
||||
+
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ if(debug) System.out.println(" Loading Library...");
|
||||
+
|
||||
System.loadLibrary( "rxtxSerial" );
|
||||
+
|
||||
+ if(debug) System.out.println(" init_clean is " + init_clean);
|
||||
+ if(debug) System.out.println("CommPortIdentifier:Static:Exit");
|
||||
+
|
||||
}
|
||||
- CommPortIdentifier ( String pn, CommPort cp, int pt, CommDriver driver)
|
||||
+ CommPortIdentifier
|
||||
+ (
|
||||
+ String pn,
|
||||
+ CommPort cp,
|
||||
+ int pt,
|
||||
+ CommDriver driver
|
||||
+ )
|
||||
{
|
||||
PortName = pn;
|
||||
commport = cp;
|
||||
PortType = pt;
|
||||
next = null;
|
||||
RXTXDriver = driver;
|
||||
-
|
||||
}
|
||||
|
||||
-/*------------------------------------------------------------------------------
|
||||
- addPortName()
|
||||
- accept: Name of the port s, Port type,
|
||||
- reverence to RXTXCommDriver.
|
||||
- perform: place a new CommPortIdentifier in the linked list
|
||||
- return: none.
|
||||
- exceptions: none.
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+ /**
|
||||
+ * addPortName()
|
||||
+ * accept: Name of the port s, Port type,
|
||||
+ * reference to RXTXCommDriver.
|
||||
+ * perform: place a new CommPortIdentifier in the linked list
|
||||
+ * return: none.
|
||||
+ * exceptions: none.
|
||||
+ * comments:
|
||||
+ **/
|
||||
+
|
||||
public static void addPortName(String s, int type, CommDriver c)
|
||||
{
|
||||
|
||||
- if(debug) System.out.println("CommPortIdentifier:addPortName("+s+")");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:addPortName(" + s + ")");
|
||||
+
|
||||
AddIdentifierToList(new CommPortIdentifier(s, null, type, c));
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:addPortName:Exit");
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- AddIdentifierToList()
|
||||
- accept: The cpi to add to the list.
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
+ /**
|
||||
+ * AddIdentifierToList()
|
||||
+ * accept: The cpi to add to the list.
|
||||
+ * perform:
|
||||
+ * return:
|
||||
+ * exceptions:
|
||||
+ * comments:
|
||||
+ **/
|
||||
+
|
||||
private static void AddIdentifierToList( CommPortIdentifier cpi)
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList()");
|
||||
@@ -163,7 +216,7 @@ public class CommPortIdentifier extends
|
||||
if (CommPortIndex == null)
|
||||
{
|
||||
CommPortIndex = cpi;
|
||||
- if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() null");
|
||||
+ if(debug) System.out.println(" Com Port Index is null!");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,264 +224,351 @@ public class CommPortIdentifier extends
|
||||
while (index.next != null)
|
||||
{
|
||||
index = index.next;
|
||||
- if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() index.next");
|
||||
}
|
||||
index.next = cpi;
|
||||
}
|
||||
}
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:addIdentifier:Exit");
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- addPortOwnershipListener()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public void addPortOwnershipListener(CommPortOwnershipListener c)
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:addPortOwnershipListener()");
|
||||
|
||||
- /* is the Vector instantiated? */
|
||||
+ /**
|
||||
+ * is the Vector instantiated?
|
||||
+ **/
|
||||
|
||||
if( ownershipListener == null )
|
||||
{
|
||||
ownershipListener = new Vector();
|
||||
}
|
||||
|
||||
- /* is the ownership listener already in the list? */
|
||||
+ /**
|
||||
+ * is the ownership listener already in the list?
|
||||
+ **/
|
||||
|
||||
if ( ownershipListener.contains(c) == false)
|
||||
{
|
||||
ownershipListener.addElement(c);
|
||||
}
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:addPortOwnershipListener:Exit");
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getCurrentOwner()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public String getCurrentOwner()
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:getCurrentOwner()");
|
||||
+
|
||||
return( Owner );
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getName()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public String getName()
|
||||
{
|
||||
- if(debug) System.out.println("CommPortIdentifier:getName()");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:getName(" + PortName + ")");
|
||||
+
|
||||
return( PortName );
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getPortIdentifier()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")");
|
||||
+
|
||||
CommPortIdentifier index;
|
||||
|
||||
synchronized (Sync)
|
||||
{
|
||||
index = CommPortIndex;
|
||||
- while (index != null && !index.PortName.equals(s)) {
|
||||
+
|
||||
+ while (index != null && !index.PortName.equals(s))
|
||||
+ {
|
||||
index = index.next;
|
||||
}
|
||||
+
|
||||
if (index == null) {
|
||||
- /* This may slow things down but if you pass the string for the port after
|
||||
- a device is plugged in, you can find it now.
|
||||
-
|
||||
- http://bugzilla.qbang.org/show_bug.cgi?id=48
|
||||
- */
|
||||
+
|
||||
+ /**
|
||||
+ * This may slow things down but if you pass the string for the port after
|
||||
+ * a device is plugged in, you can find it now.
|
||||
+ *
|
||||
+ * http://bugzilla.qbang.org/show_bug.cgi?id=48
|
||||
+ **/
|
||||
+
|
||||
getPortIdentifiers();
|
||||
+
|
||||
index = CommPortIndex;
|
||||
- while (index != null && !index.PortName.equals(s)) {
|
||||
+
|
||||
+ while (index != null && !index.PortName.equals(s))
|
||||
+ {
|
||||
index = index.next;
|
||||
}
|
||||
+
|
||||
}
|
||||
+
|
||||
}
|
||||
+
|
||||
if (index != null) return index;
|
||||
else
|
||||
{
|
||||
- if ( debug )
|
||||
- System.out.println("not found!" + s);
|
||||
+ if (debug) System.out.println(" not found!" + s);
|
||||
+
|
||||
throw new NoSuchPortException();
|
||||
}
|
||||
+
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getPortIdentifier()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
static public CommPortIdentifier getPortIdentifier(CommPort p)
|
||||
throws NoSuchPortException
|
||||
{
|
||||
- if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(CommPort)");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(" + p + ")");
|
||||
+
|
||||
CommPortIdentifier c;
|
||||
+
|
||||
synchronized( Sync )
|
||||
{
|
||||
+
|
||||
c = CommPortIndex;
|
||||
- while ( c != null && c.commport != p )
|
||||
+
|
||||
+ while
|
||||
+ (
|
||||
+ c != null &&
|
||||
+ c.commport != p
|
||||
+ )
|
||||
+ {
|
||||
c = c.next;
|
||||
+ }
|
||||
}
|
||||
+
|
||||
if ( c != null )
|
||||
return (c);
|
||||
|
||||
- if ( debug )
|
||||
- System.out.println("not found!" + p.getName());
|
||||
+ if ( debug ) System.out.println(" not found!" + p.getName());
|
||||
+
|
||||
throw new NoSuchPortException();
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getPortIdentifiers()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
static public Enumeration getPortIdentifiers()
|
||||
{
|
||||
- if(debug) System.out.println("static CommPortIdentifier:getPortIdentifiers()");
|
||||
- //Do not allow anybody get any ports while we are re-initializing
|
||||
- //because the CommPortIndex points to invalid instances during that time
|
||||
+ if(debug) System.out.println("CommPortIdentifier:getPortIdentifiers()");
|
||||
+
|
||||
+ /**
|
||||
+ * Do not allow anybody get any ports while we are re-initializing
|
||||
+ * because the CommPortIndex points to invalid instances during that time
|
||||
+ */
|
||||
+
|
||||
synchronized(Sync) {
|
||||
- //Remember old ports in order to restore them for ownership events later
|
||||
+
|
||||
+ /**
|
||||
+ * Remember old ports in order to restore them for ownership events later
|
||||
+ **/
|
||||
+ if(debug) System.out.println(" backing up current ports");
|
||||
HashMap oldPorts = new HashMap();
|
||||
CommPortIdentifier p = CommPortIndex;
|
||||
- while(p!=null) {
|
||||
+
|
||||
+ while(p!=null)
|
||||
+ {
|
||||
oldPorts.put(p.PortName, p);
|
||||
p = p.next;
|
||||
}
|
||||
+
|
||||
CommPortIndex = null;
|
||||
+
|
||||
try
|
||||
{
|
||||
- //Initialize RXTX: This leads to detecting all ports
|
||||
- //and writing them into our CommPortIndex through our method
|
||||
- //{@link #addPortName(java.lang.String, int, gnu.io.CommDriver)}
|
||||
- //This works while lock on Sync is held
|
||||
- CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance();
|
||||
- RXTXDriver.initialize();
|
||||
- //Restore old CommPortIdentifier objects where possible,
|
||||
- //in order to support proper ownership event handling.
|
||||
- //Clients might still have references to old identifiers!
|
||||
+ /**
|
||||
+ * Initialize RXTX: This leads to detecting all ports
|
||||
+ * and writing them into our CommPortIndex through our method
|
||||
+ * {@link #addPortName(java.lang.String, int, gnu.io.CommDriver)}
|
||||
+ * This works while lock on Sync is held
|
||||
+ **/
|
||||
+
|
||||
+ /**
|
||||
+ * However, if RXTX is being called invoked by
|
||||
+ * CommPortIdentifier:getPortIdentifiers for the first
|
||||
+ * time, they have just been enumerated by static() in
|
||||
+ * this class, so we don't need to repeat on the first
|
||||
+ * time.
|
||||
+ **/
|
||||
+
|
||||
+ if ( init_clean == false )
|
||||
+ {
|
||||
+ if(debug) System.out.println(" RXTX init() is dirty");
|
||||
+ if(debug) System.out.println(" Creating RXTX new instance");
|
||||
+ CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance();
|
||||
+ if(debug) System.out.println(" Creating RXTX new instance");
|
||||
+ RXTXDriver.initialize();
|
||||
+
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if(debug) System.out.println(" RXTX init() still clean, now marking as dirty");
|
||||
+ init_clean = false;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Restore old CommPortIdentifier objects where possible,
|
||||
+ * in order to support proper ownership event handling.
|
||||
+ * Clients might still have references to old identifiers!
|
||||
+ **/
|
||||
+
|
||||
CommPortIdentifier curPort = CommPortIndex;
|
||||
CommPortIdentifier prevPort = null;
|
||||
- while(curPort!=null) {
|
||||
+ while(curPort!=null)
|
||||
+ {
|
||||
CommPortIdentifier matchingOldPort = (CommPortIdentifier)oldPorts.get(curPort.PortName);
|
||||
- if(matchingOldPort!=null && matchingOldPort.PortType == curPort.PortType) {
|
||||
- //replace new port by old one
|
||||
+ if
|
||||
+ (
|
||||
+ matchingOldPort!=null &&
|
||||
+ matchingOldPort.PortType == curPort.PortType
|
||||
+ )
|
||||
+ {
|
||||
+ /**
|
||||
+ * replace new port by old one
|
||||
+ **/
|
||||
+
|
||||
matchingOldPort.RXTXDriver = curPort.RXTXDriver;
|
||||
matchingOldPort.next = curPort.next;
|
||||
- if(prevPort==null) {
|
||||
+
|
||||
+ if (prevPort==null)
|
||||
+ {
|
||||
CommPortIndex = matchingOldPort;
|
||||
- } else {
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
prevPort.next = matchingOldPort;
|
||||
}
|
||||
prevPort = matchingOldPort;
|
||||
- } else {
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
prevPort = curPort;
|
||||
}
|
||||
+
|
||||
curPort = curPort.next;
|
||||
+
|
||||
}
|
||||
+
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
+
|
||||
+ System.out.println(" " + e + " thrown while loading gnu.io.RXTXCommDriver");
|
||||
+
|
||||
System.err.println(e + " thrown while loading " + "gnu.io.RXTXCommDriver");
|
||||
+
|
||||
System.err.flush();
|
||||
+
|
||||
}
|
||||
}
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:getPortIdentifiers:Exit");
|
||||
+
|
||||
return new CommPortEnumerator();
|
||||
+
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- getPortType()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public int getPortType()
|
||||
{
|
||||
- if(debug) System.out.println("CommPortIdentifier:getPortType()");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:getPortType(" + PortType + ")");
|
||||
+
|
||||
return( PortType );
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- isCurrentlyOwned()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public synchronized boolean isCurrentlyOwned()
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:isCurrentlyOwned()");
|
||||
+
|
||||
return(!Available);
|
||||
+
|
||||
+
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- open()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
public synchronized CommPort open(FileDescriptor f) throws UnsupportedCommOperationException
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:open(FileDescriptor)");
|
||||
+
|
||||
throw new UnsupportedCommOperationException();
|
||||
+
|
||||
}
|
||||
private native String native_psmisc_report_owner(String PortName);
|
||||
|
||||
-/*------------------------------------------------------------------------------
|
||||
- open()
|
||||
- accept: application making the call and milliseconds to block
|
||||
- during open.
|
||||
- perform: open the port if possible
|
||||
- return: CommPort if successful
|
||||
- exceptions: PortInUseException if in use.
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+ /**
|
||||
+ * open()
|
||||
+ * accept: application making the call and milliseconds to block
|
||||
+ * during open.
|
||||
+ * perform: open the port if possible
|
||||
+ * return: CommPort if successful
|
||||
+ * exceptions: PortInUseException if in use.
|
||||
+ * comments:
|
||||
+ **/
|
||||
+
|
||||
private boolean HideOwnerEvents;
|
||||
|
||||
- public CommPort open(String TheOwner, int i)
|
||||
- throws gnu.io.PortInUseException
|
||||
+ public CommPort open(
|
||||
+ String TheOwner,
|
||||
+ int i
|
||||
+ )
|
||||
+ throws gnu.io.PortInUseException
|
||||
{
|
||||
- if(debug) System.out.println("CommPortIdentifier:open("+TheOwner + ", " +i+")");
|
||||
+ if(debug) System.out.println("CommPortIdentifier:open(" + TheOwner + ", " + i + ")");
|
||||
+
|
||||
boolean isAvailable;
|
||||
- synchronized(this) {
|
||||
+
|
||||
+ synchronized(this)
|
||||
+ {
|
||||
isAvailable = this.Available;
|
||||
+
|
||||
if (isAvailable) {
|
||||
- //assume ownership inside the synchronized block
|
||||
+
|
||||
+ /**
|
||||
+ * assume ownership inside the synchronized block
|
||||
+ * ? Of you and me !
|
||||
+ **/
|
||||
+
|
||||
this.Available = false;
|
||||
this.Owner = TheOwner;
|
||||
}
|
||||
}
|
||||
+
|
||||
if (!isAvailable)
|
||||
{
|
||||
long waitTimeEnd = System.currentTimeMillis() + i;
|
||||
- //fire the ownership event outside the synchronized block
|
||||
- fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED);
|
||||
+
|
||||
+ /**
|
||||
+ * Fire the ownership event outside the synchronized block
|
||||
+ **/
|
||||
+
|
||||
+ fireOwnershipEvent
|
||||
+ (
|
||||
+ CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED
|
||||
+ );
|
||||
+
|
||||
long waitTimeCurr;
|
||||
- synchronized(this) {
|
||||
- while(!Available && (waitTimeCurr=System.currentTimeMillis()) < waitTimeEnd) {
|
||||
+
|
||||
+ synchronized(this)
|
||||
+ {
|
||||
+
|
||||
+ while
|
||||
+ (
|
||||
+ !Available &&
|
||||
+ (
|
||||
+ waitTimeCurr=System.currentTimeMillis()
|
||||
+ ) < waitTimeEnd
|
||||
+ )
|
||||
+ {
|
||||
try
|
||||
{
|
||||
wait(waitTimeEnd - waitTimeCurr);
|
||||
@@ -439,91 +579,134 @@ public class CommPortIdentifier extends
|
||||
break;
|
||||
}
|
||||
}
|
||||
+
|
||||
isAvailable = this.Available;
|
||||
+
|
||||
if (isAvailable) {
|
||||
- //assume ownership inside the synchronized block
|
||||
+ /**
|
||||
+ * Assume ownership inside the synchronized block
|
||||
+ * ? of you an me !
|
||||
+ **/
|
||||
this.Available = false;
|
||||
this.Owner = TheOwner;
|
||||
}
|
||||
}
|
||||
}
|
||||
+
|
||||
if (!isAvailable)
|
||||
{
|
||||
throw new gnu.io.PortInUseException(getCurrentOwner());
|
||||
}
|
||||
- //At this point, the CommPortIdentifier is owned by us.
|
||||
- try {
|
||||
+
|
||||
+ /**
|
||||
+ * At this point, the CommPortIdentifier is owned by us.
|
||||
+ **/
|
||||
+
|
||||
+ try
|
||||
+ {
|
||||
if(commport == null)
|
||||
{
|
||||
- commport = RXTXDriver.getCommPort(PortName,PortType);
|
||||
+ commport = RXTXDriver.getCommPort(
|
||||
+ PortName,
|
||||
+ PortType
|
||||
+ );
|
||||
}
|
||||
+
|
||||
if(commport != null)
|
||||
{
|
||||
- fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNED);
|
||||
+ fireOwnershipEvent(
|
||||
+ CommPortOwnershipListener.PORT_OWNED
|
||||
+ );
|
||||
+
|
||||
return commport;
|
||||
}
|
||||
else
|
||||
{
|
||||
- throw new gnu.io.PortInUseException(
|
||||
- native_psmisc_report_owner(PortName));
|
||||
+ throw new gnu.io.PortInUseException
|
||||
+ (
|
||||
+ native_psmisc_report_owner(PortName)
|
||||
+ );
|
||||
}
|
||||
- } finally {
|
||||
+ }
|
||||
+ finally
|
||||
+ {
|
||||
if(commport == null) {
|
||||
- //something went wrong reserving the commport -> unown the port
|
||||
+
|
||||
+ /**
|
||||
+ * something went wrong reserving the commport
|
||||
+ * -> release ownership (internal) of the port
|
||||
+ **/
|
||||
+
|
||||
synchronized(this) {
|
||||
+
|
||||
this.Available = true;
|
||||
this.Owner = null;
|
||||
+
|
||||
}
|
||||
}
|
||||
+ if(debug) System.out.println("CommPortIdentifier:open:Exit");
|
||||
}
|
||||
- }
|
||||
-/*------------------------------------------------------------------------------
|
||||
- removePortOwnership()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
+
|
||||
+
|
||||
+ }
|
||||
+
|
||||
public void removePortOwnershipListener(CommPortOwnershipListener c)
|
||||
{
|
||||
if(debug) System.out.println("CommPortIdentifier:removePortOwnershipListener()");
|
||||
- /* why is this called twice? */
|
||||
- if(ownershipListener != null)
|
||||
+
|
||||
+ /**
|
||||
+ * why is this called twice?
|
||||
+ **/
|
||||
+
|
||||
+ if(ownershipListener != null)
|
||||
+ {
|
||||
+ if(debug) System.out.println(" I was owned!");
|
||||
ownershipListener.removeElement(c);
|
||||
+ }
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:removePortOwnershipListener()");
|
||||
}
|
||||
|
||||
-/*------------------------------------------------------------------------------
|
||||
- internalClosePort()
|
||||
- accept: None
|
||||
- perform: clean up the Ownership information and send the event
|
||||
- return: None
|
||||
- exceptions: None
|
||||
- comments: None
|
||||
-------------------------------------------------------------------------------*/
|
||||
+ /**
|
||||
+ * internalClosePort()
|
||||
+ * accept: None
|
||||
+ * perform: clean up the Ownership information and send the event
|
||||
+ * return:
|
||||
+ * exceptions:
|
||||
+ * comments:
|
||||
+ **/
|
||||
+
|
||||
void internalClosePort()
|
||||
{
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:internalClosePort()");
|
||||
+
|
||||
synchronized(this) {
|
||||
- if(debug) System.out.println("CommPortIdentifier:internalClosePort()");
|
||||
+
|
||||
Owner = null;
|
||||
Available = true;
|
||||
commport = null;
|
||||
- /* this tosses null pointer?? */
|
||||
+
|
||||
+ /**
|
||||
+ * this tosses null pointer??
|
||||
+ **/
|
||||
+ if(debug) System.out.println(" Notifying all...");
|
||||
+
|
||||
notifyAll();
|
||||
+
|
||||
}
|
||||
+
|
||||
fireOwnershipEvent(CommPortOwnershipListener.PORT_UNOWNED);
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:internalClosePort:Exit");
|
||||
}
|
||||
-/*------------------------------------------------------------------------------
|
||||
- fireOwnershipEvent()
|
||||
- accept:
|
||||
- perform:
|
||||
- return:
|
||||
- exceptions:
|
||||
- comments:
|
||||
-------------------------------------------------------------------------------*/
|
||||
+
|
||||
void fireOwnershipEvent(int eventType)
|
||||
{
|
||||
+
|
||||
if(debug) System.out.println("CommPortIdentifier:fireOwnershipEvent( " + eventType + " )");
|
||||
+
|
||||
if (ownershipListener != null)
|
||||
{
|
||||
CommPortOwnershipListener c;
|
||||
@@ -532,6 +715,10 @@ public class CommPortIdentifier extends
|
||||
c.ownershipChange(eventType))
|
||||
c = (CommPortOwnershipListener) e.nextElement();
|
||||
}
|
||||
+
|
||||
+ if(debug) System.out.println("CommPortIdentifier:fireOwnershipEvent:Exit");
|
||||
}
|
||||
+
|
||||
+
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
--- src/gnu/io/Configure.java.orig 2007-11-18 22:32:41 UTC
|
||||
+++ src/gnu/io/Configure.java
|
||||
@@ -61,6 +61,7 @@ import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
|
||||
+
|
||||
class Configure extends Frame
|
||||
{
|
||||
Checkbox cb[];
|
||||
@@ -68,7 +69,9 @@ class Configure extends Frame
|
||||
static final int PORT_SERIAL = 1;
|
||||
static final int PORT_PARALLEL = 2;
|
||||
int PortType = PORT_SERIAL;
|
||||
-
|
||||
+
|
||||
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
||||
+
|
||||
private void saveSpecifiedPorts()
|
||||
{
|
||||
String filename;
|
||||
@@ -212,7 +215,9 @@ class Configure extends Frame
|
||||
}
|
||||
public static void main (String[] args)
|
||||
{
|
||||
+ if (debug) System.out.println("Configure - Before New");
|
||||
new Configure();
|
||||
+ if (debug) System.out.println("Configure - After New");
|
||||
}
|
||||
String EnumMessage = "gnu.io.rxtx.properties has not been detected.\n\nThere is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save";
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- src/gnu/io/LPRPort.java.orig 2007-04-26 05:26:05 UTC
|
||||
+++ src/gnu/io/LPRPort.java
|
||||
@@ -77,7 +77,7 @@ final class LPRPort extends ParallelPort
|
||||
|
||||
/** Initialize the native library */
|
||||
private native static void Initialize();
|
||||
- private final static boolean debug = false;
|
||||
+ private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
|
||||
|
||||
/** Open the named port */
|
||||
public LPRPort( String name ) throws PortInUseException
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user