.SH OPTIONS
.TP
\fB-\-level \fIlevels\fR
-diff -urNpa chkconfig-1.15.orig/chkconfig.c chkconfig-1.15/chkconfig.c
---- chkconfig-1.15.orig/chkconfig.c 2021-05-03 16:44:13.175185842 +0200
-+++ chkconfig-1.15/chkconfig.c 2021-05-03 17:27:19.517139905 +0200
+--- chkconfig-1.25/chkconfig.c.orig 2023-10-07 20:29:44.542142680 +0200
++++ chkconfig-1.25/chkconfig.c 2023-10-07 20:30:56.375086861 +0200
@@ -117,8 +117,6 @@ static int delService(char *name, int ty
readServiceError(rc, name);
return 1;
return forgiving ? 0 : 1;
}
-@@ -485,31 +473,10 @@ static int showServiceInfoByName(char *n
+@@ -485,20 +473,6 @@ static int showServiceInfoByName(char *n
return showServiceInfo(s, forgiving);
}
-}
-
static int serviceNameCmp(const void *a, const void *b) {
- return strcmp(*(char **)a, *(char **)b);
- }
-
--static int xinetdNameCmp(const void *a, const void *b) {
-- const struct service *first = a;
-- const struct service *second = b;
--
-- return strcmp(first->name, second->name);
--}
--
- static int listService(char *item, int type) {
- DIR *dir;
- struct dirent *ent;
-@@ -539,55 +506,6 @@ static int listService(char *item, int t
+ const struct service *first = a;
+ const struct service *second = b;
+@@ -534,56 +508,6 @@ static int listService(char *item, int t
+ }
}
}
-
+-
- if (isXinetdEnabled() && type & TYPE_XINETD) {
- struct service *s, *t;
-
- numServices++;
- }
-
-- qsort(s, numServices, sizeof(*s), xinetdNameCmp);
+- qsort(s, numServices, sizeof(*s), serviceNameCmp);
- t = s;
- for (i = 0; i < numServices; i++, s++) {
- char *tmp = malloc(strlen(s->name) + 5);
return 0;
}
-@@ -650,11 +568,6 @@ int setService(char *name, int type, int
+@@ -646,11 +570,6 @@ int setService(char *name, int type, int
reloadSystemd();
return rc;
}
return 0;
-@@ -662,8 +575,6 @@ int setService(char *name, int type, int
+@@ -658,8 +577,6 @@ int setService(char *name, int type, int
void forwardSystemd(const char *name, int type, const char *verb) {
int socket = 0;
if (!systemdIsInit())
return;
-@@ -747,12 +658,10 @@ int main(int argc, const char **argv) {
+@@ -743,12 +660,10 @@ int main(int argc, const char **argv) {
usage(progname);
if (typeString) {
exit(1);
}
}
-@@ -877,16 +786,9 @@ int main(int argc, const char **argv) {
+@@ -873,16 +788,9 @@ int main(int argc, const char **argv) {
rc = readServiceInfo(name, type, &s, 0);
if (rc)
return 1;
-diff -urNpa chkconfig-1.15.orig/po/pl.po chkconfig-1.15/po/pl.po
---- chkconfig-1.15.orig/po/pl.po 2021-01-21 09:19:06.000000000 +0100
-+++ chkconfig-1.15/po/pl.po 2021-05-04 10:47:45.426341418 +0200
+--- chkconfig-1.25/po/pl.po.orig 2023-10-07 20:34:00.827420930 +0200
++++ chkconfig-1.25/po/pl.po 2023-10-07 21:02:01.268317201 +0200
@@ -131,11 +131,11 @@ msgstr "Brak wystarczających uprawnień
- #: ../chkconfig.c:457 ../chkconfig.c:462 ../chkconfig.c:587
+ #: ../chkconfig.c:457 ../chkconfig.c:462 ../chkconfig.c:583
msgid "on"
-msgstr "włączone"
+msgstr "wł"
- #: ../chkconfig.c:457 ../chkconfig.c:462 ../chkconfig.c:587
+ #: ../chkconfig.c:457 ../chkconfig.c:462 ../chkconfig.c:583
msgid "off"
-msgstr "wyłączone"
+msgstr "wył"
- #: ../chkconfig.c:547
+ #: ../chkconfig.c:543
#, c-format
Summary(tr.UTF-8): Sistem servis bilgilerini sorgular ve yeniler
Summary(uk.UTF-8): Системна утиліта для керування ієрархією /etc/rc.d
Name: chkconfig
-Version: 1.15
+Version: 1.25
Release: 1
Epoch: 2
License: GPL v2
Group: Applications/System
-Source0: https://github.com/fedora-sysv/chkconfig/archive/refs/tags/%{version}.tar.gz
-# Source0-md5: 36c438a0fa5d95125dbe1093aa2b904c
+#Source0Download: https://github.com/fedora-sysv/chkconfig/releases
+Source0: https://github.com/fedora-sysv/chkconfig/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 12a7b241ba7d3730b9dc389115be50ee
Patch0: %{name}-add.patch
Patch1: %{name}-noxinet.patch
Patch2: %{name}-rc.d.patch
Patch3: %{name}-optflags.patch
Patch4: %{name}-pl.patch
+Patch5: %{name}-split-usr.patch
URL: https://github.com/fedora-sysv/chkconfig
BuildRequires: gettext-tools
BuildRequires: libselinux-devel
BuildRequires: newt-devel
BuildRequires: popt-devel
Requires: rc-scripts
-# sr@Latn vs. sr@latin
-Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__make} \