]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - ibod/ibod.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / ibod / ibod.nm
index 5827b184764c5808eeec45592d0fccdb12811efc..964881b1be19439867cd5dea76a32215518fde15 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ibod
 version    = 1.4
-release    = 1
+release    = 2
 
 groups     = Networking/Tools
 url        = http://www.datenwelt.net/oss/ibod/
@@ -40,5 +40,27 @@ packages
                configfiles
                        /etc/isdn/ibod.cf
                end
+
+               prerequires += systemd-units
+
+               # There isn't any chance at the moment to determine the names of
+               # spawned instances by a systemd service file.
+               #
+               # So we aren't able to stop any ibod process before uninstalling the package.
+               script postin
+                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end