aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-03 07:06:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-03 07:07:57 +0000
commit755022e91e421537995c02c67b55f27dc8165471 (patch)
treec858066e8c5eb82e368b2c57c8973a2efb343108 /main
parentaa5d1b96c31c6337e0788700fb7a3314d39b3bfd (diff)
downloadaports-755022e91e421537995c02c67b55f27dc8165471.tar.bz2
aports-755022e91e421537995c02c67b55f27dc8165471.tar.xz
main/squid: add squid user to winbind group
This allows Active Directory authentication
Diffstat (limited to 'main')
-rw-r--r--main/squid/APKBUILD6
-rw-r--r--main/squid/squid.pre-install6
2 files changed, 10 insertions, 2 deletions
diff --git a/main/squid/APKBUILD b/main/squid/APKBUILD
index 111d9ef52e..2462ca2b81 100644
--- a/main/squid/APKBUILD
+++ b/main/squid/APKBUILD
@@ -3,10 +3,12 @@
pkgname=squid
pkgver=2.7.6
_ver=2.7.STABLE6
-pkgrel=7
+pkgrel=8
pkgdesc="A full-featured Web proxy cache server."
url="http://www.squid-cache.org"
-install="squid.post-install"
+install="squid.pre-install squid.post-install"
+pkgusers="squid"
+pkggroups="squid"
license="GPL-2"
depends="$pkgname-errors-english logrotate"
makedepends="openssl-dev perl-dev autoconf automake"
diff --git a/main/squid/squid.pre-install b/main/squid/squid.pre-install
new file mode 100644
index 0000000000..322d21deab
--- /dev/null
+++ b/main/squid/squid.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+adduser -D squid -H /var/cache/squid 2>/dev/null
+addgroup winbind 2>/dev/null
+addgroup squid winbind
+exit 0