4 pkgdesc="Tools to access a server's filespace and printers via SMB"
6 url="http://www.samba.org/"
8 depends=('popt' 'libldap>=2.4.18-1' 'tdb' 'libcups' 'fam')
9 makedepends=('git' 'db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'libcap>=2.16'
10 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'talloc' 'tdb')
11 provides=('samba' 'smbclient')
12 conflicts=('samba' 'smbclient')
13 ### UNINSTALL dmapi package before building!!!
14 backup=(etc/logrotate.d/samba
24 md5sums=('e93533fa2296c07c1f645dfdd373657f'
25 '5697da77590ec092cc8a883bae06093c'
26 'a4bbfa39fee95bba2e7ad6b535fae7e6'
27 '96f82c38f3f540b53f3e5144900acf17'
28 'f2f2e348acd1ccb566e95fa8a561b828')
30 _gitroot=git://git.samba.org/samba.git
35 msg "Connecting git.samba.org server..."
37 if [ -d $_gitname ] ; then
39 git fetch origin || return 1
41 git clone $_gitroot $_gitname || return 1
44 git checkout origin/v3-5-test || return 1
46 cd $srcdir/$_gitname/source3
47 ./autogen.sh || return 1
48 ./configure --prefix=/usr \
50 --localstatedir=/var \
51 --with-configdir=/etc/samba \
52 --with-lockdir=/var/cache/samba \
53 --with-piddir=/var/run/samba \
57 --with-pammodulesdir=/lib/security \
63 --enable-external-libtalloc \
67 --enable-external-libtdb
72 make manpages3 || return 1
75 mv output/manpages-3/ ../docs/manpages
79 cd $srcdir/$_gitname/source3
80 make DESTDIR=$pkgdir install || return 1
83 mkdir -p ${pkgdir}/var/log/samba
84 install -D -m755 ../../samba.rc ${pkgdir}/etc/rc.d/samba
85 install -D -m644 ../../samba.conf.d ${pkgdir}/etc/conf.d/samba
86 mkdir -p ${pkgdir}/etc/samba
87 cat ../examples/smb.conf.default | \
88 sed 's|log file = .*$|log file = /var/log/samba/log.%m|g' >${pkgdir}/etc/samba/smb.conf.default
89 install -D -m644 ../../samba.logrotate ${pkgdir}/etc/logrotate.d/samba
90 install -D -m644 ../../swat.xinetd ${pkgdir}/etc/xinetd.d/swat
91 install -D -m644 ../../samba.pam ${pkgdir}/etc/pam.d/samba
93 install -d -m1777 ${pkgdir}/var/spool/samba
94 sed -i 's|/usr/spool/samba|/var/spool/samba|g' ${pkgdir}/etc/samba/smb.conf.default
96 sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
98 install -D -m755 ${srcdir}/samba/nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
99 ln -s libnss_wins.so ${pkgdir}/lib/libnss_wins.so.2
100 install -D -m755 ${srcdir}/samba/nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
102 install -D -m644 ${srcdir}/samba/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
106 install -m755 bin/{mount.cifs,umount.cifs} ${pkgdir}/sbin/
107 mkdir -p ${pkgdir}/usr/lib/cups/backend
108 ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
111 make DESTDIR=$pkgdir installman || return 1
112 # remove conflicting tdb man pages
113 rm -f $pkgdir/usr/share/man/man8/tdb{backup,dump,tool}.8 || return 1
116 # vim:set ts=2 sw=2 et: