Skip to content

Commit

Permalink
Adding libnss-ato package
Browse files Browse the repository at this point in the history
Change-Id: I64d25745f043067c6f25f610d080e59c5075a67e
Reviewed-on: http://photon-jenkins.eng.vmware.com/83
Reviewed-by: Divya Thaluru <[email protected]>
Tested-by: jenkins-photon <[email protected]>
  • Loading branch information
mbassiouny committed Oct 31, 2015
1 parent 6f76727 commit 3821c2a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
19 changes: 19 additions & 0 deletions SPECS/libnss-ato/destdir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/Makefile b/Makefile
index 6d9a628..23977f2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,12 @@
#### Start of system configuration section. ####

CC = gcc
-INSTALL = /usr/bin/install
+INSTALL = /usr/bin/install -D
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

-prefix = ""
+DESTDIR ?= ""
+prefix = ${DESTDIR}
exec_prefix = ${prefix}

# Where the installed binary goes.
33 changes: 33 additions & 0 deletions SPECS/libnss-ato/libnss-ato.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Summary: libnss-ato
Name: libnss-ato
Version: 2.3.6
Release: 1%{?dist}
License: GNU General Public License
URL: https://github.com/donapieppo/libnss-ato
Source0: %{name}-%{version}.tar.gz
Patch0: destdir.patch
%define sha1 libnss-ato=7a3ec992cc443ac0e34ff2de43dee91b0bdf3f06
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon
Requires: nss
BuildRequires: nss-devel

%description
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.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
make
%install
make DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
/lib/libnss_ato*
%exclude %{_mandir}/*

%changelog
* Wed Oct 28 2015 Mahmoud Bassiouny <[email protected]>
- Initial packaging. First version
2 changes: 1 addition & 1 deletion common/data/packages_extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"apache-ant","ant-contrib","apache-maven","apache-tomcat","jna","gnome-common","libgudev",
"dhcp-client","dhcp-server","dhcp-libs","dhcp-devel","initscripts","net-tools",
"jaxws-ri","commons-daemon","runit", "python-pyasn1", "WALinuxAgent", "linux-esx",
"python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig"]
"python-Twisted", "python-zope.interface", "python-ipaddr", "chkconfig", "libnss-ato"]
}

0 comments on commit 3821c2a

Please sign in to comment.