commit headscale for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package headscale for openSUSE:Factory checked in at 2025-01-02 19:23:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/headscale (Old) and /work/SRC/openSUSE:Factory/.headscale.new.1881 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "headscale" Thu Jan 2 19:23:11 2025 rev:4 rq:1234499 version:0.23.0 Changes: -------- --- /work/SRC/openSUSE:Factory/headscale/headscale.changes 2024-09-19 21:17:50.191699251 +0200 +++ /work/SRC/openSUSE:Factory/.headscale.new.1881/headscale.changes 2025-01-02 19:23:55.646660092 +0100 @@ -1,0 +2,10 @@ +Thu Jan 2 06:06:23 UTC 2025 - Marcus Rueckert <mrueckert@suse.de> + +- Fix the system integration + - actually build and use the sysuser pre snippet so that the user + is created before tmpfiles.d tries to create files +- no longer break debugsymbols for the binary (remove -s -w) +- use systemd macros for paths +- ensure proper requires/ordering for sysuser/systemd + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ headscale.spec ++++++ --- /var/tmp/diff_new_pack.bw5K46/_old 2025-01-02 19:23:56.502695807 +0100 +++ /var/tmp/diff_new_pack.bw5K46/_new 2025-01-02 19:23:56.502695807 +0100 @@ -1,7 +1,7 @@ # # spec file for package headscale # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,26 +30,37 @@ Source5: config-example.yaml Source6: derp-example.yaml BuildRequires: golang-packaging +BuildRequires: sysuser-shadow +BuildRequires: sysuser-tools BuildRequires: zstd -Suggests: wireguard-tools +BuildRequires: pkgconfig(systemd) Suggests: postgresql-server +Suggests: wireguard-tools +%{?systemd_ordering} +%{?sysusers_requires} %description -Headscale aims to implement a self-hosted, open source alternative to the Tailscale control server. Headscale's goal is to provide self-hosters and hobbyists with an open-source server they can use for their projects and labs. It implements a narrow scope, a single Tailnet, suitable for a personal use, or a small open-source organisation. +Headscale aims to implement a self-hosted, open source alternative to the +Tailscale control server. Headscale's goal is to provide self-hosters and +hobbyists with an open-source server they can use for their projects and labs. +It implements a narrow scope, a single Tailnet, suitable for a personal use, or +a small open-source organisation. %prep %autosetup -a1 %build -go build -v -buildmode=pie -mod=vendor -tags "ts2019" -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=%{version}" ./cmd/headscale +go build -v -buildmode=pie -mod=vendor -tags "ts2019" -ldflags "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=%{version}" ./cmd/headscale + +%sysusers_generate_pre %{SOURCE2} %{name} %{name}.conf %install mkdir -p %{buildroot}%{_sysconfdir}/%{name} mkdir -p %{buildroot}%{_sharedstatedir}/%{name} install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} -install -D -m 644 %{SOURCE2} %{buildroot}/usr/lib/sysusers.d/%{name}.conf +install -D -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf install -D -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf -install -D -m 644 %{SOURCE4} %{buildroot}/usr/lib/systemd/system/%{name}.service +install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service %if 0%{?suse_version} == 1500 install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/%{name}/config-example.yaml install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/%{name}/config-derp.yaml @@ -58,12 +69,12 @@ install -D -m 644 %{SOURCE6} %{buildroot}/%{_distconfdir}/%{name}/derp-example.yaml %endif -%pre +%pre -f %{name}.pre %service_add_pre %{name}.service %post -%service_add_post %{name}.service %tmpfiles_create %{_tmpfilesdir}/%{name}.conf +%service_add_post %{name}.service %preun %service_del_preun %{name}.service @@ -77,13 +88,13 @@ %{_bindir}/%{name} %dir %{_sysconfdir}/%{name} %dir %{_sharedstatedir}/%{name} -%if 0%{suse_version} == 1500 +%if 0%{?suse_version} == 1500 %{_sysconfdir}/%{name} %else %dir %{_distconfdir}/%{name} %{_distconfdir}/%{name}/* %endif -/usr/lib/sysusers.d/%{name}.conf -/usr/lib/tmpfiles.d/%{name}.conf -/usr/lib/systemd/system/%{name}.service +%{_sysusersdir}/%{name}.conf +%{_tmpfilesdir}/%{name}.conf +%{_unitdir}/%{name}.service
participants (1)
-
Source-Sync