From 238ef73fbee2417a27d32f4a5c58970a986f95416e7c8a4ea9ce6d2c6f97b326 Mon Sep 17 00:00:00 2001 From: Jorik Cronenberg Date: Mon, 10 Jun 2024 15:23:07 +0000 Subject: [PATCH] Accepting request 1177050 from home:kukuk:cleanup - Drop initscripts-legacy support [jsc#PED264] - Drop rc symlinks [jsc#PED-264], [jsc#PED-266] OBS-URL: https://build.opensuse.org/request/show/1177050 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=266 --- dhcp.changes | 6 ++++++ dhcp.spec | 35 +---------------------------------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/dhcp.changes b/dhcp.changes index 81fea18..398b1dc 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 24 13:51:57 UTC 2024 - Thorsten Kukuk + +- Drop initscripts-legacy support [jsc#PED264] +- Drop rc symlinks [jsc#PED-264], [jsc#PED-266] + ------------------------------------------------------------------- Mon Feb 26 07:45:20 UTC 2024 - Dominique Leuenberger diff --git a/dhcp.spec b/dhcp.spec index 53119c1..4d5f5f9 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -1,7 +1,7 @@ # # spec file for package dhcp # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -347,31 +347,6 @@ install -m0644 $RPM_SOURCE_DIR/dhcrelay.service \ install -m0644 $RPM_SOURCE_DIR/dhcrelay6.service \ %{buildroot}%{_unitdir}/dhcrelay6.service sed -e 's,@LIBEXECDIR@,%{_libexecdir},g' -i %{buildroot}%{_unitdir}/d* -# rcservice links -ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcpd -ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcpd6 -ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcrelay -ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcrelay6 -# rcservice actions -legacy_actionsdir=%{buildroot}%{_libexecdir}/initscripts/legacy-actions -cat >dhcpd.action <<'EOF' -#!/bin/bash -exec %{_libexecdir}/dhcp/dhcpd -4 ${0##*/} -EOF -install -d -m0755 ${legacy_actionsdir}/dhcpd -install -m0755 dhcpd.action ${legacy_actionsdir}/dhcpd/syntax-check -ln -sf syntax-check ${legacy_actionsdir}/dhcpd/check-syntax -ln -sf syntax-check ${legacy_actionsdir}/dhcpd/check-lease -rm -f dhcpd.action -cat >dhcpd.action <<'EOF' -#!/bin/bash -exec %{_libexecdir}/dhcp/dhcpd -6 ${0##*/} -EOF -install -d -m0755 ${legacy_actionsdir}/dhcpd6 -install -m0755 dhcpd.action ${legacy_actionsdir}/dhcpd6/syntax-check -ln -sf syntax-check ${legacy_actionsdir}/dhcpd6/check-syntax -ln -sf syntax-check ${legacy_actionsdir}/dhcpd6/check-lease -rm -f dhcpd.action # sysconfig files install -m0644 $RPM_SOURCE_DIR/sysconfig.dhcpd \ %{buildroot}%{_fillupdir}/ @@ -497,17 +472,11 @@ fi %files server %{_sbindir}/dhcpd %{_sbindir}/dhcpd6 -%{_sbindir}/rcdhcpd -%{_sbindir}/rcdhcpd6 %{_unitdir}/dhcpd.service %{_unitdir}/dhcpd6.service %if %{with sysusers} %{_sysusersdir}/dhcp-user.conf %endif -%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd -%{_libexecdir}/initscripts/legacy-actions/dhcpd/* -%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd6 -%{_libexecdir}/initscripts/legacy-actions/dhcpd6/* %config(noreplace) %{_sysconfdir}/dhcpd.conf %config(noreplace) %{_sysconfdir}/dhcpd6.conf %attr(755,root,root) %dir %config(noreplace) %ghost %{_sysconfdir}/dhcpd.d/ @@ -563,8 +532,6 @@ fi %files relay %{_sbindir}/dhcrelay %{_sbindir}/dhcrelay6 -%{_sbindir}/rcdhcrelay -%{_sbindir}/rcdhcrelay6 %dir %{_libexecdir}/dhcp %{_libexecdir}/dhcp/dhcrelay %{_unitdir}/dhcrelay.service