diff options
author | (no author) <(no author)@33e552b5-05e3-0310-8538-816dae2090ed> | 2004-09-08 13:55:28 +0000 |
---|---|---|
committer | (no author) <(no author)@33e552b5-05e3-0310-8538-816dae2090ed> | 2004-09-08 13:55:28 +0000 |
commit | 2affbaf1dd9057bd48bdb469098a5376d0eec7a2 (patch) | |
tree | 5af46988f37c0b2b3182702ee87dba8dd590ee06 /rules/sudo.make | |
parent | 6e9ae497798e7484d03e22dafe88376b994bea60 (diff) | |
download | ptxdist-2affbaf1dd9057bd48bdb469098a5376d0eec7a2.tar.gz ptxdist-2affbaf1dd9057bd48bdb469098a5376d0eec7a2.tar.xz |
BSP: etherwake added, sudo added (broken), some fixes, new WYSTUP
config.
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.5.2-trunk@1701 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/sudo.make')
-rw-r--r-- | rules/sudo.make | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/rules/sudo.make b/rules/sudo.make new file mode 100644 index 000000000..d219b61cd --- /dev/null +++ b/rules/sudo.make @@ -0,0 +1,139 @@ +# -*-makefile-*- +# $Id: template 1681 2004-09-01 18:12:49Z $ +# +# Copyright (C) 2004 by BSP +# +# 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. +# + +# +# We provide this package +# +ifdef PTXCONF_SUDO +PACKAGES += sudo +endif + +# +# Paths and names +# +SUDO_VERSION = 1.6.8 +SUDO = sudo-$(SUDO_VERSION) +SUDO_SUFFIX = tar.gz +SUDO_URL = http://www.courtesan.com/sudo/dist/$(SUDO).$(SUDO_SUFFIX) +SUDO_SOURCE = $(SRCDIR)/$(SUDO).$(SUDO_SUFFIX) +SUDO_DIR = $(BUILDDIR)/$(SUDO) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +sudo_get: $(STATEDIR)/sudo.get + +sudo_get_deps = $(SUDO_SOURCE) + +$(STATEDIR)/sudo.get: $(sudo_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(SUDO)) + touch $@ + +$(SUDO_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(SUDO_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +sudo_extract: $(STATEDIR)/sudo.extract + +sudo_extract_deps = $(STATEDIR)/sudo.get + +$(STATEDIR)/sudo.extract: $(sudo_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(SUDO_DIR)) + @$(call extract, $(SUDO_SOURCE)) + @$(call patchin, $(SUDO)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +sudo_prepare: $(STATEDIR)/sudo.prepare + +# +# dependencies +# +sudo_prepare_deps = \ + $(STATEDIR)/sudo.extract \ + $(STATEDIR)/virtual-xchain.install + +SUDO_PATH = PATH=$(CROSS_PATH) +SUDO_ENV = $(CROSS_ENV) +#SUDO_ENV += PKG_CONFIG_PATH=$(CROSS_LIB_DIR)/lib/pkgconfig +#SUDO_ENV += + +# +# autoconf +# +SUDO_AUTOCONF = \ + --build=$(GNU_HOST) \ + --host=$(PTXCONF_GNU_TARGET) \ + --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/sudo.prepare: $(sudo_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(SUDO_DIR)/config.cache) + cd $(SUDO_DIR) && \ + $(SUDO_PATH) $(SUDO_ENV) \ + ./configure $(SUDO_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +sudo_compile: $(STATEDIR)/sudo.compile + +sudo_compile_deps = $(STATEDIR)/sudo.prepare + +$(STATEDIR)/sudo.compile: $(sudo_compile_deps) + @$(call targetinfo, $@) + cd $(SUDO_DIR) && $(SUDO_ENV) $(SUDO_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +sudo_install: $(STATEDIR)/sudo.install + +$(STATEDIR)/sudo.install: $(STATEDIR)/sudo.compile + @$(call targetinfo, $@) + cd $(SUDO_DIR) && $(SUDO_ENV) $(SUDO_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +sudo_targetinstall: $(STATEDIR)/sudo.targetinstall + +sudo_targetinstall_deps = $(STATEDIR)/sudo.compile + +$(STATEDIR)/sudo.targetinstall: $(sudo_targetinstall_deps) + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +sudo_clean: + rm -rf $(STATEDIR)/sudo.* + rm -rf $(SUDO_DIR) + +# vim: syntax=make |