[arch-commits] Commit in samba/trunk (PKGBUILD)

Tobias Powalowski tpowa at archlinux.org
Sun Nov 1 23:10:56 UTC 2009


    Date: Sunday, November 1, 2009 @ 18:10:56
  Author: tpowa
Revision: 57751

upgpkg: samba 3.4.3-1
    bump to new series

Modified:
  samba/trunk/PKGBUILD

----------+
 PKGBUILD |  111 +++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 86 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-01 22:56:18 UTC (rev 57750)
+++ PKGBUILD	2009-11-01 23:10:56 UTC (rev 57751)
@@ -1,39 +1,98 @@
 # $Id$
 # Maintainer: judd <jvinet at zeroflux.org>
-pkgname=samba
-pkgver=3.3.8
+pkgbase=samba
+pkgname=('tdb' 'smbclient' 'samba')
+pkgver=3.4.3
 # We use the 'A' to fake out pacman's version comparators.  Samba chooses
 # to append 'a','b',etc to their subsequent releases, which pamcan
 # misconstrues as alpha, beta, etc.  Bad samba!
-_realver=3.3.8
+_realver=3.4.3
 pkgrel=1
-pkgdesc="Tools to access a server's filespace and printers via SMB"
 arch=(i686 x86_64)
 url="http://www.samba.org"
 license=('GPL3')
-backup=(etc/logrotate.d/samba etc/pam.d/samba etc/samba/smb.conf etc/xinetd.d/swat etc/conf.d/samba)
-depends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'smbclient=3.3.8' 'libcap>=2.16' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'tdb=3.3.8')
+makedepends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'libcap>=2.16' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1')
 options=(!makeflags)
-source=(http://us1.samba.org/samba/ftp/stable/${pkgname}-${_realver}.tar.gz \
-        no-clients.patch samba samba.logrotate swat.xinetd samba.pam samba.conf.d)
+source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${_realver}.tar.gz
+        samba samba.logrotate 
+        swat.xinetd 
+        samba.pam 
+        samba.conf.d)
 
 build() {
-  cd ${srcdir}/${pkgname}-${_realver}/source
-  patch -Np2 -i ${srcdir}/no-clients.patch || return 1
-
+  cd ${srcdir}/${pkgbase}-${_realver}/source3
   ./configure --prefix=/usr --with-configdir=/etc/samba \
               --with-lockdir=/var/cache/samba \
               --with-piddir=/var/run/samba \
               --with-fhs --with-pam --with-ads --with-acl-support \
-              --without-cifsmount --without-libsmbclient \
+              --with-cifsmount --with-libsmbclient \
               --with-syslog --with-pam_smbpass \
               --localstatedir=/var --disable-dnssd \
 	      --disable-avahi --libdir=/usr/lib/samba
   make || return 1
+}
+
+package_tdb () {
+pkgdesc="A Trivia Database similar to GDBM but allows simultaneous commits"
+   cd ${srcdir}/${pkgbase}-${_realver}/lib/replace
+   ./autogen.sh
+   ./configure --prefix=/usr
+   make || return 1
+   cp replace.o snprintf.o getpass.o ../tdb/
+   cd ${srcdir}/${pkgbase}-${_realver}/lib/tdb
+   ./autogen.sh
+   ./configure --prefix=/usr
+   make || return 1
+   make DESTDIR=${pkgdir} install || return 1
+   ln -sf  /usr/lib/libtdb.so.1.1.3 ${pkgdir}/usr/lib/libtdb.so.1
+   ln -sf  /usr/lib/libtdb.so.1.1.3 ${pkgdir}/usr/lib/libtdb.so
+}
+
+package_smbclient () {
+pkgdesc="Tools to access a server's filespace and printers via SMB"
+depends=('readline>=6.0.00' 'popt' 'libldap>=2.4.18-1' 'libcap>=2.16' 'heimdal>=1.2-1' 'db>=4.7' 'tdb>=$pkgver')
+  cd ${srcdir}/${pkgbase}-${_realver}/source3
+  mkdir -p ${pkgdir}/usr/bin ${pkgdir}/sbin ${pkgdir}/usr/lib/samba
+  install -m755 bin/{smbclient,rpcclient,smbspool,smbtree,smbcacls,smbcquotas,smbget,net,nmblookup} ${pkgdir}/usr/bin/
+  install -m755 bin/{mount.cifs,umount.cifs} ${pkgdir}/sbin/
+  mv  bin/*.so* ${pkgdir}/usr/lib/samba
+  install -m755 script/smbtar ${pkgdir}/usr/bin/
+  mkdir -p ${pkgdir}/usr/lib/cups/backend
+  ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
+  rm -rf  ${pkgdir}/usr/lib/samba/libsmbsharemodes*
+  for i in ${pkgdir}/usr/lib/samba/*; do
+      ln -sf samba/$(basename $i) ${pkgdir}/usr/lib/$(basename $i)
+  done
+  rm -rf ${pkgdir}/usr/lib/libtdb*
+  mkdir -p ${pkgdir}/usr/include
+  install -m644 include/libsmbclient.h ${pkgdir}/usr/include/
+  install -m644 ${srcdir}/${pkgbase}-${_realver}/lib/talloc/talloc.h ${pkgdir}/usr/include/
+  install -m644 lib/netapi/netapi.h ${pkgdir}/usr/include/
+  mkdir -p ${pkgdir}/usr/share/man/man{1,7,8}
+  for man in smbspool \
+      umount.cifs mount.cifs net; do
+      install -m644 ../docs/manpages/${man}.8 ${pkgdir}/usr/share/man/man8/
+  done
+  for man in rpcclient smbcacls smbclient smbcquotas smbget \
+      smbtree smbtar nmblookup; do
+      install -m644 ../docs/manpages/${man}.1 ${pkgdir}/usr/share/man/man1/
+  done
+  install -m644 ../docs/manpages/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
+}
+
+package_samba () {
+pkgdesc="Tools to access a server's filespace and printers via SMB"
+backup=(etc/logrotate.d/samba 
+        etc/pam.d/samba 
+        etc/samba/smb.conf
+        etc/xinetd.d/swat
+        etc/conf.d/samba)
+depends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'smbclient>=pkgver' 'libcap>=2.16' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'tdb>=$pkgver')
+  cd ${srcdir}/samba-${_realver}/source3
   mkdir -p ${pkgdir}/var/log/samba
   mkdir -p ${pkgdir}/etc/samba/private
   chmod 700 ${pkgdir}/etc/samba/private
-  make DESTDIR=$startdir/pkg install
+  make DESTDIR=$pkgdir install || return 1
   chmod 644 ${pkgdir}/usr/include/*.h
   rm -rf ${pkgdir}/usr/var
   (cd script; cp installbin.sh i; cat i | sed 's/\/sbin\///' > installbin.sh)
@@ -47,7 +106,7 @@
   install -D -m644 ../../samba.pam ${pkgdir}/etc/pam.d/samba
   # symlink libs
   for i in ${pkgdir}/usr/lib/samba/libsmbshare*; do
-	ln -sf samba/$(basename $i) ${pkgdir}/usr/lib/$(basename $i)
+      ln -sf samba/$(basename $i) ${pkgdir}/usr/lib/$(basename $i)
   done
   # spool directory
   install -d -m1777 ${pkgdir}/var/spool/samba
@@ -55,32 +114,34 @@
   # fix logrotate
   sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
   # nsswitch libraries
-  install -D -m755 nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
+  install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
   ln -s libnss_wins.so ${pkgdir}/lib/libnss_wins.so.2
-  install -D -m755 nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
+  install -D -m755 ${srcdir}/samba-${_realver}/nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
   install -D -m755 bin/pam_winbind.so ${pkgdir}/lib/security/pam_winbind.so
   # remove conflict files of smbclient and tdb
   for man in libsmbclient smbspool \
       umount.cifs mount.cifs net; do
-    rm -f ${pkgdir}/usr/share/man/man8/${man}.8
+      rm -f ${pkgdir}/usr/share/man/man8/${man}.8
   done
-  for i in libnetapi* libtdb* libtalloc* libwbclient*; do
-	  rm -f ${pkgdir}/usr/lib/samba/$i
+  for i in libnetapi* libtdb* libtalloc* libwbclient* libsmbclient*;do
+      rm -f ${pkgdir}/usr/lib/samba/$i
   done
-  rm -f ${pkgdir}/usr/bin/tdbbackup
+  for bin in tdbbackup tdbdump tdbtool net \
+      nmblookup rpcclient smbcacls smbclient \
+      smbcquotas smbget smbspool smbtar smbtree; do
+      rm -f ${pkgdir}/usr/bin/$bin
+  done
   rm -f ${pkgdir}/usr/include/{tdb.h,talloc.h,netapi.h}
   for man in rpcclient smbcacls smbclient smbcquotas \
       smbtree smbtar nmblookup smbget; do
-    rm -f ${pkgdir}/usr/share/man/man1/${man}.1
+      rm -f ${pkgdir}/usr/share/man/man1/${man}.1
   done
   rm -f ${pkgdir}/usr/share/man/man7/libsmbclient.7
-
   rm -f ${pkgdir}/usr/include/libsmbclient.h
   # copy ldap example
-  install -D -m644 ${srcdir}/${pkgname}-${_realver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
+  install -D -m644 ${srcdir}/samba-${_realver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
 }
-md5sums=('f4563c7dfca803c6d56a4948f0af05a8'
-         'ce3d88336ade7522e9a8f59bb306accd'
+md5sums=('322379680c12057f57685652a35a6b05'
          'e93533fa2296c07c1f645dfdd373657f'
          '5697da77590ec092cc8a883bae06093c'
          'a4bbfa39fee95bba2e7ad6b535fae7e6'




More information about the arch-commits mailing list