summaryrefslogtreecommitdiff
path: root/net-misc/selfdhcp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/selfdhcp
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/selfdhcp')
-rw-r--r--net-misc/selfdhcp/Manifest6
-rw-r--r--net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch11
-rw-r--r--net-misc/selfdhcp/metadata.xml8
-rw-r--r--net-misc/selfdhcp/selfdhcp-0.2a-r1.ebuild32
4 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/selfdhcp/Manifest b/net-misc/selfdhcp/Manifest
new file mode 100644
index 000000000000..65d32f392022
--- /dev/null
+++ b/net-misc/selfdhcp/Manifest
@@ -0,0 +1,6 @@
+AUX selfdhcp-0.2a-buffer-overflow.patch 576 SHA256 6c05dec7fb57efeea0cfe3fe7eb7605dd9914fa3dc23fb9065875e7e4eaa613d SHA512 c0e6315d316d4cfca150c31edc7bfa613b0089580bba5ae67c3023b501558b943b68cccb24e95aece9b6b2fe26b4c63bcce75d9e743fc19f5c90b2fade7004b4 WHIRLPOOL f2cda1ca26f5d5cb2da84b6637387f8e5200672e7008b7ca609fe845c7e88f9663e89364abb540ea7f8a409229e36d2a930b5dc6b90ec821678985973260d6ef
+DIST selfdhcp-0.2a.tar.bz2 162803 SHA256 b60d37b288eee05dcaf6b14b1bba184726ec2e3af6dddfdad78f0627878ec8b6 SHA512 3ffb8a6115502c201b37a6c4179f498d4847d469f5d271dd9408d7fe5714d1ebe10428c890d8ab943a6753f3fbc650730139a78b1f71c9972739ea4b886a53bf WHIRLPOOL 830e040d3fb7c0650ed1052cb768e243b7568489f312941fb28fb743f0fbac134b003e83c10358d88202e48deb4b8a318f3efa2442575c8951640491b1164bb6
+EBUILD selfdhcp-0.2a-r1.ebuild 651 SHA256 bd1c4b9d32273ce4bfb21ba3f3c741ff0ac05b39c6a6565f880981ebbf0c6b09 SHA512 f9c9fcc7b8718431248f796b8e3661fb7d23c0a4f0430616b7414d37b72969026693e113a08df537cd54747611c720ed0a9f2406c2aef6900ac1c0dd5b9b4c29 WHIRLPOOL 327918093febf6446bde925be1738f23b4a50e9c6a4f4eec3526af853d61ece897c0eecafca32eef6ca7863347d5adfd7247e13ee1e808f953e4f741a4591be8
+MISC ChangeLog 2575 SHA256 07af490c6e4a860081ee0945e624a19e973f2d32ddadc5c93bd08e94295b712a SHA512 03e5f6f0156111c11bdf93f53fa47b02ecda790cd79e4250e495bbb5d7892141bcd772b182bcd7114252c5bd0bbbd4ac49f21855127837eeea465d35f8045f77 WHIRLPOOL 26f82504ed14afcbb8e451860fb05d7dff96a8e9e6410adb0bdb129001861f4fe6ffeb28efca491dae57e73985beab3a43911e5eb6332b1233e384382243771b
+MISC ChangeLog-2015 1628 SHA256 083e84172498b710022369f12b5e5f8120e173b39dfde6371f0748956c0c398c SHA512 6ab0259dd209acef6cb3d37a51b39ec2b02a12abbdc1dedd8854fc87e37546c3e4ab8b891b7683c3f0f0655bbbba004adda535923bf334c74325ab12670244d0 WHIRLPOOL fc1ceb7d14ac59e7f62af03c8aec79d56f027333c1e4fd968a4e3d3c21accf32aab7f0ef69a6df89fc4970e827d2e70bcc5431e319d951262a4807ca63fa53aa
+MISC metadata.xml 245 SHA256 34af463513ad3d17391334fb4af8b46cc04a9d2c0dae71eecfab628d095c9c3c SHA512 7ce707fd04933e9ba4300c1dc0fa1af0f184cc6b736c470d23ade7e6f8993cd7e7b21dd0c6d0fa513e88c131d24bb008005e78ec2093d76823ab7a693cda2d50 WHIRLPOOL 5429c3e099757b4ad6457ee85627f7879b9e735f73e8183f8643f9d89b87c36cc537dca60c6cde2690d6cd68bb52d071de7fcdab8490c78ca6299356facf20e5
diff --git a/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch b/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch
new file mode 100644
index 000000000000..6f99f7dea895
--- /dev/null
+++ b/net-misc/selfdhcp/files/selfdhcp-0.2a-buffer-overflow.patch
@@ -0,0 +1,11 @@
+--- selfdhcp-0.2a.orig/src/selfdhcp_profiles.c 2004-08-02 18:10:36.000000000 -0400
++++ selfdhcp-0.2a/src/selfdhcp_profiles.c 2011-01-29 11:54:29.132199679 -0500
+@@ -345,7 +345,7 @@
+ {
+ key = xmlNodeListGetString (doc, cur->xmlChildrenNode, 1);
+ err_msg (DBG_PROG, "xml element \"%s\"", (char *) key);
+- strncpy (netconf_buff.domainname, (char *) key, 49);
++ strncpy (netconf_buff.domainname, (char *) key, sizeof(netconf_buff.domainname)-1);
+ netconf_buff.what_is_set &= NETADDR;
+ err_msg (DBG_INFO, "read domain name \"%s\"",
+ netconf_buff.domainname);
diff --git a/net-misc/selfdhcp/metadata.xml b/net-misc/selfdhcp/metadata.xml
new file mode 100644
index 000000000000..845c399a6f4a
--- /dev/null
+++ b/net-misc/selfdhcp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">selfdhcp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/selfdhcp/selfdhcp-0.2a-r1.ebuild b/net-misc/selfdhcp/selfdhcp-0.2a-r1.ebuild
new file mode 100644
index 000000000000..537ef2f6d90f
--- /dev/null
+++ b/net-misc/selfdhcp/selfdhcp-0.2a-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="a small stealth network autoconfigure software"
+HOMEPAGE="http://selfdhcp.sourceforge.net"
+SRC_URI="mirror://sourceforge/selfdhcp/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="dev-libs/popt
+ dev-libs/libxml2
+ >=net-libs/libnet-1.0.2
+ net-libs/libpcap"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-buffer-overflow.patch"
+}
+
+src_configure() {
+ econf --sysconfdir=/etc --sbindir=/sbin
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog README TODO
+}