]> git.pld-linux.org Git - packages/dhcp_probe.git/commitdiff
- fix systemd deps version auto/th/dhcp_probe-1.3.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 16 Aug 2013 18:58:53 +0000 (20:58 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 16 Aug 2013 18:58:53 +0000 (20:58 +0200)
- do not generate services if target is disabled
- rel 2

dhcp_probe-service-generator
dhcp_probe.spec

index d2ab2465a9f25686681add96e2c74182b96c562d..e88a0bc7d066ade68c0cd222d01355986597a90c 100644 (file)
@@ -2,6 +2,9 @@
 
 destunitdir=${1:-/tmp}
 
+# Do nothing if target is disabled
+[ -e /etc/systemd/system/multi-user.target.wants/dhcp_probe.target ] || exit 0
+
 [ -f /etc/sysconfig/dhcp_probe ] && . /etc/sysconfig/dhcp_probe
 
 if [ -d $destunitdir/dhcp_probe.target.wants ]; then
index 167d3f3dfcc4583e8f33a84632e75649107514c4..e0de5d7571592e7829ea36384e30243480369e84 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       Tool for discovering DHCP and BootP servers
 Name:          dhcp_probe
 Version:       1.3.0
-Release:       1
+Release:       2
 License:       GPLv2+ and MIT
 Group:         Applications
 Source0:       http://www.net.princeton.edu/software/dhcp_probe/%{name}-%{version}.tar.gz
@@ -23,7 +23,7 @@ Requires(post,preun,postun):  systemd-units >= 38
 BuildRequires: libnet-devel >= 1:1.1.6
 BuildRequires: libpcap-devel
 Requires:      rc-scripts
-Requires:      systemd-units >= 0.38
+Requires:      systemd-units >= 38
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
This page took 0.081829 seconds and 4 git commands to generate.