1 |
patrick 09/03/01 19:58:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: netplug-1.2.9-r5.ebuild |
5 |
Log: |
6 |
Fix for gcc 4.3.3 / fortify_sources, remove -Werror from Makefile. Patches by Romain Perier and Magnus Granberg. |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.17 sys-apps/netplug/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/netplug/ChangeLog?rev=1.17&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/netplug/ChangeLog?rev=1.17&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/netplug/ChangeLog?r1=1.16&r2=1.17 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/netplug/ChangeLog,v |
19 |
retrieving revision 1.16 |
20 |
retrieving revision 1.17 |
21 |
diff -u -r1.16 -r1.17 |
22 |
--- ChangeLog 27 Nov 2008 22:13:28 -0000 1.16 |
23 |
+++ ChangeLog 1 Mar 2009 19:58:55 -0000 1.17 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for sys-apps/netplug |
26 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/netplug/ChangeLog,v 1.16 2008/11/27 22:13:28 armin76 Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/netplug/ChangeLog,v 1.17 2009/03/01 19:58:55 patrick Exp $ |
30 |
+ |
31 |
+*netplug-1.2.9-r5 (01 Mar 2009) |
32 |
+ |
33 |
+ 01 Mar 2009; Patrick Lauer <patrick@g.o> |
34 |
+ +files/netplug-1.2.9-remove-werror.patch, |
35 |
+ +files/netplug-1.2.9-warn_unused_result_write_call.patch, |
36 |
+ +netplug-1.2.9-r5.ebuild: |
37 |
+ Fix for gcc 4.3.3 / fortify_sources, remove -Werror from Makefile. Patches |
38 |
+ by Romain Perier and Magnus Granberg. |
39 |
|
40 |
27 Nov 2008; Raúl Porcel <armin76@g.o> netplug-1.2.9-r4.ebuild: |
41 |
sparc/x86 stable |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-apps/netplug/netplug-1.2.9-r5.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/netplug/netplug-1.2.9-r5.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/netplug/netplug-1.2.9-r5.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: netplug-1.2.9-r5.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2009 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/netplug/netplug-1.2.9-r5.ebuild,v 1.1 2009/03/01 19:58:55 patrick Exp $ |
55 |
|
56 |
inherit eutils toolchain-funcs |
57 |
DESCRIPTION="Brings up/down ethernet ports automatically with cable detection" |
58 |
HOMEPAGE="http://www.red-bean.com/~bos/" |
59 |
SRC_URI="http://www.red-bean.com/~bos/netplug/${P}.tar.bz2" |
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
63 |
IUSE="" |
64 |
|
65 |
hax_bitkeeper() { |
66 |
# the makefiles have support for bk ... |
67 |
# basically we have to do this or bk will try to write |
68 |
# to files in /opt/bitkeeper causing sandbox violations ;( |
69 |
mkdir "${T}/fakebin" |
70 |
echo "#!/bin/sh"$'\n'"exit 1" > "${T}/fakebin/bk" |
71 |
chmod a+x "${T}/fakebin/bk" |
72 |
export PATH="${T}/fakebin:${PATH}" |
73 |
} |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
|
79 |
# Remove debugging from Makefile |
80 |
# Remove -O3 if we have -O[0-9,s] in our CFLAGS |
81 |
local remove=" -ggdb3 " |
82 |
[[ " ${CFLAGS} " == *" -O"[0-9,s]" "* ]] && remove="${remove}-O3 " |
83 |
sed -i -e "s/${remove}/ /" Makefile |
84 |
|
85 |
# Use correct structure for getsockname arg 3 |
86 |
epatch "${FILESDIR}/${P}-gcc4.patch" |
87 |
|
88 |
# Remove nested functions, #116140 |
89 |
epatch "${FILESDIR}/${P}-remove-nest.patch" |
90 |
|
91 |
# Ignore wireless events |
92 |
epatch "${FILESDIR}/${P}-ignore-wireless.patch" |
93 |
|
94 |
# warn_unused_result of write POSIX function (which can fails) |
95 |
epatch "${FILESDIR}/${P}-warn_unused_result_write_call.patch" |
96 |
|
97 |
# remove -Werror from makefile |
98 |
epatch "${FILESDIR}/${P}-remove-werror.patch" |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
tc-export CC |
103 |
hax_bitkeeper |
104 |
make CC="${CC}" || die "emake failed" |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
into / |
109 |
dosbin netplugd |
110 |
doman man/man8/netplugd.8 |
111 |
|
112 |
dodir /etc/netplug.d |
113 |
exeinto /etc/netplug.d |
114 |
doexe "${FILESDIR}/netplug" |
115 |
|
116 |
dodir /etc/netplug |
117 |
echo "eth*" > "${D}"/etc/netplug/netplugd.conf |
118 |
} |