Commit graph

52 commits

Author SHA1 Message Date
adam
3b6b9396b4 tinyproxy: updated to 1.10.0
Tinyproxy version 1.10.0

Major changes in this release
-----------------------------
Add support for basic HTTP authentication
Add socks upstream support
Log to stdout if no logfile is specified
Activate reverse proxy by default
Support bind with transparent mode
Install tinyproxy to bin/ instead of sbin/
Ship manpages as part of distribution tarball
Allow multiple listen statements in the configuration
Coverity fixes
Simplified configure and build
Improved selftest environment

Included security fixes
-----------------------
Fix CVE-2017-11747: Create PID file before dropping privileges.
Fix CVE-2012-3505: algorithmic complexity DoS in hashmap

Bugfixes
--------
fix algorithmic complexity DoS in hashmap
fix CONNECT requests with IPv6 literal addresses as host
fix invalid free for GET requests to ipv6 literal address
conf: Allow multiple Listen statements in the config
allow listening on multiple families when no Listen is provided in config
Drop supplementary groups
build: fix build with autoconf >= 2.69
Move files installed in /etc/ to /etc/tinyproxy/
Fix crash (infinite loop) when writing to log file fails
Fix bug in ACL netmask generation
Fix FilterURLs with transparent proxy support
Fix upstream proxy support
Create log and pid files after we drop privs
Don't recompile regular expressions
Use output of id instead of $USER
keep track of error codes in return codes in tests
2018-10-12 13:57:46 +00:00
adam
ff5bf03802 tinyproxy: also remove unnecessary patch 2018-06-21 11:32:15 +00:00
adam
3707b0b086 tinyproxy: updated to 1.8.4
Tinyproxy version 1.8.4

Most notably, this release removes the limitation of a single Listen address of not listening on the wildcard address and a DoS (CVE-2012-3505).
Among several other bug fixes, this release fixes a bunch of issues found by coverity (scan.coverity.com).

Bugs resolved since version 1.8.3
fix algorithmic complexity DoS in hashmap
fix failing CONNECT requests with IPv6 literal addresses
fix invalid free for GET requests to IPv6 literal addresses
support multiple Listen statements in configuration
support listening on ipv4 and ipv6 wildcard if no Listen specified
fix crash when writing to log file fails
fix build with autoconf >= 2.69
2018-06-21 11:31:33 +00:00
nonaka
c5710d87ae fixup tinyproxy.conf 2017-02-18 05:59:23 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
agc
b9b754e081 Add SHA512 digests for distfiles for www category
Problems found locating distfiles:
	Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
	Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
	Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
	Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
	Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
	Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
	Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
	Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 02:46:46 +00:00
tnn
9b16426645 Remove bogus socks option. Hasn't existed in the software since 2009.
https://git.banu.com/tinyproxy/commit/?id=6f9fa5287f169cd86277d2c41d20dbaa18e9cf19
2015-10-01 07:02:29 +00:00
jperkin
e742a96360 Do not enable the socks5 option by default, the net/socsk5 package is
not redistributable, which prevents this package from being so too.

Bump PKGREVISION.
2015-08-13 20:32:30 +00:00
jperkin
6abe9f8bb6 Remove non-portable ld argument. Fixes build on Darwin. 2015-08-13 20:30:47 +00:00
jperkin
45bc40abb4 Remove example rc.d scripts from PLISTs.
These are now handled dynamically if INIT_SYSTEM is set to "rc.d", or
ignored otherwise.
2014-03-11 14:04:57 +00:00
tron
c64e9eb269 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:18:26 +00:00
jperkin
b091c2f172 Bump PKGREVISION of all packages which create users, to pick up change of
sysutils/user_* packages.
2013-07-12 10:44:52 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
wiz
aba14eef1c Fix CVE-2012-3505 using Debian patch.
Bump PKGREVISION.
2012-12-13 09:01:26 +00:00
wiz
420df6ca5e Update to 1.8.3, provided by Antonio Huete in PR 47034.
Version 1.8.3
-------------

This release mostly fixes support for IPv6, and also some security
bugs. Fixes to messages, etc. were also made.

Bugs resolved since version 1.8.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * BB#91: Fix upstream proxy support
 * BB#95: Fix FilterURLs with transparent proxy support
 * BB#90: Fix bug in ACL netmask generation

Contributors
~~~~~~~~~~~~

Daniel Egger, John Horne, Michael Adam, Mukund Sivaraman.


Version 1.8.2
-------------

 * Minor formatting changes and typo fixes were made.

Bugs resolved since version 1.8.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * BB#69: INET6 not available when configured to Listen and Bind in v4,
   and vice versa
 * BB#74: tinyproxy unable to reopen log files after receiving HUP
 * BB#78: Warn if configuration results in an open proxy
 * BB#82: https access not working
 * BB#83: run_tests.sh relies on $USER
 * BB#84: Unaligned access error on ia64 and alpha
 * BB#87: Unable to listen on ports less than 1024 (regression in 1.8.1)
 * BB#88: Crashes when reloading configuration
 * BB#89: tinyproxy leaks memory over time

Contributors
~~~~~~~~~~~~

Dmitry Semyonov, John van der Kamp, Jordi Mallach, Michael Adam,
Mukund Sivaraman.


Version 1.8.1
-------------

 * Tinyproxy now drops `root` user privileges more quickly.
 * The log and pid files are now stored in a sub-directory in `/var/`.
 * A format string vulnerability was fixed.
 * Minor formatting changes and typo fixes were made.

Bugs fixed since version 1.8.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * BB#74: tinyproxy unable to reopen log files after receiving HUP
 * BB#79: Make the testsuite uninteractive
 * BB#80: Handle errors in testsuite
 * BB#81: Listen directive doesn't work as expected
 * BB#72: upstream support is not reported with tinyproxy -h
 * BB#73: generated tinyproxy.conf has the wrong location for the html
   file installation

Contributors
~~~~~~~~~~~~

Michael Adam, Mukund Sivaraman.


Version 1.8.0
-------------

 * Tinyproxy now reloads its configuration upon SIGHUP signal.
 * Tinyproxy reopens its log file (instead of truncation) upon SIGHUP
   signal. This is to play more nicely with logrotate.
 * File logging is now the default.
   Syslog is chosen if and only if "SysLog Yes" is in the config,
   i.e., a present "SysLog Yes" in the config file now overrides
   any LogFile setting.
 * The XTinyProxy option is now documented as a global boolean.
   Before it was documented to build a list of sites to add a
   X-Tinyproxy header for, but it was implemented as global boolean.
 * A new config option AddHeader allows the user to configure a list of
   custom headers to send in outgoing HTTP requests.
 * A new config option DisableViaHeader allows the user to disable
   sending of the "Via:" header.
 * Tinyproxy is now IPv6 capable.
 * The config option PidFile now has a compiled in default.

Bugs fixed since version 1.7.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * BB#9: Add support for the IPv6 protocol
 * BB#17: Add support for custom headers
 * BB#55: Error message response omits body when request has a body
 * BB#60: Add config option to disable Via header
 * BB#61: SIGHUP does not refresh filter list
 * BB#62: Make tinyproxy reload the config upon SIGHUP
 * BB#64: Config parsing error with reverse proxy option
 * BB#65: Format string compile warnings
 * BB#67: ACL processing error with multiple Allow statements

Contributors
~~~~~~~~~~~~

David Shanks, Mathew Mrosko, Michael Adam, Mukund Sivaraman.


Version 1.7.1
-------------

 * Fixed all warnings reported by GCC.
 * The tinyproxy manpage has been extended and converted to asciidoc.
 * There is a new tinyproxy.conf manpage that describes all the options.
 * The build system has been considerably cleaned up.
 * Various other bugs have been fixed.

Bugs fixed since version 1.7.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 * BB#2: Fix Tinyproxy for requests like www.site.com:8001
 * BB#5: Move templates from the doc directory to its own directory
 * BB#8: Update README, INSTALL, NEWS and the manpage
 * BB#10: Do not filter out transfer-encoding header
 * BB#18: Fix pointer aliasing issues
 * BB#53: Add a GPLv2 COPYING file

Contributors
~~~~~~~~~~~~

Andrew Stribblehill, Jeremy Hinegardner, Matthew Dempsky, Michael Adam,
Mukund Sivaraman, Robert James Kaes.


Version 1.7.0
-------------

 * There is now support for reverse proxying.
 * Tinyproxy does not bundle a vendor regular expressions library
   anymore. It uses the system installed regular expressions library.
 * The documentation has been updated.
 * Tinyproxy now contains some code optimizations such as the use of a
   hashmap internally for looking up error pages.
 * Various other bugs have been fixed.

Contributors
~~~~~~~~~~~~

Kim Holviala, Marc Silver, Robert James Kaes, Steven Young.
2012-12-12 13:01:23 +00:00
asau
5eae6a18a3 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-28 06:30:00 +00:00
shattered
cfeb6e4fe9 Use @RCD_SCRIPTS_SHELL@. 2011-02-03 19:27:55 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
wiz
662a258e1b Remove workaround for compiler bug in gcc2 on sparc64. 2010-01-16 17:57:36 +00:00
joerg
aadcff018f user-destdir support 2009-07-07 18:50:54 +00:00
joerg
e031855e4a Convert @exec/@unexec to @pkgdir or drop it. 2009-06-14 22:00:14 +00:00
tnn
ad6ceadd25 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 05:06:18 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
rillig
acf2dcceb6 Fixed the hard-coded paths in the configuration file. Populated
BUILD_DEFS. Bumped PKGREVISION.
2006-09-19 08:31:18 +00:00
jlam
802ce74fcb Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-23 00:12:35 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
905df75432 Use SUBST framework. 2006-01-05 21:57:36 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
wiz
cf2bdd4578 Convert to options framework.
Fix socks option (USE_SOCKS previously could not have worked for various
reasons).
Fix a few pkglint quoting warnings.
2005-12-02 17:06:03 +00:00
rillig
7a95adad42 The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
2005-08-23 11:48:47 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
809ad6f2f7 Add RMD160 checksums. 2005-02-24 14:08:26 +00:00
grant
c5b97b6a98 remove a generic message about rc.d scripts that should not be here. 2005-02-06 06:03:17 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
reed
62071c8b2f RCD_SCRIPTS_EXAMPLEDIR was just changed to be a relative directory
under ${PREFIX} instead of being an absolute path.

So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}.

This should have no changes to use before.

Please note that the MESSAGE files in most cases are wrong in the
first place. We have automated mechanisms and could have an automated
message for explaining rc.d script usage. (This is something to do!)
2004-10-11 22:14:51 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
xtraeme
8d2bb7dcb6 Drop maintainership; I don't have the enough free time to maintain
all these packages.
2004-05-07 01:14:46 +00:00
reed
2d4122dd45 Fix references to rc.d scripts. This package uses RCD_SCRIPTS
which installs to ${RCD_SCRIPTS_EXAMPLEDIR}. But the MESSAGE
referred to wrong hard-coded location if the RCD_SCRIPTS_EXAMPLEDIR
was not the default. So use RCD_SCRIPTS_EXAMPLEDIR instead.

PKGREVISION not bumped because if someone had changed
RCD_SCRIPTS_EXAMPLEDIR before recent change of autoregistration
of rc.d script in PLIST, then it could not have been packaged
in first place.

Note that this commit does not imply that the MESSAGE is correct.
In some cases, the MESSAGE is clearly wrong such as suggesting
running the rc.d script from the example directory (which will work
although).
2004-04-23 22:43:20 +00:00
reed
9c790735db mk/bsd.pkg.install.mk now automatically registers
the RCD_SCRIPTS rc.d script(s) to the PLIST.

This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.

This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)

These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)

I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.

Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
  hard-coded etc/rc.d. These need to be fixed.
- maybe  remove from mk/${OPSYS}.pkg.dist mtree specifications too.
2004-04-23 22:07:52 +00:00
snj
6f58341616 Convert to buildlink3. 2004-04-19 04:39:45 +00:00
wiz
a661ce60c0 PKGREVISION bump after openssl-security-fix-update to 0.9.6m.
Buildlink files: RECOMMENDED version changed to current version.
2004-03-26 02:27:34 +00:00
snj
77f79ec042 Fix build with gcc2 on sparc64. 2004-03-23 07:41:07 +00:00
xtraeme
d5e8232690 Updated to 1.6.2
Summary of changes since 1.6.1:

 * Fixed a bug in the filter code when handling comments in the filter
   configuration file.
 * When installing the HTML documentation, the wrong directory was
   being created.

Summary of changes since 1.6.0:

 * Fixed an off-by-one error with respect to the MaxRequestsPerChild
   test. [Fix proposed by Yannick Koehler]
 * Remove the assert on the pointer being NULL since a NULL pointer is
   allowed by the realloc() spec.
2003-12-05 22:28:03 +00:00
jschauma
fe19bb05b5 PKGREVISION++ after openssl update. 2003-11-12 03:39:39 +00:00
xtraeme
ac76eb7ec6 Updated tinyproxy to 1.6.1
Changes:

        Released tinyproxy 1.6.1 (2003-08-06)

        * heap.c (debugging_realloc):
        Remove the assert on the ptr being NULL since a NULL pointer is
        allowed by the realloc() spec.

        * child.c (child_main):
        Fixed an off-by-one error with the maxrequestsperchild
        variable.  [Fix proposed by Yannick Koehler]

        Released tinyproxy 1.6.0 (2003-07-14)

        * src/htmlerror.c (indicate_http_error):
        Added calls to va_end() before leaving the function.

Closes my own PR pkg/22161.
2003-08-29 15:31:30 +00:00
xtraeme
252d9f7253 Change my email address to the NetBSD one, ok'ed by wiz@ 2003-08-28 20:05:13 +00:00
martti
33e2a02324 COMMENT should start with a capital letter. 2003-07-22 04:14:17 +00:00
salo
3a08a4e4de Updated to version 1.5.3.
Based on a patch provided by Juan RP via PR pkg/21512.

Changes:

- GNU make is not really needed

- Fixed inverted anonymous header logic.  As it should have been, any
  header not explicitly allowed will not be sent by tinyproxy.
- The filtering engine can now conditionally use case sensitive
  filtering or case insensitive filtering.  The option is controlled
  by the FilterCaseSensitive directive in the configuration file.
- Removed a duplicate call to filter_destroy() in main().
- Basic code clean ups.
2003-05-09 16:30:12 +00:00