Commit 2fdc4a6b authored by Natanael Copa's avatar Natanael Copa

main/samba: separate client subpackage

parent e6227c3f
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment