[Midnightbsd-cvs] mports [24840] U trunk/devel/jakarta-commons-daemon/files: update jakarta commons 1.1.0

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Feb 1 21:31:51 EST 2019


Revision: 24840
          http://svnweb.midnightbsd.org/mports/?rev=24840
Author:   laffer1
Date:     2019-02-01 21:31:50 -0500 (Fri, 01 Feb 2019)
Log Message:
-----------
update jakarta commons 1.1.0

Modified Paths:
--------------
    trunk/devel/jakarta-commons-daemon/Makefile
    trunk/devel/jakarta-commons-daemon/distinfo
    trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml
    trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c
    trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c

Added Paths:
-----------
    trunk/devel/jakarta-commons-daemon/files/patch-configure

Property Changed:
----------------
    trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml
    trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c
    trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c

Modified: trunk/devel/jakarta-commons-daemon/Makefile
===================================================================
--- trunk/devel/jakarta-commons-daemon/Makefile	2019-02-02 02:25:31 UTC (rev 24839)
+++ trunk/devel/jakarta-commons-daemon/Makefile	2019-02-02 02:31:50 UTC (rev 24840)
@@ -1,7 +1,7 @@
 # $MidnightBSD$
 
 PORTNAME=	commons-daemon
-PORTVERSION=	1.0.15
+PORTVERSION=	1.1.0
 CATEGORIES=	devel java
 MASTER_SITES=	APACHE_COMMONS_SOURCE:src \
 		APACHE_COMMONS_BINARIES:bin
@@ -21,6 +21,7 @@
 JAVA_OS=	native
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-java=${JAVA_HOME}
+CONFIGURE_TARGET=	${ARCH}-portbld-freebsd10.4
 
 WRKSRC=		${WRKDIR}/${DISTNAME}-native-src/unix
 WRKBIN=		${WRKDIR}/${DISTNAME}

Modified: trunk/devel/jakarta-commons-daemon/distinfo
===================================================================
--- trunk/devel/jakarta-commons-daemon/distinfo	2019-02-02 02:25:31 UTC (rev 24839)
+++ trunk/devel/jakarta-commons-daemon/distinfo	2019-02-02 02:31:50 UTC (rev 24840)
@@ -1,4 +1,5 @@
-SHA256 (commons-daemon-1.0.15-native-src.tar.gz) = e98d96c7c71e02d1a05ce1c417eedb588678ccecc55ba2e9ae2969e4ea910a90
-SIZE (commons-daemon-1.0.15-native-src.tar.gz) = 204944
-SHA256 (commons-daemon-1.0.15-bin.tar.gz) = 0dab09bd0d2028000367a6d5c1592b92c71b561a3f98838f6162ae1623e139d8
-SIZE (commons-daemon-1.0.15-bin.tar.gz) = 232233
+TIMESTAMP = 1549074599
+SHA256 (commons-daemon-1.1.0-native-src.tar.gz) = 11962bc602619fd2eeb840f74a8c63cc1055221f0cc385a1fa906e758d39888d
+SIZE (commons-daemon-1.1.0-native-src.tar.gz) = 207125
+SHA256 (commons-daemon-1.1.0-bin.tar.gz) = 0e2c282da674cc5d351b4d7884997eb63472f03f37bf54b210cdef62d07120d7
+SIZE (commons-daemon-1.1.0-bin.tar.gz) = 199681

Added: trunk/devel/jakarta-commons-daemon/files/patch-configure
===================================================================
--- trunk/devel/jakarta-commons-daemon/files/patch-configure	                        (rev 0)
+++ trunk/devel/jakarta-commons-daemon/files/patch-configure	2019-02-02 02:31:50 UTC (rev 24840)
@@ -0,0 +1,11 @@
+--- configure.orig	2018-06-29 12:40:33 UTC
++++ configure
+@@ -3504,7 +3504,7 @@ then
+ $as_echo "jni_md.h found in $JAVA_HOME/$JAVA_INC" >&6; }
+   INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC"
+ else
+-  INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
++  INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$JAVA_OS"
+ fi
+ 
+ if test "$GCC" = "yes"


Property changes on: trunk/devel/jakarta-commons-daemon/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml
===================================================================
--- trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml	2019-02-02 02:25:31 UTC (rev 24839)
+++ trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml	2019-02-02 02:31:50 UTC (rev 24840)
@@ -1,6 +1,6 @@
---- man/jsvc.1.xml.orig	2012-06-13 12:42:23.000000000 +0200
-+++ man/jsvc.1.xml	2012-06-13 12:43:29.000000000 +0200
-@@ -142,7 +142,6 @@
+--- man/jsvc.1.xml.orig	2017-11-15 11:59:37 UTC
++++ man/jsvc.1.xml
+@@ -143,7 +143,6 @@
          <term><option>-wait</option> waittime</term>
          <listitem>
            <para>wait up to waittime seconds for the service to start


Property changes on: trunk/devel/jakarta-commons-daemon/files/patch-man_jsvc.1.xml
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1
\ No newline at end of property
Modified: trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c
===================================================================
--- trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c	2019-02-02 02:25:31 UTC (rev 24839)
+++ trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c	2019-02-02 02:31:50 UTC (rev 24840)
@@ -1,15 +1,15 @@
---- native/arguments.c.orig	2012-02-24 00:24:02.000000000 +0100
-+++ native/arguments.c	2012-06-13 13:15:57.000000000 +0200
-@@ -158,7 +158,7 @@
+--- native/arguments.c.orig	2017-11-02 13:10:04 UTC
++++ native/arguments.c
+@@ -157,7 +157,7 @@ static arg_data *parse(int argc, char *a
      args->help    = false;        /* Don't display help */
      args->chck    = false;        /* Don't do a check-only startup */
      args->stop    = false;        /* Stop a running jsvc */
 -    args->wait    = 0;            /* Wait until jsvc has started the JVM */
 +    args->wait    = 10;           /* Wait until jsvc has started the JVM */
+     args->restarts = -1;          /* Infinite restarts by default */
      args->install = false;        /* Don't install as a service */
      args->remove  = false;        /* Don't remove the installed service */
-     args->service = false;        /* Don't run as a service */
-@@ -262,10 +262,6 @@
+@@ -270,10 +270,6 @@ static arg_data *parse(int argc, char *a
              temp = optional(argc, argv, x++);
              if (temp)
                  args->wait = atoi(temp);
@@ -18,5 +18,5 @@
 -                return NULL;
 -            }
          }
-         else if (!strcmp(argv[x], "-umask")) {
+         else if (!strcmp(argv[x], "-restarts")) {
              temp = optional(argc, argv, x++);


Property changes on: trunk/devel/jakarta-commons-daemon/files/patch-native_arguments.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1
\ No newline at end of property
Modified: trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c
===================================================================
--- trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c	2019-02-02 02:25:31 UTC (rev 24839)
+++ trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c	2019-02-02 02:31:50 UTC (rev 24840)
@@ -1,6 +1,6 @@
---- native/jsvc-unix.c.orig	2012-02-24 00:24:02.000000000 +0100
-+++ native/jsvc-unix.c	2012-06-13 12:40:54.000000000 +0200
-@@ -621,18 +621,13 @@
+--- native/jsvc-unix.c.orig	2017-11-15 11:51:22 UTC
++++ native/jsvc-unix.c
+@@ -717,18 +717,13 @@ static void remove_tmp_file(arg_data *ar
   */
  static int wait_child(arg_data *args, int pid)
  {
@@ -21,7 +21,7 @@
      while (count > 0) {
          sleep(1);
          /* check if the controler is still running */
-@@ -671,7 +666,6 @@
+@@ -767,7 +762,6 @@ static int wait_child(arg_data *args, in
                  }
              }
          }
@@ -29,7 +29,7 @@
          count--;
      }
      /* It takes more than the wait time to start,
-@@ -801,11 +795,11 @@
+@@ -901,11 +895,11 @@ static int child(arg_data *args, home_da
      create_tmp_file(args);
      while (!stopping) {
  #if defined(OSD_POSIX)
@@ -43,7 +43,7 @@
  #endif
          if(doreopen) {
              doreopen = false;
-@@ -824,7 +818,7 @@
+@@ -924,7 +918,7 @@ static int child(arg_data *args, home_da
          return 6;
  
      if (doreload == true)
@@ -52,19 +52,25 @@
      else
          ret = 0;
  
-@@ -1212,12 +1206,12 @@
+@@ -1341,10 +1335,10 @@ static int run_controller(arg_data *args
              if (args->vers != true && args->chck != true && status != 122)
-                 unlink(args->pidf);
+                 remove_pid_file(args, pid);
  
 -            /* If the child got out with 123 he wants to be restarted */
 +            /* If the child got out with 123 or 124 he wants to be restarted */
              /* See java_abort123 (we use this return code to restart when the JVM aborts) */
--            if (status == 123) {
-+            if (status == 123 || status == 124) {
-                 log_debug("Reloading service");
-                 /* prevent looping */
--                if (laststart + 60 > time(NULL)) {
-+                if (status == 123 && laststart + 60 > time(NULL)) {
-                     log_debug("Waiting 60 s to prevent looping");
-                     sleep(60);
-                 }
+             if (!stopping) {
+-                if (status == 123) {
++                if (status == 123 || status == 124) {
+                     if (args->restarts == 0) {
+                         log_debug("Service failure, restarts disabled");
+                         return 1;
+@@ -1356,7 +1350,7 @@ static int run_controller(arg_data *args
+                     log_debug("Reloading service");
+                     restarts++;
+                     /* prevent looping */
+-                    if (laststart + 60 > time(NULL)) {
++                    if (status == 123 && laststart + 60 > time(NULL)) {
+                         log_debug("Waiting 60 s to prevent looping");
+                         sleep(60);
+                     }


Property changes on: trunk/devel/jakarta-commons-daemon/files/patch-native_jsvc-unix.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list