aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2018-03-25 10:38:55 +0100
committerStuart Shelton <stuart@shelton.me>2018-03-25 10:38:55 +0100
commitd918d061a97dc871123c84d6d0bd44e8e1dcb3f6 (patch)
tree278022c4bc11145ea96430d39f10c5983cdd35d4 /net-misc
parentAdd net-analyzer/wireshark-2.4.5 (diff)
downloadsrcshelton-d918d061a97dc871123c84d6d0bd44e8e1dcb3f6.tar.gz
srcshelton-d918d061a97dc871123c84d6d0bd44e8e1dcb3f6.tar.bz2
srcshelton-d918d061a97dc871123c84d6d0bd44e8e1dcb3f6.zip
Add net-misc/dhcpcd-7.0.1
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/dhcpcd/Manifest2
-rw-r--r--net-misc/dhcpcd/dhcpcd-7.0.1.ebuild146
2 files changed, 148 insertions, 0 deletions
diff --git a/net-misc/dhcpcd/Manifest b/net-misc/dhcpcd/Manifest
index fc3fcf55..5eba8412 100644
--- a/net-misc/dhcpcd/Manifest
+++ b/net-misc/dhcpcd/Manifest
@@ -16,6 +16,7 @@ DIST dhcpcd-6.4.3.tar.bz2 149927 BLAKE2B 77601642cf78d2f414af315b7446421a46cbcf2
DIST dhcpcd-6.4.7.tar.bz2 155396 BLAKE2B 838cab3aa8a89cc6e9652cde51b7bb10f9f4775aba6bdc8998c19030b2688689a1caf125760321ac139f2667e9173bad9e481007ea73f5331324106009d1971e SHA512 cccf5ef0e025f56f87f530ddcf518f550bf3ffa662bc7514f4cedf92a6f01bdfd7d87d4e41cad3c41d1c99a307eda2e8663344ca403fc8c23043ef1fc0f0298a
DIST dhcpcd-6.6.7.tar.bz2 158093 BLAKE2B c48b07c396f297c00c76991a61dbe0d90ceb63b3b53e7dbcb70b1ebaf426f97bf53200fc7e01080d3a31f8bdc40581216fdcbf0463eb1982e2b163f33f1edb4b SHA512 793e937ace790669f1e55d1974f11cfd4f4300f5ede2b31b8ac880ab316f47317a8256f40f87228d415653090873158a67a8ecd7eeefd9791475f1dcfadd01b6
DIST dhcpcd-6.9.0.tar.bz2 176736 BLAKE2B 00c237472eb5fdfb0994ff01208541d61fe534b4545f21c9229cab718baca3cdc59b0295c76fdbce2071f82812646ddf4570b3b7993f169ec69093e7129340fe SHA512 bb02005ff54ad722961208be69f48c61fb72cf56c9ca89348f3e0973e96317b06b4eaf48412ec5e763c9e20bad6f38e06d520048f3412d3bf46716f5dfb671a6
+DIST dhcpcd-7.0.1.tar.xz 207908 BLAKE2B 1a9350a0c4a9eb1eb6f5a7be78beb4a5fecd802ee90a4649ab17db69eabc75a913b9f3db97ea6260bcad3516b9613c20f74d9d68a7ac98b508458e5cd30cf15f SHA512 d2a9b053aa663dd1ed38a10a73ee3377a3a076c9638bdda9331a4c161c2ba87f5f68f366ac8e1f1015404f617b74261a03a97ac7cdfd642b4a41b87b54984c34
EBUILD dhcpcd-6.10.0.ebuild 3306 BLAKE2B f6723a05bed5efd7e7f87053b4d8ed52ab4e3658d9ace7986cf02b19064b346b1b52f57868d6eca3daa2526d570388c75b9fad3e1c0980719bd35a1c25e753c6 SHA512 e8ea7d0687ca16918b75c982e8f8ea23e192c18ac83a126c3a009f3b3153e4c6c6546421d5a7efa7f04e37c8c9e08ced37218a915ca206cd8ca663d2526cb6ad
EBUILD dhcpcd-6.10.1.ebuild 3309 BLAKE2B a2c7b6dd23ce963276e2108fddefd4f50ea083c4f3df74da937b50dda87f1cc64eec1119a246eca5c64034a4b8cec35e8f100d56db512eb74df2cc451bf0a986 SHA512 538db6f6d9ab2b7208fc522524b2be4e30ef7c37505b79757235e72d648e49982b7de18975486561fb7d1f4a14edbc73cebbbb2a32afc1f0e14871e5f5bb47f8
EBUILD dhcpcd-6.11.1-r1.ebuild 3326 BLAKE2B 4719ca373a4acdb26ce15cc5a32a56713a58fbc03b015f9c13e494e4c9759bb734b74f5509aaaf9bca793a51713a9bcace925a2f0718ec868aae8ee172f05547 SHA512 5b622dd8200006641c26ef2eb6f6667d805a683575296a2e9fdc360a2f7c484a4e96b679347f31a7129ae1ddf57bd4a96df1355d84782f4c131d2596730d29ae
@@ -27,4 +28,5 @@ EBUILD dhcpcd-6.4.3.ebuild 3380 BLAKE2B 4610cc1c7be8ab6443c3b386b76666cacd35184b
EBUILD dhcpcd-6.4.7.ebuild 3337 BLAKE2B 6bcd778fab643354622c21de8ed06dd279c1cd7f9ba0900ae6a4be42ae4ba30279205728d05ff6387bc75db78a7d93bb611b557c47644a525e6210c70b767fff SHA512 ba68289915878dabf213792383626e62a98a525cf5600acca1c0e1da570bf06c68cb23a32186dd8513742269c15bca5ec5078669b8af0e5d7a5966b05f092053
EBUILD dhcpcd-6.6.7.ebuild 3336 BLAKE2B f790d9957aaa01329973203b55dfae6e2e42aff94a69c13fe49fa644de441915b55c67575959dcafccfc770155cd495c0ab57893afe0ef0781522dac3ca0ac63 SHA512 6f8146c144802335a835796d42f47d03a049b70fae9d74a96f17fe4a5fa2bbada166de15476542a36075c1cb2249d27b1b67bbd263c76efd40c70c6287eea010
EBUILD dhcpcd-6.9.0.ebuild 3310 BLAKE2B 359a8501e0222aaeece0e90a6dc0571f33b4c0b5ff8cbe9e822abc7530c007bbc7e198c110e6193835b99550372a771b244fe81ac603d05a26f8dad8a977f700 SHA512 fd889859e4b1662bf86dfae1b3cd9479305f7c973b4efcb025c372cdab265584786f98d000207ce44f852c0d20a0a6d1382a233cb1f46e2d1ad74c1876f12bcb
+EBUILD dhcpcd-7.0.1.ebuild 4379 BLAKE2B e06ae76c9cbc533769d5fed7e2ea9b2fb3f45619dfcf6a72ec57dade3e7231d0b7422b497b26205b4338c6d3762ce6c3dab746207668aaad61cab8c7c47812ca SHA512 f0240dc27d85719672b5db24ed0d821f9af5117610d91fea53bb4485319705377b0c51583c9d51e58312e7daf12ed3c416fc2d35eb01d980699faca13ae19f51
EBUILD dhcpcd-9999.ebuild 4382 BLAKE2B 644b4ea89fe5b19772711542c7f5921eb673743ddf62e9030e3cea6eac511bd9f85a70da74ccb05141638f47a701da4dc1210710d1814c6542a5c75921612e85 SHA512 d8b01d69d8ed402d7ca27783f1954ca8707da9a0c3f4ea69e72a13278be7b998a0ff3298f265108795a93a52c6d102de47515df76699db5f74b85729f2c3b52f
diff --git a/net-misc/dhcpcd/dhcpcd-7.0.1.ebuild b/net-misc/dhcpcd/dhcpcd-7.0.1.ebuild
new file mode 100644
index 00000000..f752a26d
--- /dev/null
+++ b/net-misc/dhcpcd/dhcpcd-7.0.1.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://roy.marples.name/dhcpcd"
+ inherit git-r3
+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 ~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 systemd +udev"
+
+COMMON_DEPEND="udev? ( virtual/udev )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+src_configure()
+{
+ local dev hooks
+ use udev || dev="--without-dev --without-udev"
+ hooks="--with-hook=ntp.conf"
+ use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
+ econf \
+ --prefix="${EPREFIX}" \
+ --libexecdir="${EPREFIX}/lib/dhcpcd" \
+ --dbdir="${EPREFIX}/var/lib/dhcpcd" \
+ --localstatedir="${EPREFIX}/var" \
+ $(use_enable embedded) \
+ $(use_enable ipv6) \
+ ${dev} \
+ CC="$(tc-getCC)" \
+ ${hooks}
+}
+
+src_install()
+{
+ default
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ use systemd && 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_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_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_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_files} ${old_rdm}"
+ fi
+ local lease=
+ for lease in "${dbdir}"/dhcpcd-*.lease*; do
+ [ -f "$lease" ] || continue
+ old_files="${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
+}