1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

comms/aprsd: Spell SUB_LIST correctly and unbreak rc script

Reported by:	portscan (unreferenced variable)
This commit is contained in:
Tobias Kortkamp 2021-10-15 19:16:09 +02:00
parent 8c351bfd74
commit 5290fb1d92
No known key found for this signature in database
GPG Key ID: A4F09FB73CC51F61
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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}