source: scripts/untested/blfs-scripts/blfs-samba.sh@ b15e4602

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b15e4602 was 4e71b7e, checked in by Jim Gifford <clfs@…>, 19 years ago

r599@server (orig r597): ryan | 2005-08-05 23:16:50 -0700
General fixes, add pgsql support



  • Property mode set to 100755
File size: 1.7 KB
RevLine 
[617118d]1#!/bin/bash
2
3### samba ###
4
5cd ${SRC}
6LOG=samba-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
[4e71b7e]13 extra_conf="--libdir=/usr/${libdirname}/samba"
[617118d]14fi
15
[4e71b7e]16unpack_tarball samba-${SAMBA_VER}
[617118d]17
18cd ${PKGDIR}/source
19
[4e71b7e]20max_log_init samba ${SAMBA_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
[617118d]21CC="${CC-gcc} ${ARCH_CFLAGS}" \
22CXX="${CXX-g++} ${ARCH_CFLAGS}" \
[4e71b7e]23CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
24CXXLAGS="-O2 -pipe ${TGT_CFLAGS}" \
[617118d]25./configure --prefix=/usr ${extra_conf} \
26 --sysconfdir=/etc \
27 --with-configdir=/etc/samba \
28 --localstatedir=/var \
29 --with-piddir=/var/run \
30 --with-fhs \
31 --with-smbmount \
32 --with-automount \
[4e71b7e]33 --with-python \
[617118d]34 --with-pam \
[4e71b7e]35 --with-expsam=xml,mysql,pgsql \
[617118d]36 >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" &&
38
[4e71b7e]39# BAH, samba doesn't seem to want to honour --libdir
[617118d]40min_log_init ${BUILDLOGS} &&
[4e71b7e]41make LIBDIR=/usr/${libdirname}/samba \
[617118d]42 >> ${LOGFILE} 2>&1 &&
43echo " o Build OK" &&
44
45min_log_init ${INSTLOGS} &&
[4e71b7e]46make LIBDIR=/usr/${libdirname}/samba install \
[617118d]47 >> ${LOGFILE} 2>&1 &&
48echo " o ALL OK" || barf
49
50mv /usr/${libdirname}/samba/libsmbclient.so /usr/${libdirname} &&
51ln -sf ../libsmbclient.so /usr/${libdirname}/samba &&
52#chmod 644 /usr/include/libsmbclient.h \
53# /usr/${libdir}/samba/libsmbclient.a &&
54chmod 644 /usr/include/libsmbclient.h &&
55install -m755 nsswitch/libnss_win{s,bind}.so /${libdirname} &&
56ln -sf libnss_winbind.so /${libdirname}/libnss_winbind.so.2 &&
57ln -sf libnss_wins.so /${libdirname}/libnss_wins.so.2 &&
[4e71b7e]58cp ../examples/smb.conf.default /tmp/${PKGDIR}-${BUILDENV}/etc/samba &&
[617118d]59install -m644 ../docs/*.pdf /usr/share/samba &&
60if [ -f nsswitch/pam_winbind.so ]; then
61 install -m755 nsswitch/pam_winbind.so /${libdirname}/security
62fi
Note: See TracBrowser for help on using the repository browser.