Change-Id: I64d25745f043067c6f25f610d080e59c5075a67e
Reviewed-on: http://photon-jenkins.eng.vmware.com/83
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,19 @@ |
| 0 |
+diff --git a/Makefile b/Makefile |
|
| 1 |
+index 6d9a628..23977f2 100644 |
|
| 2 |
+--- a/Makefile |
|
| 3 |
+@@ -3,11 +3,12 @@ |
|
| 4 |
+ #### Start of system configuration section. #### |
|
| 5 |
+ |
|
| 6 |
+ CC = gcc |
|
| 7 |
+-INSTALL = /usr/bin/install |
|
| 8 |
++INSTALL = /usr/bin/install -D |
|
| 9 |
+ INSTALL_PROGRAM = ${INSTALL}
|
|
| 10 |
+ INSTALL_DATA = ${INSTALL} -m 644
|
|
| 11 |
+ |
|
| 12 |
+-prefix = "" |
|
| 13 |
++DESTDIR ?= "" |
|
| 14 |
++prefix = ${DESTDIR}
|
|
| 15 |
+ exec_prefix = ${prefix}
|
|
| 16 |
+ |
|
| 17 |
+ # Where the installed binary goes. |
| 0 | 18 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,33 @@ |
| 0 |
+Summary: libnss-ato |
|
| 1 |
+Name: libnss-ato |
|
| 2 |
+Version: 2.3.6 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GNU General Public License |
|
| 5 |
+URL: https://github.com/donapieppo/libnss-ato |
|
| 6 |
+Source0: %{name}-%{version}.tar.gz
|
|
| 7 |
+Patch0: destdir.patch |
|
| 8 |
+%define sha1 libnss-ato=7a3ec992cc443ac0e34ff2de43dee91b0bdf3f06 |
|
| 9 |
+Group: Development/Tools |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+Requires: nss |
|
| 13 |
+BuildRequires: nss-devel |
|
| 14 |
+ |
|
| 15 |
+%description |
|
| 16 |
+The libnss_ato module is a set of C library extensions which allows to map every nss request for unknown user to a single predefined user. |
|
| 17 |
+ |
|
| 18 |
+%prep |
|
| 19 |
+%setup -q -n %{name}-%{version}
|
|
| 20 |
+%patch0 -p1 |
|
| 21 |
+%build |
|
| 22 |
+make |
|
| 23 |
+%install |
|
| 24 |
+make DESTDIR=%{buildroot} install
|
|
| 25 |
+%files |
|
| 26 |
+%defattr(-,root,root) |
|
| 27 |
+/lib/libnss_ato* |
|
| 28 |
+%exclude %{_mandir}/*
|
|
| 29 |
+ |
|
| 30 |
+%changelog |
|
| 31 |
+* Wed Oct 28 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> |
|
| 32 |
+- Initial packaging. First version |
| ... | ... |
@@ -8,5 +8,5 @@ |
| 8 | 8 |
"apache-ant","ant-contrib","apache-maven","apache-tomcat","jna","gnome-common","libgudev", |
| 9 | 9 |
"dhcp-client","dhcp-server","dhcp-libs","dhcp-devel","initscripts","net-tools", |
| 10 | 10 |
"jaxws-ri","commons-daemon","runit", "python-pyasn1", "WALinuxAgent", "linux-esx", |
| 11 |
- "python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig"] |
|
| 11 |
+ "python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig", "libnss-ato"] |
|
| 12 | 12 |
} |