]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - ppp/ppp.nm
libnetfilter_queue: Update to 1.0.2.
[people/ms/ipfire-3.x.git] / ppp / ppp.nm
index 8930a9278a07df7e75629851b65754607bf9bf85..994d397fd281c50bd4600f4087ee161c842f2623 100644 (file)
@@ -5,22 +5,22 @@
 
 name       = ppp
 version    = 2.4.5
-release    = 2
+release    = 6
 
 groups     = System/Daemons
-url        = ftp://ftp.samba.org/pub/ppp/
+url        = http://ppp.samba.org/
 license    = BSD and LGPLv2+ and GPLv2+ and Public Domain
 summary    = The PPP (Point-to-Point Protocol) daemon.
 
 description
-       The ppp package contains the PPP (Point-to-Point Protocol) daemon and \
-       documentation for PPP support. The PPP protocol provides a method for \
-       transmitting datagrams over serial point-to-point links. PPP is \
-       usually used to dial in to an ISP or other organization over a modem \
+       The ppp package contains the PPP (Point-to-Point Protocol) daemon and
+       documentation for PPP support. The PPP protocol provides a method for
+       transmitting datagrams over serial point-to-point links. PPP is
+       usually used to dial in to an ISP or other organization over a modem
        and phone line.
 end
 
-source_dl  =
+source_dl  = ftp://ftp.samba.org/pub/ppp/
 
 build
        requires
@@ -28,10 +28,14 @@ build
                linux-atm-devel
                openssl-devel
                pam-devel
+               systemd-units
        end
 
+       # Explicitely add -fPIC to CFLAGS.
+       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
 
@@ -55,11 +59,29 @@ build
                chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
                ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
                ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
+
+               mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp
+               mkdir -pv %{BUILDROOT}/run/ppp
        end
 end
 
 packages
        package %{name}
+               requires
+                       /usr/lib/network/helpers/pppd-angel
+               end
+
+               script postin
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
        end
 
        package %{name}-devel