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

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

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • 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}"
14fi
15
16unpack_tarball samba-${MYSQL_VER}
17
18# TODO, set --with-libdir here only when biarch...
19# remove from configure below
20cd ${PKGDIR}/source
21
22max_log_init samba ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
23CC="${CC-gcc} ${ARCH_CFLAGS}" \
24CXX="${CXX-g++} ${ARCH_CFLAGS}" \
25CFLAGS="${TGT_CFLAGS}" \
26CXXLAGS="${TGT_CFLAGS}" \
27./configure --prefix=/usr ${extra_conf} \
28 --with-libdir=/usr/${libdirname}/samba \
29 --sysconfdir=/etc \
30 --with-configdir=/etc/samba \
31 --localstatedir=/var \
32 --with-piddir=/var/run \
33 --with-fhs \
34 --with-smbmount \
35 --with-automount \
36 --with-python=python${suffix} \
37 --with-pam \
38 --with-expsam=xml,mysql \
39 >> ${LOGFILE} 2>&1 &&
40echo " o Configure OK" &&
41
42min_log_init ${BUILDLOGS} &&
43make ${PMFLAGS} \
44 >> ${LOGFILE} 2>&1 &&
45echo " o Build OK" &&
46
47min_log_init ${INSTLOGS} &&
48make install \
49 >> ${LOGFILE} 2>&1 &&
50echo " o ALL OK" || barf
51
52mv /usr/${libdirname}/samba/libsmbclient.so /usr/${libdirname} &&
53ln -sf ../libsmbclient.so /usr/${libdirname}/samba &&
54#chmod 644 /usr/include/libsmbclient.h \
55# /usr/${libdir}/samba/libsmbclient.a &&
56chmod 644 /usr/include/libsmbclient.h &&
57install -m755 nsswitch/libnss_win{s,bind}.so /${libdirname} &&
58ln -sf libnss_winbind.so /${libdirname}/libnss_winbind.so.2 &&
59ln -sf libnss_wins.so /${libdirname}/libnss_wins.so.2 &&
60cp ../examples/smb.conf.default /etc/samba &&
61install -m644 ../docs/*.pdf /usr/share/samba &&
62if [ -f nsswitch/pam_winbind.so ]; then
63 install -m755 nsswitch/pam_winbind.so /${libdirname}/security
64fi
Note: See TracBrowser for help on using the repository browser.