Sync from SUSE:SLFO:Main dhcpcd revision a82ead5172b89d839ca5dc24808e8494

This commit is contained in:
Adrian Schröter 2024-08-02 15:13:35 +02:00
commit 5d570fe3c2
9 changed files with 202 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
dhcpcd-10.0.8.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

11
dhcpcd-10.0.8.tar.xz.asc Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEp4XtJ1WVXZ6T6ln2WX+X6prUVUkFAmZQuh8ACgkQWX+X6prU
VUlODAgAjAjGjVjSMEf5Q+XTe86IJRUHtIA4dHWeJSK79mYqbkdmL6MSqS4mhpid
Bbp9fAikr+Ja+F58IlltCcndEeCnp+5QJG4+h6ehTK3U1GYHvdCrap5sPbSU7qS3
2NiafIeCQ3OZugCXFPgXwRfHtHJ8wGr3LsWwIjrMudNFDAmWPKzRgz23GbsOXdzR
qc0N/OHd2brl9uMgYpLHuME88zP0aC6Jl5WBoFAr4Wjg1b4gYazXHdopfe+cbrq5
+EENIc3WnAsTUCwPzLpQKa1ZVcA1NcTdP/m0z4zBpIFW3xod/8Sv7aD9B7nWGVAS
V0LVcJPbVsUoPFRohAYALa0NAoR9wg==
=VZuk
-----END PGP SIGNATURE-----

4
dhcpcd.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Jul 1 11:02:27 UTC 2024 - Jorik Cronenberg <jorik.cronenberg@suse.com>
- Initial packaging @ 10.0.8

2
dhcpcd.conf Normal file
View File

@ -0,0 +1,2 @@
#Type Name ID GECOS Home directory Shell
u dhcpcd - "Minimalistic DHCP client" /var/lib/dhcpcd -

38
dhcpcd.keyring Normal file
View File

@ -0,0 +1,38 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBEkrCoIBCACyCfZ4qEaFPi33OT1EYDziIOb5KnvW3E9zP7O8oHGmhzi+v11X
AsShyiQCFaKD3QgQ/Ra5TV6mjfjV2fPjSXp6wVy9ojvmIFpvIgu1AQJIqkYl0jpV
JFNT1n9RcI3RkZdYYbxkncmp3M8NMhWo0Txpuw6dx2c7gLeQp0PQiwJUPiLS1rUw
KQLFGnPfvMu4koCoxeyYydijR8XuMmEk3KkYxqDKw81IljwhvOiJa9AVik01GMnE
C+9xQcrdaa5+0yqPt3n/9WrGk+yC2oLiSjGgJHNB7niU716gf5HVUYrqEdiuVw4+
scSjEdCOmRoWcq6D84EIkoXXX0gurSLcHh7xABEBAAG0HlJveSBNYXJwbGVzIDxy
b3lAbWFycGxlcy5uYW1lPokBVAQTAQgAPgIbAwULCQgHAgIiAgYVCgkICwIEFgID
AQIeBwIXgBYhBKeF7SdVlV2ek+pZ9ll/l+qa1FVJBQJkR4ksAhkBAAoJEFl/l+qa
1FVJb2IH/RYysME0QNZkJpl0SkwwSA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0WgSy
cgQYp/z6OQ/edwWknvwEzdiBh0nz6ND+IaifxvE4PEE3gcrA5NVKcXj2OEmrP65Z
Jsov+LLJ+uQcLFHvVuAcTo1+FzuT5IN+vAlaPP65Nd7hqs6hRRZEoY9QWkbRABEB
AAGJATYEGAEIACACGwwWIQSnhe0nVZVdnpPqWfZZf5fqmtRVSQUCZEacIwAKCRBZ
f5fqmtRVSeaOB/9DPCfgWgCEXJquiD50ZJ71PRYiFwl5YrjzmZtGulXPlPmua6/B
K0iV8wCvyKrTsx5+ylK5R0/1esOVUUpiBY0eXiVV4XXGAfT8sMQY6+n3w+79l+BB
oUAkzc628JrFz/TxeREuLPvoWWt1ztH238Z8DnLvuIyQBDbqZPZcXbl5VNhSKCin
LRqc1vEUZjPG+QH4tFyyn0fMPni+x17bCH2KqEDEjrgrqZjXfolkvkWV5tMpd9Kp
y8yrPmTFL1oJJE2RFBUdvcmJzywUDHKtHO0FaIggvHbatBMFkTiXqPnVbXM12TkU
N1TzPPNHwastj6butZS/DjFJS8Zq8ajxWpHG
=d25e
-----END PGP PUBLIC KEY BLOCK-----

10
dhcpcd.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Minimal DHCPv4 and DHCPv6 client
Wants=network.target
Before=network.target
[Service]
ExecStart=/usr/sbin/dhcpcd -q --nobackground
[Install]
WantedBy=multi-user.target

96
dhcpcd.spec Normal file
View File

@ -0,0 +1,96 @@
#
# spec file for package dhcpcd
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: dhcpcd
Version: 10.0.8
Release: 0
Summary: Minimal DHCPv4 and DHCPv6 client
License: BSD-2-Clause
URL: https://github.com/NetworkConfiguration/dhcpcd
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
Source3: dhcpcd.conf
Source4: dhcpcd.service
Source5: dhcpcd@.service
BuildRequires: sysuser-tools
%sysusers_requires
%description
dhcpcd is a DHCP and a DHCPv6 client. It's also an IPv4LL (aka ZeroConf)
client. In layperson's terms, dhcpcd runs on your machine and silently
configures your computer to work on the attached networks without trouble and
mostly without configuration.
%prep
%autosetup -p1
%build
%configure \
--dbdir=%{_sharedstatedir}/dhcpcd \
--runstatedir=%{_rundir} \
--privsepuser=dhcpcd
%make_build
%sysusers_generate_pre %{SOURCE3} dhcpcd dhcpcd.conf
%check
%make_build test
%install
%make_install
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/dhcpcd.service
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/dhcpcd@.service
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/dhcpcd.conf
install -d %{buildroot}%{_sharedstatedir}/dhcpcd
%pre -f dhcpcd.pre
%service_add_pre dhcpcd.service
%post
%service_add_post dhcpcd.service
%preun
%service_del_preun dhcpcd.service
%postun
%service_del_postun dhcpcd.service
%files
%license LICENSE
%doc README.md
%doc %{_mandir}/man5/*5*
%doc %{_mandir}/man8/*8*
%{_sbindir}/dhcpcd
%config(noreplace) %{_sysconfdir}/dhcpcd.conf
%dir %{_libexecdir}/dhcpcd-hooks
%{_libexecdir}/dhcpcd-hooks/01-test
%{_libexecdir}/dhcpcd-hooks/20-resolv.conf
%{_libexecdir}/dhcpcd-hooks/30-hostname
%{_libexecdir}/dhcpcd-run-hooks
%dir %{_datadir}/dhcpcd
%dir %{_datadir}/dhcpcd/hooks
%{_datadir}/dhcpcd/hooks/10-wpa_supplicant
%{_datadir}/dhcpcd/hooks/15-timezone
%{_datadir}/dhcpcd/hooks/29-lookup-hostname
%{_datadir}/dhcpcd/hooks/50-yp.conf
%{_unitdir}/dhcpcd.service
%{_unitdir}/dhcpcd@.service
%{_sysusersdir}/dhcpcd.conf
%attr(0750,root,root) %dir %{_sharedstatedir}/dhcpcd
%changelog

15
dhcpcd@.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/dhcpcd/%I.pid
ExecStart=/usr/sbin/dhcpcd -q -w %I
ExecStop=/usr/sbin/dhcpcd -x %I
[Install]
WantedBy=multi-user.target