summaryrefslogtreecommitdiffstats
path: root/rules/portmap.in
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-11-11 19:32:32 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-11-11 19:32:32 +0000
commit789b48c64737246cfe4faf2194384a0475c04f35 (patch)
tree1e30b01a8674e425dbfd7bd91b080bcca2cc87e1 /rules/portmap.in
parent7131464d91d57d8d705f0c7fdad7f500bd3b490c (diff)
downloadptxdist-789b48c64737246cfe4faf2194384a0475c04f35.tar.gz
ptxdist-789b48c64737246cfe4faf2194384a0475c04f35.tar.xz
* portmap (rpc)
- starting from inetd or standalone - lets user select his own startscript - adding entries in /etc/services and /etc/inetd.conf automatically - adding rc.d link git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6299 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/portmap.in')
-rw-r--r--rules/portmap.in62
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/portmap.in b/rules/portmap.in
index c19a46023..de4638f11 100644
--- a/rules/portmap.in
+++ b/rules/portmap.in
@@ -11,6 +11,68 @@ menuconfig PORTMAP
config PORTMAP_INSTALL_PORTMAPPER
bool
depends on PORTMAP
+ default y
prompt "Install /sbin/portmap"
help
Install the portmapper into /sbin/portmap
+
+comment "runtime options ---"
+ depends on PORTMAP
+
+choice
+ prompt "Kind of startup"
+ default PORTMAP_STARTUP_TYPE_STANDALONE
+ depends on PORTMAP
+
+ config PORTMAP_INETD_SERVER
+ bool
+ prompt "inetd driven"
+ help
+ portmap will be started on demand from inetd. This installs
+ a startup configuration for portmap from inetd. It adds to the
+ /etc/inetd.conf a line like this:
+ portmap stream tcp nowait root /sbin/portmap portmap
+ Note: You must enable one of the two possible inet daemons:
+ There is one embedded in busybox and one in packet inetutils.
+
+ config PORTMAP_STARTUP_TYPE_STANDALONE
+ bool
+ prompt "standalone"
+ help
+ This installs a startup script into /etc/init.d/portmapd. With
+ this script portmap will be started at system startup and waits
+ for connections
+
+endchoice
+
+config PORTMAP_INETD_STRING
+ string
+ depends on PORTMAP
+ depends on PORTMAP_INETD_SERVER
+ prompt "inetd service entry"
+ default "portmap stream tcp nowait root /sbin/portmap portmap"
+ help
+ This string is added to inetd's configuration /etc/inetd.conf.
+
+choice
+ prompt "Kind of startup script"
+ default ROOTFS_ETC_INITD_PORTMAP_DEFAULT
+ depends on PORTMAP
+ depends on PORTMAP_STARTUP_TYPE_STANDALONE
+
+ config ROOTFS_ETC_INITD_PORTMAP_DEFAULT
+ bool
+ prompt "Use generic"
+ help
+ Installs a generic /etc/init.d/portmapd startup script.
+ See <ptxdist-install>/generic/etc/init.d/portmapd
+
+ config ROOTFS_ETC_INITD_PORTMAP_USER
+ bool
+ prompt "User defined"
+ help
+ This uses a user defined portmap startup script. PTXdist
+ uses files projectroot/etc/init.d/portmapd in your local
+ project
+
+endchoice