diff options
author | Juergen Daubert <jue@jue.li> | 2020-10-19 10:25:52 +0000 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-10-19 10:25:52 +0000 |
commit | e1e0ae9263d6eb59e31468e4ad7eb94e670c6777 (patch) | |
tree | a015516bb751fa90136acc62dc39e726003abe9e /squid | |
parent | d356ef79a9c3bc619da5346b91dcf7b139006d46 (diff) | |
download | opt-e1e0ae9263d6eb59e31468e4ad7eb94e670c6777.tar.gz opt-e1e0ae9263d6eb59e31468e4ad7eb94e670c6777.tar.xz |
squid: fix dependencies, use --system in pre-install instead hardcoded user/group IDs
Diffstat (limited to 'squid')
-rw-r--r-- | squid/.footprint | 1 | ||||
-rw-r--r-- | squid/.signature | 6 | ||||
-rw-r--r-- | squid/Pkgfile | 4 | ||||
-rw-r--r-- | squid/README | 6 | ||||
-rw-r--r-- | squid/pre-install | 4 |
5 files changed, 10 insertions, 11 deletions
diff --git a/squid/.footprint b/squid/.footprint index 7c169efc0..110447f7e 100644 --- a/squid/.footprint +++ b/squid/.footprint @@ -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 diff --git a/squid/.signature b/squid/.signature index 4816761a4..f71b091d8 100644 --- a/squid/.signature +++ b/squid/.signature @@ -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 diff --git a/squid/Pkgfile b/squid/Pkgfile index 057878af8..9be00184b 100644 --- a/squid/Pkgfile +++ b/squid/Pkgfile @@ -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) diff --git a/squid/README b/squid/README index 4287d9c37..a5dbd1b8c 100644 --- a/squid/README +++ b/squid/README @@ -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 diff --git a/squid/pre-install b/squid/pre-install index 95476b724..d0289ec9b 100644 --- a/squid/pre-install +++ b/squid/pre-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 |