Change-Id: Ieaee66dcbdf850d84e6d45815d6c0677b0dfb530
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2381
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,86 @@ |
0 |
+Summary: PAM Tacacs+ module |
|
1 |
+Name: pam_tacplus |
|
2 |
+Version: 1.4.1 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: GPL |
|
5 |
+URL: http://tacplus.sourceforge.net/ |
|
6 |
+Group: System |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: %{name}-%{version}.tar.gz |
|
10 |
+%define sha1 pam_tacplus=2138724a9a2e0978ab1fecc1c7b29a3288728dca |
|
11 |
+BuildRequires: Linux-PAM-devel |
|
12 |
+ |
|
13 |
+%description |
|
14 |
+PAM Tacacs+ module based on code produced by Pawel Krawczyk <pawel.krawczyk@hush.com> and Jeroen Nijhof <jeroen@jeroennijhof.nl> |
|
15 |
+ |
|
16 |
+BuildRequires:pam-devel |
|
17 |
+Requires: pam |
|
18 |
+ |
|
19 |
+%package devel |
|
20 |
+Summary: Development files for pam_tacplus |
|
21 |
+Requires: %{name} = %{version}-%{release} |
|
22 |
+%description devel |
|
23 |
+Development files for pam_tacplus. |
|
24 |
+ |
|
25 |
+%prep |
|
26 |
+%setup -q -a 0 |
|
27 |
+ |
|
28 |
+%build |
|
29 |
+autoreconf -i |
|
30 |
+./configure \ |
|
31 |
+ --prefix=%{_prefix} \ |
|
32 |
+ --bindir=%{_bindir} \ |
|
33 |
+ --libdir=%{_libdir} \ |
|
34 |
+ --mandir=%{_mandir} \ |
|
35 |
+ --disable-static \ |
|
36 |
+ |
|
37 |
+make %{?_smp_mflags} |
|
38 |
+ |
|
39 |
+%install |
|
40 |
+[ %{buildroot} != "/" ] && rm -rf %{buildroot} |
|
41 |
+mkdir -p %{buildroot}/etc/pam.d |
|
42 |
+mkdir -p %{buildroot}/%{_lib}/security |
|
43 |
+ |
|
44 |
+install -m 755 .libs/pam_tacplus.so \ |
|
45 |
+ %{buildroot}/%{_lib}/security/ |
|
46 |
+install -m 644 sample.pam $RPM_BUILD_ROOT/etc/pam.d/tacacs |
|
47 |
+ |
|
48 |
+chmod 755 $RPM_BUILD_ROOT/%{_lib}/security/*.so* |
|
49 |
+ |
|
50 |
+make install DESTDIR=%{buildroot} |
|
51 |
+find %{buildroot}/usr/lib/ -name '*.la' -delete |
|
52 |
+ |
|
53 |
+%check |
|
54 |
+make %{?_smp_mflags} check |
|
55 |
+ |
|
56 |
+%post -p /sbin/ldconfig |
|
57 |
+%postun -p /sbin/ldconfig |
|
58 |
+ |
|
59 |
+%clean |
|
60 |
+rm -rf %{buildroot}/* |
|
61 |
+%files |
|
62 |
+%defattr(-,root,root) |
|
63 |
+%{_bindir}/* |
|
64 |
+%{_libdir}/*.so.* |
|
65 |
+%{_mandir}/man1/* |
|
66 |
+ |
|
67 |
+%files |
|
68 |
+%defattr(-,root,root) |
|
69 |
+%attr(0755,root,root) %{_lib}/security/*.so |
|
70 |
+%attr(0755,root,root) %{_lib}/*.so.* |
|
71 |
+%attr(0755,root,root) %{_bindir}/* |
|
72 |
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/tacacs |
|
73 |
+%doc AUTHORS COPYING README.md ChangeLog |
|
74 |
+ |
|
75 |
+%files devel |
|
76 |
+%defattr(-,root,root,-) |
|
77 |
+%attr(644,root,root) %{_includedir}/* |
|
78 |
+%attr(755,root,root) %{_lib}/*.so |
|
79 |
+%attr(644,root,root) %{_lib}/pkgconfig/* |
|
80 |
+%doc %{_docdir}/* |
|
81 |
+ |
|
82 |
+ |
|
83 |
+%changelog |
|
84 |
+* Tue Apr 11 2017 Xiaolin Li <xiaolinl@vmware.com> 1.4.1-1 |
|
85 |
+- Initial packaging for Photon. |
0 | 86 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,78 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+ |
|
3 |
+Summary: Library to implement a well-behaved Unix daemon process. |
|
4 |
+Name: python-daemon |
|
5 |
+Version: 2.1.2 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: Apache-2 |
|
8 |
+Url: https://pypi.python.org/pypi/python-daemon/ |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Source0: https://files.pythonhosted.org/packages/source/p/python-daemon/python-daemon-2.1.2.tar.gz |
|
13 |
+%define sha1 python-daemon=e333e9031424611b8974d2b2d2804dd26c4fae8e |
|
14 |
+ |
|
15 |
+BuildRequires: python2-devel |
|
16 |
+BuildRequires: python-setuptools |
|
17 |
+BuildRequires: python-docutils |
|
18 |
+Requires: python2 |
|
19 |
+ |
|
20 |
+BuildArch: noarch |
|
21 |
+ |
|
22 |
+%description |
|
23 |
+This library implements the well-behaved daemon specification of PEP 3143, “Standard daemon process library”. |
|
24 |
+ |
|
25 |
+A well-behaved Unix daemon process is tricky to get right, but the required steps are much the same for every daemon program. A DaemonContext instance holds the behaviour and configured process environment for the program; use the instance as a context manager to enter a daemon state. |
|
26 |
+ |
|
27 |
+%package -n python3-daemon |
|
28 |
+Summary: Python3-daemon |
|
29 |
+BuildRequires: python3-devel |
|
30 |
+BuildRequires: python3-docutils |
|
31 |
+Requires: python3 |
|
32 |
+ |
|
33 |
+%description -n python3-daemon |
|
34 |
+Python 3 version. |
|
35 |
+ |
|
36 |
+%prep |
|
37 |
+%setup -q |
|
38 |
+rm -rf ../p3dir |
|
39 |
+cp -a . ../p3dir |
|
40 |
+pushd ../p3dir |
|
41 |
+sed -i 's/distclass=version.ChangelogAwareDistribution,/ /g' setup.py |
|
42 |
+popd |
|
43 |
+ |
|
44 |
+%build |
|
45 |
+python2 setup.py build |
|
46 |
+ |
|
47 |
+pushd ../p3dir |
|
48 |
+python3 setup.py build |
|
49 |
+popd |
|
50 |
+ |
|
51 |
+ |
|
52 |
+%install |
|
53 |
+rm -rf %{buildroot} |
|
54 |
+python2 setup.py install --root=%{buildroot} |
|
55 |
+ |
|
56 |
+pushd ../p3dir |
|
57 |
+python3 setup.py install --root=%{buildroot} |
|
58 |
+popd |
|
59 |
+ |
|
60 |
+%check |
|
61 |
+python2 setup.py test |
|
62 |
+ |
|
63 |
+pshd ../p3dir |
|
64 |
+python3 setup.py test |
|
65 |
+popd |
|
66 |
+ |
|
67 |
+%files |
|
68 |
+%defattr(-, root, root, -) |
|
69 |
+%{python2_sitelib}/* |
|
70 |
+ |
|
71 |
+%files -n python3-daemon |
|
72 |
+%{python3_sitelib}/* |
|
73 |
+ |
|
74 |
+%changelog |
|
75 |
+* Fri Mar 24 2017 Xiaolin Li <xiaolinl@vmware.com> 2.1.2-1 |
|
76 |
+- Initial packaging for Photon |
|
77 |
+ |