Index: /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/README.md
===================================================================
--- /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/README.md	(nonexistent)
+++ /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/README.md	(working copy)
@@ -0,0 +1,6 @@
+# libnss-ato
+
+A [libnss-ato](https://github.com/donapieppo/libnss-ato) package
+with patching (to compile on CentOS 7).
+
+The commit number of libnss-ato is `4a29c8410cdac590a210dab2dec41d5f4b40d282`.
Index: /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/avx.patch
===================================================================
--- /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/avx.patch	(nonexistent)
+++ /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/avx.patch	(working copy)
@@ -0,0 +1,35 @@
+diff --git a/Makefile b/Makefile
+index 147e0c4..df950d9 100644
+--- a/Makefile
++++ b/Makefile
+@@ -7,6 +7,8 @@ INSTALL = /usr/bin/install
+ INSTALL_PROGRAM = ${INSTALL}
+ INSTALL_DATA = ${INSTALL} -m 644
+ DESTDIR = ""
++CFLAGS = -std=c99
++LDFLAGS = -lc
+ 
+ prefix = "/usr"
+ exec_prefix = ${prefix}
+diff --git a/libnss-ato.conf b/libnss-ato.conf
+index ec66fce..5a411f9 100644
+--- a/libnss-ato.conf
++++ b/libnss-ato.conf
+@@ -1,3 +1,5 @@
++array:x:1006:1000::/home/array:/ca/bin/ca_shell
++
+ # Only the first line of this file is parsed.
+ # All next lines are comments.
+ # You can not set multiple user accounts with this
+diff --git a/libnss_ato.c b/libnss_ato.c
+index f2f1c38..ec8dc09 100644
+--- a/libnss_ato.c
++++ b/libnss_ato.c
+@@ -21,6 +21,7 @@
+  *
+  */
+ 
++#define _SVID_SOURCE
+ #include <nss.h>
+ #include <pwd.h>
+ #include <shadow.h>
Index: /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/libnss-ato-0.2.1.tar.gz
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: 3rdpartyappliance/centos-libnss-ato/SOURCES/libnss-ato-0.2.1.tar.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/libnss-ato.conf
===================================================================
--- /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/libnss-ato.conf	(nonexistent)
+++ /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SOURCES/libnss-ato.conf	(working copy)
@@ -0,0 +1,9 @@
+array:x:1006:1000::/home/array:/ca/bin/ca_shell
+
+# Only the first line of this file is parsed.
+# All next lines are comments.
+# You can not set multiple user accounts with this
+# nss module. Use the format as in the standard /etc/passwd.
+# For security reasons: don't use UID or GID under 500,
+# won't work, and in the password field we return
+# always an 'x', regardless what you wrote there...
Index: /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SPECS/libnss-ato.spec
===================================================================
--- /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SPECS/libnss-ato.spec	(nonexistent)
+++ /branches/rel_avx_2_7_2/3rdpartyappliance/centos-libnss-ato/SPECS/libnss-ato.spec	(working copy)
@@ -0,0 +1,51 @@
+Name: libnss-ato
+Summary: 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.
+Version: 0.2.1
+Release: 1
+Source: %{name}-%{version}.tar.gz
+Vendor: donapieppo
+License: GPL
+ExclusiveOS: linux
+Group: System Environment/Kernel
+Provides: %{name}
+URL: https://github.com/donapieppo/libnss-ato
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+# do not generate debugging packages by default - newer versions of rpmbuild
+# may instead need:
+#%define debug_package %{nil}
+%debug_package %{nil}
+Requires: kernel, fileutils, findutils, gawk, bash
+
+Patch999001: avx.patch
+ 
+####
+%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
+%patch999001 -p1
+
+%build
+make clean
+make
+
+%install
+echo %{BuildRoot}
+
+install -dDm 0755 %{buildroot}/lib/
+install -dDm 0755 %{buildroot}/etc/
+
+install -Dm 644 libnss_ato.so.2 %{buildroot}/lib/libnss_ato-2.3.6.so
+ln -fs libnss_ato-2.3.6.so %{buildroot}/lib/libnss_ato.so.2
+install -Dm 644 libnss-ato.conf %{buildroot}/etc/libnss-ato.conf
+
+%clean
+rm -rf %{buildroot}
+
+%files
+/lib/libnss_ato.so.2
+/lib/libnss_ato-2.3.6.so
+/etc/libnss-ato.conf
+
+%post
Index: /branches/rel_avx_2_7_2/update/avxsystem.ks
===================================================================
--- /branches/rel_avx_2_7_2/update/avxsystem.ks	(revision 8849)
+++ /branches/rel_avx_2_7_2/update/avxsystem.ks	(working copy)
@@ -510,6 +510,8 @@
 intel_auxiliary-1.0.1-1.x86_64
 qat-4.15.0-0.x86_64
 bc-1.06.95-13.el7.x86_64
+pam_radius-1.4.0-4.el7.x86_64
+libnss-ato-0.2-1.x86_64
 %end
 
 %post --nochroot --interpreter ../tools/image-minimizer
