diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-19 20:55:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-19 20:55:55 +0000 |
commit | 3716ca6c9fad81a8ea7d51c5b209fe682064c487 (patch) | |
tree | 41b5f78bbb934516ecfd55b92bf2cf23b0cc0d2c /extra/samba/APKBUILD | |
parent | 60d89f07d8d51c684821063ca41fe55b4b733a64 (diff) | |
download | aports-3716ca6c9fad81a8ea7d51c5b209fe682064c487.tar.bz2 aports-3716ca6c9fad81a8ea7d51c5b209fe682064c487.tar.xz |
extra/samba: new aport
Tools to access a server's filespace and printers via SMB
http://www.samba.org
Diffstat (limited to 'extra/samba/APKBUILD')
-rw-r--r-- | extra/samba/APKBUILD | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/extra/samba/APKBUILD b/extra/samba/APKBUILD new file mode 100644 index 00000000..309c7a3b --- /dev/null +++ b/extra/samba/APKBUILD @@ -0,0 +1,92 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=samba +pkgver=3.2.8 +pkgrel=0 +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" +depends="db popt ncurses uclibc samba-initscript" +makedepends="db-dev popt-dev ncurses-dev" +source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz + samba.initd + samba.confd + " + +build() { + cd "$srcdir"/$pkgname-$pkgver/source +# patch -Np2 -i "$srcdir"/no-clients.patch || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc/samba \ + --with-configdir=/etc/samba \ + --libdir=/usr/lib/samba \ + --localstatedir=/var \ + --with-fhs \ + --with-lockdir=/var/cache/samba \ + --with-piddir=/var/run/samba \ + --with-logfilebase=/var/log/samba \ + --without-pam \ + --without-ads \ + --with-libsmbclient \ + --disable-nss-wrapper \ + --disable-dnssd \ + --disable-swat + make proto || return 1 + make everything || return 1 + make DESTDIR="$pkgdir" install + + install -d "$pkgdir"/var/log/samba \ + "$pkgdir"/usr/share/doc/samba + cd "$srcdir"/$pkgname-$pkgver + cp -r examples "pkgdir"/usr/share/doc/samba/ + install -D packaging/RHEL/setup/smbusers "$pkgdir"/etc/samba/smbusers +} + +initscript() { + pkgdesc="Init script for Samba" + depends="" + install -Dm755 $srcdir/samba.initd "$subpkgdir"/etc/init.d/samba + install -Dm644 $srcdir/samba.confd "$subpkgdir"/etc/conf.d/samba +} + +_mv_files() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i || return 1 + done +} + +winbind() { + pkgdesc="Samba user and group resolver" + depends="uclibc samba-common popt samba-initscript" + cd "$pkgdir" + _mv_files \ + usr/bin/wbinfo \ + usr/bin/ntlm_auth \ + usr/sbin/winbindd \ + usr/lib/samba/idmap \ + usr/lib/samba/libwbclient* +} + +common() { + pkgdesc="Samba common files for both client an servers" + depends="uclibc popt" + cd "$pkgdir" + _mv_files \ + usr/bin/net \ + usr/bin/nmblookup \ + usr/bin/smbpasswd \ + usr/bin/testparm \ + usr/lib/samba/*.dat \ + usr/lib/samba/libtalloc* \ + usr/lib/samba/libtdb* \ + var/run/samba \ + var/cache/samba \ + var/log/samba +} + +md5sums="06efd6e6cc4aac628a1a0b082e4be0f2 samba-3.2.8.tar.gz +587c1c4824ef5b0ac593fcf8ec8fec78 samba.initd +c150433426e18261e6e3eed3930e1a76 samba.confd" |