summaryrefslogtreecommitdiffstats
path: root/abs/core/smbclient/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/smbclient/PKGBUILD
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/smbclient/PKGBUILD')
-rw-r--r--abs/core/smbclient/PKGBUILD77
1 files changed, 38 insertions, 39 deletions
diff --git a/abs/core/smbclient/PKGBUILD b/abs/core/smbclient/PKGBUILD
index b7eb349..e2aaedd 100644
--- a/abs/core/smbclient/PKGBUILD
+++ b/abs/core/smbclient/PKGBUILD
@@ -1,58 +1,57 @@
-# $Id: PKGBUILD 3859 2008-07-01 17:10:34Z andyrtr $
+# $Id: PKGBUILD 37507 2009-05-02 15:44:09Z tpowa $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=smbclient
-pkgver=3.0.31
+pkgver=3.3.4
# We use the 'A' to fake out pacman's version comparators. Samba chooses
-# to append 'a','b',etc to their subsequent releases, which pamcan
+# to append 'a','b',etc to their subsequent releases, which pacman
# misconstrues as alpha, beta, etc. Bad samba!
-_realver=3.0.31
-pkgrel=2
+_realver=3.3.4
+pkgrel=1
pkgdesc="Tools to access a server's filespace and printers via SMB"
arch=(i686 x86_64)
url="http://www.samba.org"
-license=('GPL')
-options=(!makeflags)
-depends=('popt' 'libldap' 'libcap' 'heimdal>=1.2-1' 'db>=4.7')
+license=('GPL3')
+depends=('popt' 'libldap' 'libcap>=2.16' 'heimdal>=1.2-1' 'db>=4.7' 'tdb=3.3.4')
source=(http://us1.samba.org/samba/ftp/samba-${_realver}.tar.gz)
-md5sums=('165abaf4522c70031d9a76fbb638ca06')
+options=(!makeflags)
build() {
- cd ${startdir}/src/samba-${_realver}/source
+ cd ${srcdir}/samba-${_realver}/source
- ./configure --prefix=/usr --with-smbmount --with-fhs --with-pam \
- --with-datadir=/usr/share --with-configdir=/etc/samba \
+ ./configure --prefix=/usr --with-cifsmount --with-fhs --with-pam \
+ --with-configdir=/etc/samba \
--with-lockdir=/var/run/samba --with-ads --with-acl-support \
- --localstatedir=/var
+ --localstatedir=/var --with-syslog --with-pam_smbpass --disable-dnssd \
+ --libdir=/usr/lib/samba
+
make proto bin/smbclient libsmbclient \
bin/rpcclient bin/smbspool bin/smbtree \
- bin/smbcacls bin/smbcquotas bin/smbmount bin/smbmnt bin/smbget \
- bin/smbumount bin/net bin/nmblookup || return 1
- mkdir -p ${startdir}/pkg/usr/bin ${startdir}/pkg/sbin
- install -m755 bin/* ${startdir}/pkg/usr/bin/
- install -m755 script/smbtar ${startdir}/pkg/usr/bin/
- ln -sf /usr/bin/smbmount ${startdir}/pkg/sbin/mount.smbfs
- ln -sf /usr/bin/smbumount ${startdir}/pkg/sbin/umount.smbfs
- mkdir -p ${startdir}/pkg/usr/lib/cups/backend
- ln -sf /usr/bin/smbspool ${startdir}/pkg/usr/lib/cups/backend/smb
-
- mkdir -p ${startdir}/pkg/usr/lib/samba
- mv ${startdir}/pkg/usr/bin/libsmbclient.* ${startdir}/pkg/usr/lib/samba/
- ln -sf samba/libsmbclient.so ${startdir}/pkg/usr/lib/libsmbclient.so
- ln -sf samba/libsmbclient.so ${startdir}/pkg/usr/lib/libsmbclient.so.0
- mkdir -p ${startdir}/pkg/usr/include
- install -m644 include/libsmbclient.h ${startdir}/pkg/usr/include/
-
- gcc -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o ${startdir}/pkg/sbin/mount.cifs client/mount.cifs.c
- gcc -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o ${startdir}/pkg/sbin/umount.cifs client/umount.cifs.c
-
- mkdir -p ${startdir}/pkg/usr/share/man/man{1,7,8}
- for man in smbmnt smbmount smbspool \
- smbumount umount.cifs mount.cifs net; do
- install -m644 ../docs/manpages/${man}.8 ${startdir}/pkg/usr/share/man/man8/
+ bin/smbcacls bin/smbcquotas bin/smbget \
+ bin/net bin/nmblookup bin/mount.cifs bin/umount.cifs || return 1
+ 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
+ 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 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 ${startdir}/pkg/usr/share/man/man1/
+ install -m644 ../docs/manpages/${man}.1 ${pkgdir}/usr/share/man/man1/
done
- install -m644 ../docs/manpages/libsmbclient.7 ${startdir}/pkg/usr/share/man/man7/
+ install -m644 ../docs/manpages/libsmbclient.7 ${pkgdir}/usr/share/man/man7/
}
+md5sums=('1443165edb7cb3f56f1e77aec1ee3266')