forked from Lainports/freebsd-ports
* 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
38 lines
1.7 KiB
Text
38 lines
1.7 KiB
Text
--- Makefile.in.orig 2020-09-06 18:28:04 UTC
|
|
+++ Makefile.in
|
|
@@ -7,11 +7,8 @@
|
|
|
|
VARRUN= /opt/aprsc/logs # directory for aprsc.state and pid-file
|
|
VARLOG= /opt/aprsc/logs # directory for direct logfiles
|
|
-CFGFILE= @sysconfdir@/aprsc.conf # default configuration file
|
|
SBINDIR= @sbindir@ # installation path for programs
|
|
MANDIR= @mandir@ # installation path for manual pages
|
|
-SBINDIR= /opt/aprsc/sbin
|
|
-CFGFILE= /opt/aprsc/etc/aprsc.conf
|
|
|
|
# generate version strings
|
|
VERSION:=$(shell cat VERSION)
|
|
@@ -217,17 +214,14 @@ aprsc.8 : % : %.in VERSION Makefile
|
|
|
|
.PHONY: install install-deb
|
|
install: all
|
|
- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/etc
|
|
- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/logs
|
|
- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/data
|
|
- $(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
|
|
if [ ! -f $(DESTDIR)$(CFGFILE) ] ; then \
|
|
- $(INSTALL_DATA) aprsc.conf $(DESTDIR)$(CFGFILE) ; \
|
|
+ $(INSTALL_DATA) aprsc.conf $(DESTDIR)$(PREFIX)/etc/aprsc/aprsc.conf.sample ; \
|
|
else true ; fi
|
|
|
|
# -------------------------------------------------------------------- #
|