Compare commits

...

25 Commits
f30 ... rawhide

Author SHA1 Message Date
Fedora Release Engineering
11b83e6ea3 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 03:10:16 +00:00
Sergio Arroutbi
458887eaf9
New upstream release - v14
Resolves rhbz#2180990

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2023-06-14 16:45:55 +02:00
Sergio Arroutbi
df0998f923 Migrate to SPDX like licensing
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2023-05-31 12:14:37 +02:00
Sergio Arroutbi
2fdccd3c73 New upstream release - v13
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2023-05-06 08:35:16 +02:00
Fedora Release Engineering
ba71198636 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 04:38:08 +00:00
Sergio Correia
0c7a47300d
Report error details when json_load_file() fails 2022-12-07 08:05:30 -03:00
Sergio Arroutbi
a41e11bb91 Adopt systemd-sysusers format
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2022-08-18 13:39:31 +02:00
Fedora Release Engineering
b5dd2cf61e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 10:04:06 +00:00
Fedora Release Engineering
7390f53cc8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 02:16:52 +00:00
Sergio Correia
e659b083bf New upstream release - v11 2021-12-14 08:33:10 -03:00
Sergio Arroutbi Braojos
b44ee07e42 Fix scriptlet from previous commit 2021-10-04 16:35:57 +02:00
Sergio Correia
70236c4767
Keys are created with 0440 mode
Resolves rhbz#2008204
2021-10-04 09:22:29 -03:00
Fedora Release Engineering
2be74fe6bc - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 18:51:50 +00:00
Sergio Correia
e73125735d Fixes for issues reported by shellcheck and gcc static analyzer
Upstream commits: 3d770c6, 262d98f
2021-05-20 11:01:55 -03:00
Sergio Correia
0314c2e7df New upstream release - v10 2021-05-05 08:31:13 -03:00
Zbigniew Jędrzejewski-Szmek
21c9a329bf Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:11 +01:00
Sergio Correia
35397a2a60 Remove extra patches as they are already included in v8 release 2021-02-09 16:34:02 -03:00
Sergio Correia
78544b7a4b
New upstream release 2021-02-08 08:25:39 -03:00
Fedora Release Engineering
b1edc4c896 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 21:35:37 +00:00
Sergio Correia
2cc81c4c42 Move key handling to tang itself
Also move build systemd to meson
2020-12-01 16:00:39 -03:00
Fedora Release Engineering
204d2ac281 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 12:04:55 +00:00
Igor Raits
a88b8d3319
Rebuild for http-parser 2.9.4
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-15 17:54:48 +02:00
Sergio Correia
ffbfed3d3b
Rebuilt after http-parser update 2020-02-25 22:04:51 -03:00
Fedora Release Engineering
3e3980464a - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 01:03:56 +00:00
Fedora Release Engineering
8ed9243529 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 00:58:31 +00:00
4 changed files with 122 additions and 37 deletions

6
.gitignore vendored
View File

@ -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

View File

@ -1 +1 @@
SHA512 (tang-7.tar.bz2) = dd4187fa6962523ac2a745ef05a27cdf7e5264c595942e63d406d67a1c595e87bd7e74091cb2e16362f369480cdf8e3b4bfe1fee13b9cb73d5308f42c52f138a SHA512 (tang-14.tar.xz) = 1f41542116c27cd4c05f683d0b03a51fca37f07abc13f9a8301602fff0b8681383875f5c4fa7fe5f1c7e216790ff84f2271432836b126c825e6b1a55e1cf44fc

150
tang.spec
View File

@ -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
View File

@ -0,0 +1 @@
u tang - "Tang Network Presence Daemon user" /var/cache/tang -