squid: fix dependencies, use --system in pre-install instead hardcoded user/group IDs
This commit is contained in:
parent
d356ef79a9
commit
e1e0ae9263
@ -21,7 +21,6 @@ drwxr-xr-x root/root usr/lib/squid/
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_fake_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_getpwnam_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_ncsa_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_nis_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_pam_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_pop3_auth
|
||||
-rwxr-xr-x root/root usr/lib/squid/basic_radius_auth
|
||||
|
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/cBZ/9yfMptNMnj1N9VKmq3STrzS3C82aS1S+15Gcw+H+LQOv+f0kktnG+IpPQ5PZFSs7exNHxx921ZftoLrlgI=
|
||||
SHA256 (Pkgfile) = 8fdecef1d6bb621824fcde7c303ef66d6ff6dc4fb642565f3059275f12a17996
|
||||
SHA256 (.footprint) = ec03929cc9e4bec668132dc7c141c5eeff927973e303fb8abca9d2e041e30058
|
||||
RWSE3ohX2g5d/SpLYj12agxYFQwIMWWSuIPcTo3/trFnnykwJYmtycZZfq9MsRG9kHxsGXVhfai82Qbpduvcovaq0gDi9w0zdQE=
|
||||
SHA256 (Pkgfile) = 81b0a2cb27aa14138d30cd3134b0b8f6b0a9a14684bae40fc9dbd947d83a5d04
|
||||
SHA256 (.footprint) = 7aea4d85bc7a912ac8e525021291d2cb542083882c56864ab822875cb5211ed8
|
||||
SHA256 (squid-4.13.tar.xz) = 6891a0f540e60779b4f24f1802a302f813c6f473ec7336a474ed68c3e2e53ee0
|
||||
SHA256 (squid) = d4ff0ac128250907e7cce4a01d6d92d9ca7dde7d59e1c72fe89de72fa5488ec4
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Description: A full-featured web proxy cache
|
||||
# URL: http://www.squid-cache.org
|
||||
# Maintainer: Juergen Daubert, jue at crux dot nu
|
||||
# Depends on: db libcap libtool expat libxml2
|
||||
# Depends on: db linux-pam libcap libnsl libtirpc libtool expat libxml2
|
||||
|
||||
name=squid
|
||||
version=4.13
|
||||
release=1
|
||||
release=2
|
||||
source=(http://www.squid-cache.org/Versions/v4/$name-$version.tar.xz
|
||||
squid)
|
||||
|
||||
|
@ -3,9 +3,9 @@ README for squid 3.x
|
||||
REQUIREMENTS
|
||||
|
||||
PRE-INSTALL
|
||||
1. Create user/group squid with a unused id < 99:
|
||||
'groupadd -g 40 squid'
|
||||
'useradd -g squid -u 40 -d /var/squid -s /bin/false squid'
|
||||
1. Create a system user/group squid:
|
||||
'groupadd -r squid'
|
||||
'useradd -g squid -r -d /var/squid -s /bin/false squid'
|
||||
'passwd -l squid'
|
||||
|
||||
POST-INSTALL
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
getent group squid || /usr/sbin/groupadd -g 40 squid
|
||||
getent passwd squid || /usr/sbin/useradd -g squid -u 40 -d /var/squid -s /bin/false squid
|
||||
getent group squid || /usr/sbin/groupadd -r squid
|
||||
getent passwd squid || /usr/sbin/useradd -g squid -r -d /var/squid -s /bin/false squid
|
||||
/usr/bin/passwd -l squid
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user