import tang-7-5.el8
This commit is contained in:
parent
26799fec3d
commit
0464305bb1
1743
SOURCES/0001-Move-key-generation-to-tang.patch
Normal file
1743
SOURCES/0001-Move-key-generation-to-tang.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,16 @@
|
|||||||
Name: tang
|
Name: tang
|
||||||
Version: 7
|
Version: 7
|
||||||
Release: 1%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Network Presence Binding Daemon
|
Summary: Network Presence Binding Daemon
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/latchset/%{name}
|
URL: https://github.com/latchset/%{name}
|
||||||
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
Patch1: 0001-Move-key-generation-to-tang.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: jose >= 8
|
BuildRequires: jose >= 8
|
||||||
BuildRequires: libjose-devel >= 8
|
BuildRequires: libjose-devel >= 8
|
||||||
BuildRequires: libjose-zlib-devel >= 8
|
BuildRequires: libjose-zlib-devel >= 8
|
||||||
@ -38,19 +41,17 @@ Tang is a small daemon for binding data to the presence of a third party.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -i
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%make_install
|
%make_install
|
||||||
%{__sed} -i 's|DirectoryMode=0700||' $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.path
|
|
||||||
%{__sed} -i 's|MakeDirectory=true||' $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.path
|
|
||||||
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.service
|
|
||||||
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
||||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/cache/%{name}
|
|
||||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -68,39 +69,39 @@ exit 0
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{name}d.socket
|
%systemd_post %{name}d.socket
|
||||||
%systemd_post %{name}d-update.path
|
|
||||||
%systemd_post %{name}d-update.service
|
|
||||||
%systemd_post %{name}d-keygen.service
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{name}d.socket
|
%systemd_preun %{name}d.socket
|
||||||
%systemd_preun %{name}d-update.path
|
|
||||||
%systemd_preun %{name}d-update.service
|
|
||||||
%systemd_preun %{name}d-keygen.service
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart %{name}d.socket
|
%systemd_postun_with_restart %{name}d.socket
|
||||||
%systemd_postun_with_restart %{name}d-update.path
|
|
||||||
%systemd_postun_with_restart %{name}d-update.service
|
|
||||||
%systemd_postun_with_restart %{name}d-keygen.service
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%attr(0750, %{name}, %{name}) %{_localstatedir}/cache/%{name}
|
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
||||||
%attr(2570, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
|
||||||
%{_unitdir}/%{name}d-keygen.service
|
|
||||||
%{_unitdir}/%{name}d-update.service
|
|
||||||
%{_unitdir}/%{name}d-update.path
|
|
||||||
%{_unitdir}/%{name}d@.service
|
%{_unitdir}/%{name}d@.service
|
||||||
%{_unitdir}/%{name}d.socket
|
%{_unitdir}/%{name}d.socket
|
||||||
%{_libexecdir}/%{name}d-keygen
|
%{_libexecdir}/%{name}d-keygen
|
||||||
%{_libexecdir}/%{name}d-update
|
|
||||||
%{_libexecdir}/%{name}d
|
%{_libexecdir}/%{name}d
|
||||||
%{_mandir}/man8/tang.8*
|
%{_mandir}/man8/tang.8*
|
||||||
%{_bindir}/%{name}-show-keys
|
%{_bindir}/%{name}-show-keys
|
||||||
%{_mandir}/man1/tang-show-keys.1*
|
%{_mandir}/man1/tang-show-keys.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 01 2019 Sergio Correia <scorreia@redhat.com> - 7-5
|
||||||
|
- Permissions of /var/db/tang set to 0700
|
||||||
|
- Home dir of user tang is /var/cache/tang
|
||||||
|
|
||||||
|
* Fri Nov 29 2019 Sergio Correia <scorreia@redhat.com> - 7-4
|
||||||
|
- Fix permissions of /var/db/tang
|
||||||
|
|
||||||
|
* Tue Oct 15 2019 Sergio Correia <scorreia@redhat.com> - 7-3
|
||||||
|
- Rebuild to ensure correct dist tag
|
||||||
|
|
||||||
|
* Sun Sep 29 2019 Sergio Correia <scorreia@redhat.com> - 7-2
|
||||||
|
- Move key generation to tang
|
||||||
|
- Resolves rhbz#1745177, rhbz#1679186
|
||||||
|
|
||||||
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
- Retire tang-nagios package (now separate upstream)
|
- Retire tang-nagios package (now separate upstream)
|
||||||
|
Loading…
Reference in New Issue
Block a user