name = ppp
version = 2.4.5
-release = 3
+release = 4
groups = System/Daemons
url = ftp://ftp.samba.org/pub/ppp/
CFLAGS += -fPIC
prepare_cmds
- sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
+ sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
-e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
-i linux/Makefile.top
--- /dev/null
+[Unit]
+Description=Point-to-Point protocol daemon on %I
+BindTo=dev-%I.device
+After=dev-%I.device
+
+[Service]
+Type=forking
+ExecStartPre=/usr/lib/network/helpers/pppd-config-helper create %I
+ExecStart=/usr/sbin/pppd file /run/network/ppp/%I/pppd.conf
+ExecStopPost=/usr/lib/network/helpers/pppd-config-helper remove %I
+PIDFile=/run/ppp-%I.pid
+Restart=failure
+UtmpIdentifier=%I
+KillMode=process