Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 2021 17:51:44 +0000 (UTC)
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r565435 - in head/net/aprsc: . files
Message-ID:  <202102161751.11GHpiHr097759@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: db
Date: Tue Feb 16 17:51:43 2021
New Revision: 565435
URL: https://svnweb.freebsd.org/changeset/ports/565435

Log:
  ------------
  * Reduce memory use significantly. The "last position of all stations"
  cache was unnecessarily holding a copy of the last packet from each
  station, eating 248 bytes per station (or more, if it was a long packet).
  It wasn't used for anything, so I removed the packet data from the
  structure, and it now uses 56 bytes per station. From about 13 megabytes
  to about 3 megabytes on a normal day.
  
  PR:		ports/253296
  Submitted by:	freebsd-ports@dan.me.uk
  Reviewed by:	portmgr
  Approved by:	Maintainer

Modified:
  head/net/aprsc/Makefile
  head/net/aprsc/distinfo   (contents, props changed)
  head/net/aprsc/files/patch-Makefile.in
  head/net/aprsc/files/patch-web_index.html
  head/net/aprsc/pkg-plist

Modified: head/net/aprsc/Makefile
==============================================================================
--- head/net/aprsc/Makefile	Tue Feb 16 17:48:20 2021	(r565434)
+++ head/net/aprsc/Makefile	Tue Feb 16 17:51:43 2021	(r565435)
@@ -1,9 +1,8 @@
 # $FreeBSD$
 
 PORTNAME=	aprsc
-PORTVERSION=	2.1.4
-DISTVERSIONSUFFIX=	.g408ed49
-PORTREVISION=	3
+PORTVERSION=	2.1.8
+DISTVERSIONSUFFIX=	.gf8824e8
 CATEGORIES=	net hamradio
 MASTER_SITES=	http://he.fi/aprsc/down/ \
 		LOCAL/db
@@ -16,13 +15,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libevent.so:devel/libevent
 
+USES=		localbase:ldflags ssl perl5 gmake shebangfix
 MAKEFILE=	GNUmakefile
-
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
 GNU_CONFIGURE=	yes
-USES=		localbase:ldflags ssl perl5 gmake shebangfix
 SHEBANG_FILES=	aprsc_munin
 
 CONFIGURE_ARGS=	--with-openssl
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/aprsc
 
 .include <bsd.port.mk>

Modified: head/net/aprsc/distinfo
==============================================================================
--- head/net/aprsc/distinfo	Tue Feb 16 17:48:20 2021	(r565434)
+++ head/net/aprsc/distinfo	Tue Feb 16 17:51:43 2021	(r565435)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1485028042
-SHA256 (aprsc-2.1.4.g408ed49.tar.gz) = 85572232b4702b46eccbd646e4b0ad0b7535fb1788501b31a4ad45b0eb5ac8a3
-SIZE (aprsc-2.1.4.g408ed49.tar.gz) = 1649598
+TIMESTAMP = 1612522667
+SHA256 (aprsc-2.1.8.gf8824e8.tar.gz) = ff205f5f5fddbafda354288d4bf15403226c1b8e1d1d03cb9bfd672deb813604
+SIZE (aprsc-2.1.8.gf8824e8.tar.gz) = 1663599

Modified: head/net/aprsc/files/patch-Makefile.in
==============================================================================
--- head/net/aprsc/files/patch-Makefile.in	Tue Feb 16 17:48:20 2021	(r565434)
+++ head/net/aprsc/files/patch-Makefile.in	Tue Feb 16 17:51:43 2021	(r565435)
@@ -1,4 +1,4 @@
---- Makefile.in.orig	2016-02-14 00:52:59 UTC
+--- Makefile.in.orig	2020-09-06 18:28:04 UTC
 +++ Makefile.in
 @@ -7,11 +7,8 @@
  
@@ -12,7 +12,7 @@
  
  # generate version strings
  VERSION:=$(shell cat VERSION)
-@@ -197,16 +194,13 @@ aprsc.8 : % : %.in VERSION Makefile
+@@ -217,17 +214,14 @@ aprsc.8 : % : %.in VERSION Makefile
  
  .PHONY:	install install-deb
  install: all
@@ -22,9 +22,11 @@
 -	$(INSTALL_DIR) $(DESTDIR)/opt/aprsc/web
 -	$(INSTALL_PROGRAM) aprsc $(DESTDIR)$(SBINDIR)/aprsc
 -	$(INSTALL_PROGRAM) aprsc_munin $(DESTDIR)$(SBINDIR)/aprsc_munin
+-	$(INSTALL_PROGRAM) aprsc-prepare-chroot.sh $(DESTDIR)$(SBINDIR)/aprsc-prepare-chroot.sh
 +	$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/etc/aprsc/web
 +	$(INSTALL_PROGRAM) aprsc $(DESTDIR)$(PREFIX)$(SBINDIR)/aprsc
 +	$(INSTALL_PROGRAM) aprsc_munin $(DESTDIR)$(PREFIX)$(SBINDIR)/aprsc_munin
++	$(INSTALL_PROGRAM) aprsc-prepare-chroot.sh $(DESTDIR)$(PREFIX)$(SBINDIR)/aprsc-prepare-chroot.sh
  	$(INSTALL_DATA) aprsc.8 $(DESTDIR)$(MANDIR)/man8/aprsc.8
 -	$(INSTALL_DATA) $(subst src/,,$(WEBFILES)) $(DESTDIR)/opt/aprsc/web
 +	$(INSTALL_DATA) $(subst src/,,$(WEBFILES)) $(DESTDIR)$(PREFIX)/etc/aprsc/web

Modified: head/net/aprsc/files/patch-web_index.html
==============================================================================
--- head/net/aprsc/files/patch-web_index.html	Tue Feb 16 17:48:20 2021	(r565434)
+++ head/net/aprsc/files/patch-web_index.html	Tue Feb 16 17:51:43 2021	(r565435)
@@ -1,5 +1,5 @@
---- web/index.html.orig	2017-01-21 19:58:24.223151000 +0000
-+++ web/index.html	2017-01-21 19:58:49.601855000 +0000
+--- web/index.html.orig	2018-06-01 09:25:08 UTC
++++ web/index.html
 @@ -284,8 +284,7 @@
  	{{ sel_c.cert_issuer }}
  	</p>

Modified: head/net/aprsc/pkg-plist
==============================================================================
--- head/net/aprsc/pkg-plist	Tue Feb 16 17:48:20 2021	(r565434)
+++ head/net/aprsc/pkg-plist	Tue Feb 16 17:51:43 2021	(r565435)
@@ -29,3 +29,4 @@
 man/man8/aprsc.8.gz
 sbin/aprsc
 sbin/aprsc_munin
+sbin/aprsc-prepare-chroot.sh



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