Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 61 lines (51 sloc) 2.14 KB
#!/usr/bin/env beesh
# BEE_VERSION samba4-4.8.5-4
#SRCURL[0]="https://download.samba.org/pub/samba/stable/samba-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/b3dc5d6fbe35dcfdc490a608704d572e/samba-4.8.5.tar.gz"
# mariux patch to allow -with-config-file=
PATCHURL+=("https://beehive.molgen.mpg.de/aae0810ff8d7299da2caf192e1ba40aa/samba4-466-add-config-file-configure-option.patch")
# mariux patch for glibc: rename nss_{set,end}pwent() to prevent glibc calls
PATCHURL+=("https://beehive.molgen.mpg.de/07bb0e12e296d63d90186a34f59763e3/samba4-485-fix-nsstest-pwentcalls.patch")
PREFIX=/usr/local/samba4
VARPATH=/var/samba4/localhost
BEE_BUILDTYPE=
#mee_patch() {
# bee_patch
#}
mee_configure() {
# see also https://github.com/samba-team/samba/blob/master/dynconfig/wscript
. $(python2-config --prefix)/profile
python ./buildtools/bin/waf configure \
--prefix=${PREFIX} \
--with-configdir=/etc/samba4 \
--with-config-file=/etc/samba4/smb.conf-localhost \
--localstatedir=${VARPATH}/state \
--with-lockdir=${VARPATH}/locks \
--with-statedir=${VARPATH}/state \
--with-privatedir=${VARPATH}/private \
--with-logfilebase=${VARPATH}/log \
--with-cachedir=${VARPATH}/cache \
--with-piddir=${VARPATH} \
--with-sockets-dir=${VARPATH}/run \
--with-privileged-socket-dir=${VARPATH}/run-priv \
--with-pammodulesdir=/lib/security \
--without-ad-dc \
--without-winbind \
--without-systemd
}
mee_build() {
# use 'make showflags' to get defaults... and add rpath GRMPF!!
make ${BEE_MAKEFLAGS} LDFLAGS='-pie -Wl,-z,relro -Wl,--as-needed -L./bin -Wl,-rpath,${LIBDIR}'
}
mee_install() {
make install DESTDIR=${D}
mkdir -p ${D}${PREFIX}
mkdir -p ${D}${SYSCONFDIR}
mkdir -p ${D}/lib
# enable resolve/map windows domain usernames
mv -v ${D}${LIBDIR}/libnss_win{s,bind}.so* ${D}/lib
ln -v -sf /lib/libnss_winbind.so.2 ${D}${LIBDIR}/libnss_winbind.so
ln -v -sf /lib/libnss_wins.so.2 ${D}${LIBDIR}/libnss_wins.so
# for donald..
echo "PATH=${BINDIR}:${SBINDIR}:\${PATH}" >>${D}${PREFIX}/profile
}