mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 11:01:14 +02:00
net-misc/dhcpcd: update to 8.1.9
Update dhcpcd to 8.1.9 to address the following security issues: * CVE-2019-11577 * CVE-2019-11766 Note, dhcpcd is not a standard tool of Flatcar, because by default networking is configured via systemd-networkd. We update the package just for potential use cases that still depend on dhcpcd. However, in the long term, we should not ship dhcpcd in the production images.
This commit is contained in:
parent
a731d78f5f
commit
311fdd6f25
@ -1,214 +0,0 @@
|
|||||||
# ChangeLog for net-misc/dhcpcd
|
|
||||||
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
|
|
||||||
# (auto-generated from git log)
|
|
||||||
|
|
||||||
*dhcpcd-9999 (09 Aug 2015)
|
|
||||||
*dhcpcd-6.9.1 (09 Aug 2015)
|
|
||||||
*dhcpcd-6.9.0 (09 Aug 2015)
|
|
||||||
|
|
||||||
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org> +dhcpcd-6.9.0.ebuild,
|
|
||||||
+dhcpcd-6.9.1.ebuild, +dhcpcd-9999.ebuild, +files/dhcpcd.initd,
|
|
||||||
+files/dhcpcd.service, +metadata.xml:
|
|
||||||
proj/gentoo: Initial commit
|
|
||||||
|
|
||||||
This commit represents a new era for Gentoo:
|
|
||||||
Storing the gentoo-x86 tree in Git, as converted from CVS.
|
|
||||||
|
|
||||||
This commit is the start of the NEW history.
|
|
||||||
Any historical data is intended to be grafted onto this point.
|
|
||||||
|
|
||||||
Creation process:
|
|
||||||
1. Take final CVS checkout snapshot
|
|
||||||
2. Remove ALL ChangeLog* files
|
|
||||||
3. Transform all Manifests to thin
|
|
||||||
4. Remove empty Manifests
|
|
||||||
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
|
|
||||||
5.1. Do not touch files with -kb/-ko keyword flags.
|
|
||||||
|
|
||||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
||||||
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
|
|
||||||
tests
|
|
||||||
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
|
|
||||||
project
|
|
||||||
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
|
|
||||||
developer, wrote Git features for the migration
|
|
||||||
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
|
|
||||||
cvs2svn
|
|
||||||
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
|
|
||||||
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
|
|
||||||
work in migration
|
|
||||||
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
|
|
||||||
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
|
|
||||||
the bikeshed
|
|
||||||
|
|
||||||
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
|
|
||||||
Use https by default
|
|
||||||
|
|
||||||
Convert all URLs for sites supporting encrypted connections from http to
|
|
||||||
https
|
|
||||||
|
|
||||||
Signed-off-by: Justin Lecher <jlec@gentoo.org>
|
|
||||||
|
|
||||||
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
|
|
||||||
Revert DOCTYPE SYSTEM https changes in metadata.xml
|
|
||||||
|
|
||||||
repoman does not yet accept the https version.
|
|
||||||
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
|
|
||||||
|
|
||||||
Bug: https://bugs.gentoo.org/552720
|
|
||||||
|
|
||||||
*dhcpcd-6.9.2 (25 Aug 2015)
|
|
||||||
|
|
||||||
25 Aug 2015; William Hubbs <williamh@gentoo.org> +dhcpcd-6.9.2.ebuild:
|
|
||||||
version bump
|
|
||||||
|
|
||||||
*dhcpcd-6.9.3 (04 Sep 2015)
|
|
||||||
|
|
||||||
04 Sep 2015; William Hubbs <williamh@gentoo.org> +dhcpcd-6.9.3.ebuild:
|
|
||||||
version bump
|
|
||||||
|
|
||||||
*dhcpcd-6.9.4 (07 Jan 2016)
|
|
||||||
|
|
||||||
07 Jan 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.9.4.ebuild,
|
|
||||||
+files/dhcpcd-6.9.4-no-ipv6.patch:
|
|
||||||
version bump
|
|
||||||
|
|
||||||
*dhcpcd-6.10.0 (07 Jan 2016)
|
|
||||||
|
|
||||||
07 Jan 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.10.0.ebuild:
|
|
||||||
sys-apps/dhcpcd: version bump
|
|
||||||
|
|
||||||
08 Jan 2016; Mikle Kolyada <zlogene@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
amd64 stable wrt bug #571152
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
09 Jan 2016; William Hubbs <williamh@gentoo.org> -dhcpcd-6.9.1.ebuild,
|
|
||||||
-dhcpcd-6.9.2.ebuild, -dhcpcd-6.9.3.ebuild, -dhcpcd-6.9.4.ebuild,
|
|
||||||
-files/dhcpcd-6.9.4-no-ipv6.patch:
|
|
||||||
remove old unstable versions
|
|
||||||
|
|
||||||
10 Jan 2016; Zero_Chaos <zerochaos@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
stable arm bug #571152
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
12 Jan 2016; Jeroen Roovers <jer@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
Stable for PPC64 (bug #571152).
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
RepoMan-Options: --ignore-arches
|
|
||||||
|
|
||||||
12 Jan 2016; Jeroen Roovers <jer@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
Stable for HPPA (bug #571152).
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
RepoMan-Options: --ignore-arches
|
|
||||||
|
|
||||||
15 Jan 2016; Andreas Schuerch <nativemad@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
6.10.0 stable on x86, see bug 571152
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
17 Jan 2016; Tobias Klausmann <klausman@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
add alpha keyword
|
|
||||||
|
|
||||||
Gentoo-Bug: 571152
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
17 Jan 2016; Agostino Sarubbo <ago@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
ppc stable wrt bug #571152
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
RepoMan-Options: --include-arches="ppc"
|
|
||||||
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
|
|
||||||
|
|
||||||
*dhcpcd-6.10.1 (21 Jan 2016)
|
|
||||||
|
|
||||||
21 Jan 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.10.1.ebuild:
|
|
||||||
version bump
|
|
||||||
|
|
||||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
|
||||||
Replace all herds with appropriate projects (GLEP 67)
|
|
||||||
|
|
||||||
Replace all uses of herd with appropriate project maintainers, or no
|
|
||||||
maintainers in case of herds requested to be disbanded.
|
|
||||||
|
|
||||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
|
||||||
Set appropriate maintainer types in metadata.xml (GLEP 67)
|
|
||||||
|
|
||||||
28 Jan 2016; Mike Frysinger <vapier@gentoo.org> dhcpcd-6.10.0.ebuild:
|
|
||||||
mark 6.10.0 arm64/ia64/s390/sh/sparc stable #571152
|
|
||||||
|
|
||||||
29 Jan 2016; William Hubbs <williamh@gentoo.org> -dhcpcd-6.9.0.ebuild:
|
|
||||||
remove old versions
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=571152
|
|
||||||
|
|
||||||
20 Feb 2016; William Hubbs <williamh@gentoo.org> dhcpcd-6.10.1.ebuild:
|
|
||||||
mark 6.10.1 amd64 stable for bug #575240
|
|
||||||
|
|
||||||
27 Feb 2016; Jeroen Roovers <jer@gentoo.org> dhcpcd-6.10.1.ebuild:
|
|
||||||
Stable for HPPA PPC64 (bug #575240).
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.27
|
|
||||||
RepoMan-Options: --ignore-arches
|
|
||||||
|
|
||||||
15 Mar 2016; Markus Meier <maekke@gentoo.org> dhcpcd-6.10.1.ebuild:
|
|
||||||
arm stable, bug #575240
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.27
|
|
||||||
RepoMan-Options: --include-arches="arm"
|
|
||||||
|
|
||||||
*dhcpcd-6.10.2 (12 Apr 2016)
|
|
||||||
|
|
||||||
12 Apr 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.10.2.ebuild,
|
|
||||||
dhcpcd-9999.ebuild:
|
|
||||||
version bump and sync live ebuild
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
18 Apr 2016; William Hubbs <williamh@gentoo.org> dhcpcd-6.10.2.ebuild,
|
|
||||||
+files/dhcpcd-6.10.2-fix-configure.patch:
|
|
||||||
add patch to fix compile issue for bug #579854
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
07 May 2016; William Hubbs <williamh@gentoo.org> files/dhcpcd.initd:
|
|
||||||
update service script to use /sbin/openrc-run
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
*dhcpcd-6.10.3 (07 May 2016)
|
|
||||||
|
|
||||||
07 May 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.10.3.ebuild:
|
|
||||||
version bump
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.26
|
|
||||||
|
|
||||||
*dhcpcd-6.11.0 (09 May 2016)
|
|
||||||
|
|
||||||
09 May 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.11.0.ebuild:
|
|
||||||
version bump to 6.11.0
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.28
|
|
||||||
|
|
||||||
12 May 2016; William Hubbs <williamh@gentoo.org> files/dhcpcd.service:
|
|
||||||
make dhcpcd.service block until a lease is obtained
|
|
||||||
|
|
||||||
This makes the systemd unit behave more like the init script, and should
|
|
||||||
resolve issues with NFS mounts.
|
|
||||||
|
|
||||||
Bug: https://bugs.gentoo.org/582484
|
|
||||||
|
|
||||||
21 May 2016; Matt Turner <mattst88@gentoo.org> dhcpcd-6.10.1.ebuild:
|
|
||||||
added alpha, bug 575240.
|
|
||||||
|
|
||||||
*dhcpcd-6.11.1 (18 Jun 2016)
|
|
||||||
|
|
||||||
18 Jun 2016; William Hubbs <williamh@gentoo.org> +dhcpcd-6.11.1.ebuild:
|
|
||||||
version bump to 6.11.1
|
|
||||||
|
|
||||||
Package-Manager: portage-2.2.28
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +1,3 @@
|
|||||||
AUX dhcpcd-6.10.2-fix-configure.patch 1421 SHA256 a740419af36b3250e5390f2e9d6870e0edb21d29aafbfaf97ab3b988950ffd05 SHA512 0af7007a0f80a8d2992409d39d470fc20553f19ba50009e2d89cf304244aabdbc0c11ca9377460c1581803a0ead4da4a9b09baaf15d175ff9455f93c5e5403e8 WHIRLPOOL 780fe5eed678eeab1afbc8bdf4554ff3591bee4343ccc940ecd4611c9c85e7b908541212b65fefbc7c48cc91031f1b69898fdeb2e761bf7f2f52884618b4f627
|
DIST dhcpcd-8.1.9.tar.xz 230288 BLAKE2B 5606ddfce37c67ac3d60257104fcf15bd7da65021b2c1261a45958b628cd066ccd9bc6b60bbb42f8280fcbbf9d4b1c7666b993c37f150b27ef2a0527a0fd5b96 SHA512 40ac106ffca60b32362aacdfae0fa3a2993a3eed72bf452322412a912f594aaade1c24b862233455033158a6e453ec75d6d14fa52df6b4c5ae435dd6ceb29f2a
|
||||||
AUX dhcpcd.initd 328 SHA256 6bb9b8b0075e45e63e898ed043f3c5951dc3e95c1fa62d22cc6e0616c792ecd1 SHA512 6d3220155f2d9ed3e3a00afd378eeb70d435e19804201f8bb35498f1f7f3dfdaeaa2f4a01a18f5e96b457d9c173bc6a206b3e67ebf6d95da7e7b350dcd153fde WHIRLPOOL bc35a41feb9dc60c3dcd7bc5c453edb65047a87bf93c774d243d41ff6d9fc1bbc28ad2ce9067e152447d58502f8ee07b9917a46ec9fbe03b5df083eae0d5ac3e
|
DIST dhcpcd-9.3.4.tar.xz 255212 BLAKE2B cd64dca55bd8adfcfa8ffb5f75a949c6f8aef9f1bf7925060590f7f5f0325e08de3c766c8ff780736eb2bed40ba3ae7b59c3cf3e03f2ad1bd7ff4c92aafb6370 SHA512 00125cbed9a20ba016cbb383c02ce61a58482dcf6c46144e573ee3759dbaf19b5f470eaf19038197d0ff4249c852773c537294bab30b5bf3f5bae4d754741517
|
||||||
AUX dhcpcd.service 227 SHA256 289432e64108196c9e9c99b5ce77d3c46c75fc3e8f6f4ae1a19066dba46a3517 SHA512 4a030dc291fa7deba9c1f33d61dafdda710247ef7f3743c28e46b767a190e359e468433147bda23c82fae9c93ec31cd68905bfdb51cb8c2d9176ea789b31b14e WHIRLPOOL 46e457cf6843bf6dca31c2dd08bce431efa966ccd802a206e8a933f2c9e46c91b713ed2422f42284b5f65e5e8e44e9177ae307877a6243c321758e38c85a9ecc
|
DIST dhcpcd-9.4.0.tar.xz 256440 BLAKE2B 16d63e957dbdf49647806ebe69487edc96502f43af8b8b6c6e40311994611d2516e2c839fed41863b8509a0953421091577d4cb202ebda3b300f3b1c761c07ce SHA512 e2cff86564062e8d5f9c8f48f245ffa31406494e2fafadedabc1ba9932b534cbda064783ffdd7fb337544459aba2ef7e9b49ad0973120897dc04159747e8635f
|
||||||
DIST dhcpcd-6.10.0.tar.xz 179804 SHA256 ab56af9b2e86913c55a965cb0f835e87749df78318564acf90d5d698f413ad35 SHA512 f31c95beaa7668deb03e3d657660cd32434dbb0ef440e9bc568bb4a672a510bffb5e79e15d139b40fa7730e9a642c3c2167aaa1389fb8c449bfbcd0039ed30f0 WHIRLPOOL 70a18c39f317cb2cf51ec0a44d79d7fba99e381c47ecd2753bef41b68994193e9c846789aa2c1725a6261e82324434bee3231b056b93a8af3e10e9d26815a5b0
|
|
||||||
DIST dhcpcd-6.10.1.tar.xz 180112 SHA256 284abf8c3be0580bbac5eaca95359346ab0d78d4072317b6ce87cc68f2e8ae7b SHA512 f323c155cff47f21dde181c216408b79f10e6ed923aa3d1f3482feff47a1e88e02193ec82f831da4ef63d3703ca1837715c36a47cf3f5d09f117f6eb53bfcf67 WHIRLPOOL 805e8a1b4dad400825197dae7918a2172093d152986d5d97f4d1993f2c27cf3fbe097a5dc4f7a5292e98676b5d7fad6079ed64e4bffabeb7ccf9d91f4db80de9
|
|
||||||
DIST dhcpcd-6.10.2.tar.xz 184512 SHA256 64a0ff84ba7f1e820b2ccfe08980b3b73e96bb072274b21de523f1da83a94e09 SHA512 66e472b32373328fb18723d7efa9f200befb35762449a26a81d4c137eb17aae1d86bce59cc057dfb328e83061d7747a8c6facac2f0304750acfb4c634e896a65 WHIRLPOOL e92e64b36c26d651b8cd9ddc4c6902e351afe28c71a16a3f6bd069d1414eebf85791abb8eee3a6272134e5fec73f0ac4c0225c8b20ca2be07f2ac210b134bf7f
|
|
||||||
DIST dhcpcd-6.10.3.tar.xz 185520 SHA256 b586c1f770373f83e3f574c683c66bea217a6d6c89b8e91dbdb6f75aa654c8d5 SHA512 6ebcb720909f4d167d064d5e8ed961c331470762e89f4e5c145f048424ef170ffc218e9a9dcc94e3a8dce6ccc147710ec2ef17627a708918203858f3dcdca43d WHIRLPOOL 4c9844de4b6e69a761c7a5a9c34da7f97e906a379b837ccfe647f1fab5e648193298744a8eded6f46379c056cb8fcb8148af1f0e5e95d5726529a3cc2686b27f
|
|
||||||
DIST dhcpcd-6.11.0.tar.xz 187580 SHA256 31c2cd327657f11c427fe5044f74c5b942e70450fa43ceabf4b25f3fd4999959 SHA512 ee46f28b046752e80839c229e074cb87aea93695c1347ba852a026828a34b47f66990c9ce863f7de02ad81cc922c0ae000ab8fbb23ed9f2d1f97b720020db166 WHIRLPOOL 6950d95493baaf2c16343590f6c89fcf471de50c5423030607b1a26144c86636b40fb693ce87cd4d13e433f0423ff48449b7db37f7e1266038ee2b6268116ec5
|
|
||||||
DIST dhcpcd-6.11.1.tar.xz 190956 SHA256 5c823d607ed1d7513d16ec51c54e21657f1324899e0ba333a497682d88a8c6ee SHA512 50ef755b13a96fe484623d9f2dbd91407fbea5ca728fd05dbf4259a61611a07cf3ffad7e8d20ecd513dbef80602074809abd1f5177daaa51ceccc2af5c88269f WHIRLPOOL a32350beee83184fc9d0dec5cd65f265a83aa95177b8ff700fcce2aaf2ac6c2600c322e3d8c65f1d2e9d3a2cbe71bc00b3a6efbf045fa9c805b76a3a1fca0de5
|
|
||||||
EBUILD dhcpcd-6.10.0.ebuild 3328 SHA256 8a00d6d1a5101829601407417a4ea6c95f259722e682f822050de22eea8c8cdb SHA512 cfa69255cb7591b3097a34afedebd762e37ec31945e3bb1e37afc35438c205759f5455bd23db1d249a4ec62c0a4984748074f4918bc3f7b96b1a9c1423d6b499 WHIRLPOOL aa4271b6c232d357ad2ac963e6da23ee2677fe7ef970f57855bde34507bd5ecf045a300c9f78201963f178c17257f51f93ec07e44fc0af102be8fb8afd0840d0
|
|
||||||
EBUILD dhcpcd-6.10.1.ebuild 3335 SHA256 4c9eae30d54104fe8d3d76ef7ecc2dcd86822e2eb01bfa2e02ea956edc2f4ec0 SHA512 35d930c4a27b5f1f286bebb4c20b17417d69a92156bf8503847cc98a4ea2c45b4e46500cc78c01e58fd076e96269bd85c49380075cbafbdf32eb9a5f9794a5ba WHIRLPOOL 7bce7d2ec6d7577fa8a725b2445906f8a950b7b9e9b221cebe05351c93564b4ee1b753dc8681e2b2294a52065d587ed5d65bedcc5e272aca564f9e8420d52020
|
|
||||||
EBUILD dhcpcd-6.10.2.ebuild 3360 SHA256 c878d08ae55041b2560dd39b2d10359ac4616559fd107720c4e3518a2e844e2e SHA512 a66677dea29224527a24723a039720a8ce39698b35ca6cce59c583691dc9185475069ef966be0af1e22b929375f810e50a0721768ea2b49dced9c22e1281ef3d WHIRLPOOL c6361843079e58ac46a2084a60310a7572c2163668efa7ccc740a45b45790591abe82a695750a96e20383ff40aff5744fe5f5b9f54e37fd34a9b6c6a386d93ae
|
|
||||||
EBUILD dhcpcd-6.10.3.ebuild 3308 SHA256 e6c686eedc106b0187b3eea2cd58b9bc0c4f92a1d2911272f3950fbde1687c0b SHA512 f14c4d040590cb33925790814d799806050297f56109a0fea15fb46a070ffd14dc8004b0699d7bc35a5077ac3e2259d7d5ba7d595207262e934b66ec44b17cd4 WHIRLPOOL 08f54b84600287e9e8d2e4d7a8c96c0db2e7230afde25cf3e9be4a5a82d5f1fc7a3ed57ba89df192ddb6752e95c5d5f4ef0d8886edf0b367aa84419641e306e8
|
|
||||||
EBUILD dhcpcd-6.11.0.ebuild 3308 SHA256 e6c686eedc106b0187b3eea2cd58b9bc0c4f92a1d2911272f3950fbde1687c0b SHA512 f14c4d040590cb33925790814d799806050297f56109a0fea15fb46a070ffd14dc8004b0699d7bc35a5077ac3e2259d7d5ba7d595207262e934b66ec44b17cd4 WHIRLPOOL 08f54b84600287e9e8d2e4d7a8c96c0db2e7230afde25cf3e9be4a5a82d5f1fc7a3ed57ba89df192ddb6752e95c5d5f4ef0d8886edf0b367aa84419641e306e8
|
|
||||||
EBUILD dhcpcd-6.11.1.ebuild 3308 SHA256 e6c686eedc106b0187b3eea2cd58b9bc0c4f92a1d2911272f3950fbde1687c0b SHA512 f14c4d040590cb33925790814d799806050297f56109a0fea15fb46a070ffd14dc8004b0699d7bc35a5077ac3e2259d7d5ba7d595207262e934b66ec44b17cd4 WHIRLPOOL 08f54b84600287e9e8d2e4d7a8c96c0db2e7230afde25cf3e9be4a5a82d5f1fc7a3ed57ba89df192ddb6752e95c5d5f4ef0d8886edf0b367aa84419641e306e8
|
|
||||||
EBUILD dhcpcd-9999.ebuild 3308 SHA256 e6c686eedc106b0187b3eea2cd58b9bc0c4f92a1d2911272f3950fbde1687c0b SHA512 f14c4d040590cb33925790814d799806050297f56109a0fea15fb46a070ffd14dc8004b0699d7bc35a5077ac3e2259d7d5ba7d595207262e934b66ec44b17cd4 WHIRLPOOL 08f54b84600287e9e8d2e4d7a8c96c0db2e7230afde25cf3e9be4a5a82d5f1fc7a3ed57ba89df192ddb6752e95c5d5f4ef0d8886edf0b367aa84419641e306e8
|
|
||||||
MISC ChangeLog 6738 SHA256 bbd46ff9d542c08f3e53443cdb91544035a9279d3b1ccb6f9f5265f7009a401d SHA512 336b413cc2e8996354cd8090af581233bcc2fbfb51531acff3e99ed2b20f74e8da7e82532b68ba0109163bd4ee300686fe6efb4867124d89381f0cab9c7379ae WHIRLPOOL 8661ed92abbb93aacf4ec974b72886aa92c1ba8e5b67c4e6381d6c0dbb63c534d79a63b50fbcb4a535f1371879841d416cf0204fe313a887ace729397767a65a
|
|
||||||
MISC ChangeLog-2015 64856 SHA256 2e43801d14158185ea967ef6244822bdb5ae254107c6abf6c50ec158b49c6731 SHA512 c9517777fb5a465b80905424ae65c34790a705a6097359273308e0085ffaed58a4a2a98a53ae3ba7a614f463b6d67a26234fb401699fcd85b9656d56c46a353c WHIRLPOOL ce99d0920143d62127371dbdc2eab7682e3aee4617792805fd48fbafe3621203abf06c80eecd6793ddc8fca00d262c095cf6e6f9c204956005eda462771fbf19
|
|
||||||
MISC metadata.xml 578 SHA256 fcd4cdd30906d309e99be977d7a0b2c93adaf32070b0270c8df7e76f6233f5bf SHA512 da91a15a3deb4e10b8622c8c9cede03a268fdf5aa0c2338ed8f2763ac14577a43870e3f6d37935de344e968f9e40500bb6f5ed53a49684da1224ed1e150a5e20 WHIRLPOOL 470316fb0cf8bf1d204bb2e85b0aba2476cbb73b30ca2871b36dd4d2930ded7a85ae73f32a26059c414d2616e6ae8e23f78f2cc2973c4f75e6d7dbe9c5e71a83
|
|
||||||
|
@ -1,120 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_prepare()
|
|
||||||
{
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,120 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_prepare()
|
|
||||||
{
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,119 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}-fix-configure.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,115 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,115 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,115 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
|
||||||
else
|
|
||||||
MY_P="${P/_alpha/-alpha}"
|
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
DEPEND+=" dev-vcs/fossil"
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
|
||||||
|
|
||||||
addwrite "${distdir}"
|
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
|
||||||
else
|
|
||||||
mkdir -p "${distdir}/fossil" || die
|
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
|
||||||
cd "${S}" || die
|
|
||||||
fossil open "${repo}" || die
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
|
||||||
elog
|
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
|
||||||
elog "This means it will always obtain an IP address even if no"
|
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
|
||||||
elog "failover support you may have configured in your net configuration."
|
|
||||||
elog "This behaviour can be controlled with the noipv4ll configuration"
|
|
||||||
elog "file option or the -L command line switch."
|
|
||||||
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
|
||||||
elog "with some dhcp servers. For more information, see"
|
|
||||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! has_version net-dns/bind-tools; then
|
|
||||||
elog
|
|
||||||
elog "If you activate the lookup-hostname hook to look up your hostname"
|
|
||||||
elog "using the dns, you need to install net-dns/bind-tools."
|
|
||||||
fi
|
|
||||||
}
|
|
144
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-8.1.9.ebuild
vendored
Normal file
144
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-8.1.9.ebuild
vendored
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit systemd toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://roy.marples.name/git/dhcpcd.git"
|
||||||
|
else
|
||||||
|
MY_P="${P/_alpha/-alpha}"
|
||||||
|
MY_P="${MY_P/_beta/-beta}"
|
||||||
|
MY_P="${MY_P/_rc/-rc}"
|
||||||
|
SRC_URI="https://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
||||||
|
HOMEPAGE="https://roy.marples.name/projects/dhcpcd"
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
||||||
|
|
||||||
|
COMMON_DEPEND="udev? ( virtual/udev )"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="${COMMON_DEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--dbdir="${EPREFIX}/var/lib/dhcpcd"
|
||||||
|
--libexecdir="${EPREFIX}/lib/dhcpcd"
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
--prefix="${EPREFIX}"
|
||||||
|
--with-hook=ntp.conf
|
||||||
|
$(use_enable embedded)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(usex elibc_glibc '--with-hook=yp.conf' '')
|
||||||
|
$(usex kernel_linux '--rundir=${EPREFIX}/run' '')
|
||||||
|
$(usex udev '' '--without-dev --without-udev')
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
keepdir /var/lib/dhcpcd
|
||||||
|
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||||
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
local dbdir="${EROOT}"/var/lib/dhcpcd old_files=()
|
||||||
|
|
||||||
|
local old_old_duid="${EROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
||||||
|
local old_duid="${EROOT}"/etc/dhcpcd.duid
|
||||||
|
local new_duid="${dbdir}"/duid
|
||||||
|
if [[ -e "${old_old_duid}" ]] ; then
|
||||||
|
# Upgrade the duid file to the new format if needed
|
||||||
|
if ! grep -q '..:..:..:..:..:..' "${old_old_duid}"; then
|
||||||
|
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_old_duid}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Move the duid to /etc, a more sensible location
|
||||||
|
if [[ ! -e "${old_duid}" ]] ; then
|
||||||
|
cp -p "${old_old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_old_duid}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 moves the files out of /etc
|
||||||
|
if [[ -e "${old_duid}" ]] ; then
|
||||||
|
if [[ ! -e "${new_duid}" ]] ; then
|
||||||
|
cp -p "${old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_duid}" )
|
||||||
|
fi
|
||||||
|
local old_secret="${EROOT}"/etc/dhcpcd.secret
|
||||||
|
local new_secret="${dbdir}"/secret
|
||||||
|
if [[ -e "${old_secret}" ]] ; then
|
||||||
|
if [[ ! -e "${new_secret}" ]] ; then
|
||||||
|
cp -p "${old_secret}" "${new_secret}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_secret}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 renames some files in /var/lib/dhcpcd
|
||||||
|
local old_rdm="${dbdir}"/dhcpcd-rdm.monotonic
|
||||||
|
local new_rdm="${dbdir}"/rdm_monotonic
|
||||||
|
if [[ -e "${old_rdm}" ]] ; then
|
||||||
|
if [[ ! -e "${new_rdm}" ]] ; then
|
||||||
|
cp -p "${old_rdm}" "${new_rdm}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_rdm}" )
|
||||||
|
fi
|
||||||
|
local lease=
|
||||||
|
for lease in "${dbdir}"/dhcpcd-*.lease*; do
|
||||||
|
[[ -f "${lease}" ]] || continue
|
||||||
|
old_files+=( "${lease}" )
|
||||||
|
local new_lease=$(basename "${lease}" | sed -e "s/dhcpcd-//")
|
||||||
|
[[ -e "${dbdir}/${new_lease}" ]] && continue
|
||||||
|
cp "${lease}" "${dbdir}/${new_lease}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Warn about removing stale files
|
||||||
|
if [[ -n "${old_files[@]}" ]] ; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd-7 has copied dhcpcd.duid and dhcpcd.secret from"
|
||||||
|
elog "${EROOT}/etc to ${dbdir}"
|
||||||
|
elog "and copied leases in ${dbdir} to new files with the dhcpcd-"
|
||||||
|
elog "prefix dropped."
|
||||||
|
elog
|
||||||
|
elog "You should remove these files if you don't plan on reverting"
|
||||||
|
elog "to an older version:"
|
||||||
|
local old_file=
|
||||||
|
for old_file in ${old_files[@]}; do
|
||||||
|
elog " ${old_file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${REPLACING_VERSIONS}" ]; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd has zeroconf support active by default."
|
||||||
|
elog "This means it will always obtain an IP address even if no"
|
||||||
|
elog "DHCP server can be contacted, which will break any existing"
|
||||||
|
elog "failover support you may have configured in your net configuration."
|
||||||
|
elog "This behaviour can be controlled with the noipv4ll configuration"
|
||||||
|
elog "file option or the -L command line switch."
|
||||||
|
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
||||||
|
elog "with some dhcp servers. For more information, see"
|
||||||
|
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! has_version net-dns/bind-tools; then
|
||||||
|
elog
|
||||||
|
elog "If you activate the lookup-hostname hook to look up your hostname"
|
||||||
|
elog "using the dns, you need to install net-dns/bind-tools."
|
||||||
|
fi
|
||||||
|
}
|
153
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
vendored
Normal file
153
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
vendored
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit systemd toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://roy.marples.name/cgit/dhcpcd.git"
|
||||||
|
else
|
||||||
|
MY_P="${P/_alpha/-alpha}"
|
||||||
|
MY_P="${MY_P/_beta/-beta}"
|
||||||
|
MY_P="${MY_P/_rc/-rc}"
|
||||||
|
SRC_URI="https://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
||||||
|
HOMEPAGE="https://roy.marples.name/projects/dhcpcd"
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="debug elibc_glibc +embedded ipv6 kernel_linux privsep +udev"
|
||||||
|
|
||||||
|
COMMON_DEPEND="udev? ( virtual/udev )"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
privsep? (
|
||||||
|
acct-group/dhcpcd
|
||||||
|
acct-user/dhcpcd
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--dbdir="${EPREFIX}/var/lib/dhcpcd"
|
||||||
|
--libexecdir="${EPREFIX}/lib/dhcpcd"
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
--prefix="${EPREFIX}"
|
||||||
|
--with-hook=ntp.conf
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable embedded)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(use_enable privsep)
|
||||||
|
$(usex elibc_glibc '--with-hook=yp.conf' '')
|
||||||
|
--rundir=$(usex kernel_linux "${EPREFIX}/run/dhcpcd" "${EPREFIX}/var/run/dhcpcd")
|
||||||
|
$(usex privsep '--privsepuser=dhcpcd' '')
|
||||||
|
$(usex udev '' '--without-dev --without-udev')
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
keepdir /var/lib/dhcpcd
|
||||||
|
newinitd "${FILESDIR}"/dhcpcd.initd-r1 dhcpcd
|
||||||
|
systemd_newunit "${FILESDIR}"/dhcpcd.service-r1 dhcpcd.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
local dbdir="${EROOT}"/var/lib/dhcpcd old_files=()
|
||||||
|
|
||||||
|
local old_old_duid="${EROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
||||||
|
local old_duid="${EROOT}"/etc/dhcpcd.duid
|
||||||
|
local new_duid="${dbdir}"/duid
|
||||||
|
if [[ -e "${old_old_duid}" ]] ; then
|
||||||
|
# Upgrade the duid file to the new format if needed
|
||||||
|
if ! grep -q '..:..:..:..:..:..' "${old_old_duid}"; then
|
||||||
|
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_old_duid}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Move the duid to /etc, a more sensible location
|
||||||
|
if [[ ! -e "${old_duid}" ]] ; then
|
||||||
|
cp -p "${old_old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_old_duid}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 moves the files out of /etc
|
||||||
|
if [[ -e "${old_duid}" ]] ; then
|
||||||
|
if [[ ! -e "${new_duid}" ]] ; then
|
||||||
|
cp -p "${old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_duid}" )
|
||||||
|
fi
|
||||||
|
local old_secret="${EROOT}"/etc/dhcpcd.secret
|
||||||
|
local new_secret="${dbdir}"/secret
|
||||||
|
if [[ -e "${old_secret}" ]] ; then
|
||||||
|
if [[ ! -e "${new_secret}" ]] ; then
|
||||||
|
cp -p "${old_secret}" "${new_secret}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_secret}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 renames some files in /var/lib/dhcpcd
|
||||||
|
local old_rdm="${dbdir}"/dhcpcd-rdm.monotonic
|
||||||
|
local new_rdm="${dbdir}"/rdm_monotonic
|
||||||
|
if [[ -e "${old_rdm}" ]] ; then
|
||||||
|
if [[ ! -e "${new_rdm}" ]] ; then
|
||||||
|
cp -p "${old_rdm}" "${new_rdm}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_rdm}" )
|
||||||
|
fi
|
||||||
|
local lease=
|
||||||
|
for lease in "${dbdir}"/dhcpcd-*.lease*; do
|
||||||
|
[[ -f "${lease}" ]] || continue
|
||||||
|
old_files+=( "${lease}" )
|
||||||
|
local new_lease=$(basename "${lease}" | sed -e "s/dhcpcd-//")
|
||||||
|
[[ -e "${dbdir}/${new_lease}" ]] && continue
|
||||||
|
cp "${lease}" "${dbdir}/${new_lease}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Warn about removing stale files
|
||||||
|
if [[ -n "${old_files[@]}" ]] ; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd-7 has copied dhcpcd.duid and dhcpcd.secret from"
|
||||||
|
elog "${EROOT}/etc to ${dbdir}"
|
||||||
|
elog "and copied leases in ${dbdir} to new files with the dhcpcd-"
|
||||||
|
elog "prefix dropped."
|
||||||
|
elog
|
||||||
|
elog "You should remove these files if you don't plan on reverting"
|
||||||
|
elog "to an older version:"
|
||||||
|
local old_file=
|
||||||
|
for old_file in ${old_files[@]}; do
|
||||||
|
elog " ${old_file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${REPLACING_VERSIONS}" ]; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd has zeroconf support active by default."
|
||||||
|
elog "This means it will always obtain an IP address even if no"
|
||||||
|
elog "DHCP server can be contacted, which will break any existing"
|
||||||
|
elog "failover support you may have configured in your net configuration."
|
||||||
|
elog "This behaviour can be controlled with the noipv4ll configuration"
|
||||||
|
elog "file option or the -L command line switch."
|
||||||
|
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
||||||
|
elog "with some dhcp servers. For more information, see"
|
||||||
|
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! has_version net-dns/bind-tools; then
|
||||||
|
elog
|
||||||
|
elog "If you activate the lookup-hostname hook to look up your hostname"
|
||||||
|
elog "using the dns, you need to install net-dns/bind-tools."
|
||||||
|
fi
|
||||||
|
}
|
153
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-9.4.0.ebuild
vendored
Normal file
153
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/dhcpcd-9.4.0.ebuild
vendored
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit systemd toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://roy.marples.name/cgit/dhcpcd.git"
|
||||||
|
else
|
||||||
|
MY_P="${P/_alpha/-alpha}"
|
||||||
|
MY_P="${MY_P/_beta/-beta}"
|
||||||
|
MY_P="${MY_P/_rc/-rc}"
|
||||||
|
SRC_URI="https://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
||||||
|
HOMEPAGE="https://roy.marples.name/projects/dhcpcd"
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="debug elibc_glibc +embedded ipv6 kernel_linux privsep +udev"
|
||||||
|
|
||||||
|
COMMON_DEPEND="udev? ( virtual/udev )"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
privsep? (
|
||||||
|
acct-group/dhcpcd
|
||||||
|
acct-user/dhcpcd
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--dbdir="${EPREFIX}/var/lib/dhcpcd"
|
||||||
|
--libexecdir="${EPREFIX}/lib/dhcpcd"
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
--prefix="${EPREFIX}"
|
||||||
|
--with-hook=ntp.conf
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable embedded)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(use_enable privsep)
|
||||||
|
$(usex elibc_glibc '--with-hook=yp.conf' '')
|
||||||
|
--rundir=$(usex kernel_linux "${EPREFIX}/run/dhcpcd" "${EPREFIX}/var/run/dhcpcd")
|
||||||
|
$(usex privsep '--privsepuser=dhcpcd' '')
|
||||||
|
$(usex udev '' '--without-dev --without-udev')
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
keepdir /var/lib/dhcpcd
|
||||||
|
newinitd "${FILESDIR}"/dhcpcd.initd-r1 dhcpcd
|
||||||
|
systemd_newunit "${FILESDIR}"/dhcpcd.service-r1 dhcpcd.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
local dbdir="${EROOT}"/var/lib/dhcpcd old_files=()
|
||||||
|
|
||||||
|
local old_old_duid="${EROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
||||||
|
local old_duid="${EROOT}"/etc/dhcpcd.duid
|
||||||
|
local new_duid="${dbdir}"/duid
|
||||||
|
if [[ -e "${old_old_duid}" ]] ; then
|
||||||
|
# Upgrade the duid file to the new format if needed
|
||||||
|
if ! grep -q '..:..:..:..:..:..' "${old_old_duid}"; then
|
||||||
|
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_old_duid}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Move the duid to /etc, a more sensible location
|
||||||
|
if [[ ! -e "${old_duid}" ]] ; then
|
||||||
|
cp -p "${old_old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_old_duid}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 moves the files out of /etc
|
||||||
|
if [[ -e "${old_duid}" ]] ; then
|
||||||
|
if [[ ! -e "${new_duid}" ]] ; then
|
||||||
|
cp -p "${old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_duid}" )
|
||||||
|
fi
|
||||||
|
local old_secret="${EROOT}"/etc/dhcpcd.secret
|
||||||
|
local new_secret="${dbdir}"/secret
|
||||||
|
if [[ -e "${old_secret}" ]] ; then
|
||||||
|
if [[ ! -e "${new_secret}" ]] ; then
|
||||||
|
cp -p "${old_secret}" "${new_secret}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_secret}" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# dhcpcd-7 renames some files in /var/lib/dhcpcd
|
||||||
|
local old_rdm="${dbdir}"/dhcpcd-rdm.monotonic
|
||||||
|
local new_rdm="${dbdir}"/rdm_monotonic
|
||||||
|
if [[ -e "${old_rdm}" ]] ; then
|
||||||
|
if [[ ! -e "${new_rdm}" ]] ; then
|
||||||
|
cp -p "${old_rdm}" "${new_rdm}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_rdm}" )
|
||||||
|
fi
|
||||||
|
local lease=
|
||||||
|
for lease in "${dbdir}"/dhcpcd-*.lease*; do
|
||||||
|
[[ -f "${lease}" ]] || continue
|
||||||
|
old_files+=( "${lease}" )
|
||||||
|
local new_lease=$(basename "${lease}" | sed -e "s/dhcpcd-//")
|
||||||
|
[[ -e "${dbdir}/${new_lease}" ]] && continue
|
||||||
|
cp "${lease}" "${dbdir}/${new_lease}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Warn about removing stale files
|
||||||
|
if [[ -n "${old_files[@]}" ]] ; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd-7 has copied dhcpcd.duid and dhcpcd.secret from"
|
||||||
|
elog "${EROOT}/etc to ${dbdir}"
|
||||||
|
elog "and copied leases in ${dbdir} to new files with the dhcpcd-"
|
||||||
|
elog "prefix dropped."
|
||||||
|
elog
|
||||||
|
elog "You should remove these files if you don't plan on reverting"
|
||||||
|
elog "to an older version:"
|
||||||
|
local old_file=
|
||||||
|
for old_file in ${old_files[@]}; do
|
||||||
|
elog " ${old_file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${REPLACING_VERSIONS}" ]; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd has zeroconf support active by default."
|
||||||
|
elog "This means it will always obtain an IP address even if no"
|
||||||
|
elog "DHCP server can be contacted, which will break any existing"
|
||||||
|
elog "failover support you may have configured in your net configuration."
|
||||||
|
elog "This behaviour can be controlled with the noipv4ll configuration"
|
||||||
|
elog "file option or the -L command line switch."
|
||||||
|
elog "See the dhcpcd and dhcpcd.conf man pages for more details."
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Dhcpcd has duid enabled by default, and this may cause issues"
|
||||||
|
elog "with some dhcp servers. For more information, see"
|
||||||
|
elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! has_version net-dns/bind-tools; then
|
||||||
|
elog
|
||||||
|
elog "If you activate the lookup-hostname hook to look up your hostname"
|
||||||
|
elog "using the dns, you need to install net-dns/bind-tools."
|
||||||
|
fi
|
||||||
|
}
|
@ -1,99 +1,137 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
EAPI=7
|
||||||
|
|
||||||
|
inherit systemd toolchain-funcs
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
if [[ ${PV} == "9999" ]]; then
|
||||||
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://roy.marples.name/cgit/dhcpcd.git"
|
||||||
else
|
else
|
||||||
MY_P="${P/_alpha/-alpha}"
|
MY_P="${P/_alpha/-alpha}"
|
||||||
MY_P="${MY_P/_beta/-beta}"
|
MY_P="${MY_P/_beta/-beta}"
|
||||||
MY_P="${MY_P/_rc/-rc}"
|
MY_P="${MY_P/_rc/-rc}"
|
||||||
SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
SRC_URI="https://roy.marples.name/downloads/${PN}/${MY_P}.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
S="${WORKDIR}/${MY_P}"
|
S="${WORKDIR}/${MY_P}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inherit eutils systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
|
||||||
HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
|
HOMEPAGE="https://roy.marples.name/projects/dhcpcd"
|
||||||
LICENSE="BSD-2"
|
LICENSE="BSD-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="elibc_glibc +embedded ipv6 kernel_linux +udev"
|
IUSE="debug elibc_glibc +embedded ipv6 kernel_linux privsep +udev"
|
||||||
|
|
||||||
COMMON_DEPEND="udev? ( virtual/udev )"
|
COMMON_DEPEND="udev? ( virtual/udev )"
|
||||||
DEPEND="${COMMON_DEPEND}"
|
DEPEND="${COMMON_DEPEND}"
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
privsep? (
|
||||||
|
acct-group/dhcpcd
|
||||||
|
acct-user/dhcpcd
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
src_configure() {
|
||||||
DEPEND+=" dev-vcs/fossil"
|
local myeconfargs=(
|
||||||
|
--dbdir="${EPREFIX}/var/lib/dhcpcd"
|
||||||
|
--libexecdir="${EPREFIX}/lib/dhcpcd"
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
--prefix="${EPREFIX}"
|
||||||
|
--with-hook=ntp.conf
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable embedded)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(use_enable privsep)
|
||||||
|
$(usex elibc_glibc '--with-hook=yp.conf' '')
|
||||||
|
--rundir=$(usex kernel_linux "${EPREFIX}/run/dhcpcd" "${EPREFIX}/var/run/dhcpcd")
|
||||||
|
$(usex privsep '--privsepuser=dhcpcd' '')
|
||||||
|
$(usex udev '' '--without-dev --without-udev')
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
src_unpack()
|
src_install() {
|
||||||
{
|
default
|
||||||
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
|
keepdir /var/lib/dhcpcd
|
||||||
local repo=${distdir}/fossil/${PN}.fossil
|
newinitd "${FILESDIR}"/dhcpcd.initd-r1 dhcpcd
|
||||||
|
systemd_newunit "${FILESDIR}"/dhcpcd.service-r1 dhcpcd.service
|
||||||
|
}
|
||||||
|
|
||||||
addwrite "${distdir}"
|
pkg_postinst() {
|
||||||
|
local dbdir="${EROOT}"/var/lib/dhcpcd old_files=()
|
||||||
|
|
||||||
if [[ -e "${repo}" ]]; then
|
local old_old_duid="${EROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
||||||
fossil pull "${FOSSIL_URI}" -R "${repo}" || die
|
local old_duid="${EROOT}"/etc/dhcpcd.duid
|
||||||
else
|
local new_duid="${dbdir}"/duid
|
||||||
mkdir -p "${distdir}/fossil" || die
|
if [[ -e "${old_old_duid}" ]] ; then
|
||||||
fossil clone "${FOSSIL_URI}" "${repo}" || die
|
# Upgrade the duid file to the new format if needed
|
||||||
|
if ! grep -q '..:..:..:..:..:..' "${old_old_duid}"; then
|
||||||
|
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_old_duid}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${S}" || die
|
# Move the duid to /etc, a more sensible location
|
||||||
cd "${S}" || die
|
if [[ ! -e "${old_duid}" ]] ; then
|
||||||
fossil open "${repo}" || die
|
cp -p "${old_old_duid}" "${new_duid}"
|
||||||
}
|
fi
|
||||||
fi
|
old_files+=( "${old_old_duid}" )
|
||||||
|
|
||||||
src_configure()
|
|
||||||
{
|
|
||||||
local dev hooks rundir
|
|
||||||
use udev || dev="--without-dev --without-udev"
|
|
||||||
hooks="--with-hook=ntp.conf"
|
|
||||||
use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
|
|
||||||
use kernel_linux && rundir="--rundir=${EPREFIX}/run"
|
|
||||||
econf \
|
|
||||||
--prefix="${EPREFIX}" \
|
|
||||||
--libexecdir="${EPREFIX}/lib/dhcpcd" \
|
|
||||||
--dbdir="${EPREFIX}/var/lib/dhcpcd" \
|
|
||||||
--localstatedir="${EPREFIX}/var" \
|
|
||||||
${rundir} \
|
|
||||||
$(use_enable embedded) \
|
|
||||||
$(use_enable ipv6) \
|
|
||||||
${dev} \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
${hooks}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
default
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# Upgrade the duid file to the new format if needed
|
|
||||||
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
|
|
||||||
local new_duid="${ROOT}"/etc/dhcpcd.duid
|
|
||||||
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
|
|
||||||
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Move the duid to /etc, a more sensible location
|
# dhcpcd-7 moves the files out of /etc
|
||||||
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
|
if [[ -e "${old_duid}" ]] ; then
|
||||||
cp -p "${old_duid}" "${new_duid}"
|
if [[ ! -e "${new_duid}" ]] ; then
|
||||||
|
cp -p "${old_duid}" "${new_duid}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_duid}" )
|
||||||
|
fi
|
||||||
|
local old_secret="${EROOT}"/etc/dhcpcd.secret
|
||||||
|
local new_secret="${dbdir}"/secret
|
||||||
|
if [[ -e "${old_secret}" ]] ; then
|
||||||
|
if [[ ! -e "${new_secret}" ]] ; then
|
||||||
|
cp -p "${old_secret}" "${new_secret}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_secret}" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REPLACING_VERSIONS" ]; then
|
# dhcpcd-7 renames some files in /var/lib/dhcpcd
|
||||||
|
local old_rdm="${dbdir}"/dhcpcd-rdm.monotonic
|
||||||
|
local new_rdm="${dbdir}"/rdm_monotonic
|
||||||
|
if [[ -e "${old_rdm}" ]] ; then
|
||||||
|
if [[ ! -e "${new_rdm}" ]] ; then
|
||||||
|
cp -p "${old_rdm}" "${new_rdm}"
|
||||||
|
fi
|
||||||
|
old_files+=( "${old_rdm}" )
|
||||||
|
fi
|
||||||
|
local lease=
|
||||||
|
for lease in "${dbdir}"/dhcpcd-*.lease*; do
|
||||||
|
[[ -f "${lease}" ]] || continue
|
||||||
|
old_files+=( "${lease}" )
|
||||||
|
local new_lease=$(basename "${lease}" | sed -e "s/dhcpcd-//")
|
||||||
|
[[ -e "${dbdir}/${new_lease}" ]] && continue
|
||||||
|
cp "${lease}" "${dbdir}/${new_lease}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Warn about removing stale files
|
||||||
|
if [[ -n "${old_files[@]}" ]] ; then
|
||||||
elog
|
elog
|
||||||
elog "dhcpcd has zeroconf support active by default."
|
elog "dhcpcd-7 has copied dhcpcd.duid and dhcpcd.secret from"
|
||||||
|
elog "${EROOT}/etc to ${dbdir}"
|
||||||
|
elog "and copied leases in ${dbdir} to new files with the dhcpcd-"
|
||||||
|
elog "prefix dropped."
|
||||||
|
elog
|
||||||
|
elog "You should remove these files if you don't plan on reverting"
|
||||||
|
elog "to an older version:"
|
||||||
|
local old_file=
|
||||||
|
for old_file in ${old_files[@]}; do
|
||||||
|
elog " ${old_file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${REPLACING_VERSIONS}" ]; then
|
||||||
|
elog
|
||||||
|
elog "dhcpcd has zeroconf support active by default."
|
||||||
elog "This means it will always obtain an IP address even if no"
|
elog "This means it will always obtain an IP address even if no"
|
||||||
elog "DHCP server can be contacted, which will break any existing"
|
elog "DHCP server can be contacted, which will break any existing"
|
||||||
elog "failover support you may have configured in your net configuration."
|
elog "failover support you may have configured in your net configuration."
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
Index: configure
|
|
||||||
==================================================================
|
|
||||||
--- a/configure
|
|
||||||
+++ b/configure
|
|
||||||
@@ -360,19 +360,10 @@
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo "CPPFLAGS+= -DNDEBUG" >>$CONFIG_MK
|
|
||||||
fi
|
|
||||||
|
|
||||||
-if [ -z "$EMBEDDED" -o "$EMBEDDED" = yes ]; then
|
|
||||||
- echo "dhcpcd-definitions.conf will be embedded in dhcpcd itself"
|
|
||||||
- echo "DHCPCD_SRCS+= dhcpcd-embedded.c" >>$CONFIG_MK
|
|
||||||
-else
|
|
||||||
- echo "dhcpcd-definitions.conf will be installed to $LIBEXECDIR"
|
|
||||||
- echo "CFLAGS+= -DEMBEDDED_CONFIG=\\\"$LIBEXECDIR/dhcpcd-definitions.conf\\\"" >>$CONFIG_MK
|
|
||||||
- echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK
|
|
||||||
-fi
|
|
||||||
-
|
|
||||||
if [ -n "$FORK" -a "$FORK" != yes -a "$FORK" != true ]; then
|
|
||||||
echo "There is no fork"
|
|
||||||
echo "CPPFLAGS+= -DTHERE_IS_NO_FORK" >>$CONFIG_MK
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -460,10 +451,19 @@
|
|
||||||
echo "$CC does not create executables" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
[ "$CC" != cc ] && echo "CC= $CC" >>$CONFIG_MK
|
|
||||||
$CC --version | $SED -e '1!d'
|
|
||||||
+
|
|
||||||
+if [ -z "$EMBEDDED" -o "$EMBEDDED" = yes ]; then
|
|
||||||
+ echo "dhcpcd-definitions.conf will be embedded in dhcpcd itself"
|
|
||||||
+ echo "DHCPCD_SRCS+= dhcpcd-embedded.c" >>$CONFIG_MK
|
|
||||||
+else
|
|
||||||
+ echo "dhcpcd-definitions.conf will be installed to $LIBEXECDIR"
|
|
||||||
+ echo "CPPFLAGS+= -DEMBEDDED_CONFIG=\\\"$LIBEXECDIR/dhcpcd-definitions.conf\\\"" >>$CONFIG_MK
|
|
||||||
+ echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK
|
|
||||||
+fi
|
|
||||||
|
|
||||||
if [ "$OS" = linux ]; then
|
|
||||||
printf "Testing for nl80211 ... "
|
|
||||||
cat <<EOF >_nl80211.c
|
|
||||||
#include <linux/nl80211.h>
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
# Copyright 2007-2008 Roy Marples <roy@marples.name>
|
# Copyright 2007-2020 Gentoo Authors
|
||||||
# All rights reserved. Released under the 2-clause BSD license.
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
command=/sbin/dhcpcd
|
command=/sbin/dhcpcd
|
||||||
pidfile=/var/run/dhcpcd.pid
|
pidfile=/var/run/dhcpcd.pid
|
||||||
|
17
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/files/dhcpcd.initd-r1
vendored
Normal file
17
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/files/dhcpcd.initd-r1
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 2007-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
command=${RC_PREFIX}/sbin/dhcpcd
|
||||||
|
pidfile=${RC_PREFIX}/var/run/dhcpcd/pid
|
||||||
|
command_args=-q
|
||||||
|
name="DHCP Client Daemon"
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
provide net
|
||||||
|
need localmount
|
||||||
|
use logger network
|
||||||
|
after bootmisc modules
|
||||||
|
before dns
|
||||||
|
}
|
@ -7,6 +7,9 @@ Before=network.target network-online.target
|
|||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/sbin/dhcpcd -q
|
ExecStart=/sbin/dhcpcd -q
|
||||||
PIDFile=/run/dhcpcd.pid
|
PIDFile=/run/dhcpcd.pid
|
||||||
|
# Avoid duplicate output on stderr/syslog
|
||||||
|
StandardOutput=null
|
||||||
|
StandardError=null
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
15
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/files/dhcpcd.service-r1
vendored
Normal file
15
sdk_container/src/third_party/portage-stable/net-misc/dhcpcd/files/dhcpcd.service-r1
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Lightweight DHCP client daemon
|
||||||
|
Wants=network.target
|
||||||
|
Before=network.target network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/sbin/dhcpcd -q
|
||||||
|
PIDFile=/run/dhcpcd/pid
|
||||||
|
# Avoid duplicate output on stderr/syslog
|
||||||
|
StandardOutput=null
|
||||||
|
StandardError=null
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -1,20 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<maintainer type="person">
|
||||||
<email>williamh@gentoo.org</email>
|
<email>williamh@gentoo.org</email>
|
||||||
<name>William Hubbs</name>
|
<name>William Hubbs</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>base-system@gentoo.org</email>
|
<email>base-system@gentoo.org</email>
|
||||||
<name>Gentoo Base System</name>
|
<name>Gentoo Base System</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="cpe">cpe:/a:roy_marples:dhcpcd</remote-id>
|
<remote-id type="cpe">cpe:/a:roy_marples:dhcpcd</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
<use>
|
<use>
|
||||||
<flag name="embedded">
|
<flag name="embedded">
|
||||||
Embed the definitions of dhcp options in the dhcpcd executable
|
Embed the definitions of dhcp options in the dhcpcd executable
|
||||||
</flag>
|
</flag>
|
||||||
</use>
|
<flag name="privsep">
|
||||||
|
Enable support for privilege separation
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user