summaryrefslogtreecommitdiffstats
path: root/rules/utelnetd.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-08-08 09:37:23 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-08-08 09:37:23 +0000
commitc93243b43916baed7334a9c511a4c9f7f98d563a (patch)
tree21e14751df7b373da760b0fb4b9cdc6ef43b72c6 /rules/utelnetd.make
parentebf2cfd9657ef3a1fa7cf43a8f709ee2c7e81c97 (diff)
downloadptxdist-c93243b43916baed7334a9c511a4c9f7f98d563a.tar.gz
ptxdist-c93243b43916baed7334a9c511a4c9f7f98d563a.tar.xz
* patches/utelnetd-0.1.9, rules/utelnetd.make:
version bump to 0.1.10, cleanups git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8732 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/utelnetd.make')
-rw-r--r--rules/utelnetd.make85
1 files changed, 25 insertions, 60 deletions
diff --git a/rules/utelnetd.make b/rules/utelnetd.make
index d0df7ae78..965116667 100644
--- a/rules/utelnetd.make
+++ b/rules/utelnetd.make
@@ -1,7 +1,7 @@
# -*-makefile-*-
# $Id$
#
-# Copyright (C) 2002, 2003 by Pengutronix e.K., Hildesheim, Germany
+# Copyright (C) 2002, 2003, 2008 by Pengutronix e.K., Hildesheim, Germany
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
@@ -16,83 +16,48 @@ PACKAGES-$(PTXCONF_UTELNETD) += utelnetd
#
# Paths and names
#
-UTELNETD_VERSION = 0.1.9
-UTELNETD = utelnetd-$(UTELNETD_VERSION)
-UTELNETD_URL = http://www.pengutronix.de/software/utelnetd/$(UTELNETD).tar.gz
-UTELNETD_SOURCE = $(SRCDIR)/$(UTELNETD).tar.gz
-UTELNETD_DIR = $(BUILDDIR)/$(UTELNETD)
+UTELNETD_VERSION := 0.1.10
+UTELNETD := utelnetd-$(UTELNETD_VERSION)
+UTELNETD_URL := http://www.pengutronix.de/software/utelnetd/$(UTELNETD).tar.gz
+UTELNETD_SOURCE := $(SRCDIR)/$(UTELNETD).tar.gz
+UTELNETD_DIR := $(BUILDDIR)/$(UTELNETD)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
-utelnetd_get: $(STATEDIR)/utelnetd.get
-
-$(STATEDIR)/utelnetd.get: $(utelnetd_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(UTELNETD_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, UTELNETD)
# ----------------------------------------------------------------------------
-# Extract
-# ----------------------------------------------------------------------------
-
-utelnetd_extract: $(STATEDIR)/utelnetd.extract
-
-$(STATEDIR)/utelnetd.extract: $(utelnetd_extract_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(UTELNETS_DIR))
- @$(call extract, UTELNETD)
- @$(call patchin, UTELNETD)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-utelnetd_prepare: $(STATEDIR)/utelnetd.prepare
-
-$(STATEDIR)/utelnetd.prepare: $(utelnetd_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
+$(STATEDIR)/utelnetd.prepare:
+ @$(call targetinfo)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
-utelnetd_compile: $(STATEDIR)/utelnetd.compile
-
-UTELNETD_ENVIRONMENT += PATH=$(CROSS_PATH)
-UTELNETD_MAKEVARS += CROSS=$(COMPILER_PREFIX) \
- EXTRA_CFLAGS='$(call remove_quotes,$(TARGET_CFLAGS))'
-
-$(STATEDIR)/utelnetd.compile: $(utelnetd_compile_deps_default)
- @$(call targetinfo, $@)
- $(UTELNETD_ENVIRONMENT) make -C $(UTELNETD_DIR) $(UTELNETD_MAKEVARS)
- @$(call touch, $@)
+UTELNETD_PATH := PATH=$(CROSS_PATH)
+UTELNETD_ENV := PATH=$(CROSS_PATH)
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-utelnetd_install: $(STATEDIR)/utelnetd.install
+UTELNETD_COMPILE_ENV := \
+ CROSS_COMPILE=$(COMPILER_PREFIX) \
+ $(CROSS_ENV_FLAGS)
-$(STATEDIR)/utelnetd.install: $(utelnetd_install_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
+UTELNETD_MAKEVARS := INSTDIR=/sbin
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-utelnetd_targetinstall: $(STATEDIR)/utelnetd.targetinstall
-
-$(STATEDIR)/utelnetd.targetinstall: $(utelnetd_targetinstall_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/utelnetd.targetinstall:
+ @$(call targetinfo)
@$(call install_init, utelnetd)
@$(call install_fixup, utelnetd,PACKAGE,utelnetd)
@@ -106,40 +71,40 @@ $(STATEDIR)/utelnetd.targetinstall: $(utelnetd_targetinstall_deps_default)
#
# Install the startup script on request only
#
-ifdef PTXCONF_ROOTFS_ETC_INITD_UTELNETD
ifdef PTXCONF_ROOTFS_ETC_INITD_UTELNETD_DEFAULT
# install the generic one
@$(call install_copy, utelnetd, 0, 0, 0755, \
$(PTXDIST_TOPDIR)/generic/etc/init.d/telnetd, \
/etc/init.d/telnetd, n)
endif
+
ifdef PTXCONF_ROOTFS_ETC_INITD_UTELNETD_USER
# install users one
@$(call install_copy, utelnetd, 0, 0, 0755, \
${PTXDIST_WORKSPACE}/projectroot/etc/init.d/utelnetd, \
/etc/init.d/telnetd, n)
endif
-#
-# FIXME: Is this packet the right location for the link?
-#
+
ifneq ($(PTXCONF_ROOTFS_ETC_INITD_TELNETD_LINK),"")
@$(call install_copy, utelnetd, 0, 0, 0755, /etc/rc.d)
@$(call install_link, utelnetd, ../init.d/telnetd, \
/etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_TELNETD_LINK))
endif
-endif
+
@$(call install_copy, utelnetd, 0, 0, 0755, $(UTELNETD_DIR)/utelnetd, \
/sbin/utelnetd)
@$(call install_finish, utelnetd)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
utelnetd_clean:
- rm -rf $(STATEDIR)/utelnetd.* $(UTELNETD_DIR)
+ rm -rf $(STATEDIR)/utelnetd.*
+ rm -rf $(PKGDIR)/utelnetd_*
+ rm -rf $(UTELNETD_DIR)
# vim: syntax=make