From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9DB58138646 for ; Fri, 21 Oct 2016 09:15:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38EA8E07D2; Fri, 21 Oct 2016 09:15:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0737CE07D2 for ; Fri, 21 Oct 2016 09:15:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2037A34161D for ; Fri, 21 Oct 2016 09:15:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAC8B2F4 for ; Fri, 21 Oct 2016 09:15:27 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1477041165.6c6c2f6df5ed2ce0cff3451e1edbb72328587bd0.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ifplugd/, sys-apps/ifplugd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/ifplugd/files/ifplugd-0.28-interface.patch sys-apps/ifplugd/files/ifplugd-0.28-musl.patch sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch sys-apps/ifplugd/ifplugd-0.28-r10.ebuild X-VCS-Directories: sys-apps/ifplugd/ sys-apps/ifplugd/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 6c6c2f6df5ed2ce0cff3451e1edbb72328587bd0 X-VCS-Branch: master Date: Fri, 21 Oct 2016 09:15:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a9cbc5be-4b33-4eab-b5a2-c53109c3d123 X-Archives-Hash: c1b75cee64f70d520d31853ee1d547fe commit: 6c6c2f6df5ed2ce0cff3451e1edbb72328587bd0 Author: Felix Janda posteo de> AuthorDate: Wed Oct 12 00:20:33 2016 +0000 Commit: Lars Wendler gentoo org> CommitDate: Fri Oct 21 09:12:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c6c2f6d sys-apps/ifplugd: revision bump * EAPI=6 * add patch from Chad Joan for compilation with musl libc * remove obsolete pkg_postinst phase Gentoo-Bug: https://bugs.gentoo.org/592912 Gentoo-Bug: https://bugs.gentoo.org/278653 Closes: https://github.com/gentoo/gentoo/pull/2541 Signed-off-by: Lars Wendler gentoo.org> .../ifplugd/files/ifplugd-0.28-interface.patch | 4 +- sys-apps/ifplugd/files/ifplugd-0.28-musl.patch | 19 +++++++++ sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff | 4 +- .../ifplugd/files/ifplugd-0.28-strictalias.patch | 4 +- sys-apps/ifplugd/ifplugd-0.28-r10.ebuild | 49 ++++++++++++++++++++++ 5 files changed, 74 insertions(+), 6 deletions(-) diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch b/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch index 9c2de46..f99f3a2 100644 --- a/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch +++ b/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch @@ -1,5 +1,5 @@ ---- src/interface.c 2004/12/19 00:08:01 114 -+++ src/interface.c 2006/03/07 13:15:11 133 +--- a/src/interface.c ++++ b/src/interface.c @@ -22,9 +22,9 @@ #include #endif diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-musl.patch b/sys-apps/ifplugd/files/ifplugd-0.28-musl.patch new file mode 100644 index 00000000..ecaaabf --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-musl.patch @@ -0,0 +1,19 @@ +--- a/src/ethtool-local.h ++++ b/src/ethtool-local.h +@@ -21,10 +21,12 @@ + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +-typedef unsigned long long u64; +-typedef __uint32_t u32; +-typedef __uint16_t u16; +-typedef __uint8_t u8; ++#include ++ ++typedef uint64_t u64; ++typedef uint32_t u32; ++typedef uint16_t u16; ++typedef uint8_t u8; + + #include "ethtool-kernel.h" + diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff b/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff index b640543..a3d128f 100644 --- a/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff +++ b/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff @@ -1,6 +1,6 @@ diff -urN src/nlapi.c src/nlapi.c ---- src/nlapi.c 2004-12-20 08:39:14.682706517 -0500 -+++ src/nlapi.c 2004-12-20 08:39:50.185734092 -0500 +--- a/src/nlapi.c ++++ b/src/nlapi.c @@ -86,7 +86,7 @@ for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) { struct callback_info *c; diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch b/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch index 3c5de8a..ae8292d 100644 --- a/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch +++ b/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch @@ -1,5 +1,5 @@ ---- src/interface.c.orig 2007-03-23 13:29:40.000000000 +0000 -+++ src/interface.c 2007-03-23 13:30:05.000000000 +0000 +--- a/src/interface.c ++++ b/src/interface.c @@ -89,6 +89,10 @@ interface_status_t interface_detect_beat_mii(int fd, char *iface) { diff --git a/sys-apps/ifplugd/ifplugd-0.28-r10.ebuild b/sys-apps/ifplugd/ifplugd-0.28-r10.ebuild new file mode 100644 index 00000000..889836c --- /dev/null +++ b/sys-apps/ifplugd/ifplugd-0.28-r10.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Brings up/down ethernet ports automatically with cable detection" +HOMEPAGE="http://0pointer.de/lennart/projects/ifplugd/" +SRC_URI="http://0pointer.de/lennart/projects/ifplugd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm ~amd64 ~hppa ~ppc ~x86" +IUSE="doc selinux" + +DEPEND="virtual/pkgconfig + doc? ( www-client/lynx ) + >=dev-libs/libdaemon-0.5" +RDEPEND=">=dev-libs/libdaemon-0.5 + >=sys-apps/baselayout-1.12 + selinux? ( sec-policy/selinux-ifplugd )" + +PATCHES=( + "${FILESDIR}/${P}-nlapi.diff" + "${FILESDIR}/${P}-interface.patch" + "${FILESDIR}/${P}-strictalias.patch" + "${FILESDIR}/${P}-noip.patch" + "${FILESDIR}/${P}-musl.patch" + ) +DOCS=( doc/README doc/SUPPORTED_DRIVERS ) +HTML_DOCS=( doc/README.html doc/style.css ) + +src_configure() { + econf \ + $(use_enable doc lynx) \ + --with-initdir=/etc/init.d \ + --disable-xmltoman \ + --disable-subversion +} + +src_install() { + default + + # Remove init.d configuration as we no longer use it + rm -rf "${ED}/etc/ifplugd" "${ED}/etc/init.d/${PN}" || die + + exeinto "/etc/${PN}" + newexe "${FILESDIR}/${PN}.action" "${PN}.action" +}