]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- 1.671 auto/th/rpm-build-macros-1.671-1
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 16 Aug 2013 16:31:48 +0000 (18:31 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 16 Aug 2013 16:31:48 +0000 (18:31 +0200)
- chkconfig no longer list services whose have systemd services,
  workaround it with plain shell wildcard expansions

rpm-build-macros.spec
rpm.macros

index 87e62ffe05bb70fdc321e69cd0c093ba923e2abd..7193ae92328b66760972db33051f1dba96f8ca21 100644 (file)
@@ -5,13 +5,13 @@
 %if "%{pld_release}" == "ac"
 %define        with_rpm4       1
 %endif
-%define                rpm_macros_rev  1.670
+%define                rpm_macros_rev  1.671
 %define                find_lang_rev   1.36
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
 Name:          rpm-build-macros
 Version:       %{rpm_macros_rev}
-Release:       6
+Release:       1
 License:       GPL
 Group:         Development/Building
 Source0:       rpm.macros
index b27b119071a024cee09f915ddfc6efc796490bbc..b0a35e2ae94c22f721882a1f6211576d21ac4438 100644 (file)
@@ -2285,7 +2285,7 @@ fi; \
 want_enable_service() { \
        [ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm \
        [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ] && return 1 \
-       /sbin/chkconfig --list ${1%.service} 2>/dev/null | grep -qsv "[0-6]:on" && return 1 \
+       [ "$(echo /etc/rc.d/rc[0-6].d/S[0-9][0-9]${1%.service})" = "/etc/rc.d/rc[0-6].d/S[0-9][0-9]${1%.service}" ] && return 1 \
        return 0 \
 }\
        export SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
This page took 0.056507 seconds and 4 git commands to generate.