mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
commit
ff46bf1b9f
@ -1,10 +1,3 @@
|
||||
AUX CVE-2017-5601.patch 979 SHA256 e6177bd052090a2111d62c7c68157df71cebf4ad359aad02ce89d5585c9e64a4 SHA512 a2c8507698166b3d4bbd197323a15cb82d53a647f2d0c74e17e9b229e4f1fd44c3f0468b674c0dfb693ddad7fc7c5cc4f00fbce1e607d0c02fb90d59cc9e09a0 WHIRLPOOL 032ecd55d3464bd39751f906d2ca2b3dd3d95a8dad8020ab474971b7e013399faa9089c3ca728627e309b96b51e6839d35e558ebb05425afaeecd043bb6ebcd4
|
||||
DIST libarchive-3.2.2.tar.gz 5458241 SHA256 691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f SHA512 a67920c37d49cf9478032d77fc4fa21827cebb96e9b83d9ecb8466328834052e4ab3d3a9bc4e2edf405d6cb14ffd648c9fa100b578257f6e5842c99bbea558a7 WHIRLPOOL 8fdc2e9245db27a7da3cfdeecb6283b170a25fc6ea8201fe5a414b4c1b523ae6b05745246f867f24062d91b7a040780b687b1a44a95503c4e252f9836218ffef
|
||||
DIST libarchive-3.3.0.tar.gz 6277298 SHA256 f9c80dece299c04dd5f601b523f6518ad90fef1575db9b278e81616cc860e20c SHA512 06c5b6469cee760719b2e3e2909d0098639dc4e38501a74fdab5e2abc695676a6e5e11aaa0a033e9badef45fdc4abd6d943c3f4b07dce19cc8b34b039c528529 WHIRLPOOL 086926f3bce77c86385d514730b69d4e8580a55b3c97a134c50c478ecccffebfc6f39d2d156b2739bb2401ad5a8342e1fb0f3e781c0f4bfcee71a9e710bc0abe
|
||||
DIST libarchive-3.3.1.tar.gz 6219943 SHA256 29ca5bd1624ca5a007aa57e16080262ab4379dbf8797f5c52f7ea74a3b0424e7 SHA512 90702b393b6f0943f42438e277b257af45eee4fa82420431f6a4f5f48bb846f2a72c8ff084dc3ee9c87bdf8b57f4d8dddf7814870fe2604fe86c55d8d744c164 WHIRLPOOL 07a8a5f700c62d61e82d6bb123b5e720041b1ea296c17f189d4494ef4dab58b2c4d428c12fe8221602c7ec5d8eca859f8c288fc9b9a51d8a511fb01051dc17ca
|
||||
EBUILD libarchive-3.2.2-r1.ebuild 3429 SHA256 bfb49ef2389a9d6f7dcfb0b889b01041b088a3c9013ba3fccd6aa08e7439580b SHA512 0b3e1059ff5b1118934591f2a8c9c00c36c4104c72eddc9d831a66e6ce0254db04513c05e3856e53b27e5ba422b6e5ded6238da56f9d9c23f66dfa7f4907feef WHIRLPOOL f1ca36937cf1d53ad000a034b49a95b81c09901ae441a13bf2bf31a76f1a16c0b14a69ed400603aef2cd60f3dbc65d242f0c1df2f27c4dacb225845046510107
|
||||
EBUILD libarchive-3.3.0.ebuild 3242 SHA256 5fa6472cde87a5e5722a03f12c663358c67293297f7ca49dd74d7a174be2def6 SHA512 1b8209b5f9768b468193fb7b630c27c562ce8ba8aeae587cc3f0ad7124ba4ac2165d27d2a5ba39b15ed013538f475ef57a4b4f64ec4ca9cd5f436252ee39052a WHIRLPOOL e8f599f81ddfa7e355cb7039f7fe70521ce4c15c9d4c31b9ecf2552e1cd89eae21d8636bd0a76d7b66e22620ccb854ffc543e30d8ac4a7530b65c1c13ae6a4e9
|
||||
EBUILD libarchive-3.3.1.ebuild 3254 SHA256 bb055f9510f453a9292ea315cd5660cb2db941113b684aeabd997f32fb165316 SHA512 d3fadce4c0c0dea6aff314363b7f8fd2aba9bb4126922b79976e765f05ada25b76c731caf96d67e9ef0a03caffe7634b89a3db65e415d2791b4ea1bffdc25834 WHIRLPOOL 9e7a32542ac9674dc83fb5a0a7935e3faa5958c6fe6e895071b749b82e7e255eec4189cae752e0be2929cbb6784c2584332899dea2b455d3b6aa273b7ba0eb95
|
||||
MISC ChangeLog 11118 SHA256 d4ade993917b5c234392da6ce565f0a2a74e60ec197c1ed09cfa82f58cc3fedd SHA512 2b972dbdf28111b28d188aabbc5c5362892ebd8882b3e2678efd603a7f0b438d2873bb98cdabf72b8089b4c4ec1f1bcef31af1b928ce93f361cfc5f16d6cc466 WHIRLPOOL 6d1efe322aab7c029ef0db51a2c6105f1e93c582465240da9471dca97dc2fa50149eb1acc84c8de80bebc4f2f81bfb76089dd9ea5ef6237ca162eac86e044cc6
|
||||
MISC ChangeLog-2015 35658 SHA256 5d6739081fe3df492178d0522b91f02761d0956ffe6cff8ea716b93519bd0310 SHA512 28edd8ebd92704e8e6388c261b82cbac5ffc33185c8b8666b44cc06b75186036c7e04cde6c7637411f717590aa41350dd588932c1474ceda1c5b9ad23828b02d WHIRLPOOL c7d02fd3c18ecff0ecd32d7865080c096e9469e07b3810c74c5d8894044e8df4088cc8ef8d898d3452cb86d760f59715bb41f58286b8cd4292fb2d8699f8202f
|
||||
MISC metadata.xml 1382 SHA256 7e969629dbfb9592985ff032f0c1beabccfc026c34a61a4541dc4bd234603c10 SHA512 2fc0f4507ed02a226dcfcd174026c55ddcf3d22b2ca59c5a2bc5b7e9e9f2943089196267aab7c4292d1782d954123571656ec15c5d24fe19d5b01557c18013b8 WHIRLPOOL a11b206a996385d7c538736655f347019ef4410b12701cb00b77292cd8d8e03a8db81949a3e4c1ae47616044b58a98a593bc0832a4f6ff072a629ca11de7ee8b
|
||||
DIST libarchive-3.3.2.tar.gz 6236562 SHA256 ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa0ce SHA512 1e538cd7d492f54b11c16c56f12c1632ba14302a3737ec0db786272aec0c8020f1e27616a7654d57e26737e5ed9bfc9a62f1fdda61a95c39eb726aa7c2f673e4 WHIRLPOOL 6afc8dfca6474933383619e15c750b08ecd1553f3ff244c60cd43502b3d177be9633a2d2c80d9ea7846af21ae7dc59f32fd79cface4258a1b7b00e60e3a5f7a9
|
||||
|
@ -0,0 +1,22 @@
|
||||
--- a/libarchive/archive_openssl_evp_private.h
|
||||
+++ b/libarchive/archive_openssl_evp_private.h
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#include <stdlib.h> /* malloc, free */
|
||||
#include <string.h> /* memset */
|
||||
static inline EVP_MD_CTX *EVP_MD_CTX_new(void)
|
||||
--- a/libarchive/archive_openssl_hmac_private.h
|
||||
+++ b/libarchive/archive_openssl_hmac_private.h
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <openssl/hmac.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#include <stdlib.h> /* malloc, free */
|
||||
#include <string.h> /* memset */
|
||||
static inline HMAC_CTX *HMAC_CTX_new(void)
|
@ -10,7 +10,7 @@ SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib"
|
||||
|
||||
RDEPEND="
|
||||
@ -35,6 +35,10 @@ DEPEND="${RDEPEND}
|
||||
e2fsprogs? ( sys-fs/e2fsprogs )
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.3.1-libressl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize # is required for Solaris sol2_ld linker fix
|
||||
|
@ -10,7 +10,7 @@ SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib"
|
||||
|
||||
RDEPEND="
|
||||
@ -58,15 +58,19 @@ multilib_src_configure() {
|
||||
$(use_with nettle)
|
||||
$(use_with zlib)
|
||||
)
|
||||
if multilib_is_native_abi ; then myconf+=(
|
||||
--enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
|
||||
); else myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
); fi
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
@ -98,10 +102,12 @@ multilib_src_install() {
|
||||
done
|
||||
fi
|
||||
else
|
||||
emake DESTDIR="${D}" \
|
||||
install-includeHEADERS \
|
||||
install-libLTLIBRARIES \
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
98
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-17.xml
vendored
Normal file
98
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-17.xml
vendored
Normal file
@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201710-17">
|
||||
<title>Xen: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in Xen, the worst of which
|
||||
may allow local attackers to escalate privileges.
|
||||
</synopsis>
|
||||
<product type="ebuild">xen</product>
|
||||
<announced>2017-10-18</announced>
|
||||
<revised>2017-10-18: 1</revised>
|
||||
<bug>624112</bug>
|
||||
<bug>624116</bug>
|
||||
<bug>624118</bug>
|
||||
<bug>624124</bug>
|
||||
<bug>624128</bug>
|
||||
<access>local</access>
|
||||
<affected>
|
||||
<package name="app-emulation/xen" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.7.3</unaffected>
|
||||
<vulnerable range="lt">4.7.3</vulnerable>
|
||||
</package>
|
||||
<package name="app-emulation/xen-pvgrub" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.7.3</unaffected>
|
||||
<vulnerable range="lt">4.7.3</vulnerable>
|
||||
</package>
|
||||
<package name="app-emulation/xen-tools" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.7.3</unaffected>
|
||||
<vulnerable range="lt">4.7.3</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>Xen is a bare-metal hypervisor.</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in Xen. Please review the
|
||||
referenced CVE identifiers for details.
|
||||
</p>
|
||||
</description>
|
||||
<impact type="high">
|
||||
<p>A local attacker could escalate privileges, cause a Denial of Service
|
||||
condition, obtain sensitive information, or have other unspecified
|
||||
impacts.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All Xen users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=app-emulation/xen-4.7.3"
|
||||
</code>
|
||||
|
||||
<p>All Xen pvgrub users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=app-emulation/xen-pvgrub-4.7.3"
|
||||
</code>
|
||||
|
||||
<p>All Xen Tools users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=app-emulation/xen-tools-4.7.3"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10912">
|
||||
CVE-2017-10912
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10913">
|
||||
CVE-2017-10913
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10914">
|
||||
CVE-2017-10914
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10915">
|
||||
CVE-2017-10915
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10918">
|
||||
CVE-2017-10918
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10920">
|
||||
CVE-2017-10920
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10921">
|
||||
CVE-2017-10921
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10922">
|
||||
CVE-2017-10922
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2017-10-15T20:12:25Z">b-man</metadata>
|
||||
<metadata tag="submitter" timestamp="2017-10-18T00:42:15Z">chrisadr</metadata>
|
||||
</glsa>
|
69
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-18.xml
vendored
Normal file
69
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-18.xml
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201710-18">
|
||||
<title>Ruby: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in Ruby, the worst of
|
||||
which could lead to the remote execution of arbitrary code.
|
||||
</synopsis>
|
||||
<product type="ebuild">ruby</product>
|
||||
<announced>2017-10-18</announced>
|
||||
<revised>2017-10-18: 1</revised>
|
||||
<bug>605536</bug>
|
||||
<bug>629484</bug>
|
||||
<bug>631034</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="dev-lang/ruby" auto="yes" arch="*">
|
||||
<unaffected range="ge">2.2.8</unaffected>
|
||||
<vulnerable range="lt">2.2.8</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>Ruby is an interpreted object-oriented programming language. The
|
||||
elaborate standard library includes an HTTP server (“WEBRick”) and a
|
||||
class for XML parsing (“REXML”).
|
||||
</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in Ruby. Please review the
|
||||
referenced CVE identifiers for details.
|
||||
</p>
|
||||
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker could execute arbitrary code, cause a Denial of
|
||||
Service condition, or obtain sensitive information.
|
||||
</p>
|
||||
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All Ruby users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.2.8"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-2337">
|
||||
CVE-2016-2337
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-0898">
|
||||
CVE-2017-0898
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-10784">
|
||||
CVE-2017-10784
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-14033">
|
||||
CVE-2017-14033
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-14064">
|
||||
CVE-2017-14064
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2017-10-17T23:47:57Z">b-man</metadata>
|
||||
<metadata tag="submitter" timestamp="2017-10-18T00:53:55Z">chrisadr</metadata>
|
||||
</glsa>
|
58
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-19.xml
vendored
Normal file
58
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-19.xml
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201710-19">
|
||||
<title>libarchive: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in libarchive, the worst
|
||||
of which could lead to a Denial of Service condition.
|
||||
</synopsis>
|
||||
<product type="ebuild">libarchive</product>
|
||||
<announced>2017-10-18</announced>
|
||||
<revised>2017-10-18: 1</revised>
|
||||
<bug>618026</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="app-arch/libarchive" auto="yes" arch="*">
|
||||
<unaffected range="ge">3.3.0</unaffected>
|
||||
<vulnerable range="lt">3.3.0</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>libarchive is a library for manipulating different streaming archive
|
||||
formats, including certain tar variants, several cpio formats, and both
|
||||
BSD and GNU ar variants.
|
||||
</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in libarchive. Please
|
||||
review the referenced CVE identifiers for details.
|
||||
</p>
|
||||
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker, via a specially crafted file, could possibly cause a
|
||||
Denial of Service condition.
|
||||
</p>
|
||||
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All libarchive users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=app-arch/libarchive-3.3.0"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-10349">
|
||||
CVE-2016-10349
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-10350">
|
||||
CVE-2016-10350
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2017-10-15T13:35:50Z">b-man</metadata>
|
||||
<metadata tag="submitter" timestamp="2017-10-18T00:58:52Z">chrisadr</metadata>
|
||||
</glsa>
|
60
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-20.xml
vendored
Normal file
60
sdk_container/src/third_party/portage-stable/metadata/glsa/glsa-201710-20.xml
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201710-20">
|
||||
<title>Nagios: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in Nagios, the worst of
|
||||
which could lead to the remote execution of arbitrary code.
|
||||
</synopsis>
|
||||
<product type="ebuild">nagios</product>
|
||||
<announced>2017-10-18</announced>
|
||||
<revised>2017-10-18: 1</revised>
|
||||
<bug>602216</bug>
|
||||
<bug>628086</bug>
|
||||
<access>local, remote</access>
|
||||
<affected>
|
||||
<package name="net-analyzer/nagios-core" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.3.3</unaffected>
|
||||
<vulnerable range="lt">4.3.3</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>Nagios is an open source host, service and network monitoring program.</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in Nagios. Please review
|
||||
the referenced CVE identifiers for details.
|
||||
</p>
|
||||
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker could possibly escalate privileges to root, thus
|
||||
allowing the execution of arbitrary code, by leveraging CVE-2016-9565.
|
||||
Additionally, a local attacker could cause a Denial of Service condition
|
||||
against arbitrary processes due to the improper dropping of privileges.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All Nagios users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=net-analyzer/nagios-core-4.3.3"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-9565">
|
||||
CVE-2016-9565
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-9566">
|
||||
CVE-2016-9566
|
||||
</uri>
|
||||
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-12847">
|
||||
CVE-2017-12847
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2017-10-02T06:35:45Z">BlueKnight</metadata>
|
||||
<metadata tag="submitter" timestamp="2017-10-18T01:17:41Z">chrisadr</metadata>
|
||||
</glsa>
|
@ -1 +1 @@
|
||||
Sun, 15 Oct 2017 21:09:21 +0000
|
||||
Wed, 18 Oct 2017 18:39:05 +0000
|
||||
|
@ -1 +1 @@
|
||||
f5081800804d6a1f4598cbc03e5a8f2664f6a070 1508098974 2017-10-15T20:22:54+00:00
|
||||
8c9b32528b910251b1fe3992838c97ba223db5d7 1508289507 2017-10-18T01:18:27+00:00
|
||||
|
@ -4,10 +4,10 @@ DESCRIPTION=BSD tar command
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.libarchive.org/
|
||||
IUSE=acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
KEYWORDS=alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=BSD BSD-2 BSD-4 public-domain
|
||||
RDEPEND=acl? ( virtual/acl[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) bzip2? ( app-arch/bzip2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) expat? ( dev-libs/expat[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !expat? ( dev-libs/libxml2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) iconv? ( virtual/libiconv[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) kernel_linux? ( xattr? ( sys-apps/attr[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) ) !libressl? ( dev-libs/openssl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libressl? ( dev-libs/libressl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lz4? ( >=app-arch/lz4-0_p131:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lzma? ( app-arch/xz-utils[threads=,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lzo? ( >=dev-libs/lzo-2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) nettle? ( dev-libs/nettle:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||
SLOT=0/13
|
||||
SRC_URI=http://www.libarchive.org/downloads/libarchive-3.3.1.tar.gz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea libtool e32ea84bf82cf8987965b574672dba93 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
||||
_md5_=8f8a0ab1acdc0ef9977ecf93caf5cca8
|
||||
_md5_=a031efc3dcd3dc7f99cd5a2f54306343
|
||||
|
@ -4,10 +4,10 @@ DESCRIPTION=BSD tar command
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.libarchive.org/
|
||||
IUSE=acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=BSD BSD-2 BSD-4 public-domain
|
||||
RDEPEND=acl? ( virtual/acl[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) bzip2? ( app-arch/bzip2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) expat? ( dev-libs/expat[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !expat? ( dev-libs/libxml2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) iconv? ( virtual/libiconv[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) kernel_linux? ( xattr? ( sys-apps/attr[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) ) !libressl? ( dev-libs/openssl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libressl? ( dev-libs/libressl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lz4? ( >=app-arch/lz4-0_p131:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lzma? ( app-arch/xz-utils[threads=,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) lzo? ( >=dev-libs/lzo-2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) nettle? ( dev-libs/nettle:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||
SLOT=0/13
|
||||
SRC_URI=http://www.libarchive.org/downloads/libarchive-3.3.0.tar.gz
|
||||
SRC_URI=http://www.libarchive.org/downloads/libarchive-3.3.2.tar.gz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea libtool e32ea84bf82cf8987965b574672dba93 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 toolchain-funcs 8fec6b1eb195836560e70b66d98fb163
|
||||
_md5_=5bf81c4172fc2e347f3cb5d1928acaba
|
||||
_md5_=f4260943b83e6ee9d1e24415c810c7b3
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.76
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.76
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst preinst prepare pretend setup
|
||||
DEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext net-dns/libidn ) app-arch/xz-utils dnssec? ( dev-libs/nettle[gmp] static? ( dev-libs/nettle[static-libs(+)] ) ) virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=Small forwarding DNS server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||
IUSE=auth-dns conntrack dbus +dhcp dhcp-tools dnssec idn +inotify ipv6 lua nls script selinux static tftp linguas_de linguas_es linguas_fi linguas_fr linguas_id linguas_it linguas_no linguas_pl linguas_pt_BR linguas_ro
|
||||
KEYWORDS=alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=|| ( GPL-2 GPL-3 )
|
||||
RDEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext net-dns/libidn ) dnssec? ( !static? ( dev-libs/nettle[gmp] ) ) selinux? ( sec-policy/selinux-dnsmasq )
|
||||
REQUIRED_USE=dhcp-tools? ( dhcp ) lua? ( script )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.76.tar.xz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd e12dd5e3cf1f359292cea2a70abeba5f toolchain-funcs 8fec6b1eb195836560e70b66d98fb163 user e4b567c44272a719fabf53f0f885d3f7
|
||||
_md5_=43594ee5c6aa8c0fb3cb8d9667de08f0
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.76-r1
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.76-r1
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst preinst prepare pretend setup
|
||||
DEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext net-dns/libidn ) app-arch/xz-utils dnssec? ( dev-libs/nettle[gmp] static? ( dev-libs/nettle[static-libs(+)] ) ) virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=Small forwarding DNS server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||
IUSE=auth-dns conntrack dbus +dhcp dhcp-tools dnssec idn +inotify ipv6 lua nls script selinux static tftp linguas_de linguas_es linguas_fi linguas_fr linguas_id linguas_it linguas_no linguas_pl linguas_pt_BR linguas_ro
|
||||
KEYWORDS=~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=|| ( GPL-2 GPL-3 )
|
||||
RDEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext net-dns/libidn ) dnssec? ( !static? ( dev-libs/nettle[gmp] ) ) selinux? ( sec-policy/selinux-dnsmasq )
|
||||
REQUIRED_USE=dhcp-tools? ( dhcp ) lua? ( script )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.76.tar.xz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd e12dd5e3cf1f359292cea2a70abeba5f toolchain-funcs 8fec6b1eb195836560e70b66d98fb163 user e4b567c44272a719fabf53f0f885d3f7
|
||||
_md5_=27eb04bdaff7dbed90cb90f1f952b8a0
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.77
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.77
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst preinst prepare pretend setup
|
||||
DEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) app-arch/xz-utils dnssec? ( dev-libs/nettle[gmp] static? ( dev-libs/nettle[static-libs(+)] ) ) virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=Small forwarding DNS server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||
IUSE=auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify ipv6 lua nls script selinux static tftp linguas_de linguas_es linguas_fi linguas_fr linguas_id linguas_it linguas_no linguas_pl linguas_pt_BR linguas_ro
|
||||
KEYWORDS=~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=|| ( GPL-2 GPL-3 )
|
||||
RDEPEND=dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) dnssec? ( !static? ( dev-libs/nettle[gmp] ) ) selinux? ( sec-policy/selinux-dnsmasq )
|
||||
REQUIRED_USE=dhcp-tools? ( dhcp ) lua? ( script ) libidn2? ( !idn )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.77.tar.xz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd e12dd5e3cf1f359292cea2a70abeba5f toolchain-funcs 8fec6b1eb195836560e70b66d98fb163 user e4b567c44272a719fabf53f0f885d3f7
|
||||
_md5_=478b081c6c01c851fcc404f44b7bd4aa
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.77-r1
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.77-r1
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst preinst prepare pretend setup
|
||||
DEPEND=dbus? ( sys-apps/dbus ) idn? ( !libidn2? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) app-arch/xz-utils dnssec? ( dev-libs/nettle[gmp] static? ( dev-libs/nettle[static-libs(+)] ) ) virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=Small forwarding DNS server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||
IUSE=auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify ipv6 lua nls script selinux static tftp linguas_de linguas_es linguas_fi linguas_fr linguas_id linguas_it linguas_no linguas_pl linguas_pt_BR linguas_ro
|
||||
KEYWORDS=~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=|| ( GPL-2 GPL-3 )
|
||||
RDEPEND=dbus? ( sys-apps/dbus ) idn? ( !libidn2? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) dnssec? ( !static? ( dev-libs/nettle[gmp] ) ) selinux? ( sec-policy/selinux-dnsmasq )
|
||||
REQUIRED_USE=dhcp-tools? ( dhcp ) lua? ( script ) libidn2? ( idn )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.77.tar.xz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd e12dd5e3cf1f359292cea2a70abeba5f toolchain-funcs 8fec6b1eb195836560e70b66d98fb163 user e4b567c44272a719fabf53f0f885d3f7
|
||||
_md5_=a00607b1bb26ec55cb6510543c874194
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.78
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-dns/dnsmasq-2.78
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst preinst prepare pretend setup
|
||||
DEPEND=dbus? ( sys-apps/dbus ) idn? ( !libidn2? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) app-arch/xz-utils dnssec? ( dev-libs/nettle[gmp] static? ( dev-libs/nettle[static-libs(+)] ) ) virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=Small forwarding DNS server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||
IUSE=auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify ipv6 lua nls script selinux static tftp linguas_de linguas_es linguas_fi linguas_fr linguas_id linguas_it linguas_no linguas_pl linguas_pt_BR linguas_ro
|
||||
KEYWORDS=~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=|| ( GPL-2 GPL-3 )
|
||||
RDEPEND=dbus? ( sys-apps/dbus ) idn? ( !libidn2? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) ) lua? ( dev-lang/lua:* ) conntrack? ( net-libs/libnetfilter_conntrack ) nls? ( sys-devel/gettext ) dnssec? ( !static? ( dev-libs/nettle[gmp] ) ) selinux? ( sec-policy/selinux-dnsmasq )
|
||||
REQUIRED_USE=dhcp-tools? ( dhcp ) lua? ( script ) libidn2? ( idn )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.78.tar.xz
|
||||
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd e12dd5e3cf1f359292cea2a70abeba5f toolchain-funcs 8fec6b1eb195836560e70b66d98fb163 user e4b567c44272a719fabf53f0f885d3f7
|
||||
_md5_=1af6e0a0c787ac4185e24736fc58d85b
|
3
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/Manifest
vendored
Normal file
3
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/Manifest
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
DIST dnsmasq-2.76.tar.xz 480796 SHA256 4b92698dee19ca0cb2a8f2e48f1d2dffd01a21eb15d1fbed4cf085630c8c9f96 SHA512 8a930f3e7cdc0c291ce89bea8128a4b8438b9aa9e660a2ac037e0baa4c5c74f4482a8f83b0410066a759444b3c4e1cf62a9beb625e38509690227996de10e06a WHIRLPOOL e0710f879fd6f8e27581b8c400704660941601cd2077f32d7c2b3f9791c6be8404469770e74f7e1a03880507a32a30c19b89f6a953a757ad01305f829448f0bc
|
||||
DIST dnsmasq-2.77.tar.xz 487244 SHA256 6eac3b1c50ae25170e3ff8c96ddb55236cf45007633fdb8a35b1f3e02f5f8b8a SHA512 6ca98a71a8fdfd606e29c58b34dadfa63148c39f931570cca67a287e044d52c6ec2f8acbf5620ada3312e9db3a2fd63877188d829c070beaa730607e3309e768 WHIRLPOOL 94a4fdc23d81fe38456756d81e53f1258ccd360c4d22952c889f2d5f76d401696587a5362f5aacd1ef86799874ac9eae3c3879d0fe81b66beeafb2f3ce0e01d0
|
||||
DIST dnsmasq-2.78.tar.xz 489172 SHA256 89949f438c74b0c7543f06689c319484bd126cc4b1f8c745c742ab397681252b SHA512 9b79b84e5a768d52f90f6335ccef2c404ecd7a13e78e49f4cd0755fffc6cf34d0dc96ad4c72cad1dab3c5743a8d0d789b3e9b6e625b03c5675bb898ca61a698b WHIRLPOOL 3fdde3511c39b5f42a8166936576b60f7114a54388e317136ef9c4b5770c02106706dc0612361b18d25fa16a340e613c98aa78973e2dc038dc93f2a664d27606
|
192
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.76-r1.ebuild
vendored
Normal file
192
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.76-r1.ebuild
vendored
Normal file
@ -0,0 +1,192 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Small forwarding DNS server"
|
||||
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec idn +inotify ipv6 lua nls script selinux static tftp"
|
||||
DM_LINGUAS="de es fi fr id it no pl pt_BR ro"
|
||||
for dm_lingua in ${DM_LINGUAS}; do
|
||||
IUSE+=" linguas_${dm_lingua}"
|
||||
done
|
||||
|
||||
CDEPEND="dbus? ( sys-apps/dbus )
|
||||
idn? ( net-dns/libidn )
|
||||
lua? ( dev-lang/lua:* )
|
||||
conntrack? ( net-libs/libnetfilter_conntrack )
|
||||
nls? (
|
||||
sys-devel/gettext
|
||||
net-dns/libidn
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/xz-utils
|
||||
dnssec? (
|
||||
dev-libs/nettle[gmp]
|
||||
static? (
|
||||
dev-libs/nettle[static-libs(+)]
|
||||
)
|
||||
)
|
||||
virtual/pkgconfig"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dnssec? (
|
||||
!static? (
|
||||
dev-libs/nettle[gmp]
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-dnsmasq )
|
||||
"
|
||||
|
||||
REQUIRED_USE="dhcp-tools? ( dhcp )
|
||||
lua? ( script )"
|
||||
|
||||
use_have() {
|
||||
local useflag no_only uword
|
||||
if [[ $1 == '-n' ]]; then
|
||||
no_only=1
|
||||
shift
|
||||
fi
|
||||
useflag="${1}"
|
||||
shift
|
||||
|
||||
uword="${1:-${useflag}}"
|
||||
shift
|
||||
|
||||
while [[ ${uword} ]]; do
|
||||
uword="${uword^^}"
|
||||
|
||||
if ! use "${useflag}"; then
|
||||
echo -n " -DNO_${uword}"
|
||||
elif [[ -z "${no_only}" ]]; then
|
||||
echo -n " -DHAVE_${uword}"
|
||||
fi
|
||||
uword="${1}"
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use static; then
|
||||
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
|
||||
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnsmasq
|
||||
enewuser dnsmasq -1 -1 /dev/null dnsmasq
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -r 's:lua5.[0-9]+:lua:' Makefile
|
||||
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
COPTS="$(use_have -n auth-dns auth)"
|
||||
COPTS+="$(use_have conntrack)"
|
||||
COPTS+="$(use_have dbus)"
|
||||
COPTS+="$(use_have idn)"
|
||||
COPTS+="$(use_have -n inotify)"
|
||||
COPTS+="$(use_have -n dhcp dhcp dhcp6)"
|
||||
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)"
|
||||
COPTS+="$(use_have lua luascript)"
|
||||
COPTS+="$(use_have -n script)"
|
||||
COPTS+="$(use_have -n tftp)"
|
||||
COPTS+="$(use_have dnssec)"
|
||||
COPTS+="$(use_have static dnssec_static)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
COPTS="${COPTS}" \
|
||||
CONFFILE="/etc/${PN}.conf" \
|
||||
all$(use nls && echo "-i18n")
|
||||
|
||||
use dhcp-tools && emake -C contrib/lease-tools \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local lingua puid
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
COPTS="${COPTS}" \
|
||||
DESTDIR="${D}" \
|
||||
install$(use nls && echo "-i18n")
|
||||
|
||||
for lingua in ${DM_LINGUAS}; do
|
||||
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua}
|
||||
done
|
||||
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/
|
||||
|
||||
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
|
||||
dodoc -r logo
|
||||
|
||||
docinto html/
|
||||
dodoc *.html
|
||||
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-r2 ${PN}
|
||||
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
|
||||
|
||||
insinto /etc
|
||||
newins dnsmasq.conf.example dnsmasq.conf
|
||||
|
||||
insinto /usr/share/dnsmasq
|
||||
doins trust-anchors.conf
|
||||
|
||||
if use dhcp; then
|
||||
dodir /var/lib/misc
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r1 ${PN}
|
||||
fi
|
||||
if use dbus; then
|
||||
insinto /etc/dbus-1/system.d
|
||||
doins dbus/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if use dhcp-tools; then
|
||||
dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
|
||||
doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
|
||||
if use ipv6; then
|
||||
dosbin contrib/lease-tools/dhcp_release6
|
||||
doman contrib/lease-tools/dhcp_release6.1
|
||||
fi
|
||||
fi
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
|
||||
}
|
188
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.76.ebuild
vendored
Normal file
188
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.76.ebuild
vendored
Normal file
@ -0,0 +1,188 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Small forwarding DNS server"
|
||||
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec idn +inotify ipv6 lua nls script selinux static tftp"
|
||||
DM_LINGUAS="de es fi fr id it no pl pt_BR ro"
|
||||
for dm_lingua in ${DM_LINGUAS}; do
|
||||
IUSE+=" linguas_${dm_lingua}"
|
||||
done
|
||||
|
||||
CDEPEND="dbus? ( sys-apps/dbus )
|
||||
idn? ( net-dns/libidn )
|
||||
lua? ( dev-lang/lua:* )
|
||||
conntrack? ( net-libs/libnetfilter_conntrack )
|
||||
nls? (
|
||||
sys-devel/gettext
|
||||
net-dns/libidn
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/xz-utils
|
||||
dnssec? (
|
||||
dev-libs/nettle[gmp]
|
||||
static? (
|
||||
dev-libs/nettle[static-libs(+)]
|
||||
)
|
||||
)
|
||||
virtual/pkgconfig"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dnssec? (
|
||||
!static? (
|
||||
dev-libs/nettle[gmp]
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-dnsmasq )
|
||||
"
|
||||
|
||||
REQUIRED_USE="dhcp-tools? ( dhcp )
|
||||
lua? ( script )"
|
||||
|
||||
use_have() {
|
||||
local useflag no_only uword
|
||||
if [[ $1 == '-n' ]]; then
|
||||
no_only=1
|
||||
shift
|
||||
fi
|
||||
useflag="${1}"
|
||||
shift
|
||||
|
||||
uword="${1:-${useflag}}"
|
||||
shift
|
||||
|
||||
while [[ ${uword} ]]; do
|
||||
uword="${uword^^}"
|
||||
|
||||
if ! use "${useflag}"; then
|
||||
echo -n " -DNO_${uword}"
|
||||
elif [[ -z "${no_only}" ]]; then
|
||||
echo -n " -DHAVE_${uword}"
|
||||
fi
|
||||
uword="${1}"
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use static; then
|
||||
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
|
||||
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnsmasq
|
||||
enewuser dnsmasq -1 -1 /dev/null dnsmasq
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -r 's:lua5.[0-9]+:lua:' Makefile
|
||||
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
COPTS="$(use_have -n auth-dns auth)"
|
||||
COPTS+="$(use_have conntrack)"
|
||||
COPTS+="$(use_have dbus)"
|
||||
COPTS+="$(use_have idn)"
|
||||
COPTS+="$(use_have -n inotify)"
|
||||
COPTS+="$(use_have -n dhcp dhcp dhcp6)"
|
||||
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)"
|
||||
COPTS+="$(use_have lua luascript)"
|
||||
COPTS+="$(use_have -n script)"
|
||||
COPTS+="$(use_have -n tftp)"
|
||||
COPTS+="$(use_have dnssec)"
|
||||
COPTS+="$(use_have static dnssec_static)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
COPTS="${COPTS}" \
|
||||
CONFFILE="/etc/${PN}.conf" \
|
||||
all$(use nls && echo "-i18n")
|
||||
|
||||
use dhcp-tools && emake -C contrib/lease-tools \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local lingua puid
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
COPTS="${COPTS}" \
|
||||
DESTDIR="${D}" \
|
||||
install$(use nls && echo "-i18n")
|
||||
|
||||
for lingua in ${DM_LINGUAS}; do
|
||||
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua}
|
||||
done
|
||||
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/
|
||||
|
||||
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
|
||||
dodoc -r logo
|
||||
|
||||
docinto html/
|
||||
dodoc *.html
|
||||
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-r2 ${PN}
|
||||
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
|
||||
|
||||
insinto /etc
|
||||
newins dnsmasq.conf.example dnsmasq.conf
|
||||
|
||||
insinto /usr/share/dnsmasq
|
||||
doins trust-anchors.conf
|
||||
|
||||
if use dhcp; then
|
||||
dodir /var/lib/misc
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r1 ${PN}
|
||||
fi
|
||||
if use dbus; then
|
||||
insinto /etc/dbus-1/system.d
|
||||
doins dbus/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if use dhcp-tools; then
|
||||
dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
|
||||
doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
|
||||
fi
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
|
||||
}
|
198
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.77-r1.ebuild
vendored
Normal file
198
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.77-r1.ebuild
vendored
Normal file
@ -0,0 +1,198 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Small forwarding DNS server"
|
||||
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
|
||||
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify"
|
||||
IUSE+=" ipv6 lua nls script selinux static tftp"
|
||||
|
||||
DM_LINGUAS=(de es fi fr id it no pl pt_BR ro)
|
||||
|
||||
for dm_lingua in "${DM_LINGUAS[@]}"; do
|
||||
IUSE+=" linguas_${dm_lingua}"
|
||||
done
|
||||
|
||||
CDEPEND="dbus? ( sys-apps/dbus )
|
||||
idn? (
|
||||
!libidn2? ( net-dns/libidn )
|
||||
libidn2? ( >=net-dns/libidn2-2.0 )
|
||||
)
|
||||
lua? ( dev-lang/lua:* )
|
||||
conntrack? ( net-libs/libnetfilter_conntrack )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/xz-utils
|
||||
dnssec? (
|
||||
dev-libs/nettle[gmp]
|
||||
static? ( dev-libs/nettle[static-libs(+)] )
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dnssec? (
|
||||
!static? (
|
||||
dev-libs/nettle[gmp]
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-dnsmasq )
|
||||
"
|
||||
|
||||
REQUIRED_USE="dhcp-tools? ( dhcp )
|
||||
lua? ( script )
|
||||
libidn2? ( idn )"
|
||||
|
||||
use_have() {
|
||||
local useflag no_only uword
|
||||
if [[ $1 == '-n' ]]; then
|
||||
no_only=1
|
||||
shift
|
||||
fi
|
||||
useflag="${1}"
|
||||
shift
|
||||
|
||||
uword="${1:-${useflag}}"
|
||||
shift
|
||||
|
||||
while [[ ${uword} ]]; do
|
||||
uword="${uword^^}"
|
||||
|
||||
if ! use "${useflag}"; then
|
||||
echo -n " -DNO_${uword}"
|
||||
elif [[ -z "${no_only}" ]]; then
|
||||
echo -n " -DHAVE_${uword}"
|
||||
fi
|
||||
uword="${1}"
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use static; then
|
||||
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
|
||||
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnsmasq
|
||||
enewuser dnsmasq -1 -1 /dev/null dnsmasq
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -r 's:lua5.[0-9]+:lua:' Makefile
|
||||
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
COPTS="$(use_have -n auth-dns auth)"
|
||||
COPTS+="$(use_have conntrack)"
|
||||
COPTS+="$(use_have dbus)"
|
||||
COPTS+="$(use libidn2 || use_have idn)"
|
||||
COPTS+="$(use_have libidn2)"
|
||||
COPTS+="$(use_have -n inotify)"
|
||||
COPTS+="$(use_have -n dhcp dhcp dhcp6)"
|
||||
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)"
|
||||
COPTS+="$(use_have -n id id)"
|
||||
COPTS+="$(use_have lua luascript)"
|
||||
COPTS+="$(use_have -n script)"
|
||||
COPTS+="$(use_have -n tftp)"
|
||||
COPTS+="$(use_have dnssec)"
|
||||
COPTS+="$(use_have static dnssec_static)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
COPTS="${COPTS}" \
|
||||
CONFFILE="/etc/${PN}.conf" \
|
||||
all$(use nls && echo "-i18n")
|
||||
|
||||
use dhcp-tools && emake -C contrib/lease-tools \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local lingua puid
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
COPTS="${COPTS}" \
|
||||
DESTDIR="${D}" \
|
||||
install$(use nls && echo "-i18n")
|
||||
|
||||
for lingua in "${DM_LINGUAS[@]}"; do
|
||||
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua}
|
||||
done
|
||||
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/
|
||||
|
||||
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
|
||||
dodoc -r logo
|
||||
|
||||
docinto html/
|
||||
dodoc *.html
|
||||
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-r2 ${PN}
|
||||
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
|
||||
|
||||
insinto /etc
|
||||
newins dnsmasq.conf.example dnsmasq.conf
|
||||
|
||||
insinto /usr/share/dnsmasq
|
||||
doins trust-anchors.conf
|
||||
|
||||
if use dhcp; then
|
||||
dodir /var/lib/misc
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r1 ${PN}
|
||||
fi
|
||||
if use dbus; then
|
||||
insinto /etc/dbus-1/system.d
|
||||
doins dbus/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if use dhcp-tools; then
|
||||
dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
|
||||
doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
|
||||
if use ipv6; then
|
||||
dosbin contrib/lease-tools/dhcp_release6
|
||||
doman contrib/lease-tools/dhcp_release6.1
|
||||
fi
|
||||
fi
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
|
||||
}
|
196
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.77.ebuild
vendored
Normal file
196
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.77.ebuild
vendored
Normal file
@ -0,0 +1,196 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Small forwarding DNS server"
|
||||
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
|
||||
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify"
|
||||
IUSE+=" ipv6 lua nls script selinux static tftp"
|
||||
|
||||
DM_LINGUAS=(de es fi fr id it no pl pt_BR ro)
|
||||
|
||||
for dm_lingua in "${DM_LINGUAS[@]}"; do
|
||||
IUSE+=" linguas_${dm_lingua}"
|
||||
done
|
||||
|
||||
CDEPEND="dbus? ( sys-apps/dbus )
|
||||
idn? ( net-dns/libidn )
|
||||
libidn2? ( >=net-dns/libidn2-2.0 )
|
||||
lua? ( dev-lang/lua:* )
|
||||
conntrack? ( net-libs/libnetfilter_conntrack )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/xz-utils
|
||||
dnssec? (
|
||||
dev-libs/nettle[gmp]
|
||||
static? ( dev-libs/nettle[static-libs(+)] )
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dnssec? (
|
||||
!static? (
|
||||
dev-libs/nettle[gmp]
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-dnsmasq )
|
||||
"
|
||||
|
||||
REQUIRED_USE="dhcp-tools? ( dhcp )
|
||||
lua? ( script )
|
||||
libidn2? ( !idn )"
|
||||
|
||||
use_have() {
|
||||
local useflag no_only uword
|
||||
if [[ $1 == '-n' ]]; then
|
||||
no_only=1
|
||||
shift
|
||||
fi
|
||||
useflag="${1}"
|
||||
shift
|
||||
|
||||
uword="${1:-${useflag}}"
|
||||
shift
|
||||
|
||||
while [[ ${uword} ]]; do
|
||||
uword="${uword^^}"
|
||||
|
||||
if ! use "${useflag}"; then
|
||||
echo -n " -DNO_${uword}"
|
||||
elif [[ -z "${no_only}" ]]; then
|
||||
echo -n " -DHAVE_${uword}"
|
||||
fi
|
||||
uword="${1}"
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use static; then
|
||||
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
|
||||
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnsmasq
|
||||
enewuser dnsmasq -1 -1 /dev/null dnsmasq
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -r 's:lua5.[0-9]+:lua:' Makefile
|
||||
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
COPTS="$(use_have -n auth-dns auth)"
|
||||
COPTS+="$(use_have conntrack)"
|
||||
COPTS+="$(use_have dbus)"
|
||||
COPTS+="$(use_have idn)"
|
||||
COPTS+="$(use_have libidn2)"
|
||||
COPTS+="$(use_have -n inotify)"
|
||||
COPTS+="$(use_have -n dhcp dhcp dhcp6)"
|
||||
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)"
|
||||
COPTS+="$(use_have -n id id)"
|
||||
COPTS+="$(use_have lua luascript)"
|
||||
COPTS+="$(use_have -n script)"
|
||||
COPTS+="$(use_have -n tftp)"
|
||||
COPTS+="$(use_have dnssec)"
|
||||
COPTS+="$(use_have static dnssec_static)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
COPTS="${COPTS}" \
|
||||
CONFFILE="/etc/${PN}.conf" \
|
||||
all$(use nls && echo "-i18n")
|
||||
|
||||
use dhcp-tools && emake -C contrib/lease-tools \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local lingua puid
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
COPTS="${COPTS}" \
|
||||
DESTDIR="${D}" \
|
||||
install$(use nls && echo "-i18n")
|
||||
|
||||
for lingua in "${DM_LINGUAS[@]}"; do
|
||||
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua}
|
||||
done
|
||||
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/
|
||||
|
||||
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
|
||||
dodoc -r logo
|
||||
|
||||
docinto html/
|
||||
dodoc *.html
|
||||
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-r2 ${PN}
|
||||
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
|
||||
|
||||
insinto /etc
|
||||
newins dnsmasq.conf.example dnsmasq.conf
|
||||
|
||||
insinto /usr/share/dnsmasq
|
||||
doins trust-anchors.conf
|
||||
|
||||
if use dhcp; then
|
||||
dodir /var/lib/misc
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r1 ${PN}
|
||||
fi
|
||||
if use dbus; then
|
||||
insinto /etc/dbus-1/system.d
|
||||
doins dbus/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if use dhcp-tools; then
|
||||
dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
|
||||
doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
|
||||
if use ipv6; then
|
||||
dosbin contrib/lease-tools/dhcp_release6
|
||||
doman contrib/lease-tools/dhcp_release6.1
|
||||
fi
|
||||
fi
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
|
||||
}
|
198
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.78.ebuild
vendored
Normal file
198
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/dnsmasq-2.78.ebuild
vendored
Normal file
@ -0,0 +1,198 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Small forwarding DNS server"
|
||||
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
|
||||
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec +id idn libidn2 +inotify"
|
||||
IUSE+=" ipv6 lua nls script selinux static tftp"
|
||||
|
||||
DM_LINGUAS=(de es fi fr id it no pl pt_BR ro)
|
||||
|
||||
for dm_lingua in "${DM_LINGUAS[@]}"; do
|
||||
IUSE+=" linguas_${dm_lingua}"
|
||||
done
|
||||
|
||||
CDEPEND="dbus? ( sys-apps/dbus )
|
||||
idn? (
|
||||
!libidn2? ( net-dns/libidn )
|
||||
libidn2? ( >=net-dns/libidn2-2.0 )
|
||||
)
|
||||
lua? ( dev-lang/lua:* )
|
||||
conntrack? ( net-libs/libnetfilter_conntrack )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/xz-utils
|
||||
dnssec? (
|
||||
dev-libs/nettle[gmp]
|
||||
static? ( dev-libs/nettle[static-libs(+)] )
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dnssec? (
|
||||
!static? (
|
||||
dev-libs/nettle[gmp]
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-dnsmasq )
|
||||
"
|
||||
|
||||
REQUIRED_USE="dhcp-tools? ( dhcp )
|
||||
lua? ( script )
|
||||
libidn2? ( idn )"
|
||||
|
||||
use_have() {
|
||||
local useflag no_only uword
|
||||
if [[ $1 == '-n' ]]; then
|
||||
no_only=1
|
||||
shift
|
||||
fi
|
||||
useflag="${1}"
|
||||
shift
|
||||
|
||||
uword="${1:-${useflag}}"
|
||||
shift
|
||||
|
||||
while [[ ${uword} ]]; do
|
||||
uword="${uword^^}"
|
||||
|
||||
if ! use "${useflag}"; then
|
||||
echo -n " -DNO_${uword}"
|
||||
elif [[ -z "${no_only}" ]]; then
|
||||
echo -n " -DHAVE_${uword}"
|
||||
fi
|
||||
uword="${1}"
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use static; then
|
||||
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
|
||||
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnsmasq
|
||||
enewuser dnsmasq -1 -1 /dev/null dnsmasq
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -r 's:lua5.[0-9]+:lua:' Makefile
|
||||
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
COPTS="$(use_have -n auth-dns auth)"
|
||||
COPTS+="$(use_have conntrack)"
|
||||
COPTS+="$(use_have dbus)"
|
||||
COPTS+="$(use libidn2 || use_have idn)"
|
||||
COPTS+="$(use_have libidn2)"
|
||||
COPTS+="$(use_have -n inotify)"
|
||||
COPTS+="$(use_have -n dhcp dhcp dhcp6)"
|
||||
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)"
|
||||
COPTS+="$(use_have -n id id)"
|
||||
COPTS+="$(use_have lua luascript)"
|
||||
COPTS+="$(use_have -n script)"
|
||||
COPTS+="$(use_have -n tftp)"
|
||||
COPTS+="$(use_have dnssec)"
|
||||
COPTS+="$(use_have static dnssec_static)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
COPTS="${COPTS}" \
|
||||
CONFFILE="/etc/${PN}.conf" \
|
||||
all$(use nls && echo "-i18n")
|
||||
|
||||
use dhcp-tools && emake -C contrib/lease-tools \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local lingua puid
|
||||
emake \
|
||||
PREFIX=/usr \
|
||||
MANDIR=/usr/share/man \
|
||||
COPTS="${COPTS}" \
|
||||
DESTDIR="${D}" \
|
||||
install$(use nls && echo "-i18n")
|
||||
|
||||
for lingua in "${DM_LINGUAS[@]}"; do
|
||||
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua}
|
||||
done
|
||||
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/
|
||||
|
||||
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
|
||||
dodoc -r logo
|
||||
|
||||
docinto html/
|
||||
dodoc *.html
|
||||
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
|
||||
|
||||
insinto /etc
|
||||
newins dnsmasq.conf.example dnsmasq.conf
|
||||
|
||||
insinto /usr/share/dnsmasq
|
||||
doins trust-anchors.conf
|
||||
|
||||
if use dhcp; then
|
||||
dodir /var/lib/misc
|
||||
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r2 ${PN}
|
||||
fi
|
||||
if use dbus; then
|
||||
insinto /etc/dbus-1/system.d
|
||||
doins dbus/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if use dhcp-tools; then
|
||||
dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
|
||||
doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
|
||||
if use ipv6; then
|
||||
dosbin contrib/lease-tools/dhcp_release6
|
||||
doman contrib/lease-tools/dhcp_release6.1
|
||||
fi
|
||||
fi
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# temporary workaround to (hopefully) prevent leases file from being removed
|
||||
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
|
||||
}
|
29
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1
vendored
Normal file
29
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
pidfile="/var/run/dnsmasq.pid"
|
||||
command="/usr/sbin/dnsmasq"
|
||||
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
|
||||
retry="TERM/3/TERM/5"
|
||||
|
||||
depend() {
|
||||
provide dns
|
||||
need localmount net
|
||||
after bootmisc
|
||||
use logger
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --owner dnsmasq:dnsmasq \
|
||||
--mode 0644 \
|
||||
--file /var/lib/misc/dnsmasq.leases
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${RC_SVCNAME}"
|
||||
kill -HUP "$(cat "${pidfile}")"
|
||||
eend $?
|
||||
}
|
29
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r2
vendored
Normal file
29
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r2
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
pidfile="/var/run/dnsmasq.pid"
|
||||
command="/usr/sbin/dnsmasq"
|
||||
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
|
||||
retry="TERM/3/TERM/5"
|
||||
|
||||
depend() {
|
||||
provide dns
|
||||
need localmount net
|
||||
after bootmisc
|
||||
use logger
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --owner dnsmasq:dnsmasq \
|
||||
--mode 0644 \
|
||||
--file /var/lib/misc/dnsmasq.leases
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${RC_SVCNAME}"
|
||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
23
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-r2
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-r2
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
pidfile="/var/run/dnsmasq.pid"
|
||||
command="/usr/sbin/dnsmasq"
|
||||
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
|
||||
retry="TERM/3/TERM/5"
|
||||
|
||||
depend() {
|
||||
provide dns
|
||||
need localmount net
|
||||
after bootmisc
|
||||
use logger
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${SVCNAME}"
|
||||
kill -HUP $(cat "${pidfile}")
|
||||
eend $?
|
||||
}
|
23
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-r3
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq-init-r3
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
pidfile="/var/run/dnsmasq.pid"
|
||||
command="/usr/sbin/dnsmasq"
|
||||
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
|
||||
retry="TERM/3/TERM/5"
|
||||
|
||||
depend() {
|
||||
provide dns
|
||||
need localmount net
|
||||
after bootmisc
|
||||
use logger
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${SVCNAME}"
|
||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
4
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq.confd-r1
vendored
Normal file
4
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq.confd-r1
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# /etc/conf.d/dnsmasq: config file for /etc/init.d/dnsmasq
|
||||
|
||||
# See the dnsmasq(8) man page for possible options to put here.
|
||||
DNSMASQ_OPTS="--user=dnsmasq --group=dnsmasq"
|
12
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq.service-r1
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/files/dnsmasq.service-r1
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=A lightweight DHCP and caching DNS server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/sbin/dnsmasq --test
|
||||
ExecStart=/usr/sbin/dnsmasq -k --user=dnsmasq --group=dnsmasq
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
22
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/metadata.xml
vendored
Normal file
22
sdk_container/src/third_party/portage-stable/net-dns/dnsmasq/metadata.xml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chutzpah@gentoo.org</email>
|
||||
<name>Patrick McLean</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="auth-dns">Add support for acting as an authorative DNS server.</flag>
|
||||
<flag name="conntrack">Add support for Linux conntrack connection marking.</flag>
|
||||
<flag name="dhcp-tools">Install extra command line tools for manually managing DHCP leases.</flag>
|
||||
<flag name="dhcp">Enable support for acting as a DHCP server.</flag>
|
||||
<flag name="dnssec">Enable support DNSSEC validation and caching.</flag>
|
||||
<flag name="id">Whether report *.bind CHAOS info to clients, otherwise forward such requests upstream instead</flag>
|
||||
<flag name="libidn2">Enable support for Internationalized Domain Names, via net-dns/libidn2 rather than net-dns/libidn</flag>
|
||||
<flag name="script">Enable support for calling scripts when leases change.</flag>
|
||||
<flag name="tftp">Enables built in TFTP server for netbooting.</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="cpe">cpe:/a:thekelleys:dnsmasq</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user