git: 5290fb1d9274 - main - comms/aprsd: Spell SUB_LIST correctly and unbreak rc script

From: Tobias Kortkamp <tobik_at_FreeBSD.org>
Date: Tue, 19 Oct 2021 08:50:47 UTC
The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5290fb1d9274aa22c0a1dba1b21b424efd01dcd0

commit 5290fb1d9274aa22c0a1dba1b21b424efd01dcd0
Author:     Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2021-10-15 17:16:09 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2021-10-19 08:37:53 +0000

    comms/aprsd: Spell SUB_LIST correctly and unbreak rc script
    
    Reported by:    portscan (unreferenced variable)
---
 comms/aprsd/Makefile       | 4 ++--
 comms/aprsd/files/aprsd.in | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index bcd9254ef6bf..b12533eca532 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	aprsd
 PORTVERSION=	2.2.515
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	comms hamradio
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/2.2.5-15
 DISTNAME=	aprsd-2.2.5-15
@@ -23,7 +23,7 @@ GROUPS=	aprsd dialer tnc
 APRSD_RC_USER=	aprsd
 APRSD_RC_GROUP=	aprsd
 
-RC_SUB_LIST=	LOCALBASE=${LOCALBASE} APRSD_RC_USER=${APRSD_RC_USER} \
+SUB_LIST=	APRSD_RC_USER=${APRSD_RC_USER} \
 		APRSD_RC_GROUP=${APRSD_RC_GROUP}
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
diff --git a/comms/aprsd/files/aprsd.in b/comms/aprsd/files/aprsd.in
index 393eefeb56af..f7cc47ab0c83 100644
--- a/comms/aprsd/files/aprsd.in
+++ b/comms/aprsd/files/aprsd.in
@@ -27,9 +27,9 @@ pidfile=/var/run/aprsd.pid
 aprsd_pre()
 {
 	if [ ${aprsd_root} != "YES" ]; then
-		echo "Starting aprs server as user ${APRSD_RC_USER}:${APRSD_RC_GROUP}."
-		install -o ${APRSD_RC_USER} -g ${APRSD_RC_GROUP} /dev/null ${pidfile}
-		chown -R ${APRSD_RC_USER}:${APRSD_RC_GROUP} /var/log/aprsd
+		echo "Starting aprs server as user ${aprsd_user}:${aprsd_group}."
+		install -o ${aprsd_user} -g ${aprsd_group} /dev/null ${pidfile}
+		chown -R ${aprsd_user}:${aprsd_group} /var/log/aprsd
 	else   
 		echo "Starting aprs server as root."
 		install -o root -g wheel /dev/null ${pidfile}