summaryrefslogtreecommitdiffstats
path: root/main/samba/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-03 07:09:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-03 07:09:58 +0000
commit2b56d85b3fa6558775682b8801d9dce8140f9950 (patch)
tree346f181c4bba718408641639501de801539258ea /main/samba/APKBUILD
parent755022e91e421537995c02c67b55f27dc8165471 (diff)
downloadaports-2b56d85b3fa6558775682b8801d9dce8140f9950.tar.bz2
aports-2b56d85b3fa6558775682b8801d9dce8140f9950.tar.xz
main/samba: create a winbind group for winbindd_privileged
needed for squid AD authentication
Diffstat (limited to 'main/samba/APKBUILD')
-rw-r--r--main/samba/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD
index d0016e2fe..e12317f76 100644
--- a/main/samba/APKBUILD
+++ b/main/samba/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=samba
pkgver=3.3.7
-pkgrel=1
+pkgrel=2
pkgdesc="Tools to access a server's filespace and printers via SMB"
url="http://www.samba.org"
license="GPL3"
@@ -14,6 +14,7 @@ source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz
samba.confd
samba.logrotate
"
+pkggroups="winbind"
build() {
cd "$srcdir"/$pkgname-$pkgver/source
@@ -62,12 +63,16 @@ _mv_files() {
winbind() {
pkgdesc="Samba user and group resolver"
depends=
+ install="winbind.pre-install winbind.pre-upgrade winbind.post-install
+ winbind.post-upgrade"
+ replaces="samba"
cd "$pkgdir"
_mv_files \
usr/bin/wbinfo \
usr/bin/ntlm_auth \
usr/sbin/winbindd \
usr/lib/samba/idmap
+ install -d -g winbind "$subpkgdir"/var/cache/samba/winbindd_privileged
}
common() {