* [PATCH 0/2] First pass of rpcbind improvements
@ 2012-06-02 2:24 Christopher Larson
2012-06-02 2:24 ` [PATCH 1/2] rpcbind: add and use startup script, move binaries Christopher Larson
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Christopher Larson @ 2012-06-02 2:24 UTC (permalink / raw)
To: openembedded-core
The following changes since commit e3113827810e98eb1b012f0b280fb917199704c1:
webkit-gtk: Use glib as unicode backend to avoid browser crash (2012-05-30 17:37:58 +0100)
are available in the git repository at:
git://github.com/kergoth/oe-core rpcbind-1
for you to fetch changes up to acae76c50ae66d8167038782cc623f5de64e1365:
task-core-basic: drop portmap (2012-06-01 22:02:50 -0400)
----------------------------------------------------------------
Christopher Larson (2):
rpcbind: add and use startup script, move binaries
task-core-basic: drop portmap
meta/recipes-extended/rpcbind/rpcbind/init.d | 85 ++++++++++++++++++++++++
meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | 18 ++++-
meta/recipes-extended/tasks/task-core-basic.bb | 1 -
3 files changed, 101 insertions(+), 3 deletions(-)
create mode 100644 meta/recipes-extended/rpcbind/rpcbind/init.d
--
1.7.10.3
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] rpcbind: add and use startup script, move binaries
2012-06-02 2:24 [PATCH 0/2] First pass of rpcbind improvements Christopher Larson
@ 2012-06-02 2:24 ` Christopher Larson
2012-06-02 2:24 ` [PATCH 2/2] task-core-basic: drop portmap Christopher Larson
2012-06-11 17:30 ` [PATCH 0/2] First pass of rpcbind improvements Flanagan, Elizabeth
2 siblings, 0 replies; 9+ messages in thread
From: Christopher Larson @ 2012-06-02 2:24 UTC (permalink / raw)
To: openembedded-core
- Add init script from debian, tweaked for us
- Move binaries from bindir to sbindir, as debian does
Signed-off-by: Christopher Larson <kergoth@gmail.com>
---
meta/recipes-extended/rpcbind/rpcbind/init.d | 85 ++++++++++++++++++++++++
meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | 18 ++++-
2 files changed, 101 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-extended/rpcbind/rpcbind/init.d
diff --git a/meta/recipes-extended/rpcbind/rpcbind/init.d b/meta/recipes-extended/rpcbind/rpcbind/init.d
new file mode 100644
index 0000000..5c756bb
--- /dev/null
+++ b/meta/recipes-extended/rpcbind/rpcbind/init.d
@@ -0,0 +1,85 @@
+#!/bin/sh
+#
+# start/stop rpcbind daemon.
+
+### BEGIN INIT INFO
+# Provides: rpcbind
+# Required-Start: $network
+# Required-Stop: $network
+# Default-Start: S 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: RPC portmapper replacement
+# Description: rpcbind is a server that converts RPC (Remote
+# Procedure Call) program numbers into DARPA
+# protocol port numbers. It must be running in
+# order to make RPC calls. Services that use
+# RPC include NFS and NIS.
+### END INIT INFO
+
+test -f /sbin/rpcbind || exit 0
+
+OPTIONS=""
+if [ -f /etc/default/rpcbind ]
+then
+ . /etc/default/rpcbind
+elif [ -f /etc/rpcbind.conf ]
+then
+ . /etc/rpcbind.conf
+fi
+
+start ()
+{
+ echo -n "Starting rpcbind daemon..."
+ if pidof /sbin/rpcbind >/dev/null; then
+ echo "already running."
+ exit 0
+ fi
+ start-stop-daemon --start --quiet --exec /sbin/rpcbind -- "$@"
+ if [ $? -eq 0 ]; then
+ echo "done."
+ else
+ echo "failed."
+ fi
+}
+
+stop ()
+{
+ echo "Stopping rpcbind daemon..."
+ if ! pidof /sbin/rpcbind >/dev/null; then
+ echo "not running."
+ exit 0
+ fi
+ start-stop-daemon --stop --quiet --exec /sbin/rpcbind
+ if [ $? -eq 0 ]; then
+ echo "done."
+ else
+ echo "failed."
+ fi
+}
+
+case "$1" in
+ start)
+ start $OPTIONS
+ ;;
+ stop)
+ stop
+ ;;
+ force-reload)
+ stop
+ start $OPTIONS
+ ;;
+ restart)
+ stop
+ start $OPTIONS
+ ;;
+ status)
+ pidof /sbin/rpcbind >/dev/null
+ exit $?
+ ;;
+ *)
+ echo "Usage: /etc/init.d/rpcbind {start|stop|force-reload|restart|status}"
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
index 62f6667..9fb4f51 100644
--- a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
+++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
@@ -11,12 +11,26 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
file://src/rpcinfo.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24"
SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
+ file://init.d \
file://fix_host_path.patch \
"
SRC_URI[md5sum] = "1a77ddb1aaea8099ab19c351eeb26316"
SRC_URI[sha256sum] = "c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3"
-PR = "r2"
+PR = "r3"
-inherit autotools
+inherit autotools update-rc.d
+
+INITSCRIPT_NAME = "rpcbind"
+INITSCRIPT_PARAMS = "start 43 S . start 32 0 6 . stop 81 1 ."
+
+do_install_append () {
+ mv ${D}${bindir} ${D}${sbindir}
+
+ install -d ${D}${sysconfdir}/init.d
+ sed -e 's,/etc/,${sysconfdir}/,g' \
+ -e 's,/sbin/,${sbindir}/,g' \
+ ${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind
+ chmod 0755 ${D}${sysconfdir}/init.d/rpcbind
+}
--
1.7.10.3
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 2/2] task-core-basic: drop portmap
2012-06-02 2:24 [PATCH 0/2] First pass of rpcbind improvements Christopher Larson
2012-06-02 2:24 ` [PATCH 1/2] rpcbind: add and use startup script, move binaries Christopher Larson
@ 2012-06-02 2:24 ` Christopher Larson
2012-08-28 10:54 ` Paul Eggleton
2012-08-28 15:22 ` Koen Kooi
2012-06-11 17:30 ` [PATCH 0/2] First pass of rpcbind improvements Flanagan, Elizabeth
2 siblings, 2 replies; 9+ messages in thread
From: Christopher Larson @ 2012-06-02 2:24 UTC (permalink / raw)
To: openembedded-core
Both rpcbind and portmap are RPC port mappers. Having both is redundant. Chose
rpcbind over portmap as rpcbind supports ipv6, nfs4, and builds without the
glibc rpc headers, which have been obsoleted in glibc 2.14.
Signed-off-by: Christopher Larson <kergoth@gmail.com>
---
meta/recipes-extended/tasks/task-core-basic.bb | 1 -
1 file changed, 1 deletion(-)
diff --git a/meta/recipes-extended/tasks/task-core-basic.bb b/meta/recipes-extended/tasks/task-core-basic.bb
index 8bab0db..a810d37 100644
--- a/meta/recipes-extended/tasks/task-core-basic.bb
+++ b/meta/recipes-extended/tasks/task-core-basic.bb
@@ -148,7 +148,6 @@ RDEPENDS_task-core-sys-services = "\
nfs-utils \
pciutils \
libpcre \
- portmap \
rpcbind \
sysfsutils \
tcp-wrappers \
--
1.7.10.3
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 2/2] task-core-basic: drop portmap
2012-06-02 2:24 ` [PATCH 2/2] task-core-basic: drop portmap Christopher Larson
@ 2012-08-28 10:54 ` Paul Eggleton
2012-08-28 20:37 ` Khem Raj
2012-08-28 15:22 ` Koen Kooi
1 sibling, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-08-28 10:54 UTC (permalink / raw)
To: Christopher Larson; +Cc: openembedded-core
On Friday 01 June 2012 19:24:54 Christopher Larson wrote:
> Both rpcbind and portmap are RPC port mappers. Having both is redundant.
> Chose rpcbind over portmap as rpcbind supports ipv6, nfs4, and builds
> without the glibc rpc headers, which have been obsoleted in glibc 2.14.
>
> Signed-off-by: Christopher Larson <kergoth@gmail.com>
> ---
> meta/recipes-extended/tasks/task-core-basic.bb | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/meta/recipes-extended/tasks/task-core-basic.bb
> b/meta/recipes-extended/tasks/task-core-basic.bb index 8bab0db..a810d37
> 100644
> --- a/meta/recipes-extended/tasks/task-core-basic.bb
> +++ b/meta/recipes-extended/tasks/task-core-basic.bb
> @@ -148,7 +148,6 @@ RDEPENDS_task-core-sys-services = "\
> nfs-utils \
> pciutils \
> libpcre \
> - portmap \
> rpcbind \
> sysfsutils \
> tcp-wrappers \
I came across this while digging back through the history in master. Does this
mean we ought to be switching to rpcbind in our other tasks which currently
bring in portmap (e.g. task-base-nfs, task-core-apps-console)?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] task-core-basic: drop portmap
2012-08-28 10:54 ` Paul Eggleton
@ 2012-08-28 20:37 ` Khem Raj
2012-08-29 17:27 ` Chris Larson
0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2012-08-28 20:37 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On Tue, Aug 28, 2012 at 3:54 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
>> libpcre \
>> - portmap \
>> rpcbind \
>> sysfsutils \
>> tcp-wrappers \
>
> I came across this while digging back through the history in master. Does this
> mean we ought to be switching to rpcbind in our other tasks which currently
> bring in portmap (e.g. task-base-nfs, task-core-apps-console)?
>
I guess yes because rpcbind is more featureful than portmap. its
better to use rpcbind as default portmapper. Things like ipv6, nfsv4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] task-core-basic: drop portmap
2012-08-28 20:37 ` Khem Raj
@ 2012-08-29 17:27 ` Chris Larson
0 siblings, 0 replies; 9+ messages in thread
From: Chris Larson @ 2012-08-29 17:27 UTC (permalink / raw)
To: Khem Raj; +Cc: Paul Eggleton, openembedded-core
On Tue, Aug 28, 2012 at 1:37 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Tue, Aug 28, 2012 at 3:54 AM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>>> libpcre \
>>> - portmap \
>>> rpcbind \
>>> sysfsutils \
>>> tcp-wrappers \
>>
>> I came across this while digging back through the history in master. Does this
>> mean we ought to be switching to rpcbind in our other tasks which currently
>> bring in portmap (e.g. task-base-nfs, task-core-apps-console)?
>>
>
> I guess yes because rpcbind is more featureful than portmap. its
> better to use rpcbind as default portmapper. Things like ipv6, nfsv4
Yeah, I think that would be best. It is worth noting that task-base
and portmap are in recipes-core, while rpcbind is, iirc, in
recipes-support, so such a change would probably be best done when
also swapping the locations of the two recipes.
--
Christopher Larson
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] task-core-basic: drop portmap
2012-06-02 2:24 ` [PATCH 2/2] task-core-basic: drop portmap Christopher Larson
2012-08-28 10:54 ` Paul Eggleton
@ 2012-08-28 15:22 ` Koen Kooi
2012-08-28 16:00 ` Paul Eggleton
1 sibling, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2012-08-28 15:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 2 jun. 2012, om 04:24 heeft Christopher Larson <kergoth@gmail.com> het volgende geschreven:
> Both rpcbind and portmap are RPC port mappers. Having both is redundant. Chose
> rpcbind over portmap as rpcbind supports ipv6, nfs4, and builds without the
> glibc rpc headers, which have been obsoleted in glibc 2.14.
>
> Signed-off-by: Christopher Larson <kergoth@gmail.com>
> ---
> meta/recipes-extended/tasks/task-core-basic.bb | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/meta/recipes-extended/tasks/task-core-basic.bb b/meta/recipes-extended/tasks/task-core-basic.bb
> index 8bab0db..a810d37 100644
> --- a/meta/recipes-extended/tasks/task-core-basic.bb
> +++ b/meta/recipes-extended/tasks/task-core-basic.bb
> @@ -148,7 +148,6 @@ RDEPENDS_task-core-sys-services = "\
> nfs-utils \
> pciutils \
> libpcre \
> - portmap \
> rpcbind \
> sysfsutils \
> tcp-wrappers \
> --
Missing PR bump
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] task-core-basic: drop portmap
2012-08-28 15:22 ` Koen Kooi
@ 2012-08-28 16:00 ` Paul Eggleton
0 siblings, 0 replies; 9+ messages in thread
From: Paul Eggleton @ 2012-08-28 16:00 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On Tuesday 28 August 2012 17:22:02 Koen Kooi wrote:
> Op 2 jun. 2012, om 04:24 heeft Christopher Larson <kergoth@gmail.com> het
volgende geschreven:
> > Both rpcbind and portmap are RPC port mappers. Having both is redundant.
> > Chose rpcbind over portmap as rpcbind supports ipv6, nfs4, and builds
> > without the glibc rpc headers, which have been obsoleted in glibc 2.14.
> >
> > Signed-off-by: Christopher Larson <kergoth@gmail.com>
> > ---
> > meta/recipes-extended/tasks/task-core-basic.bb | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/meta/recipes-extended/tasks/task-core-basic.bb
> > b/meta/recipes-extended/tasks/task-core-basic.bb index 8bab0db..a810d37
> > 100644
> > --- a/meta/recipes-extended/tasks/task-core-basic.bb
> > +++ b/meta/recipes-extended/tasks/task-core-basic.bb
> > @@ -148,7 +148,6 @@ RDEPENDS_task-core-sys-services = "\
> >
> > nfs-utils \
> > pciutils \
> > libpcre \
> >
> > - portmap \
> >
> > rpcbind \
> > sysfsutils \
> > tcp-wrappers \
>
> Missing PR bump
The patch you're replying to was posted ages ago and has already been
merged...
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] First pass of rpcbind improvements
2012-06-02 2:24 [PATCH 0/2] First pass of rpcbind improvements Christopher Larson
2012-06-02 2:24 ` [PATCH 1/2] rpcbind: add and use startup script, move binaries Christopher Larson
2012-06-02 2:24 ` [PATCH 2/2] task-core-basic: drop portmap Christopher Larson
@ 2012-06-11 17:30 ` Flanagan, Elizabeth
2 siblings, 0 replies; 9+ messages in thread
From: Flanagan, Elizabeth @ 2012-06-11 17:30 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, Jun 1, 2012 at 7:24 PM, Christopher Larson <kergoth@gmail.com> wrote:
> The following changes since commit e3113827810e98eb1b012f0b280fb917199704c1:
>
> webkit-gtk: Use glib as unicode backend to avoid browser crash (2012-05-30 17:37:58 +0100)
>
> are available in the git repository at:
>
> git://github.com/kergoth/oe-core rpcbind-1
>
> for you to fetch changes up to acae76c50ae66d8167038782cc623f5de64e1365:
>
> task-core-basic: drop portmap (2012-06-01 22:02:50 -0400)
>
Merged into OE-Core
Thanks
-b
> ----------------------------------------------------------------
> Christopher Larson (2):
> rpcbind: add and use startup script, move binaries
> task-core-basic: drop portmap
>
> meta/recipes-extended/rpcbind/rpcbind/init.d | 85 ++++++++++++++++++++++++
> meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | 18 ++++-
> meta/recipes-extended/tasks/task-core-basic.bb | 1 -
> 3 files changed, 101 insertions(+), 3 deletions(-)
> create mode 100644 meta/recipes-extended/rpcbind/rpcbind/init.d
>
> --
> 1.7.10.3
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Elizabeth Flanagan
Yocto Project
Build and Release
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-08-29 17:40 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02 2:24 [PATCH 0/2] First pass of rpcbind improvements Christopher Larson
2012-06-02 2:24 ` [PATCH 1/2] rpcbind: add and use startup script, move binaries Christopher Larson
2012-06-02 2:24 ` [PATCH 2/2] task-core-basic: drop portmap Christopher Larson
2012-08-28 10:54 ` Paul Eggleton
2012-08-28 20:37 ` Khem Raj
2012-08-29 17:27 ` Chris Larson
2012-08-28 15:22 ` Koen Kooi
2012-08-28 16:00 ` Paul Eggleton
2012-06-11 17:30 ` [PATCH 0/2] First pass of rpcbind improvements Flanagan, Elizabeth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox