Removed samba 3.6.

This commit is contained in:
László Valkó 2017-04-26 00:41:12 +02:00
parent 9a5573e935
commit 9a0edf179c
17 changed files with 0 additions and 768 deletions

View file

@ -1,17 +0,0 @@
AUX 3.6/lmhosts 27 SHA256 50871b79e16d26348465016b77a77156ad77619e82ccac8ff0b2929402bdad4c SHA512 940f28f7587701040ab25e445868a519c2217e5e6879ef6845c61b78ee66b09f922ff591a01c2f4162926539122bb3ee701918236ee0cf32aec120e1a0096631 WHIRLPOOL a6e0ec1bc1957ccfaa67b44236859a6d1374f0165443b6519c30e3f5b9a970a22514eff18b25abe4aedcef986256ead3825ab9c4090d054728f4567548e305b3
AUX 3.6/samba.confd 1210 SHA256 02ab523d695b5ae044b871923ad817f8931a6c20c5bfefad98a4369d7b3742e3 SHA512 34326cde9fa6c072d9b948692b292531e60a05043767ec8be78329d6e99793a16dfe134797d90da2a48e240ea5ad6e4e8ea57046732d02f71f2f4dd5316bd313 WHIRLPOOL 8e1633095d0f1540c4ead736e68b36c196b9fd760ba7f80c945be71918ce5436d64679c0314c2f58c9ef88d7be0432d8c2b75c29f3201857beb729a9c8ff5726
AUX 3.6/samba.initd 1159 SHA256 14613f24911b4e99c047164f720f0139dfae4c67f4d4936a2b906ee47b2418d9 SHA512 c24038af49a9b0f91d35d5c30e4d5b9a56a0245e83133fac668ac7704820f6c96c51382a5edcc34ee836a303290ffc7b989dfbeb889b059cfe2f03e070aae48b WHIRLPOOL 502e2dce9d149a22b50c8866cdd72dd09e50d3d1202b8d41b49431aed21519261cfc161ed21160af8671ff96256f4dd295c9d790e2f262f4879c748f5adc54ef
AUX 3.6/samba.pam 397 SHA256 86634f2d541370518d0958a73c04776ed5df2a3716ef128ff384459acce9cd38 SHA512 cdf91112dbd4a632da13abb16bc6450a5e43cc6d0f6ccab4bd62a880855824e80b779d7e9b017680669d23f2d9c88e7ce0848ccf7e3eb7eb73c3fd3e6a6eafa4 WHIRLPOOL 8c223dfbe4a122d8d641a52209ca7d5c09b964ad7dc3d203da468df32e58bcf94e11b3eb7c3aaa69ad343a8d5f6c0bde0bbd18dedc8cea998db24e532f08fd93
AUX 3.6/smb.conf.default.patch 2385 SHA256 2140436e553e5dfc0b472e3a09a597de61f15847f23e8f92b9f561a6b9164034 SHA512 c321782ed148217fc43fe71664ace833e3127b4dc0517ebc898ceb2c04946d159efceb91251112f39a4aa84dadd99964e13192d020ce4f46ad0efb84378674a7 WHIRLPOOL 317fce352f6f2aae6e41927f526264f747f8d0dbff25d88878aed4ea21afff4bffa86de55112c363710c190de9eb600c355e46eb65de4d5550b9f71c29a9bdbd
AUX 3.6/smbusers 118 SHA256 44a75178337c1b3f25f6250dd68c9d1f03fb21a18d6391152cd8c399ab14c08a SHA512 bd435b554b3829682a5117057f1d6d07f214257fc758d8a8220f8cf7999185bfaa32994fd929be9d4b7f04eb29db1a3c26b9207460e181d8a51df300d24dc86a WHIRLPOOL 48227056b90c0333b536afa4468c9d443b45287d7f86fad67462c43dcdce7dc9484b3bc0dc1a3a944d64587d756129a2a46a58522c0c81118784e8fef93628fb
AUX 3.6/swat.xinetd 424 SHA256 0445e35ff4c652967d16fdd6e620b97a7717f6e1c34a62be37a2c67f8a7343ce SHA512 796046f27c53c06a8fba79d6be11ca7ee09adf699297d1a592025559840910fef3feae3d44657efe0391117c9fe652342dbc363d87d6f52b864584291bea0a3e WHIRLPOOL f2c78df47ad806a3e4dc0417758a0157212d267b47e10cb4101237a6296a211efee6e9e00e7435819e92422f79cd5cb93ca2d84463a4b9503de6bb6fdbf37810
AUX 3.6/system-auth-winbind.pam 590 SHA256 b22942ab19f82695e4b457d067cf2f23774033ce5066b31c4b312c57432b04ab SHA512 0886cfd99b3c3dc117b2a83b04bf59d080ebf77d6ea91f24cfc4d8be7af9db377e0efc2216e7c1f8a180b09fb425476ef6874180d9f0fa47e4889faf1d429679 WHIRLPOOL ac5ff701d426e7c4df2f0b77735ae380671afc5d883131c9df452d0e131007da36774b00c0877b4ed3907adcdef99078749931855cf5e1717cbb6f99be3b14b4
AUX nmbd.service 224 SHA256 a5e25c11714206c4fb129333dd45152c5753716c6445cbe78c28275df1a1cb77 SHA512 098dfb270c5a5c29f59b4fd8d51b17931771e25e481124832f1a086677825527e2afa7276e8614e5007fbf044d253ce2eaf3a7caf7461ad5d90d0b1c7f157f9d WHIRLPOOL 2f7c342a60c09d5e40e968a026aa17d8c2fe3fd032331c7bb26599bb0f8ec8a77c2a3e329498ed16b1602451fd85a8ef076c436e8a092740cfbd01a82ca52e30
AUX samba-3.4.2-lib.tevent.python.mk 177 SHA256 3eab52d42a0cbc070d011a131f9a56f4b3da10b2791fec514948fd8d2d013153 SHA512 0bd691d7678737fa815da9e1934db056fa833aa6d6d2d48cf8da559987a899ae4c5ac18e4b3594d634363f515028a3d30711484dbda578aa7506fbe2df55197c WHIRLPOOL 061b3e33b327563f52648931428cce433505353e73bf9851abb33f4f13e7c723c17c3413442dd343477bb0c49fd3284c0155ff59829df448952a6e1d07475251
AUX samba.conf 61 SHA256 e4fc68bc14a44e3c452e767d996ff693d131da317eb513de10d752dd96cb6f12 SHA512 4a75185762c90d110c399215fbfc939d30804b558ffdb11cc68dee6f87a94c86cadbcd63935884db1266cf40fe24fefb75f9067fe4751ad9838d7a43e8973b9e WHIRLPOOL ad21bc3738c2ec721ad3be746c66719385390835c7f4da881fc0cc1c982bb6821a56300157b1169d1a35264e44dab1a0c29cd9919455a02a8f4c53c665a4bed3
AUX smbd.service 250 SHA256 e1f5da902cd97891852f6463b2c7eddbc61e7fbd3e3c281028a806319627fc68 SHA512 a54e3c337f7c27766a81f68ad6d8f4eb6ddb1d1aec3303f274e419a49114755bc5dd711701d5e64954ae7153a8be4a7063371af286696c0b81d543b9276703c3 WHIRLPOOL 18b6a57603a41303d207249fdb46cb4f6e887f8b9bd4921dca6b4f28a59951368d6abead2dc9d3be2c09cb2c9f295087ef5f20d121a309791b9031e3fad28b13
AUX smbd.socket 121 SHA256 d62a239cba39ae03dbb7a291843b2c202973341c85d93ffc87b4e78813be44c2 SHA512 2db4a707fcc6ef1928ac010e5e92cdaf0f6ff3ffa8aef918e0db1ce910abfb481d6a19082337f9c8444cd780d1d442fa8df2bb65e6142fc109d29657532572ed WHIRLPOOL aef792f27a7cd91ee258b6137015269cf2e6310c24a060acb7c6a97162aaebe37f32f66e46f4399cd1160bcc65e5608da7bc87bf933bccd2ffdfe51a6a7cdd8d
AUX smbd_at.service 145 SHA256 909dddfd80982035739081d86d2c524f6a25440d9c10b8a80626d9b4eee424cd SHA512 e6486c35dfa6f77ad46547a78fcae55fb71e4dad7dc7b4580c2b8c1be232c0a870f56714b2b103a1fd8717298f41347d7178fbebb90f0f2d0324fe5233f0f9f3 WHIRLPOOL f5ac03a1e7b653458d49fa2c2afe674e9d8f1e5a81e72a5e49781de3e5111bbe23eedc38c78a6f5e7edc4c32300ddaf76caf889de256fc799cf117edcd6ce6fb
AUX winbindd.service 240 SHA256 755036bc419cce90200ac3c04986fbb7cf718c128c2a1288c634658bb779bf3a SHA512 f1ce6d035e8e0fcdc73f14e3b60c9647043777ff6b2a982a81ed07eb4df5ff245a9511e3e4a9d8163f9c8f3fb86d2a39a67621ace68392eb7c2f2e2a55d587f7 WHIRLPOOL eb4d7f30b4ce3341e3d24a6c05965bdce9ded78a7327b44d3d04d00837d6e8109857b1fb1b78c8325680588cf9abe94158755a962fb8f7e8dac04b336308c268
DIST samba-3.6.25.tar.gz 34121828 SHA256 8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751 SHA512 25a5c56dae4517e82e196b59fa301b661ec75db57effbb0ede35fb23b018f78cdea6513e8760966caf58abc43335fcebda77fe5bf5bb9d4b27fd3ca6e5a3b626 WHIRLPOOL 68c4a335b3912bf3c6baecae337b1131127515191052366ca9a04ec6d919f2fb69c912aefb087e2578134f3a9bde7b496ea880f2197a8dbf8221058dd1e8444d
EBUILD samba-3.6.25.ebuild 13427 SHA256 ce4b144ba67b90ff58ac2be3eee470ecaaad64d6f3146632991d95c72b3a7ac3 SHA512 1ed7aae4278aa60c8072b4913efcaaa1099a5dbaecbd852cecad3de4d7c27b752cc85490a8522afc943562b69fe22a4e34467fc0bc93ea2b0f6829eca3fe15cb WHIRLPOOL 861f0cec1e6b1fec9212c92c7c2f03933f3d681db337a3d2545e15fa20a192a56a4efc31020909c0f2760504f129891cecee06475d570571f9f1cb2622966376

View file

@ -1,2 +0,0 @@
# $Id$
127.0.0.1 localhost

View file

@ -1,28 +0,0 @@
#add "winbind" to the daemon_list if you also want winbind to start
daemon_list="smbd nmbd"
#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
my_service_name="samba"
my_service_PRE="unset TMP TMPDIR"
my_service_POST=""
#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
smbd_start_options="-D"
smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
smbd_reload="killall -HUP smbd"
nmbd_start_options="-D"
nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
nmbd_reload="killall -HUP nmbd"
winbind_start_options=""
winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
winbind_reload="killall -HUP winbindd"

View file

@ -1,60 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Id$
extra_started_commands="reload"
piddir="/var/run/samba"
depend() {
after slapd
need net
use cupsd
}
DAEMONNAME="${SVCNAME##samba.}"
[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
signal_do() {
local signal="$1"
[ -z "${signal}" ] && return 0
local result=0 last_result=0 daemon= cmd_exec=
for daemon in ${daemon_list} ; do
eval cmd_exec=\$${daemon}_${signal}
if [ -n "${cmd_exec}" ]; then
ebegin "${my_service_name} -> ${signal}: ${daemon}"
#echo ${cmd} '->' ${!cmd}
${cmd_exec} > /dev/null
last_result=$?
eend ${last_result}
fi
result=$(( ${result} + ${last_result} ))
done
return ${result}
}
mkdir_sambadirs() {
[ -d "${piddir}" ] || mkdir -p ${piddir}
}
start() {
${my_service_PRE}
mkdir_sambadirs
signal_do start && return 0
eerror "Error: starting services (see system logs)"
signal_do stop
return 1
}
stop() {
${my_service_PRE}
if signal_do stop ; then
${my_service_POST}
return 0
fi
}
reload() {
${my_service_PRE}
signal_do reload
}

View file

@ -1,8 +0,0 @@
#%PAM-1.0
# * pam_smbpass.so authenticates against the smbpasswd file
# * changed Redhat's 'pam_stack' with 'include' for *BSD compatibility
# (Diego "Flameeyes" Petteno'): enable with pam>=0.78 only
auth required pam_smbpass.so nodelay
account include system-auth
session include system-auth
password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf

View file

@ -1,68 +0,0 @@
--- samba-3.6.0rc2/examples/smb.conf.default~ 2011-06-07 19:13:47.000000000 +0100
+++ samba-3.6.0rc2/examples/smb.conf.default 2011-06-30 16:12:42.388102480 +0100
@@ -63,7 +63,7 @@
# this tells Samba to use a separate log file for each machine
# that connects
- log file = /usr/local/samba/var/log.%m
+ log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
@@ -81,7 +81,10 @@
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
-# compatibility. tdbsam requires no further configuration.
+# compatibility. tdbsam requires no further configuration. If you're
+# migrating from < samba 3.4, you'll have to convert your old user
+# passwords to the new backend with the command:
+# pdbedit -i smbpasswd:/var/lib/samba/private/smbpasswd -e
; passdb backend = tdbsam
# Using the following line enables you to customise your configuration
@@ -89,7 +92,7 @@
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
-; include = /usr/local/samba/lib/smb.conf.%m
+; include = /etc/samba/smb.conf.%m
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
@@ -166,7 +169,7 @@
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
-; path = /usr/local/samba/lib/netlogon
+; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
@@ -175,7 +178,7 @@
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
-; path = /usr/local/samba/profiles
+; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
@@ -184,7 +187,7 @@
# specifically define each individual printer
[printers]
comment = All Printers
- path = /usr/spool/samba
+ path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
@@ -204,7 +207,7 @@
; comment = Public Stuff
; path = /home/samba
; public = yes
-; writable = no
+; writable = yes
; printable = no
; write list = @staff

View file

@ -1,7 +0,0 @@
# $Id$
# Syntax:
# Unix_name = SMB_name1 SMB_name2 ...
root = Administrator admin
nobody = guest pcguest smbguest

View file

@ -1,17 +0,0 @@
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
# $Id$
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = yes
}

View file

@ -1,18 +0,0 @@
#%PAM-1.0
# $Id$
auth required pam_env.so
auth sufficient pam_winbind.so
auth sufficient pam_unix.so likeauth nullok use_first_pass
auth required pam_deny.so
account sufficient pam_winbind.so
account required pam_unix.so
password required pam_cracklib.so retry=3
password sufficient pam_unix.so nullok use_authtok md5 shadow
password required pam_deny.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
session required pam_limits.so
session required pam_unix.so

View file

@ -1,12 +0,0 @@
[Unit]
Description=Samba NetBIOS name server
After=network.target
[Service]
Type=forking
PIDFile=/var/run/samba/nmbd.pid
ExecStart=/usr/sbin/nmbd -D
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View file

@ -1,6 +0,0 @@
[PYTHON::pytevent]
LIBRARY_REALNAME = tevent.$(SHLIBEXT)
PRIVATE_DEPENDENCIES = LIBTEVENT PYTALLOC LIBSAMBA-UTIL LIBREPLACE
pytevent_OBJ_FILES = $(libteventsrcdir)/pytevent.o

View file

@ -1,2 +0,0 @@
D /run/samba 0755 root root
D /run/lock/samba 0755 root root

View file

@ -1,12 +0,0 @@
[Unit]
Description=Samba SMB/CIFS server
After=network.target nmbd.service winbindd.service
[Service]
Type=forking
PIDFile=/var/run/samba/smbd.pid
ExecStart=/usr/sbin/smbd -D
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View file

@ -1,9 +0,0 @@
[Unit]
Description=Samba SMB/CIFS server socket
[Socket]
ListenStream=445
Accept=yes
[Install]
WantedBy=sockets.target

View file

@ -1,7 +0,0 @@
[Unit]
Description=Samba SMB/CIFS server instance
[Service]
ExecStart=/usr/sbin/smbd -F
ExecReload=/bin/kill -HUP $MAINPID
StandardInput=socket

View file

@ -1,12 +0,0 @@
[Unit]
Description=Samba Winbind daemon
After=network.target nmbd.service
[Service]
Type=forking
PIDFile=/var/run/samba/winbindd.pid
ExecStart=/usr/sbin/winbindd -D
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View file

@ -1,483 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit pam versionator multilib multilib-minimal eutils flag-o-matic systemd
MY_PV=${PV/_/}
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Library bits of the samba network filesystem"
HOMEPAGE="http://www.samba.org/"
SRC_URI="mirror://samba/stable/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
IUSE="acl addns ads +aio avahi caps +client cluster cups debug dmapi doc examples fam
ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes
swat syslog +winbind"
DEPEND="dev-libs/popt
>=sys-libs/talloc-2.0.8-r1[${MULTILIB_USEDEP}]
>=sys-libs/tdb-1.2.13[${MULTILIB_USEDEP}]
>=sys-libs/tevent-0.9.19[${MULTILIB_USEDEP}]
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
ads? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] sys-fs/e2fsprogs
client? ( sys-apps/keyutils ) )
avahi? ( net-dns/avahi[dbus] )
caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] )
client? ( !net-fs/mount-cifs
>=dev-libs/iniparser-3.1-r1:0[${MULTILIB_USEDEP}] )
cluster? ( >=dev-db/ctdb-1.13 )
cups? ( net-print/cups )
debug? ( dev-libs/dmalloc )
dmapi? ( sys-apps/dmapi )
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
ldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
ldb? ( sys-libs/ldb )
pam? ( >=virtual/pam-0-r1[${MULTILIB_USEDEP}]
winbind? ( >=dev-libs/iniparser-3.1-r1:0[${MULTILIB_USEDEP}] )
)
readline? ( >=sys-libs/readline-5.2:= )
syslog? ( virtual/logger )"
RDEPEND="${DEPEND}
kernel_linux? ( ads? ( net-fs/cifs-utils[ads] )
client? ( net-fs/cifs-utils ) )
selinux? ( sec-policy/selinux-samba )
"
# Disable tests since we don't want to build that much here
RESTRICT="test"
SBINPROGS=""
BINPROGS=""
KRBPLUGIN=""
PLUGINEXT=".so"
SHAREDMODS=""
S=${WORKDIR}/${MY_P}
# TODO:
# - enable iPrint on Prefix/OSX and Darwin?
# - selftest-prefix? selftest?
# - AFS?
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
REQUIRED_USE="
ads? ( ldap )
swat? ( server )
"
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
if use winbind &&
[[ $(tc-getCC)$ == *gcc* ]] &&
[[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]]
then
eerror "It is a known issue that ${P} will not build with "
eerror "winbind use flag enabled when using gcc < 4.3 ."
eerror "Please use at least the latest stable gcc version."
die "Using sys-devel/gcc < 4.3 with winbind use flag."
fi
fi
}
pkg_setup() {
if use server ; then
SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd"
BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util
$(usex client "" "bin/smbclient")"
use swat && SBINPROGS="${SBINPROGS} bin/swat"
use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator"
fi
if use client ; then
BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree
bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas
bin/ntlm_auth"
fi
use cups && BINPROGS="${BINPROGS} bin/smbspool"
# use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename";
if use winbind ; then
BINPROGS="${BINPROGS} bin/wbinfo"
SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash"
use ads && SHAREDMODS="${SHAREDMODS},idmap_ad"
use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2"
use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex"
fi
}
src_prepare() {
cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
# ensure that winbind has correct ldflags (QA notice)
sed -i \
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
source3/configure || die "sed failed"
epatch "${CONFDIR}"/smb.conf.default.patch
#bug #399141 wrap newer iniparser version
has_version ">=dev-libs/iniparser-3.0.0:0" && \
append-cppflags "-Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)"
multilib_copy_sources
}
multilib_src_configure() {
local myconf=()
# we can't alter S since build system writes to '../' and therefore
# we need to duplicate the whole structure
cd source3 || die
# Filter out -fPIE
[[ ${CHOST} == *-*bsd* ]] && myconf+=( --disable-pie )
#Allowing alpha/s390/sh to build
if use alpha || [[ ${ABI} == s390 ]] || use sh ; then
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
replace-flags -O? -O1
fi
# http://wiki.samba.org/index.php/CTDB_Setup
use cluster && myconf+=( --disable-pie )
# Upstream refuses to make this configurable
myconf+=( ac_cv_header_sys_capability_h=$(usex caps) )
# Notes:
# - automount is only needed in conjunction with NIS and we don't have that
# anymore => LDAP?
# - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
econf "${myconf[@]}" \
--with-piddir="${EPREFIX}"/var/run/samba \
--sysconfdir="${EPREFIX}"/etc/samba \
--localstatedir="${EPREFIX}"/var \
$(multilib_native_use_enable debug developer) \
--enable-largefile \
--enable-socket-wrapper \
--enable-nss-wrapper \
$(multilib_native_use_enable swat) \
$(multilib_native_use_enable debug dmalloc) \
$(multilib_native_use_enable cups) \
--disable-iprint \
$(use_enable fam) \
--enable-shared-libs \
--disable-dnssd \
$(multilib_native_use_enable avahi) \
--with-fhs \
--with-privatedir="${EPREFIX}"/var/lib/samba/private \
--with-rootsbindir="${EPREFIX}"/var/cache/samba \
--with-lockdir="${EPREFIX}"/var/cache/samba \
--with-swatdir="${EPREFIX}"/usr/share/doc/${PF}/swat \
--with-configdir="${EPREFIX}"/etc/samba \
--with-logfilebase="${EPREFIX}"/var/log/samba \
--with-pammodulesdir=$(getpam_mod_dir) \
$(multilib_native_use_with dmapi) \
--without-afs \
--without-fake-kaserver \
--without-vfs-afsacl \
$(use_with ldap) \
$(use_with ads) \
$(use_with ads krb5 "${EPREFIX}"/usr) \
$(use_with ads dnsupdate) \
--without-automount \
$(use_with pam) \
$(use_with pam pam_smbpass) \
$(use_with syslog) \
$(use_with quota quotas) \
$(use_with quota sys-quotas) \
--without-utmp \
--without-lib{talloc,tdb} \
$(use_with netapi libnetapi) \
$(use_with smbclient libsmbclient) \
$(use_with smbsharemodes libsmbsharemodes) \
$(use_with addns libaddns) \
$(use_with cluster ctdb "${EPREFIX}"/usr) \
$(use_with cluster cluster-support) \
$(multilib_native_use_with acl acl-support) \
$(use_with aio aio-support) \
--with-sendfile-support \
$(use_with winbind) \
--with-shared-modules=${SHAREDMODS} \
--without-included-popt \
--without-included-iniparser
}
multilib_src_compile() {
cd source3 || die
# compile libs
if use addns ; then
einfo "make addns library"
emake libaddns
fi
if use netapi ; then
einfo "make netapi library"
emake libnetapi
fi
if use smbclient ; then
einfo "make smbclient library"
emake libsmbclient
fi
if use smbsharemodes ; then
einfo "make smbsharemodes library"
emake libsmbsharemodes
fi
# compile modules
emake modules
# compile pam moudles
if use pam ; then
einfo "make pam modules"
emake pam_modules
fi
# compile winbind nss modules
if use winbind ; then
einfo "make nss modules"
emake nss_modules
fi
# compile utilities
if multilib_is_native_abi; then
if [ -n "${BINPROGS}" ] ; then
einfo "make binprogs"
emake ${BINPROGS}
fi
if [ -n "${SBINPROGS}" ] ; then
einfo "make sbinprogs"
emake ${SBINPROGS}
fi
fi
if [ -n "${KRBPLUGIN}" ] ; then
einfo "make krbplugin"
emake ${KRBPLUGIN}${PLUGINEXT}
fi
}
multilib_src_install() {
cd source3 || die
# pkgconfig files installation needed, bug #464818
local pkgconfigdir=/usr/$(get_libdir)/pkgconfig
# install libs
if use addns ; then
einfo "install addns library"
emake installlibaddns DESTDIR="${D}"
fi
if use netapi ; then
einfo "install netapi library"
emake installlibnetapi DESTDIR="${D}"
insinto $pkgconfigdir
doins pkgconfig/netapi.pc
fi
if use smbclient ; then
einfo "install smbclient library"
emake installlibsmbclient DESTDIR="${D}"
insinto $pkgconfigdir
doins pkgconfig/smbclient.pc
fi
if use smbsharemodes ; then
einfo "install smbsharemodes library"
emake installlibsmbsharemodes DESTDIR="${D}"
insinto $pkgconfigdir
doins pkgconfig/smbsharemodes.pc
fi
# install modules
emake installmodules DESTDIR="${D}"
if use pam ; then
einfo "install pam modules"
emake installpammodules DESTDIR="${D}"
if use winbind ; then
newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
doman ../docs/manpages/pam_winbind.8
# bug #376853
insinto /etc/security
doins ../examples/pam_winbind/pam_winbind.conf || die
fi
newpamd "${CONFDIR}/samba.pam" samba
dodoc pam_smbpass/README
fi
# Nsswitch extensions. Make link for wins and winbind resolvers
if use winbind ; then
einfo "install libwbclient"
emake installlibwbclient DESTDIR="${D}"
dolib.so ../nsswitch/libnss_wins.so
dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
dolib.so ../nsswitch/libnss_winbind.so
dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
insinto $pkgconfigdir
doins pkgconfig/wbclient.pc
einfo "install libwbclient related manpages"
doman ../docs/manpages/idmap_rid.8
doman ../docs/manpages/idmap_hash.8
if use ldap ; then
doman ../docs/manpages/idmap_adex.8
doman ../docs/manpages/idmap_ldap.8
fi
if use ads ; then
doman ../docs/manpages/idmap_ad.8
fi
fi
# install binaries
if multilib_is_native_abi; then
insinto /usr
for prog in ${SBINPROGS} ; do
dosbin ${prog}
doman ../docs/manpages/${prog/bin\/}*
done
for prog in ${BINPROGS} ; do
dobin ${prog}
doman ../docs/manpages/${prog/bin\/}*
done
# install scripts
if use client ; then
dobin script/findsmb
doman ../docs/manpages/findsmb.1
fi
fi
# install krbplugin
if [ -n "${KRBPLUGIN}" ] ; then
if has_version app-crypt/mit-krb5 ; then
insinto /usr/$(get_libdir)/krb5/plugins/libkrb5
doins ${KRBPLUGIN}${PLUGINEXT}
elif has_version app-crypt/heimdal ; then
insinto /usr/$(get_libdir)/plugin/krb5
doins ${KRBPLUGIN}${PLUGINEXT}
fi
insinto /usr
for prog in ${KRBPLUGIN} ; do
doman ../docs/manpages/${prog/bin\/}*
done
fi
}
multilib_src_install_all() {
# install server components
if use server ; then
doman docs/manpages/vfs* docs/manpages/samba.7
diropts -m0700
keepdir /var/lib/samba/private
diropts -m1777
keepdir /var/spool/samba
diropts -m0755
keepdir /var/{cache,log}/samba
keepdir /var/lib/samba/{netlogon,profiles}
keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
newconfd "${CONFDIR}/samba.confd" samba
newinitd "${CONFDIR}/samba.initd" samba
insinto /etc/samba
doins "${CONFDIR}"/{smbusers,lmhosts}
if use ldap ; then
insinto /etc/openldap/schema
doins examples/LDAP/samba.schema
fi
if use swat ; then
insinto /etc/xinetd.d
newins "${CONFDIR}/swat.xinetd" swat
script/installswat.sh "${ED}" "${EROOT}/usr/share/doc/${PF}/swat" "${S}"
fi
dodoc MAINTAINERS.txt README* Roadmap WHATSNEW.txt docs/THANKS
fi
# install the spooler to cups
if use cups ; then
dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb
fi
# install misc files
insinto /etc/samba
doins examples/smb.conf.default
doman docs/manpages/smb.conf.5
insinto /usr/"$(get_libdir)"/samba
doins codepages/{valid.dat,upcase.dat,lowcase.dat}
# install docs
if use doc ; then
dohtml -r docs/htmldocs/.
dodoc docs/*.pdf
fi
# install examples
if use examples ; then
insinto /usr/share/doc/${PF}/examples
if use smbclient ; then
doins -r examples/libsmbclient
fi
if use winbind ; then
doins -r examples/pam_winbind examples/nss
fi
if use server ; then
cd examples || die
doins -r auth autofs dce-dfs LDAP logon misc pdb \
perfcounter printer-accounting printing scripts tridge \
validchars VFS
fi
fi
# Remove empty installation directories
rmdir --ignore-fail-on-non-empty \
"${ED}/usr/$(get_libdir)/samba" \
"${ED}/usr"/{sbin,bin} \
"${ED}/usr/share"/{man,locale,} \
"${ED}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
systemd_dotmpfilesd "${FILESDIR}"/samba.conf
systemd_dounit "${FILESDIR}"/nmbd.service
systemd_dounit "${FILESDIR}"/smbd.{service,socket}
systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
systemd_dounit "${FILESDIR}"/winbindd.service
}
pkg_postinst() {
elog "Samba 3.6 has adopted a number of improved security defaults that"
elog "will impact on existing users of Samba."
elog " client ntlmv2 auth = yes"
elog " client use spnego principal = no"
elog " send spnego principal = no"
elog ""
elog "SMB2 protocol support in 3.6.0 is fully functional and can be "
elog "enabled by setting 'max protocol = smb2'. SMB2 is a new "
elog "implementation of the SMB protocol used by Windows Vista and higher"
elog ""
elog "For further information make sure to read the release notes at"
elog "http://samba.org/samba/history/${P}.html and "
elog "http://samba.org/samba/history/${PN}-3.6.0.html"
}