summaryrefslogtreecommitdiffstats
path: root/rules/portmap.make
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.make
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.make')
-rw-r--r--rules/portmap.make37
1 files changed, 30 insertions, 7 deletions
diff --git a/rules/portmap.make b/rules/portmap.make
index 7675d512f..8f6335d9c 100644
--- a/rules/portmap.make
+++ b/rules/portmap.make
@@ -1,8 +1,8 @@
# -*-makefile-*-
-# $Id:$
+# $Id$
#
# Copyright (C) 2002 by Pengutronix e.K., Hildesheim, Germany
-# See CREDITS for details about who has contributed to this project.
+# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
@@ -14,7 +14,7 @@
PACKAGES-$(PTXCONF_PORTMAP) += portmap
#
-# Paths and names
+# Paths and names
#
PORTMAP_VERSION := 5beta
PORTMAP := portmap_$(PORTMAP_VERSION)
@@ -115,9 +115,32 @@ $(STATEDIR)/portmap.targetinstall: $(portmap_targetinstall_deps_default)
@$(call install_fixup, portmap,DESCRIPTION,missing)
ifdef PTXCONF_PORTMAP_INSTALL_PORTMAPPER
+ @$(call install_copy, portmap, 0, 0, 0755, $(PORTMAP_DIR)/portmap, \
+ /sbin/portmap)
+endif
- @$(call install_copy, portmap, 0, 0, 0755, $(PORTMAP_DIR)/portmap, /sbin/portmap)
+ifdef PTXCONF_ROOTFS_ETC_INITD_PORTMAP_DEFAULT
+# install the generic one
+ @$(call install_copy, portmap, 0, 0, 0755, \
+ $(PTXDIST_TOPDIR)/generic/etc/init.d/portmapd, \
+ /etc/init.d/portmapd, n)
+endif
+ifdef PTXCONF_ROOTFS_ETC_INITD_PORTMAP_USER
+# install users one
+ @$(call install_copy, portmap, 0, 0, 0755, \
+ ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/portmapd, \
+ /etc/init.d/portmapd, n)
endif
+#
+# FIXME: Is this packet the right location for the link?
+#
+ifneq ($(PTXCONF_ROOTFS_ETC_INITD_PORTMAP_LINK),"")
+ @$(call install_copy, portmap, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, portmap, ../init.d/portmapd, \
+ /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_PORTMAP_LINK))
+endif
+
+
@$(call install_finish, portmap)
@$(call touch, $@)
@@ -125,9 +148,9 @@ endif
# Clean
# ----------------------------------------------------------------------------
-portmap_clean:
- rm -rf $(STATEDIR)/portmap.*
- rm -rf $(IMAGEDIR)/portmap_*
+portmap_clean:
+ rm -rf $(STATEDIR)/portmap.*
+ rm -rf $(IMAGEDIR)/portmap_*
rm -rf $(PORTMAP_DIR)
# vim: syntax=make