summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2004-11-26 15:18:14 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2004-11-26 15:18:14 +0000
commit53410597d80a18783902486390a14da5c693d88a (patch)
tree08495fac059df24529c626739921a1e294b79555
parent506c1139bf113821d11c439daaef33d1284524c5 (diff)
downloadptxdist-53410597d80a18783902486390a14da5c693d88a.tar.gz
ptxdist-53410597d80a18783902486390a14da5c693d88a.tar.xz
fixes cross compile issue and allows fine grained install options; patch by Steven Scholz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2061 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/mgetty.in28
-rw-r--r--rules/mgetty.make50
2 files changed, 58 insertions, 20 deletions
diff --git a/rules/mgetty.in b/rules/mgetty.in
index 2b5766075..f1fcb057a 100644
--- a/rules/mgetty.in
+++ b/rules/mgetty.in
@@ -10,4 +10,32 @@ config MGETTY_CONFIG
default "build/mgetty-1.1.30/policy.h-dist"
depends on MGETTY
+config MGETTY_INSTALL_CONFIG
+ prompt "Install default config files to $(ROOTDIR)/etc/mgetty+sendfax"
+ bool
+ default y
+ depends on MGETTY
+ help
+ Enabling this option installs mgetty's default config files onto your target.
+ Say N here if you want to use your own files and make sure they're installed
+ by your vendortweaks.
+
+config SENDFAX
+ prompt "Install sendfax and G3 helper tools"
+ bool
+ default y
+ depends on MGETTY
+
+config SENDFAX_SPOOL
+ bool
+ default y
+ prompt "Install faxspooling programs"
+ depends on MGETTY
+
+config MGETTY_CALLBACK
+ prompt "Install callback program"
+ bool
+ default n
+ depends on MGETTY
+
endmenu
diff --git a/rules/mgetty.make b/rules/mgetty.make
index a16c46096..525fa488b 100644
--- a/rules/mgetty.make
+++ b/rules/mgetty.make
@@ -1,4 +1,3 @@
-# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by BSP
@@ -96,7 +95,8 @@ mgetty_compile_deps = $(STATEDIR)/mgetty.prepare
$(STATEDIR)/mgetty.compile: $(mgetty_compile_deps)
@$(call targetinfo, $@)
- $(MGETTY_PATH) $(MGETTY_ENV) make -C $(MGETTY_DIR) \
+ cd $(MGETTY_DIR) && make mksed
+ cd $(MGETTY_DIR) && $(MGETTY_PATH) $(MGETTY_ENV) make \
bin-all mgetty.config login.config sendfax.config
touch $@
@@ -123,31 +123,41 @@ $(STATEDIR)/mgetty.targetinstall: $(mgetty_targetinstall_deps)
@$(call targetinfo, $@)
mkdir -p $(ROOTDIR)/usr/bin
mkdir -p $(ROOTDIR)/usr/sbin
- mkdir -p $(ROOTDIR)/usr/lib/mgetty+sendfax
+ifdef PTXCONF_MGETTY_INSTALL_CONFIG
mkdir -p $(ROOTDIR)/etc/mgetty+sendfax
-
- $(INSTALL) -m 600 $(MGETTY_DIR)/login.config $(ROOTDIR)/etc/mgetty+sendfax
- $(INSTALL) -m 600 $(MGETTY_DIR)/mgetty.config $(ROOTDIR)/etc/mgetty+sendfax
- $(INSTALL) -m 600 $(MGETTY_DIR)/dialin.config $(ROOTDIR)/etc/mgetty+sendfax
- $(INSTALL) -m 644 $(MGETTY_DIR)/sendfax.config $(ROOTDIR)/etc/mgetty+sendfax
- $(INSTALL) -m 644 $(MGETTY_DIR)/faxrunq.config $(ROOTDIR)/etc/mgetty+sendfax
- $(INSTALL) -s -m 700 $(MGETTY_DIR)/mgetty $(ROOTDIR)/usr/sbin
+ $(call copy_root, 0, 0, 0600, $(MGETTY_DIR)/login.config, /etc/mgetty+sendfax)
+ $(call copy_root, 0, 0, 0600, $(MGETTY_DIR)/mgetty.config, /etc/mgetty+sendfax)
+ $(call copy_root, 0, 0, 0600, $(MGETTY_DIR)/dialin.config, /etc/mgetty+sendfax)
+endif
+ $(call copy_root, 0, 0, 0700, $(MGETTY_DIR)/mgetty, /usr/sbin)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/sbin/mgetty
- $(INSTALL) -s -m 755 $(MGETTY_DIR)/sendfax $(ROOTDIR)/usr/bin
+ifdef PTXCONF_SENDFAX
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/sendfax, /usr/sbin)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/sendfax
- $(INSTALL) -s -m 755 $(MGETTY_DIR)/g3/pbm2g3 $(ROOTDIR)/usr/bin
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/g3/pbm2g3, /usr/bin)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/pbm2g3
- $(INSTALL) -s -m 755 $(MGETTY_DIR)/g3/g3cat $(ROOTDIR)/usr/bin
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/g3/g3cat, /usr/bin)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/g3cat
- $(INSTALL) -s -m 755 $(MGETTY_DIR)/g3/g32pbm $(ROOTDIR)/usr/bin
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/g3/g32pbm, /usr/bin)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/g32pbm
- $(INSTALL) -m 755 $(MGETTY_DIR)/fax/faxspool $(ROOTDIR)/usr/bin
- $(INSTALL) -m 755 $(MGETTY_DIR)/fax/faxrunq $(ROOTDIR)/usr/bin
- $(INSTALL) -m 755 $(MGETTY_DIR)/fax/faxq $(ROOTDIR)/usr/bin
- $(INSTALL) -m 755 $(MGETTY_DIR)/fax/faxrm $(ROOTDIR)/usr/bin
- $(INSTALL) -m 755 $(MGETTY_DIR)/fax/faxrunqd $(ROOTDIR)/usr/bin
- $(INSTALL) -s -m 755 $(MGETTY_DIR)/fax/faxq-helper $(ROOTDIR)/usr/lib/mgetty+sendfax
+ifdef PTXCONF_MGETTY_INSTALL_CONFIG
+ $(call copy_root, 0, 0, 0644, $(MGETTY_DIR)/sendfax.config, /etc/mgetty+sendfax)
+ $(INSTALL) -m 644 $(MGETTY_DIR)/sendfax.config $(ROOTDIR)/etc/mgetty+sendfax
+endif
+ifdef PTXCONF_SENDFAX_SPOOL
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxspool, /usr/bin)
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxrunq, /usr/bin)
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxq, /usr/bin)
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxrm, /usr/bin)
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxrunqd, /usr/bin)
+ mkdir -p $(ROOTDIR)/usr/lib/mgetty+sendfax
+ $(call copy_root, 0, 0, 0755, $(MGETTY_DIR)/fax/faxq-helper, /usr/lib/mgetty+sendfax)
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/lib/mgetty+sendfax/faxq-helper
+ifdef PTXCONF_MGETTY_INSTALL_CONFIG
+ $(call copy_root, 0, 0, 0644, $(MGETTY_DIR)/faxrunq.config, /etc/mgetty+sendfax)
+ $(INSTALL) -m 644 $(MGETTY_DIR)/faxrunq.config $(ROOTDIR)/etc/mgetty+sendfax
+endif
+endif
touch $@
# ----------------------------------------------------------------------------