]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
ppp: Reload systemd after install/update/uninstall.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jun 2012 22:42:36 +0000 (00:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jun 2012 22:42:36 +0000 (00:42 +0200)
ppp/ppp.nm

index 8a0ab3f6336deb8f2fb47375b37ecf8521c7b560..b893b54c78046619e653d7b1d651cd46bd737b6f 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ppp
 version    = 2.4.5
-release    = 4
+release    = 5
 
 groups     = System/Daemons
 url        = ftp://ftp.samba.org/pub/ppp/
@@ -28,6 +28,7 @@ build
                linux-atm-devel
                openssl-devel
                pam-devel
+               systemd-units
        end
 
        # Explicitely add -fPIC to CFLAGS.
@@ -63,6 +64,18 @@ end
 
 packages
        package %{name}
+               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
                template DEVEL