Resolves: #1709299 - Use upstream squid.service
This commit is contained in:
parent
22cf018080
commit
9ea8eeaf0b
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Squid caching proxy
|
Description=Squid caching proxy
|
||||||
After=network.target nss-lookup.target
|
Documentation=man:squid(8)
|
||||||
|
After=network.target network-online.target nss-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
22
squid.spec
22
squid.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 4.6
|
Version: 4.6
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
# See CREDITS for breakdown of non GPLv2+ code
|
# 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
|
# cppunit-config patch changes configure.ac
|
||||||
autoconf
|
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
|
# NIS helper has been removed because of the following bug
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1531540
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1531540
|
||||||
%configure \
|
%configure \
|
||||||
@ -146,19 +141,17 @@ LDFLAGS="$RPM_LD_FLAGS -pie -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel"
|
|||||||
--disable-arch-native \
|
--disable-arch-native \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
--disable-security-cert-validators \
|
--disable-security-cert-validators \
|
||||||
--disable-strict-error-checking
|
--disable-strict-error-checking \
|
||||||
|
--with-swapdir=%{_localstatedir}/spool/squid
|
||||||
|
|
||||||
make \
|
%make_build
|
||||||
DEFAULT_SWAP_DIR=%{_localstatedir}/spool/squid \
|
|
||||||
%{?_smp_mflags}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make \
|
%make_install
|
||||||
DESTDIR=$RPM_BUILD_ROOT \
|
|
||||||
install
|
|
||||||
echo "
|
echo "
|
||||||
#
|
#
|
||||||
# This is %{_sysconfdir}/httpd/conf.d/squid.conf
|
# This is %{_sysconfdir}/httpd/conf.d/squid.conf
|
||||||
@ -292,6 +285,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 29 2019 Lubos Uhliarik <luhliari@redhat.com> - 7:4.6-2
|
||||||
- Resolves: #1599074 - squid: 3 coredumps every day
|
- Resolves: #1599074 - squid: 3 coredumps every day
|
||||||
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
# default squid options
|
# default squid options
|
||||||
SQUID_OPTS=""
|
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
|
# default squid conf file
|
||||||
SQUID_CONF="/etc/squid/squid.conf"
|
SQUID_CONF="/etc/squid/squid.conf"
|
||||||
|
Loading…
Reference in New Issue
Block a user