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 | |
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')
-rw-r--r-- | rules/Kconfig | 1 | ||||
-rw-r--r-- | rules/samba.in | 100 | ||||
-rw-r--r-- | rules/samba.make | 144 |
3 files changed, 245 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig index 34a8ebb99..c9acb6741 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -90,6 +90,7 @@ source "rules/hdparm.in" source "rules/ipkg.in" source "rules/lilo.in" source "rules/logrotate.in" +source "rules/samba.in" source "rules/cramfs.in" source "rules/bonniexx.in" source "rules/liblockfile.in" diff --git a/rules/samba.in b/rules/samba.in new file mode 100644 index 000000000..19464fe0e --- /dev/null +++ b/rules/samba.in @@ -0,0 +1,100 @@ +# samba configuration + +menuconfig SAMBA + bool + prompt "samba " + help + Samba is an Open Source/Free Software suite that has, since + 1992, provided file and print services to all manner of + SMB/CIFS clients, including the numerous versions of Microsoft + Windows operating systems. Samba is freely available under the + GNU General Public License + + See http://www.samba.org for details. + +# Optional Features: +# --enable-static=PKGS build static libraries default=no +# --enable-shared=PKGS build shared libraries default=yes +# --enable-pie Turn on pie support if available (default=yes) +# --enable-debug Turn on compiler debugging information (default=no) +# --enable-socket-wrapper Turn on socket wrapper library (default=no) +# --enable-developer Turn on developer warnings and debugging (default=no) +# --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no) +# --enable-dmalloc Enable heap debugging default=no + + config SAMBA_CUPS + bool + depends on SAMBA + prompt "cups support" + help + Turn on CUPS support + +# --enable-iprint Turn on iPrint support (default=yes if cups is yes) +# +# Optional Packages: +# --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] +# --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) +# --with-fhs Use FHS-compliant paths (default=no) +# --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private) +# --with-rootsbindir=DIR Which directory to use for root sbin ($ac_default_prefix/sbin) +# --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks) +# --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks) +# --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat) +# --with-configdir=DIR Where to put configuration files ($libdir) +# --with-logfilebase=DIR Where to put log files ($VARDIR) +# --with-libdir=DIR Where to put libdir ($libdir) +# --with-pammodulesdir=DIR Which directory to use for PAM modules ($ac_default_prefix/$libdir/security) +# --with-mandir=DIR Where to put man pages ($mandir) +# --with-cfenc=HEADERDIR Use internal CoreFoundation encoding API +# for optimization (Mac OS X/Darwin only) +# --with-selftest-prefix=DIR The prefix where make test will be runned ($selftest_prefix) +# --with-smbtorture4-path=PATH The path to a samba4 smbtorture for make test (none) +# --with-profiling-data Include gathering source code profile information (default=no) +# --with-readline=DIR Look for readline include/libs in DIR (default=auto) +# --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) +# --with-smbwrapper Include SMB wrapper support (default=no) +# --with-afs Include AFS clear-text auth support (default=no) +# --with-fake-kaserver Include AFS fake-kaserver support (default=no) +# --with-vfs-afsacl Include AFS to NT ACL mapping module (default=no) +# --with-dce-dfs Include DCE/DFS clear-text auth support (default=no) +# --with-ldap LDAP support (default yes) +# --with-ads Active Directory support (default auto) +# --with-krb5=base-dir Locate Kerberos 5 support (default=/usr) +# --with-automount Include automount support (default=no) +# --with-smbmount Include smbmount (Linux only) support (default=no) +# --with-cifsmount Include mount.cifs and umount.cifs (Linux only) support (default=yes) +# --with-pam Include PAM support (default=no) +# --with-pam_smbpass Build PAM module for authenticating against passdb backends (default=no) +# --with-nisplus-home Include NISPLUS_HOME support (default=no) +# --with-syslog Include experimental SYSLOG support (default=no) +# --with-quotas Include disk-quota support (default=no) +# --with-sys-quotas Include lib/sysquotas.c support (default=auto) +# --with-utmp Include utmp accounting (default, if supported by OS) +# --with-libmsrpc Build the libmsrpc shared library (default=yes if shared libs supported) +# --with-libsmbclient Build the libsmbclient shared library (default=yes if shared libs supported) +# --with-libsmbsharemodes Build the libsmbsharemodes shared library (default=yes if shared libs supported) +# --with-spinlocks Use spin locks instead of fcntl locks (default=no) +# --with-cluster-support Enable cluster extensions (default=no) +# --with-acl-support Include ACL support (default=no) +# --with-aio-support Include asynchronous io support (default=no) +# --with-sendfile-support Check for sendfile support (default=yes) +# --with-winbind Build winbind (default, if supported by OS) +# --with-included-popt use bundled popt library, not from system +# --with-included-iniparser use bundled iniparser library, not from system +# --with-python=PYTHONNAME build Python libraries +# --with-static-modules=MODULES Comma-seperated list of names of modules to statically link in +# --with-shared-modules=MODULES Comma-seperated list of names of modules to build shared + + config SAMBA_SMBD + bool + depends on SAMBA + prompt "install smbd" + help + Install smbd daemon on target. + + config SAMBA_NMBD + bool + depends on SAMBA + prompt "install nmbd" + help + Install nmbd daemon on target. 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 |