diff options
Diffstat (limited to 'rules')
-rw-r--r-- | rules/fam.in | 60 | ||||
-rw-r--r-- | rules/fam.make | 24 | ||||
-rw-r--r-- | rules/rootfs_rc_d_links.in | 12 |
3 files changed, 84 insertions, 12 deletions
diff --git a/rules/fam.in b/rules/fam.in index d958f0bee..64786db39 100644 --- a/rules/fam.in +++ b/rules/fam.in @@ -2,7 +2,7 @@ menuconfig FAM bool - prompt "famd " + prompt "fam " select PORTMAP select GCCLIBS_CXX select GCCLIBS_GCC_S @@ -28,7 +28,7 @@ config FAM_LIBRARY If there is an application that is linked against libfam check this entry to install this library also on the target -comment "cvs runtime options ---" +comment "runtime options ---" depends on FAM config FAM_DEFAULT_CONF @@ -40,17 +40,30 @@ config FAM_DEFAULT_CONF This installs fam distribution's fam.conf file. Its almost generic and usable. -config FAM_INETD_SERVER - bool - default y +choice + prompt "Kind of startup" + default FAM_STARTUP_TYPE_STANDALONE depends on FAM - prompt "Start from inetd" - help - This installs a startup configuration for famd from inetd. It adds to - the /etc/inetd.conf a line like this: - sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd famd -c /etc/fam.conf - Note: You must enable one of the two possible inet daemons: There is - one embedded in busybox and one in packet inetutils. + + config FAM_INETD_SERVER + bool + prompt "inetd driven" + help + This installs a startup configuration for famd from inetd. It adds to + the /etc/inetd.conf a line like this: + sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd famd -c /etc/fam.conf + Note: You must enable one of the two possible inet daemons: There is + one embedded in busybox and one in packet inetutils. + + config FAM_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 FAM_INETD_STRING string @@ -60,3 +73,26 @@ config FAM_INETD_STRING default "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd famd -c /etc/fam.conf" help This string is added to inetd's configuration /etc/inetd.conf. + +choice + prompt "Kind of startup script" + default ROOTFS_ETC_INITD_FAM_DEFAULT + depends on FAM + depends on FAM_STARTUP_TYPE_STANDALONE + + config ROOTFS_ETC_INITD_FAM_DEFAULT + bool + prompt "Use generic" + help + Installs a generic /etc/init.d/famd startup script. + See <ptxdist-install>/generic/etc/init.d/famd + + config ROOTFS_ETC_INITD_FAM_USER + bool + prompt "User defined" + help + This uses a user defined fam startup script. PTXdist + uses files projectroot/etc/init.d/famd in your local + project + +endchoice diff --git a/rules/fam.make b/rules/fam.make index 0eb92f4d7..15dbe6bfc 100644 --- a/rules/fam.make +++ b/rules/fam.make @@ -129,6 +129,30 @@ ifdef PTXCONF_FAM_LIBRARY @$(call install_link, fam, /usr/lib/libfam.so.0.0.0, \ /usr/lib/libfam.so) endif + +ifdef PTXCONF_FAM_STARTUP_TYPE_STANDALONE +ifdef PTXCONF_ROOTFS_ETC_INITD_FAM_DEFAULT +# install the generic one + @$(call install_copy, fam, 0, 0, 0755, \ + $(PTXDIST_TOPDIR)/generic/etc/init.d/famd, \ + /etc/init.d/famd, n) +endif +ifdef PTXCONF_ROOTFS_ETC_INITD_FAM_USER +# install users one + @$(call install_copy, fam, 0, 0, 0755, \ + ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/famd, \ + /etc/init.d/famd, n) +endif +# +# FIXME: Is this packet the right location for the link? +# +ifneq ($(PTXCONF_ROOTFS_ETC_INITD_FAM_LINK),"") + @$(call install_copy, portmap, 0, 0, 0755, /etc/rc.d) + @$(call install_link, portmap, ../init.d/famd, \ + /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_FAM_LINK)) +endif +endif + @$(call install_finish,fam) @$(call touch, $@) diff --git a/rules/rootfs_rc_d_links.in b/rules/rootfs_rc_d_links.in index 573c884c9..35a852455 100644 --- a/rules/rootfs_rc_d_links.in +++ b/rules/rootfs_rc_d_links.in @@ -167,3 +167,15 @@ config ROOTFS_ETC_INITD_PORTMAP_LINK help Set a link into /etc/rc.d which points to /etc/init.d/portmapd to start portmap as a standalone service when system starts. + + +############################## fam ########################################## + +config ROOTFS_ETC_INITD_FAM_LINK + depends on FAM_STARTUP_TYPE_STANDALONE + string + prompt "fam link name" + default "S15_famd" + help + Set a link into /etc/rc.d which points to /etc/init.d/famd to + start fam as a standalone service when system starts. |