|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# Filename: package/.../samba/samba.conf |
|
|
|
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2006 - 2009 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
|
# |
|
|
|
@ -19,7 +19,7 @@ if [ $prefix_auto = 1 ] ; then
|
|
|
|
|
set_confopt |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
var_append extraconfopt " " "--with-smbmount --with-automount \ |
|
|
|
|
var_append extraconfopt " " "--with-smbmount --with-cifsmount --with-automount \ |
|
|
|
|
--with-syslog --with-configdir=$sysconfdir \ |
|
|
|
|
--with-privatedir=$sysconfdir/private --with-codepagedir=$sysconfdir/codepages \ |
|
|
|
|
--with-swatdir=$datadir/swat --with-quotas \ |
|
|
|
@ -28,16 +28,6 @@ var_append extraconfopt " " "--with-smbmount --with-automount \
|
|
|
|
|
#FIXME hack to honor lib64 :-( |
|
|
|
|
var_append confopt ' ' "--with-libdir=$root/$prefix/${libdir##*/}" |
|
|
|
|
|
|
|
|
|
#FIXME: temporarily disable spinlocks because it fails to build (3.0.23+) |
|
|
|
|
#case $arch in |
|
|
|
|
# x86|sparc|powerpc) var_append extraconfopt ' ' '--with-spinlocks' ;; |
|
|
|
|
# *) |
|
|
|
|
var_append extraconfopt ' ' '--without-spinlocks' |
|
|
|
|
# ;; |
|
|
|
|
#esac |
|
|
|
|
|
|
|
|
|
# pam support |
|
|
|
|
pkginstalled pam && var_append extraconfopt ' ' "--with-pam --with-pam_smbpass" |
|
|
|
|
|
|
|
|
|
# enable nis+ support |
|
|
|
|
var_append extraconfopt ' ' "--with-nisplus-home" |
|
|
|
@ -53,11 +43,6 @@ fi
|
|
|
|
|
|
|
|
|
|
samba_pm () |
|
|
|
|
{ |
|
|
|
|
# build and install the cifs mount/umount helper |
|
|
|
|
$CC client/mount.cifs.c -o mount.cifs |
|
|
|
|
$CC client/umount.cifs.c -o umount.cifs |
|
|
|
|
install mount.cifs umount.cifs $root/sbin/ |
|
|
|
|
|
|
|
|
|
# FIXME: this should be down with pkgprefix libdir cups |
|
|
|
|
[ -d $root/usr/lib/cups/backend/ ] && \ |
|
|
|
|
ln -sf $bindir/smbspool $root/usr/lib/cups/backend/smb |
|
|
|
@ -69,7 +54,7 @@ samba_pm ()
|
|
|
|
|
examples/smb.conf.default > $docdir/smb.conf |
|
|
|
|
|
|
|
|
|
cat > $sysconfdir/lmhosts <<'EOS' |
|
|
|
|
# T2: Samba lmhosts |
|
|
|
|
# Samba lmhosts |
|
|
|
|
# |
|
|
|
|
# This file contains host maps for NetBIOS |
|
|
|
|
# It is similar to the /etc/hosts file format |
|
|
|
@ -86,7 +71,6 @@ EOS
|
|
|
|
|
|
|
|
|
|
srcdir="samba-$ver/source" |
|
|
|
|
|
|
|
|
|
hook_add premake 5 "$MAKE proto_exists" # for parallel make |
|
|
|
|
hook_add postmake 3 "samba_pm" |
|
|
|
|
|
|
|
|
|
# install examples |
|
|
|
|