Resolves: #1709299 - Use upstream squid.service

This commit is contained in:
Luboš Uhliarik 2019-05-17 14:58:26 +02:00
parent 22cf018080
commit 9ea8eeaf0b
3 changed files with 11 additions and 18 deletions

View File

@ -1,6 +1,7 @@
[Unit]
Description=Squid caching proxy
After=network.target nss-lookup.target
Documentation=man:squid(8)
After=network.target network-online.target nss-lookup.target
[Service]
Type=forking

View File

@ -2,7 +2,7 @@
Name: squid
Version: 4.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: The Squid proxy caching server
Epoch: 7
# See CREDITS for breakdown of non GPLv2+ code
@ -94,11 +94,6 @@ lookup program (dnsserver), a program for retrieving FTP data
# cppunit-config patch changes configure.ac
autoconf
# libtool fails somewhat on -fpie. PIC also works for -pie
CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
CFLAGS="$RPM_OPT_FLAGS -fPIC"
LDFLAGS="$RPM_LD_FLAGS -pie -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel"
# NIS helper has been removed because of the following bug
# https://bugzilla.redhat.com/show_bug.cgi?id=1531540
%configure \
@ -146,19 +141,17 @@ LDFLAGS="$RPM_LD_FLAGS -pie -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel"
--disable-arch-native \
--with-pic \
--disable-security-cert-validators \
--disable-strict-error-checking
--disable-strict-error-checking \
--with-swapdir=%{_localstatedir}/spool/squid
make \
DEFAULT_SWAP_DIR=%{_localstatedir}/spool/squid \
%{?_smp_mflags}
%make_build
%check
make check
%install
make \
DESTDIR=$RPM_BUILD_ROOT \
install
%make_install
echo "
#
# This is %{_sysconfdir}/httpd/conf.d/squid.conf
@ -292,6 +285,9 @@ fi
%changelog
* Fri May 17 2019 Luboš Uhliarik <luhliari@redhat.com> - 7:4.6-3
- Resolves: #1709299 - Use upstream squid.service
* Mon Apr 29 2019 Lubos Uhliarik <luhliari@redhat.com> - 7:4.6-2
- Resolves: #1599074 - squid: 3 coredumps every day

View File

@ -1,9 +1,5 @@
# default squid options
SQUID_OPTS=""
# Time to wait for Squid to shut down when asked. Should not be necessary
# most of the time.
SQUID_SHUTDOWN_TIMEOUT=100
# default squid conf file
SQUID_CONF="/etc/squid/squid.conf"