From 2fdc4a6bbf3d06ddc923bb8d70e2662018c807c2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 12 Dec 2010 12:24:37 +0000 Subject: main/samba: separate client subpackage --- main/samba/APKBUILD | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) (limited to 'main/samba/APKBUILD') diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD index d9ba981d3d..96db4c52f9 100644 --- a/main/samba/APKBUILD +++ b/main/samba/APKBUILD @@ -1,13 +1,13 @@ # Maintainer: Natanael Copa pkgname=samba pkgver=3.5.6 -pkgrel=0 +pkgrel=1 pkgdesc="Tools to access a server's filespace and printers via SMB" url="http://www.samba.org" license="GPL3" subpackages="$pkgname-dev $pkgname-doc winbind $pkgname-common - $pkgname-initscript tdb" -depends="samba-initscript" + $pkgname-initscript tdb libsmbclient $pkgname-client" +depends="samba-initscript samba-client" makedepends="popt-dev ncurses-dev openldap-dev heimdal-dev e2fsprogs-dev libiconv-dev" source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz @@ -93,8 +93,8 @@ winbind() { common() { pkgdesc="Samba common files for both client an servers" depends= - # we have moved libwbclient to samba-common - replaces="winbind" + # we have moved libwbclient and libnetapi to samba-common + replaces="winbind samba" cd "$pkgdir" _mv_files \ usr/bin/net \ @@ -102,6 +102,7 @@ common() { usr/bin/smbpasswd \ usr/bin/testparm \ usr/lib/samba/*.dat \ + usr/lib/libnetapi.so.* \ usr/lib/libtalloc* \ usr/lib/libwbclient* \ var/run/samba \ @@ -118,6 +119,36 @@ tdb() { usr/bin/tdb* } +libsmbclient() { + pkgdesc="The SMB client library" + replaces="samba" + depends= + cd "$pkgdir" + _mv_files \ + usr/lib/libsmbclient.so.* \ + usr/lib/libsmbsharemodes.so.* \ + || return 1 +} + +client() { + pkgdesc="Samba client program" + replaces="samba" + cd "$pkgdir" + _mv_files \ + usr/bin/rpcclient \ + usr/bin/smbcacls \ + usr/bin/findsmb \ + usr/bin/smbget \ + usr/bin/smbclient \ + usr/bin/smbcquotas \ + usr/bin/smbspool \ + usr/bin/smbtar \ + usr/bin/smbtree \ + usr/bin/sharesec \ + || return 1 +} + + md5sums="bf6c09ea497a166df8bd672db1d8da8f samba-3.5.6.tar.gz c8a7f6ac5df2f73dbf023e25ea39927b samba.initd c150433426e18261e6e3eed3930e1a76 samba.confd -- cgit v1.2.3