diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-03 07:09:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-03 07:09:58 +0000 |
commit | 2b56d85b3fa6558775682b8801d9dce8140f9950 (patch) | |
tree | 346f181c4bba718408641639501de801539258ea | |
parent | 755022e91e421537995c02c67b55f27dc8165471 (diff) | |
download | aports-2b56d85b3fa6558775682b8801d9dce8140f9950.tar.bz2 aports-2b56d85b3fa6558775682b8801d9dce8140f9950.tar.xz |
main/samba: create a winbind group for winbindd_privileged
needed for squid AD authentication
-rw-r--r-- | main/samba/APKBUILD | 7 | ||||
-rw-r--r-- | main/samba/winbind.post-install | 5 | ||||
l--------- | main/samba/winbind.post-upgrade | 1 | ||||
-rw-r--r-- | main/samba/winbind.pre-install | 5 | ||||
l--------- | main/samba/winbind.pre-upgrade | 1 |
5 files changed, 18 insertions, 1 deletions
diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD index d0016e2fe3..e12317f766 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() { diff --git a/main/samba/winbind.post-install b/main/samba/winbind.post-install new file mode 100644 index 0000000000..995f8e87a6 --- /dev/null +++ b/main/samba/winbind.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +chgrp winbind /var/cache/samba/winbindd_privileged +exit 0 + diff --git a/main/samba/winbind.post-upgrade b/main/samba/winbind.post-upgrade new file mode 120000 index 0000000000..398738a5e3 --- /dev/null +++ b/main/samba/winbind.post-upgrade @@ -0,0 +1 @@ +winbind.post-install
\ No newline at end of file diff --git a/main/samba/winbind.pre-install b/main/samba/winbind.pre-install new file mode 100644 index 0000000000..792e73a803 --- /dev/null +++ b/main/samba/winbind.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +addgroup winbind 2>/dev/null + +exit 0 diff --git a/main/samba/winbind.pre-upgrade b/main/samba/winbind.pre-upgrade new file mode 120000 index 0000000000..b511f9595e --- /dev/null +++ b/main/samba/winbind.pre-upgrade @@ -0,0 +1 @@ +winbind.pre-install
\ No newline at end of file |