Change-Id: Ibfa4bad8d12f776e75c7b42e8cf143eb059d96d7
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3505
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Harish Udaiya Kumar <harishspqr@gmail.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,47 @@ |
| 0 |
+%define debug_package %{nil}
|
|
| 1 |
+Summary: Operating system utility that allows programs to run as non-previleged user. |
|
| 2 |
+Name: authbind |
|
| 3 |
+Version: 2.1.2 |
|
| 4 |
+Release: 1%{?dist}
|
|
| 5 |
+License: GPL |
|
| 6 |
+URL: http://www.gnu.org/software/grep |
|
| 7 |
+Group: Applications/utils |
|
| 8 |
+Vendor: VMware, Inc. |
|
| 9 |
+Distribution: Photon |
|
| 10 |
+Source0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}.tar.gz
|
|
| 11 |
+%define sha1 authbind=18434ebfbff5560e8691ebafcb2896837447a98f |
|
| 12 |
+%description |
|
| 13 |
+The authbind software allows a program that would normally require superuser privileges to access privileged network services to run as a non-privileged user. |
|
| 14 |
+ |
|
| 15 |
+%prep |
|
| 16 |
+%setup -qn authbind |
|
| 17 |
+sed -i 's#-Wall#-Wall -Wno-unused-result#g' Makefile |
|
| 18 |
+sed 's#\/usr\/local#%{_prefix}#g' Makefile
|
|
| 19 |
+%build |
|
| 20 |
+make %{?_smp_mflags}
|
|
| 21 |
+ |
|
| 22 |
+%install |
|
| 23 |
+rm -rf %{buildroot}
|
|
| 24 |
+mkdir -p %{buildroot}%{_bindir}
|
|
| 25 |
+mkdir -p %{buildroot}%{_libdir}
|
|
| 26 |
+mkdir -p %{buildroot}%{_sysconfdir}
|
|
| 27 |
+mkdir -p %{buildroot}%{_mandir}/man1
|
|
| 28 |
+mkdir -p %{buildroot}%{_mandir}/man8
|
|
| 29 |
+make install DESTDIR=%{buildroot}
|
|
| 30 |
+make install_man DESTDIR=%{buildroot}
|
|
| 31 |
+install -vsm 755 authbind %{buildroot}%{_bindir}
|
|
| 32 |
+install -vsm 755 helper %{buildroot}%{_libdir}
|
|
| 33 |
+install -vsm 755 libauthbind.so.1.0 %{buildroot}%{_libdir}
|
|
| 34 |
+cp -r %{_sysconfdir}/%{name} %{buildroot}%{_sysconfdir}
|
|
| 35 |
+cp authbind.1* %{buildroot}%{_mandir}/man1
|
|
| 36 |
+cp authbind-helper.8* %{buildroot}%{_mandir}/man8
|
|
| 37 |
+ |
|
| 38 |
+%files |
|
| 39 |
+%defattr(-,root,root) |
|
| 40 |
+%{_bindir}/%{name}
|
|
| 41 |
+%{_libdir}
|
|
| 42 |
+%{_sysconfdir}/authbind
|
|
| 43 |
+%{_mandir}
|
|
| 44 |
+%changelog |
|
| 45 |
+* Fri Jul 14 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.1.2-1 |
|
| 46 |
+- Initial build. First version |