Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
11b83e6ea3 | ||
|
458887eaf9 | ||
|
df0998f923 | ||
|
2fdccd3c73 | ||
|
ba71198636 | ||
|
0c7a47300d | ||
|
a41e11bb91 | ||
|
b5dd2cf61e | ||
|
7390f53cc8 | ||
|
e659b083bf | ||
|
b44ee07e42 | ||
|
70236c4767 | ||
|
2be74fe6bc | ||
|
e73125735d | ||
|
0314c2e7df | ||
|
21c9a329bf | ||
|
35397a2a60 | ||
|
78544b7a4b | ||
|
b1edc4c896 | ||
|
2cc81c4c42 | ||
|
204d2ac281 | ||
|
a88b8d3319 | ||
|
ffbfed3d3b | ||
|
3e3980464a | ||
|
8ed9243529 |
6
.gitignore
vendored
6
.gitignore
vendored
@ -1 +1,7 @@
|
|||||||
/tang-7.tar.bz2
|
/tang-7.tar.bz2
|
||||||
|
/tang-8.tar.xz
|
||||||
|
/tang-10.tar.xz
|
||||||
|
/tang-11.tar.xz
|
||||||
|
/tang-12.tar.xz
|
||||||
|
/tang-13.tar.xz
|
||||||
|
/tang-14.tar.xz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (tang-7.tar.bz2) = dd4187fa6962523ac2a745ef05a27cdf7e5264c595942e63d406d67a1c595e87bd7e74091cb2e16362f369480cdf8e3b4bfe1fee13b9cb73d5308f42c52f138a
|
SHA512 (tang-14.tar.xz) = 1f41542116c27cd4c05f683d0b03a51fca37f07abc13f9a8301602fff0b8681383875f5c4fa7fe5f1c7e216790ff84f2271432836b126c825e6b1a55e1cf44fc
|
||||||
|
150
tang.spec
150
tang.spec
@ -1,13 +1,16 @@
|
|||||||
Name: tang
|
Name: tang
|
||||||
Version: 7
|
Version: 14
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Network Presence Binding Daemon
|
Summary: Network Presence Binding Daemon
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPL-3.0-or-later
|
||||||
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.xz
|
||||||
|
Source1: tang.sysusers
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: git-core
|
||||||
BuildRequires: jose >= 8
|
BuildRequires: jose >= 8
|
||||||
BuildRequires: libjose-devel >= 8
|
BuildRequires: libjose-devel >= 8
|
||||||
BuildRequires: libjose-zlib-devel >= 8
|
BuildRequires: libjose-zlib-devel >= 8
|
||||||
@ -18,12 +21,15 @@ BuildRequires: systemd-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: curl
|
BuildRequires: curl
|
||||||
|
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: grep
|
BuildRequires: grep
|
||||||
|
BuildRequires: socat
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
|
BuildRequires: iproute
|
||||||
|
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
@ -37,70 +43,142 @@ Requires(pre): shadow-utils
|
|||||||
Tang is a small daemon for binding data to the presence of a third party.
|
Tang is a small daemon for binding data to the presence of a third party.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -S git
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%meson
|
||||||
make %{?_smp_mflags} V=1
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%meson_install
|
||||||
%make_install
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/tang.conf
|
||||||
%{__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
|
|
||||||
%{__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
|
||||||
if ! make %{?_smp_mflags} check; then
|
%meson_test
|
||||||
cat test-suite.log
|
|
||||||
false
|
|
||||||
fi
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{name} >/dev/null || groupadd -r %{name}
|
%sysusers_create_compat %{SOURCE1}
|
||||||
getent passwd %{name} >/dev/null || \
|
|
||||||
useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
|
|
||||||
-c "Tang Network Presence Daemon user" %{name}
|
|
||||||
exit 0
|
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
|
# Let's make sure any existing keys are readable only
|
||||||
%systemd_post %{name}d-keygen.service
|
# by the owner/group.
|
||||||
|
if [ -d /var/db/tang ]; then
|
||||||
|
for k in /var/db/tang/*.jwk; do
|
||||||
|
test -e "${k}" || continue
|
||||||
|
chmod 0440 -- "${k}"
|
||||||
|
done
|
||||||
|
for k in /var/db/tang/.*.jwk; do
|
||||||
|
test -e "${k}" || continue
|
||||||
|
chmod 0440 -- "${k}"
|
||||||
|
done
|
||||||
|
chown tang:tang -R /var/db/tang
|
||||||
|
fi
|
||||||
|
|
||||||
%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-rotate-keys
|
||||||
%{_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*
|
||||||
|
%{_mandir}/man1/tangd-rotate-keys.1.*
|
||||||
|
%{_sysusersdir}/tang.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 14 2023 Sergio Arroutbi <sarroutb@redhat.com> - 14-1
|
||||||
|
- New upstream release - v14
|
||||||
|
Resolves: rhbz#2180990
|
||||||
|
|
||||||
|
* Fri Feb 10 2023 Sergio Arroutbi <sarroutb@redhat.com> - 13-1
|
||||||
|
- New upstream release - v13
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Dec 07 2022 Sergio Correia <scorreia@redhat.com> - 11-5
|
||||||
|
- Report error details when json_load_file() fails
|
||||||
|
|
||||||
|
* Wed Aug 17 2022 Sergio Arroutbi <sarroutb@redhat.com> - 11-4
|
||||||
|
- Adopt systemd-sysusers format
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 11-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Dec 14 2021 Sergio Correia <scorreia@redhat.com> - 11-1
|
||||||
|
- New upstream release - v11.
|
||||||
|
Resolves: CVE-2021-4076
|
||||||
|
|
||||||
|
* Mon Oct 04 2021 Sergio Arroutbi <sarroutb@redhat.com> - 10-5
|
||||||
|
- Fix scriptlet from previous commit
|
||||||
|
|
||||||
|
* Mon Oct 04 2021 Sergio Correia <scorreia@redhat.com> - 10-4
|
||||||
|
- Keys are created with 0440 mode
|
||||||
|
Resolves rhbz#2008204
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 10-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 20 2021 Sergio Correia <scorreia@redhat.com> - 10-2
|
||||||
|
- Fix issues reported by shellcheck and a possible NULL pointer
|
||||||
|
dereference reported by gcc static analyzer (3d770c6, 262d98f)
|
||||||
|
|
||||||
|
* Wed May 05 2021 Sergio Correia <scorreia@redhat.com> - 10-1
|
||||||
|
- New upstream release - v10.
|
||||||
|
|
||||||
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 8-3
|
||||||
|
- Rebuilt for updated systemd-rpm-macros
|
||||||
|
See https://pagure.io/fesco/issue/2583.
|
||||||
|
|
||||||
|
* Tue Feb 09 2021 Sergio Correia <scorreia@redhat.com> - 8-2
|
||||||
|
- Remove extra patches as they are already included in v8 release
|
||||||
|
|
||||||
|
* Mon Feb 08 2021 Sergio Correia <scorreia@redhat.com> - 8-1
|
||||||
|
- New upstream release - v8.
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Dec 1 2020 Sergio Correia <scorreia@redhat.com> - 7.8
|
||||||
|
- Move build system to meson
|
||||||
|
Upstream commits (fed9020, 590de27)
|
||||||
|
- Move key handling to tang itself
|
||||||
|
Upstream commits (6090505, c71df1d, 7119454)
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 7-6
|
||||||
|
- Rebuild for http-parser 2.9.4
|
||||||
|
|
||||||
|
* Tue Feb 25 2020 Sergio Correia <scorreia@redhat.com> - 7-5
|
||||||
|
- Rebuilt after http-parser update
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
1
tang.sysusers
Normal file
1
tang.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
u tang - "Tang Network Presence Daemon user" /var/cache/tang -
|
Loading…
Reference in New Issue
Block a user