Change-Id: Iedb96ad0e9849441204c649ac72c33d45a86ea15
Reviewed-on: http://photon-jenkins.eng.vmware.com/164
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,13 @@ |
| 0 |
+--- a/chkconfig.c 2015-06-01 05:07:44.000000000 -0700 |
|
| 1 |
+@@ -665,8 +665,8 @@ |
|
| 2 |
+ struct service s; |
|
| 3 |
+ poptContext optCon; |
|
| 4 |
+ struct poptOption optionsTable[] = {
|
|
| 5 |
+- { "add", '\0', 0, &addItem, 0 },
|
|
| 6 |
+- { "del", '\0', 0, &delItem, 0 },
|
|
| 7 |
++ { "add", 'a', 0, &addItem, 0 },
|
|
| 8 |
++ { "del", 'd', 0, &delItem, 0 },
|
|
| 9 |
+ { "override", '\0', 0, &overrideItem, 0 },
|
|
| 10 |
+ { "no-redirect", '\0', 0, &noRedirectItem, 0},
|
|
| 11 |
+ { "list", '\0', 0, &listItem, 0 },
|
| ... | ... |
@@ -1,11 +1,12 @@ |
| 1 | 1 |
Summary: A system tool for maintaining the /etc/rc*.d hierarchy |
| 2 | 2 |
Name: chkconfig |
| 3 | 3 |
Version: 1.5 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: GPLv2 |
| 6 | 6 |
Group: System Environment/Base |
| 7 | 7 |
URL: https://git.fedorahosted.org/git/chkconfig.git |
| 8 | 8 |
Source: http://fedorahosted.org/releases/c/h/chkconfig/%{name}-%{version}.tar.bz2
|
| 9 |
+Patch0:chkconfig-shortopt.patch |
|
| 9 | 10 |
%define sha1 chkconfig=19a15a6690788686cc173b0d0626eaae01bec0c1 |
| 10 | 11 |
Requires: libselinux |
| 11 | 12 |
Requires: libsepol |
| ... | ... |
@@ -38,7 +39,7 @@ page), ntsysv configures the current runlevel (5 if you're using X). |
| 38 | 38 |
|
| 39 | 39 |
%prep |
| 40 | 40 |
%setup -q |
| 41 |
- |
|
| 41 |
+%patch0 -p1 |
|
| 42 | 42 |
%build |
| 43 | 43 |
|
| 44 | 44 |
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{?_smp_mflags}
|
| ... | ... |
@@ -86,6 +87,9 @@ rm -rf %{buildroot}
|
| 86 | 86 |
%{_mandir}/*/ntsysv.8*
|
| 87 | 87 |
|
| 88 | 88 |
%changelog |
| 89 |
+* Fri Nov 20 2015 Sharath George <sharathg@vmware.com> |
|
| 90 |
+- Adding shortopt for add and delete. |
|
| 91 |
+ |
|
| 89 | 92 |
* Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> |
| 90 | 93 |
- Initial build for PhotonOS. First version |
| 91 | 94 |
|