summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comms/aprsd/Makefile4
-rw-r--r--comms/aprsd/files/aprsd.in6
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}