summaryrefslogtreecommitdiffstats
path: root/rules/portmap.in
blob: 28f88d14ea0daceeff5f78575cbe94f062dbf46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
menuconfig PORTMAP
	tristate
	prompt "portmapper                    "
	select LIBC_NSL
	help
	  Portmap is a server that converts RPC program numbers into DARPA protocol
	  port numbers.  It must be running in order to make RPC calls.

	  Its needed for at least NFS service

if PORTMAP

config	PORTMAP_INSTALL_PORTMAPPER
	bool
	default y
	prompt "Install /sbin/portmap"
	help
	  Install the portmapper into /sbin/portmap

comment "runtime options   ---"

choice
	prompt "Kind of startup"
	default PORTMAP_STARTUP_TYPE_STANDALONE

	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_INETD_SERVER
	prompt "inetd service entry"
	default "sunrpc 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_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
endif