Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nds/portmap/files: portmap.rc6
Date: Sat, 30 May 2009 20:50:42
Message-Id: E1MAVVn-0004fu-P0@stork.gentoo.org
1 vapier 09/05/30 20:50:39
2
3 Modified: portmap.rc6
4 Log:
5 Add check for SUNRPC_REGISTER_V4=y in kernel config.
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.13 net-nds/portmap/files/portmap.rc6
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/portmap/files/portmap.rc6?rev=1.13&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/portmap/files/portmap.rc6?rev=1.13&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/portmap/files/portmap.rc6?r1=1.12&r2=1.13
14
15 Index: portmap.rc6
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-nds/portmap/files/portmap.rc6,v
18 retrieving revision 1.12
19 retrieving revision 1.13
20 diff -u -r1.12 -r1.13
21 --- portmap.rc6 13 Jun 2007 07:52:44 -0000 1.12
22 +++ portmap.rc6 30 May 2009 20:50:39 -0000 1.13
23 @@ -1,7 +1,7 @@
24 #!/sbin/runscript
25 # Copyright 1999-2007 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/files/portmap.rc6,v 1.12 2007/06/13 07:52:44 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/files/portmap.rc6,v 1.13 2009/05/30 20:50:39 vapier Exp $
29
30 depend() {
31 use net
32 @@ -9,7 +9,20 @@
33 before xinetd
34 }
35
36 +checkconfig() {
37 + if [ -e /proc/config.gz ] ; then
38 + if zcat /proc/config.gz | grep -s SUNRPC_REGISTER_V4=y ; then
39 + eerror "portmap does not work with SUNRPC_REGISTER_V4=y;"
40 + eerror "disable it or use the net-nds/rpcbind package."
41 + return 1
42 + fi
43 + fi
44 + return 0
45 +}
46 +
47 start() {
48 + checkconfig || return 1
49 +
50 ebegin "Starting portmap"
51 start-stop-daemon --start --quiet --exec /sbin/portmap -- ${PORTMAP_OPTS}
52 local ret=$?