diff --git a/debian/control b/debian/control index 489f12c93..7cec98e7b 100644 --- a/debian/control +++ b/debian/control @@ -90,7 +90,6 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-freeipa (= ${binary:Version}), bind9utils, certmonger, - chkconfig, krb5-user, libcurl3 (>= 7.22.0), libnss3-tools, diff --git a/debian/patches/add_debian.py.patch b/debian/patches/add_debian.py.patch index 74b2195aa..a866db26d 100644 --- a/debian/patches/add_debian.py.patch +++ b/debian/patches/add_debian.py.patch @@ -76,7 +76,7 @@ Date: Fri Oct 28 15:57:04 2011 +0300 + def is_enabled(self): + ret = True + try: -+ (sout,serr,rcode) = ipautil.run(["/sbin/chkconfig", self.service_name]) ++ (sout,serr,rcode) = ipautil.run(["/usr/sbin/service", self.service_name, "status"]) + if sout.find("off") >= 0: + ret = False + if sout.find("unknown service") >= 0: @@ -86,16 +86,16 @@ Date: Fri Oct 28 15:57:04 2011 +0300 + return ret + + def enable(self): -+ ipautil.run(["/sbin/chkconfig", self.service_name, "on"]) ++ return True + + def disable(self): -+ ipautil.run(["/sbin/chkconfig", self.service_name, "off"]) ++ return True + + def install(self): -+ ipautil.run(["/sbin/chkconfig", "--add", self.service_name]) ++ return True + + def remove(self): -+ ipautil.run(["/sbin/chkconfig", "--del", self.service_name]) ++ return True + +class DebianAuthConfig(base.AuthConfig): + """