Skip to content
Snippets Groups Projects
Commit 2b56d85b authored by Natanael Copa's avatar Natanael Copa
Browse files

main/samba: create a winbind group for winbindd_privileged

needed for squid AD authentication
parent 755022e9
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=samba pkgname=samba
pkgver=3.3.7 pkgver=3.3.7
pkgrel=1 pkgrel=2
pkgdesc="Tools to access a server's filespace and printers via SMB" pkgdesc="Tools to access a server's filespace and printers via SMB"
url="http://www.samba.org" url="http://www.samba.org"
license="GPL3" license="GPL3"
...@@ -14,6 +14,7 @@ source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz ...@@ -14,6 +14,7 @@ source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz
samba.confd samba.confd
samba.logrotate samba.logrotate
" "
pkggroups="winbind"
build() { build() {
cd "$srcdir"/$pkgname-$pkgver/source cd "$srcdir"/$pkgname-$pkgver/source
...@@ -62,12 +63,16 @@ _mv_files() { ...@@ -62,12 +63,16 @@ _mv_files() {
winbind() { winbind() {
pkgdesc="Samba user and group resolver" pkgdesc="Samba user and group resolver"
depends= depends=
install="winbind.pre-install winbind.pre-upgrade winbind.post-install
winbind.post-upgrade"
replaces="samba"
cd "$pkgdir" cd "$pkgdir"
_mv_files \ _mv_files \
usr/bin/wbinfo \ usr/bin/wbinfo \
usr/bin/ntlm_auth \ usr/bin/ntlm_auth \
usr/sbin/winbindd \ usr/sbin/winbindd \
usr/lib/samba/idmap usr/lib/samba/idmap
install -d -g winbind "$subpkgdir"/var/cache/samba/winbindd_privileged
} }
common() { common() {
......
#!/bin/sh
chgrp winbind /var/cache/samba/winbindd_privileged
exit 0
winbind.post-install
\ No newline at end of file
#!/bin/sh
addgroup winbind 2>/dev/null
exit 0
winbind.pre-install
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment