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:
parent
8c351bfd74
commit
5290fb1d92
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user