diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e3799c3..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -polipo-1.0.4.1.tar.gz -/polipo-1.1.1.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5322507 --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +2016-09-13: Retired orphaned package, because it was orphaned for +more than six weeks. + diff --git a/polipo.config b/polipo.config deleted file mode 100644 index 5f083f7..0000000 --- a/polipo.config +++ /dev/null @@ -1,157 +0,0 @@ -# Sample configuration file for Polipo. -*-sh-*- - -# You should not need to use a configuration file; all configuration -# variables have reasonable defaults. If you want to use one, you -# can copy this to /etc/polipo/config or to ~/.polipo and modify. - -# This file only contains some of the configuration variables; see the -# list given by ``polipo -v'' and the manual for more. - -### Configuration from Fedora RPM -### ***************************** -daemonise = true -pidFile = /var/run/polipo/polipo.pid -logFile = /var/log/polipo/polipo.log - -### Basic configuration -### ******************* - -# Uncomment one of these if you want to allow remote clients to -# connect: - -# proxyAddress = "::0" # both IPv4 and IPv6 -# proxyAddress = "0.0.0.0" # IPv4 only - -# If you do that, you'll want to restrict the set of hosts allowed to -# connect: - -# allowedClients = "127.0.0.1, 134.157.168.57" -# allowedClients = "127.0.0.1, 134.157.168.0/24" - -# Uncomment this if you want your Polipo to identify itself by -# something else than the host name: - -# proxyName = "polipo.example.org" - -# Uncomment this if there's only one user using this instance of Polipo: - -# cacheIsShared = false - -# Uncomment this if you want to use a parent proxy: - -# parentProxy = "squid.example.org:3128" - -# Uncomment this if you want to use a parent SOCKS proxy: - -# socksParentProxy = "localhost:9050" -# socksProxyType = socks5 - - -### Memory -### ****** - -# Uncomment this if you want Polipo to use a ridiculously small amount -# of memory (a hundred C-64 worth or so): - -# chunkHighMark = 819200 -# objectHighMark = 128 - -# Uncomment this if you've got plenty of memory: - -# chunkHighMark = 50331648 -# objectHighMark = 16384 - - -### On-disk data -### ************ - -# Uncomment this if you want to disable the on-disk cache: - -# diskCacheRoot = "" - -# Uncomment this if you want to put the on-disk cache in a -# non-standard location: - -# diskCacheRoot = "~/.polipo-cache/" - -# Uncomment this if you want to disable the local web server: - -# localDocumentRoot = "" - -# Uncomment this if you want to enable the pages under /polipo/index? -# and /polipo/servers?. This is a serious privacy leak if your proxy -# is shared. - -# disableIndexing = false -# disableServersList = false - - -### Domain Name System -### ****************** - -# Uncomment this if you want to contact IPv4 hosts only (and make DNS -# queries somewhat faster): - -# dnsQueryIPv6 = no - -# Uncomment this if you want Polipo to prefer IPv4 to IPv6 for -# double-stack hosts: - -# dnsQueryIPv6 = reluctantly - -# Uncomment this to disable Polipo's DNS resolver and use the system's -# default resolver instead. If you do that, Polipo will freeze during -# every DNS query: - -# dnsUseGethostbyname = yes - - -### HTTP -### **** - -# Uncomment this if you want to enable detection of proxy loops. -# This will cause your hostname (or whatever you put into proxyName -# above) to be included in every request: - -# disableVia=false - -# Uncomment this if you want to slightly reduce the amount of -# information that you leak about yourself: - -# censoredHeaders = from, accept-language -# censorReferer = maybe - -# Uncomment this if you're paranoid. This will break a lot of sites, -# though: - -# censoredHeaders = set-cookie, cookie, cookie2, from, accept-language -# censorReferer = true - -# Uncomment this if you want to use Poor Man's Multiplexing; increase -# the sizes if you're on a fast line. They should each amount to a few -# seconds' worth of transfer; if pmmSize is small, you'll want -# pmmFirstSize to be larger. - -# Note that PMM is somewhat unreliable. - -# pmmFirstSize = 16384 -# pmmSize = 8192 - -# Uncomment this if your user-agent does something reasonable with -# Warning headers (most don't): - -# relaxTransparency = maybe - -# Uncomment this if you never want to revalidate instances for which -# data is available (this is not a good idea): - -# relaxTransparency = yes - -# Uncomment this if you have no network: - -# proxyOffline = yes - -# Uncomment this if you want to avoid revalidating instances with a -# Vary header (this is not a good idea): - -# mindlesslyCacheVary = true diff --git a/polipo.cron b/polipo.cron deleted file mode 100755 index 49f8e59..0000000 --- a/polipo.cron +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# flush polipo disk cache -# -CONFIG_FILE=/etc/polipo/config -ENVIRONMENT_FILE=/etc/sysconfig/polipo -FORBIDDEN_FILE=/etc/polipo/forbidden -PIDFILE=/var/run/polipo/polipo.pid - -if [ ! -x /usr/bin/polipo ]; then - exit 0 -fi - -if [ -f "$ENVIRONMENT_FILE" ]; then - . $ENVIRONMENT_FILE -fi - -if [ ! -f "$FORBIDDEN_FILE" ]; then - FORBIDDEN_FILE=/dev/null -fi - -if [ -f "$PIDFILE" ]; then - # Instruct polipo to to flush its in-memory cache to disk (signal USR1) - kill -USR1 $(cat "$PIDFILE") - # Allow some time for polipo to perform the requested flush - sleep 2 - # Since f17, the following su command prints "...killed." to stdout ??? - runuser -s /bin/sh -c \ - "nice polipo -x -c $CONFIG_FILE forbiddenFile=$FORBIDDEN_FILE > /dev/null" \ - polipo 2> /dev/null - # Instruct polipo to to discard its in-memory cache (signal USR2) - kill -USR2 $(cat "$PIDFILE") -fi - -exit 0 diff --git a/polipo.forbidden b/polipo.forbidden deleted file mode 100644 index 8e97f7f..0000000 --- a/polipo.forbidden +++ /dev/null @@ -1,73 +0,0 @@ -# Sample forbidden URLs file for polipo. -*-sh-*- -# Put this in /etc/polipo/forbidden or in ~/.polipo-forbidden. - -# Forbid all hosts belonging to a given domain name: - -#counter.com -#hitbox.com -#doubleclick.net -#www.cashcount.com -/banners/ -/banner/ -doubleclick.net -ads.osdn.com -ads.osdn.net -ads.freshmeat.net -ads.netpool.net -flycast.com -ads-webad.sol.no .gif -www.linuxlinks.com/gif/ .gif -imgis.com -adforce.com -ads.admonitor.net -focalink.com -image.linkexchange.com -valueclick.com -bannerspace.com -dezines.com/banners -206.41.20.7 .gif -ads.web.aol.com -ad.preferences.com -209.207.224.220 -ads.link4ads.com -sandpiper.net -webreference.com/ads -ads. msn.com/ads -wired.com/advertising -209.249.169.51 -mediaplex.com -adclix.com -commonwealth -linuxkonsult.m.se -3rex.net -ads.x10.com -cmpnet.com/ads -hyperbanner.net -bustnet.com/cgi-bin/ads -www.eads.com/adserve -adserver.buttonware.net -adcenter.net -aftonbladet.se/annons -adcontroller.unicast.com -ads .zdnet.com -ads.fool.com -adserver -cgi-acc/clickthru -deja.com/ads -webconnect.net -.deja.com/ads/ -www.heise.de/realmedia/ads/ -adserv.spiegel.de/images/ -media.fastclick.net -tribalfusion.com -gavzad -burstnet - -# Forbid all hosts contaning a string matching a given regex. Note -# that you need to quote dots, so that a regex is not misinterpreted -# as a domain name. - -#^http://[^/]*counter\.com -#/ads/ -#/phpAdsNew -#counting\.php diff --git a/polipo.logrotate b/polipo.logrotate deleted file mode 100644 index 30ce91b..0000000 --- a/polipo.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/polipo/polipo.log { - create 0640 polipo polipo - missingok - notifempty - delaycompress - postrotate - /usr/bin/systemctl try-restart polipo 2>/dev/null >/dev/null || : - endscript -} diff --git a/polipo.nm b/polipo.nm deleted file mode 100644 index 29d84e8..0000000 --- a/polipo.nm +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if [ "$2" = "up" ]; then - # use restart - bugzilla #699677 (now with systemctl) - /usr/bin/systemctl try-restart polipo || : -fi diff --git a/polipo.service b/polipo.service deleted file mode 100644 index 200883f..0000000 --- a/polipo.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=A caching web proxy -Documentation=man:polipo(1) http://localhost:8123/ - -[Service] -Type=forking -User=polipo -Group=polipo -EnvironmentFile=/etc/sysconfig/polipo -ExecStart=/usr/bin/polipo -c $CONFIG -ExecReload=/usr/bin/kill -USR1 $MAINPID - -[Install] -WantedBy=multi-user.target diff --git a/polipo.spec b/polipo.spec deleted file mode 100644 index d99c83a..0000000 --- a/polipo.spec +++ /dev/null @@ -1,212 +0,0 @@ -Name: polipo -Version: 1.1.1 -Release: 4%{?dist} -Summary: Lightweight caching web proxy -License: MIT -Source0: http://www.pps.univ-paris-diderot.fr/~jch/software/files/%{name}/%{name}-%{version}.tar.gz -Source2: %{name}.config -Source3: %{name}.forbidden -Source4: %{name}.logrotate -Source5: %{name}.nm -Source6: %{name}.tmpfiles -Source7: %{name}.service -Source8: %{name}.sysconfig -Source9: %{name}.cron -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Group: System Environment/Daemons -URL: http://www.pps.jussieu.fr/~jch/software/%{name}/ -BuildRequires: texinfo -BuildRequires: systemd-units -Requires: logrotate -Requires(post): info -Requires(preun):info -Requires(pre): shadow-utils -Requires(post): chkconfig -Requires(preun):chkconfig - -Requires(pre): %{_sbindir}/useradd - -Requires(preun):systemd-units -Requires(post): systemd-units, %{_sbindir}/usermod -Requires(postun):systemd-units - - -%description -Polipo is a lightweight caching web proxy that was designed as a personal -cache. It is able to cache incomplete objects and will complete them using -range requests. It will use HTTP/1.1 pipelining if supported by the remote -server. - -%prep -%setup -q - -%build -make %{?_smp_mflags} PREFIX=%{_prefix} BINDIR=%{_bindir} CDEBUGFLAGS="%{optflags}" - -%install -rm -rf $RPM_BUILD_ROOT -make install PREFIX=%{_prefix} BINDIR=%{_bindir} MANDIR=%{_mandir} \ - INFODIR=%{_infodir} TARGET=$RPM_BUILD_ROOT -install -m 0755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} -install -m 0750 -d $RPM_BUILD_ROOT/%{_localstatedir}/cache/%{name} -install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/config -install -D -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/forbidden -install -D -p -m 0644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/%{name} -install -D -p -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/NetworkManager/dispatcher.d/25-%{name} -install -D -p -m 0755 %{SOURCE9} $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/%{name} - -install -D -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/%{name}.conf -install -d -m 0755 $RPM_BUILD_ROOT/%{_localstatedir}/run/%{name} -install -d $RPM_BUILD_ROOT/%{_localstatedir}/log/%{name} - -install -D -p -m 0644 %{SOURCE7} $RPM_BUILD_ROOT/%{_unitdir}/%{name}.service -install -D -p -m 0644 %{SOURCE8} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name} - -rm -f $RPM_BUILD_ROOT/%{_infodir}/dir - -%clean -rm -rf $RPM_BUILD_ROOT - -%pre -getent group %{name} >/dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ -useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin -c "Polipo Web Proxy" %{name} -for i in %{_localstatedir}/run/%{name} %{_localstatedir}/cache/%{name} ; do - if [ -d $i ] ; then - for adir in `find $i -maxdepth 0 \! -user %{name}`; do - /bin/chown -Rf %{name}:%{name} $adir - /bin/chmod -Rf u+rwX $adir - done - fi -done -exit 0 - -%post -[ -e %{_localstatedir}/log/%{name}/%{name}.log ] || /bin/touch %{_localstatedir}/log/%{name}/%{name}.log -/bin/chmod -f 0640 %{_localstatedir}/log/%{name}/%{name}.log -/bin/chown -f %{name}:%{name} %{_localstatedir}/log/%{name}/%{name}.log -/sbin/restorecon %{_localstatedir}/log/%{name}/%{name}.log || : - -/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || : - -if [ $1 -eq 1 ]; then - # package install, not upgrade - /bin/systemctl daemon-reload > /dev/null 2>&1 || : -fi - -%preun -if [ $1 = 0 ] ; then - # package removal, not upgrade - /sbin/systemctl disable %{name}.service > /dev/null 2>&1 || : - /sbin/systemctl stop %{name}.service > /dev/null 2>&1 || : - - /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/%{name}.info.gz || : -fi - -%postun - /bin/systemctl daemon-reload > /dev/null 2>&1 || : - -if [ $1 -ge 1 ] ; then - # package upgrade, not uninstall - /bin/systemctl try-restart %{name}.service > /dev/null 2>&1 || : -fi - -%triggerun -- %{name} < 1.0.4.1-4 -if /sbin/chkconfig %{name}; then - /bin/systemctl enable %{name}.service > /dev/null 2>&1 || : -fi - -%files -%defattr(-,root,root,-) -%doc README CHANGES COPYING *.sample -%dir %{_sysconfdir}/%{name} -%dir %{_datadir}/%{name} -%attr(0750,polipo,root) %dir %{_localstatedir}/log/%{name} -%attr(0750,%{name},%{name}) %dir %{_localstatedir}/cache/%{name} -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_mandir}/man1/%{name}.* -%{_infodir}/%{name}.* -%config(noreplace) %{_sysconfdir}/%{name}/config -%config(noreplace) %{_sysconfdir}/%{name}/forbidden -%attr(0755,root,root) %{_sysconfdir}/NetworkManager/dispatcher.d/* -%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} -%attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name} - -%{_unitdir}/%{name}.service -%{_sysconfdir}/sysconfig/%{name} - -%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf -%attr(0755,%{name},%{name}) %dir %{_localstatedir}/run/%{name} - -%changelog -* Thu Feb 04 2016 Fedora Release Engineering - 1.1.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 1.1.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Aug 17 2014 Fedora Release Engineering - 1.1.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Tue Jul 29 2014 Bernard Johnson - 1.1.1-1 -- v 1.1.1 -- Make cron job silent (bz #901432) -- polipo-20140107 is available (bz #1100723) -- http-assertion-failure.patch no longer needed due to refactoring/fix - -* Sat Jun 07 2014 Fedora Release Engineering - 1.0.4.1-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 1.0.4.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 1.0.4.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Dec 02 2012 Bernard Johnson - 1.0.4.1-9 -- systemd unit file is strange (bz #872872) -- have NetworkMananger use systemctl to restart service if it's running -- SELinux is preventing /usr/bin/polipo from 'open' accesses on the file - polipo. (bz #770878) -- removed _with_systemd build capability since it's now default, removed all - init infrastructure -- removed _with_tmpfilesd infrastructure -- Can polipo please use runuser rather then su in its cron jobs. (bz #804673) -- /etc/cron.daily/polipo returns failure if polipo is not running (bz #835631) - -* Sat Jul 21 2012 Fedora Release Engineering - 1.0.4.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Thu Jun 28 2012 John C. Peterson - 1.0.4.1-7 -- fixed the bad value of ExecStart in the polipo.service file (bz #818688) -- added the (missing) sysconfig environment file (bz #818688) -- modified the daily purge script to read the sysconfig environment file -- modified the logrotate script to eliminate unwanted messages from chkconfig -- renumbered the last few source files (cosmetic) - -* Sun Jan 22 2012 Bernard Johnson - 1.0.4.1-6 -- add daily cache cleanup -- fix missing creation of /var/run directory (bz #755198) -- make sure log directory context is set correctly (bz #741779) -- fix denial of service vulnerability CVE-2011-3596 (bz #742897) - -* Sat Jan 14 2012 Fedora Release Engineering - 1.0.4.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Sep 26 2011 Bernard Johnson - 1.0.4.1-4 -- take file / dir creation & testing out of initscript (bz #708814) -- remove log file / dir creation in spec too -- NetworkManager integration should use restart rather than reload (bz #699677) -- add support for tmpfiles.d (bz #656669) -- add support for systemd starting in F17 - -* Wed Feb 09 2011 Fedora Release Engineering - 1.0.4.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun Feb 21 2010 Chen Lei 1.0.4.1-2 -- fix for rpmlint warnings - -* Sun Feb 21 2010 Chen Lei 1.0.4.1-1 -- initial rpm build - diff --git a/polipo.sysconfig b/polipo.sysconfig deleted file mode 100644 index 2c68bce..0000000 --- a/polipo.sysconfig +++ /dev/null @@ -1,2 +0,0 @@ -# Command line options for polipo -CONFIG=/etc/polipo/config diff --git a/polipo.tmpfiles b/polipo.tmpfiles deleted file mode 100644 index 649d25d..0000000 --- a/polipo.tmpfiles +++ /dev/null @@ -1 +0,0 @@ -D /var/run/polipo 0775 root polipo - diff --git a/sources b/sources deleted file mode 100644 index 6746e3c..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -86939e331e656f638271f578b6e3f893 polipo-1.1.1.tar.gz