Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jul 2019 09:02:14 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r506613 - in head/comms/chu: . files
Message-ID:  <201907140902.x6E92E1j066724@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jul 14 09:02:13 2019
New Revision: 506613
URL: https://svnweb.freebsd.org/changeset/ports/506613

Log:
  - Fix LICENSE
  - Add LICENSE_FILE
  - Switch to options helpers
  - Regenerate patch
  - Update WWW
  - Don't install license with docs
  
  Approved by:	portmgr blanket

Modified:
  head/comms/chu/Makefile
  head/comms/chu/files/patch-chu.c
  head/comms/chu/pkg-descr
  head/comms/chu/pkg-plist

Modified: head/comms/chu/Makefile
==============================================================================
--- head/comms/chu/Makefile	Sun Jul 14 08:22:07 2019	(r506612)
+++ head/comms/chu/Makefile	Sun Jul 14 09:02:13 2019	(r506613)
@@ -9,7 +9,8 @@ MASTER_SITES=	SUNSITE/system/admin/time
 MAINTAINER=	hamradio@FreeBSD.org
 COMMENT=	Synchronise computer clock to CHU radio station
 
-LICENSE=	GPLv1
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 NO_WRKSUBDIR=	yes
 
@@ -25,11 +26,13 @@ post-patch:
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/chu ${STAGEDIR}${PREFIX}/sbin
-	${MKDIR} ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/testsignal ${STAGEDIR}${DATADIR}
 	${INSTALL_MAN} ${WRKSRC}/chu.8 ${STAGEDIR}${PREFIX}/man/man8
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for d in COPYING TESTING chu.html chuman.html ntp.html
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for d in TESTING chu.html chuman.html ntp.html
 	${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
 .endfor
 

Modified: head/comms/chu/files/patch-chu.c
==============================================================================
--- head/comms/chu/files/patch-chu.c	Sun Jul 14 08:22:07 2019	(r506612)
+++ head/comms/chu/files/patch-chu.c	Sun Jul 14 09:02:13 2019	(r506613)
@@ -1,5 +1,5 @@
---- chu.c.orig	1999-03-17 11:42:18.000000000 -0500
-+++ chu.c	2011-07-01 08:42:06.000000000 -0400
+--- chu.c.orig	1999-03-17 16:42:18 UTC
++++ chu.c
 @@ -20,15 +20,21 @@
  #include <stdlib.h>
  #include <string.h>
@@ -24,7 +24,7 @@
  #define SAMPLE_RATE 8000
  #define SAMPLES 512
  #define OVERLAP 50
-@@ -389,6 +395,21 @@
+@@ -389,6 +395,21 @@ void saveAdjTime()
    }
  }
  
@@ -46,7 +46,7 @@
  #ifdef USE_TIMEX
  void timex_adjustment(int microsec)
  {
-@@ -462,7 +483,8 @@
+@@ -462,7 +483,8 @@ double gettimexoffset()
    adjtimex(&t);
    offset = t.offset;
  #endif
@@ -56,7 +56,7 @@
    return (double) offset; 
  }
  
-@@ -655,13 +677,18 @@
+@@ -655,13 +677,18 @@ void adj_time(double d)
      tv.tv_usec += 1000000;
    }
  
@@ -75,7 +75,7 @@
    {
      printf("standard adjustment ");
  
-@@ -1267,7 +1294,7 @@
+@@ -1267,7 +1294,7 @@ char *parseArgs(int argc, char **argv)
    return fname;
  }
  
@@ -84,7 +84,7 @@
  {
    FILE *fp;
    signed char buf[8192];
-@@ -1278,7 +1305,7 @@
+@@ -1278,7 +1305,7 @@ void main(int argc, char **argv)
  
    fname = parseArgs(argc, argv);
    if (fname == NULL)
@@ -93,7 +93,7 @@
  
    /* Set priority to maximum -- just long enough for us
       to open the audio device and timestamp it.  This should
-@@ -1293,7 +1320,7 @@
+@@ -1293,7 +1320,7 @@ void main(int argc, char **argv)
    if (fp == NULL)
    {
      printf("fopen(): Unable to open file: %s  %s\n", fname, strerror(errno));

Modified: head/comms/chu/pkg-descr
==============================================================================
--- head/comms/chu/pkg-descr	Sun Jul 14 08:22:07 2019	(r506612)
+++ head/comms/chu/pkg-descr	Sun Jul 14 09:02:13 2019	(r506613)
@@ -3,4 +3,4 @@ Research Council Canada (NRC). This software uses sign
 station CHU to set and frequency discipline the system clock on a
 Linux (FreeBSD) based system.
 
-WWW: http://www.rossi.com/chu/
+WWW: https://www.rossi.com/chu/

Modified: head/comms/chu/pkg-plist
==============================================================================
--- head/comms/chu/pkg-plist	Sun Jul 14 08:22:07 2019	(r506612)
+++ head/comms/chu/pkg-plist	Sun Jul 14 09:02:13 2019	(r506613)
@@ -1,6 +1,5 @@
 sbin/chu
 %%DATADIR%%/testsignal
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/chu.html
 %%PORTDOCS%%%%DOCSDIR%%/chuman.html
 %%PORTDOCS%%%%DOCSDIR%%/ntp.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907140902.x6E92E1j066724>