Commit Graph

24 Commits

Author SHA1 Message Date
Christian Marangi 8474ab1a28
privoxy: use PKG_NAME variable instead of hardcoding privoxy
Use PKG_NAME in PKG_SOURCE AND PKG_BUILD_DIR instead of hardcoding to
privoxy to make the Makefile cleaner.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-02 20:48:03 +01:00
Christian Marangi a2d801cdf3
privoxy: backport and move to PCRE2 library
Backport required patch for PCRE2 support and move to PCRE2 library as
PCRE is now EOL and won't receive any security updates anymore.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 17:12:30 +01:00
Christian Marangi 76707306d1
privoxy: update to release 3.0.34
Update to release 3.0.34 to permit easier backport of PCRE2 support.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 17:11:53 +01:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Alois Klink 6703d76230 privoxy: fix preinst/postinst script indentation
Fix the indentation of the preinst/postinst scripts for the privoxy
package.

Because these scripts didn't start with `#!/bin/sh`
(they instead started with the TAB character), `/bin/sh` was not used
to start them.

On x86_64 and i386_pentium-mmx, this seems to be fine, but on
arm_cortex-a15_neon-vfpv4 and aarch64_cortex-a53, running these
scripts fails with a:

```
Installing privoxy (3.0.33-3) to root...
Collected errors:
 * pkg_run_script: package "privoxy" preinst script returned status 1.
 * preinst_configure: Aborting installation of privoxy.
 * opkg_install_cmd: Cannot install package privoxy.
```

Reported-by: Marius Dinu <m95d+git@psihoexpert.ro>
Signed-off-by: Alois Klink <alois@aloisklink.com>
2022-12-08 10:54:55 +01:00
Josh Powers 46e4def61f privoxy: fix postinst missing $
fixes: #19949

Signed-off-by: Josh Powers <powersj@fastmail.com>
2022-11-26 02:45:04 -08:00
Josh Powers 95edfa723c privoxy: correctly format /etc/services additions
This adds the missing protocol (e.g. /tcp and /udp) to the entry in
/etc/services. If the entry already exists, it will add the /tcp to it.
Otherwise, it will look and add the tcp and udp entries if either is
missing.

fixes: openwrt#19665

Signed-off-by: Josh Powers <powersj@fastmail.com>
2022-11-11 15:16:45 -08:00
He Xian 5d917b9578 privoxy: update to 3.0.33 and fix the init script
1. Fixed init script would kill itself when trying to stop a service.
2. Upgrade privoxy release to 3.0.33
3. Set PKG_RELEASE to AUTORELEASE

Signed-off-by: He Xian <hexian000@outlook.com>
2022-05-14 16:02:07 +08:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Peter Wagner caa8855bea privoxy: update to 3.0.28
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-02-23 13:27:15 +01:00
Jo-Philipp Wich 3113d62393 privoxy: fix uci configuration parsing after upstream OpenWrt changes
OpenWrt changed the way the uci shell parsing functions deal with list
configuration items.

This change broke the generation of the privoxy runtime configuration
because no callbacks were emitted anymore.

Fix the problem by defining a list_cb() that simply calls the existing
option_cb() to deal with list item values.

Ref: c9c0fc28a9 ("base-files: fix UCI config parsing and callback handling")
Ref: https://forum.lede-project.org/t/openwrt-snapshot-privoxy-error/15919
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-21 21:16:03 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Christian Schoenebeck e2e30e2e67 privoxy: clear PKG_MAINTAINER
I do not use this software any more and due to lack of time, I give the
maintenance responsibility back to the community.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-07-29 14:39:17 +02:00
Stijn Tintel f82287cf5c treewide: use name in define and eval lines
For consistency, use full name instead of $(PKG_NAME) in define and eval
lines for all packages.

I've seen reviews that asked to do this before, and I am asking the same
during reviews now. To avoid this in the future, fix this treewide so
when people use existing packages as example, we will not have to
request this change anymore.

This makes all packages consistent with both LEDE and OpenWrt base
repositories.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-03-08 21:15:20 +01:00
Christian Schoenebeck b7f09b9bbd privoxy: fix handling config section "system"
- privoxy.init fix handling of config section "system"
- change start/stop to start=95 and stop=10

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-10-22 20:31:37 +02:00
Christian Schoenebeck 12aac6aa33 privoxy: update to 3.0.26
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-09-03 14:56:56 +02:00
Stefan Weil 6d2c0fd06f net: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-04-10 12:51:10 +02:00
Christian Schoenebeck ba929dd1f7 privoxy: bump to version 3.0.24
* upstream to Privoxy 3.0.24
* add facility to set compile options
* add file list to be saved on sysupgrade
* fixed PKG_MAINTAINER string
* add port 8118 used by privoxy to /etc/services
* new "boot_delay" option (default 10 seconds) to wait for interfaces to come up before hotplug restarts are enabled

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-02-07 21:52:02 +01:00
Clark WANG (Home) 416d994d24 privoxy: "list" does not work when there are 10+ entries
Signed-off-by: Clark Wang <dearvoid@gmail.com>
2016-01-03 23:10:33 +08:00
Christian Schoenebeck 87b9255c03 privoxy: remove upgrade handling, conffile and initscript fixes
* remove upgrade handling for version 3.0.21 or older packages. Also fix #726
* added user.action, user.filter and user.trust files to conffiles (might be modified by user on running system)
* move permission setting from Makefile (install) to initscript because permissions are overwritten during/inside buildroot

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-15 16:58:43 +01:00
Christian Schoenebeck abdd1593f8 privoxy: modified init scripts
remove "killall" from initscript because it kills itself #867

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-08 16:50:16 +01:00
Christian Schoenebeck 4437e87f93 privoxy: new upstream version 3.0.23
new upstream version 3.0.23

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-02 20:34:10 +01:00
Christian Schoenebeck 6aa05568b8 [privoxy] remove using procd
* go back to "old" initscript not using procd
    * privoxy running --no-daemon only logging to STDERR
    * procd do not support redirection of STDOUT/STDERR, '2>file' as a command parameter does not work

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-12-23 10:50:51 +01:00
Steven Barth eeabfeed8e privoxy: moved to github and update to 3.0.22
- moved from oldpackages to github
- set maintainer
- update pkg source to new version 3.0.22
- run privoxy as non root user privoxy:privoxy
- using procd including network events to restart on changes
- log start and stop to syslog, privoxy not using syslog

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-12-08 20:41:22 +01:00