diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-01-06 17:42:55 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-01-06 17:42:55 +0000 |
commit | 3e1f2f06ff463118ce66e90ea4c98d454bbabbc3 (patch) | |
tree | 3db9f4a71023f5f2231742fa2e8bc86f8bab10c9 /rules/samba.make | |
parent | b3f3f8c3115634ffee4adefc47442be057b5e82e (diff) | |
download | ptxdist-3e1f2f06ff463118ce66e90ea4c98d454bbabbc3.tar.gz ptxdist-3e1f2f06ff463118ce66e90ea4c98d454bbabbc3.tar.xz |
* samba: added (but doesn't work yet)
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6757 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/samba.make')
-rw-r--r-- | rules/samba.make | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/rules/samba.make b/rules/samba.make new file mode 100644 index 000000000..224718443 --- /dev/null +++ b/rules/samba.make @@ -0,0 +1,144 @@ +# -*-makefile-*- +# $Id: template 6487 2006-12-07 20:55:55Z rsc $ +# +# Copyright (C) 2006 by Robert Schwebel +# +# 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 +# +PACKAGES-$(PTXCONF_SAMBA) += samba + +# +# Paths and names +# +SAMBA_VERSION := 3.0.23d +SAMBA := samba-$(SAMBA_VERSION) +SAMBA_SUFFIX := tar.gz +SAMBA_URL := http://us5.samba.org/samba/ftp/$(SAMBA).$(SAMBA_SUFFIX) +SAMBA_SOURCE := $(SRCDIR)/$(SAMBA).$(SAMBA_SUFFIX) +SAMBA_DIR := $(BUILDDIR)/$(SAMBA) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +samba_get: $(STATEDIR)/samba.get + +$(STATEDIR)/samba.get: $(samba_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(SAMBA_SOURCE): + @$(call targetinfo, $@) + @$(call get, SAMBA) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +samba_extract: $(STATEDIR)/samba.extract + +$(STATEDIR)/samba.extract: $(samba_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(SAMBA_DIR)) + @$(call extract, SAMBA) + @$(call patchin, SAMBA) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +samba_prepare: $(STATEDIR)/samba.prepare + +SAMBA_PATH := PATH=$(CROSS_PATH) + +SAMBA_ENV := \ + $(CROSS_ENV) \ + samba_cv_HAVE_GETTIMEOFDAY_TZ=yes + +# +# autoconf +# +SAMBA_AUTOCONF := $(CROSS_AUTOCONF_USR) + +ifdef PTXCONF_SAMBA_CUPS +SAMBA_AUTOCONF += --enable-cups +else +SAMBA_AUTOCONF += --disable-cups +endif + +$(STATEDIR)/samba.prepare: $(samba_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(SAMBA_DIR)/config.cache) + cd $(SAMBA_DIR)/source && \ + $(SAMBA_PATH) $(SAMBA_ENV) \ + ./configure $(SAMBA_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +samba_compile: $(STATEDIR)/samba.compile + +$(STATEDIR)/samba.compile: $(samba_compile_deps_default) + @$(call targetinfo, $@) + cd $(SAMBA_DIR)/source && $(SAMBA_PATH) $(MAKE) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +samba_install: $(STATEDIR)/samba.install + +$(STATEDIR)/samba.install: $(samba_install_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +samba_targetinstall: $(STATEDIR)/samba.targetinstall + +$(STATEDIR)/samba.targetinstall: $(samba_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, samba) + @$(call install_fixup, samba,PACKAGE,samba) + @$(call install_fixup, samba,PRIORITY,optional) + @$(call install_fixup, samba,VERSION,$(SAMBA_VERSION)) + @$(call install_fixup, samba,SECTION,base) + @$(call install_fixup, samba,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, samba,DEPENDS,) + @$(call install_fixup, samba,DESCRIPTION,missing) + +ifdef PTXCONF_SAMBA_SMBD + @$(call install_copy, samba, 0, 0, 0755, $(SAMBA_DIR)/source/bin/smbd, /usr/sbin/smbd) +endif +ifdef PTXCONF_SAMBA_NMBD + @$(call install_copy, samba, 0, 0, 0755, $(SAMBA_DIR)/source/bin/nmbd, /usr/sbin/nmbd) +endif + + @$(call install_finish, samba) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +samba_clean: + rm -rf $(STATEDIR)/samba.* + rm -rf $(IMAGEDIR)/samba_* + rm -rf $(SAMBA_DIR) + +# vim: syntax=make |