summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-08-16 10:15:42 +0000
committerRoy Marples <uberlord@gentoo.org>2006-08-16 10:15:42 +0000
commit04ec62944bce76e83a52fea031b635ecd4db48f5 (patch)
tree968884ce214c0b5820b50f2ab069387f1bae758d /sys-apps/ifplugd
parentstable for x86 (diff)
downloadgentoo-2-04ec62944bce76e83a52fea031b635ecd4db48f5.tar.gz
gentoo-2-04ec62944bce76e83a52fea031b635ecd4db48f5.tar.bz2
gentoo-2-04ec62944bce76e83a52fea031b635ecd4db48f5.zip
Don't install init/conf files as baselayout-1.12 (now stable) has inbuilt
ifplugd support. (Portage version: 2.1.1_pre5-r1)
Diffstat (limited to 'sys-apps/ifplugd')
-rw-r--r--sys-apps/ifplugd/ChangeLog8
-rw-r--r--sys-apps/ifplugd/files/digest-ifplugd-0.28-r73
-rw-r--r--sys-apps/ifplugd/ifplugd-0.28-r7.ebuild69
3 files changed, 79 insertions, 1 deletions
diff --git a/sys-apps/ifplugd/ChangeLog b/sys-apps/ifplugd/ChangeLog
index 8355854760fc..6b1c7f726e6a 100644
--- a/sys-apps/ifplugd/ChangeLog
+++ b/sys-apps/ifplugd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/ifplugd
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifplugd/ChangeLog,v 1.34 2006/04/14 11:59:13 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifplugd/ChangeLog,v 1.35 2006/08/16 10:15:42 uberlord Exp $
+
+*ifplugd-0.28-r7 (16 Aug 2006)
+
+ 16 Aug 2006; Roy Marples <uberlord@gentoo.org> +ifplugd-0.28-r7.ebuild:
+ Don't install init/conf files as baselayout-1.12 (now stable) has inbuilt
+ ifplugd support.
*ifplugd-0.28-r6 (14 Apr 2006)
diff --git a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r7 b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r7
new file mode 100644
index 000000000000..d58875572dca
--- /dev/null
+++ b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r7
@@ -0,0 +1,3 @@
+MD5 df6f4bab52f46ffd6eb1f5912d4ccee3 ifplugd-0.28.tar.gz 142677
+RMD160 09914a1914a4432822bb660d6aef194debe688f1 ifplugd-0.28.tar.gz 142677
+SHA256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz 142677
diff --git a/sys-apps/ifplugd/ifplugd-0.28-r7.ebuild b/sys-apps/ifplugd/ifplugd-0.28-r7.ebuild
new file mode 100644
index 000000000000..8492391aed8a
--- /dev/null
+++ b/sys-apps/ifplugd/ifplugd-0.28-r7.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifplugd/ifplugd-0.28-r7.ebuild,v 1.1 2006/08/16 10:15:42 uberlord Exp $
+
+inherit eutils
+
+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="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+DEPEND="dev-util/pkgconfig
+ doc? ( www-client/lynx )
+ >=dev-libs/libdaemon-0.5"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-nlapi.diff"
+ epatch "${FILESDIR}/${P}-interface.patch"
+}
+
+src_compile() {
+ econf $(use_enable doc lynx) \
+ --with-initdir=/etc/init.d \
+ --disable-xmltoman \
+ --disable-subversion \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # Remove init.d configuration as we no longer use it
+ rm -rf "${D}/etc/ifplugd" "${D}/etc/init.d/${PN}"
+
+ dodir "/etc/${PN}"
+ exeinto "/etc/${PN}"
+ newexe "${FILESDIR}/${PN}.action" "${PN}.action" || die
+
+ cd "${S}/doc"
+ dodoc README SUPPORTED_DRIVERS
+ use doc && dohtml *.{html,css}
+}
+
+pkg_postinst() {
+ # Warn about old init script
+ einfo "baselayout now starts ifplugd automatically on wired interfaces"
+ einfo "If you do not want this behaviour then add !plug to your modules"
+ einfo "in /etc/conf.d/net like so"
+ einfo " modules=( \"!plug\" )"
+
+ if [[ -e "${ROOT}/etc/init.d/ifplugd" \
+ || -e "${ROOT}/etc/conf.d/ifplugd" ]] ; then
+ echo
+ ewarn "You should stop the ifplugd service now and remove its init"
+ ewarn "script and config file"
+ if [[ ${ROOT} == "/" ]] ; then
+ ewarn " /etc/init.d/ifplugd stop"
+ ewarn " rc-update del ifplugd"
+ ewarn " rm -f /etc/{conf,init}.d/ifplugd"
+ fi
+ fi
+}