forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters