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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a8f17cf 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
Line 
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
13 extra_conf="--libdir=/usr/${libdirname}/samba"
14fi
15
16unpack_tarball samba-${SAMBA_VER}
17
18cd ${PKGDIR}/source
19
20max_log_init samba ${SAMBA_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
21CC="${CC-gcc} ${ARCH_CFLAGS}" \
22CXX="${CXX-g++} ${ARCH_CFLAGS}" \
23CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
24CXXLAGS="-O2 -pipe ${TGT_CFLAGS}" \
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 \
33 --with-python \
34 --with-pam \
35 --with-expsam=xml,mysql,pgsql \
36 >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" &&
38
39# BAH, samba doesn't seem to want to honour --libdir
40min_log_init ${BUILDLOGS} &&
41make LIBDIR=/usr/${libdirname}/samba \
42 >> ${LOGFILE} 2>&1 &&
43echo " o Build OK" &&
44
45min_log_init ${INSTLOGS} &&
46make LIBDIR=/usr/${libdirname}/samba install \
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 &&
58cp ../examples/smb.conf.default /tmp/${PKGDIR}-${BUILDENV}/etc/samba &&
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.