/[gentoo-x86]/sys-apps/netplug/netplug-1.2.9.1.ebuild
Gentoo

Contents of /sys-apps/netplug/netplug-1.2.9.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Feb 22 09:50:14 2010 UTC (4 years, 5 months ago) by volkmar
Branch: MAIN
Version bump to 1.2.9.1.
Cleaning old ebuilds.
Taking maintainership.
(Portage version: 15321-svn/cvs/Linux ppc)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/netplug/netplug-1.2.9-r5.ebuild,v 1.4 2009/07/13 18:24:16 josejx Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Brings up/down ethernet ports automatically with cable detection"
10 HOMEPAGE="http://www.red-bean.com/~bos/"
11 SRC_URI="http://www.red-bean.com/~bos/netplug/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
16 IUSE="debug doc"
17
18 DEPEND="doc? ( app-text/ghostscript-gpl
19 media-gfx/graphviz )"
20 RDEPEND=""
21
22 src_prepare() {
23 # Remove debug flags from CFLAGS
24 if ! use debug; then
25 sed -i -e "s/ -ggdb3//" Makefile || die "sed failed"
26 fi
27
28 # Remove -O3 and -Werror from CFLAGS
29 sed -i -e "s/ -O3//" -e "s/ -Werror//" Makefile || die "sed failed"
30
31 # Remove nested functions, #116140
32 epatch "${FILESDIR}/${PN}-1.2.9-remove-nest.patch"
33
34 # Ignore wireless events
35 epatch "${FILESDIR}/${PN}-1.2.9-ignore-wireless.patch"
36
37 # warn_unused_result of write POSIX function (which can fails)
38 epatch "${FILESDIR}/${PN}-1.2.9-warn_unused_result_write_call.patch"
39 }
40
41 src_compile() {
42 tc-export CC
43 emake CC="${CC}" || die "emake failed"
44
45 if use doc; then
46 emake -C docs/ || die "emake failed"
47 fi
48 }
49
50 src_install() {
51 into /
52 dosbin netplugd
53 doman man/man8/netplugd.8
54
55 dodir /etc/netplug.d
56 exeinto /etc/netplug.d
57 doexe "${FILESDIR}/netplug"
58
59 dodir /etc/netplug
60 echo "eth*" > "${D}"/etc/netplug/netplugd.conf
61
62 dodoc ChangeLog NEWS README TODO || die "dodoc failed"
63
64 if use doc; then
65 dodoc docs/state-machine.ps || die "dodoc failed"
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20