Commit graph

82 commits

Author SHA1 Message Date
nia
89f648b783 www/thttpd: acme.com now supports TLS. No distfiles change. 2018-08-06 15:54:38 +00:00
nia
2310feebd2 www/thttpd: Update to 2.29.
Changes:

* Allow CGI to handle HTTP methods besides GET/HEAD/POST.
2018-08-06 15:51:41 +00:00
jperkin
5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00
wiz
36525b1f32 thttpd: update to 2.28.
From nia in PR 53266.

New in version 2.28:

    Improvements to the FreeBSD startup script. (Craig Leres)
    Minor portability tweak in mmc.c.
    Fix to buffer overrun bug in htpasswd. Reported by Alessio Santoru as CVE-2017-17663.

New in version 2.27:

    Stats syslogs changed from LOG_INFO to LOG_NOTICE.
    Use memmove() for self-overlapping string copies instead of strcpy().
    Couple of subroutine name changes for consistency.
2018-05-07 07:01:37 +00:00
rillig
4760eca917 Replaced $(ROUND) with ${CURLY} variable references.
This has been a pkglint warning for several years now, and pkglint can even
fix it automatically. And it did for this commit.

Only in lang/mercury, two passes of autofixing were necessary because there
were nested variables.
2018-01-01 18:16:35 +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
hiramatsu
a849058dde Update www/thttpd to 2.26.
Changes from previous:
----------------------
- Ignore ECONNABORTED on accept().
- Correctly implemented the config-file option change from "nosymlink" to
  "nosymlinkcheck", which was supposedly done in version 2.24.
- Removed mailto: link from default index page.
- Allow CGIs to provide both Location and Status headers. (A. Skrobov)
- Better logic for figuring out CGI SERVER_NAME environment variable. (Oleg)
- Updated for clang, and general cleanup.
2015-03-12 01:00:26 +00:00
fhajny
91c8a03b80 Set INSTALLATION_DIRS properly. Fixes installation on at least SunOS. 2014-09-25 08:18:35 +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
asau
5eae6a18a3 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-28 06:30:00 +00:00
asau
576cf1e628 Rename internal "getline" to unbreak build on NetBSD.
Support staged installation.
2009-12-13 17:42:36 +00:00
joerg
e031855e4a Convert @exec/@unexec to @pkgdir or drop it. 2009-06-14 22:00:14 +00:00
jlam
4c1b5273a6 Fix a typo in a comment. 2007-09-09 00:30:13 +00:00
jlam
07dd3147c6 Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
2007-09-07 22:12:10 +00:00
obache
34e410a1b0 MAKE_JOBS_SAFE=no, reported in PR 36441. 2007-06-14 11:50:51 +00:00
wiz
5c007cc7c1 Reset maintainer:
Name service error for name=ethmoid.org type=MX: Host not found, try again
2006-11-24 23:04:14 +00:00
jlam
ccdf6dbe01 Rename "SITES_* to "SITES.*" for file-specific lists of sites from which
to fetch the file.  This completes the renaming described in revision
1.1799 of bsd.pkg.mk.
2006-07-27 18:48:02 +00:00
joerg
19255ee94f Use SUBST framework. 2006-01-05 22:46:12 +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
gdt
d65a82dd63 Reference sitedrivenby.gif from the DIST_SUBDIR where it is. Previous
this package failed to 'make install'.
2005-12-19 21:10:52 +00:00
rillig
4f0216671e Bumped PKGREVISION because of the recent change to patch-af. 2005-12-06 14:19:39 +00:00
rillig
4bc38f1be1 <sys/param.h> must be included before querying __NetBSD_Version__. Noted
by Mito Osamu in PR 25487.
2005-12-06 14:09:29 +00:00
adrianp
10aa377055 Update distinfo for last Makefile change
Pointed out by Hauke Fath on tech-pkg@
2005-11-29 21:21:12 +00:00
rillig
53757baa1b Fixed pkglint warning:
- WARN: Makefile:9: PKGNAME should not be used in DIST_SUBDIR, as it
  sometimes includes the PKGREVISION. Please use PKGNAME_NOREV instead.

Noted by Geert Hendrickx on tech-pkg.
2005-11-28 09:48:10 +00:00
adrianp
8002af1d9d Bump to thttpd-2.25bnb4 to address a security issue:
http://secunia.com/advisories/17454/
2005-11-26 10:02:37 +00:00
cube
4dd45c8301 Do the DIST_SUBDIR dance because of already-downloaded files. *Sigh*
Pointed out by Thomas Klausner and Jeremy C. Reed.
2005-08-19 13:38:58 +00:00
cube
a3a9013fb7 The thttpd tarball has changed (the e-mail address of the author was
changed all through it).  While there, make the package correctly fetch the
NetBSD logo.

Bump PKGREVISION, and after that I'll delete the copy ftp.netbsd.org
currently has.  The tarball change doesn't happen often enough for this
package to justify the use of DIST_SUBDIR (and that avoids the hairy
problem of sharing the sitedrivenby.gif file).

PR#30641 by Jared Momose.
2005-08-19 07:30:50 +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
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
wiz
9d15e05be5 Add patch from PR 25487 to disable mmap on old (1.5ish) NetBSD systems.
Apply patch from PR 25488 to enable choosing the log facility for thttpd.
Both based on patches from Michael Santos.
Bump PKGREVISION to 1.
2004-09-14 08:32:16 +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
jlam
dda8edf053 bl3ify and general touch-up 2004-02-22 18:34:54 +00:00
xtraeme
f6594a15dd Update to 2.25b, provided by Michael Santos in PR pkg/24128.
Changes:

New in version 2.25b:

    * Move fdwatch initialization before the chroot, so that
      /dev/poll can work.
    * Multiple fdwatch cleanups and fixes (Adam Zell).

New in version 2.25:

    * Prohibit "Host: ." and "Host: .." (David Leadbeater).
    * Don't free memory prematurely on SIGUSR1 (A.D.F.).
    * Use the specified charset in directory listings and errors
      (Jonas Ohlsson).
    * Lowered THROTTLE_TIME from 60 seconds to 2 seconds, plus more
      aggressive computation of sending rate, to improve throttle
      reaction time (E Frank Ball).
    * Added code to redistribute the throttled bandwidth fairly among
      the currently sending connections.
    * Some more throttling changes that smooth things out a lot.
    * Added an experimental limitation on the number of simultaneous CGIs.
    * Chown the log file when starting as root, so that it can later be
      re-opened when running as nobody (or whatever user you configure).
      Also tweak the logfile pathname so that it still works inside a
      chroot tree.
    * Make sure URL paths begin with a slash.
    * Generate multiple MIME encodings in the correct order, and with the
      correct separator.
    * Ignore EINTR on read() and write().
    * Fix error in httpd_read_fully() and httpd_write_fully() that could
      cause incorrect data to be read or written (Daniel Jensen).
    * Don't attempt to double-free a file descriptor if a connection times
      out while it is paused for throttling.
    * Save and restore errno in signal handlers.
    * The non-local referer check is no longer fooled by URLs with query
      strings.
    * Simplified handling of HAVE_INT64T (Trisk). If this causes problems,
      e.g. if there are still systems which don't have "long long", we can
      back out the change.
    * Keep a list of free connection structs, instead of doing linear search
      to find a free one (Adam Zell).
    * Added config.h option FLUSH_LOG_EVERY_TIME - if it's turned off, the
      log does not get fflushed after each request (Adam Zell).
    * Multiple robustness improvements to the fdwatch module (Adam Zell).
    * Added /dev/poll support to fdwatch (Adam Zell).
    * Automatically add no-cache control header on error responses.
2004-01-17 12:55:05 +00:00
cube
8701eeeb9d Update to 2.24. Closes PR pkg/22198 (fix was integratedin that version).
New in version 2.24:

    * Added a bunch of MIME types.
    * Fix minor problem with returning unknown protocol on some errors.
    * Changed the config-file option for diabling symlink checking from "nosymlink" to "nosymlinkcheck" to make its function clearer.
    * Allow blank lines in the config file.
    * Handle more than one SIGHUP and SIGUSR2 (Cameron Gregory).
    * Slight change to handle_newconnect() to better deal with unexpected errors from accept(), such as running out of file descriptors (Alex Keahan).
    * Added optional minimum rate to throttles.
    * Stats syslog messages downgraded from LOG_NOTICE to LOG_INFO.
    * Use unsigned short consistently for port number.
    * Prohibit slashes in the Host: header (Marcus Breiing).
    * Added a -dd data_dir flag and corresponding config-file option.
    * Got rid of the old timer-based zombie process reaper, replacing it with a SIGCHLD handler.
    * Changed the idle connection checking from using a separate timer for each connection to using a single timer that checks all active connections.
    * Correction to missing-slash directory redirect with query string.
    * Added a watchdog alarm handler that forces a core dump if thttpd stops running its timers for too long.
    * Don't send Content-Length header on 304 Not Modified responses.
    * Allow user-agent log entries to be up to 200 characters long, instead only of 80.
    * Fixed buffer overflow bug in defang().
    * Re-arranged the order of calling de_dotdot() so that it doesn't get applied to query strings.
    * Some fixes for the syslogtocern script (paul fox).
    * Changed configure script to use "gcc -dumpversion" instead of "gcc --version" (Ed Goforth).
    * Changed most uses of \r and \n to \015 and \012 (Jens Bauer).
    * In ssi.c, lack of PATH_INFO is now non-fatal (David Phillips).
    * Some improvements to fdwatch (David Burgess).
2003-10-27 20:29:52 +00:00
wiz
13512b40ca Fix a buffer overflow reported in PR 22863 by Ross Patterson.
Bump PKGREVISION.
2003-09-19 17:54:16 +00:00
martti
33e2a02324 COMMENT should start with a capital letter. 2003-07-22 04:14:17 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
grant
0c5bb6abcc Make these scripts more portable by taking advantage of automatic rc.d
script handling and using @RCD_SCRIPTS_SHELL@.

as discussed with jlam.
2002-09-20 02:01:54 +00:00
jlam
5c053dd06a Take advantage of the auto-generation and installation of rc.d scripts. 2002-09-19 09:04:02 +00:00
wiz
b25a418960 pkglint silencing. 2002-06-16 19:12:13 +00:00
wiz
bc89da4037 Update to 2.23beta1, as requested in pkg/17251 by Oliver Tonnhofer.
Changes since 2.21b:
* Added some Microsoft MIME types (Kevin Day).
* Switch htpasswd from using tmpnam to mkstemp.
* Rewrote figure_mime() to do binary search.
* Removed the x- from gzip and compress in mime_encodings.txt.
* Added rudimentary option to set cache-control headers.
* Simplified the IPv6 ifdefs.
* Allow filenames with ? in them (Cameron Gregory).
* Some improvements to the mmap cache - added a "panic mode" if you run out
  of address space, added DESIRED_MAX_MAPPED_BYTES config.h option.
* Lowered OCCASIONAL_TIME from five minutes to two minutes.
* Fix CGI variable AUTH_TYPE (Alexandre CHERIF).
* Split clear_connection() into two routines, one which sends a possible
  buffered response and the other which ignores such (David Burgess).
* Remove /./ in de_dotdot() (Dana Dahlstrom).
* Shortened LINGER_TIME from two seconds to half a second.
* Changed some write() calls to httpd_write_fully(), as suggested by
  Neale Pickett.
* Changed the non-mmap() read() call in mmc.c to httpd_read_fully(), as
  suggested by Cameron Gregory.
* Added an madvise(MADV_SEQUENTIAL) call in mmc.c.
* Added .xhtml and .xht to mime_types.txt (suggested by Dave Hodder).
* Added index.xhtml and index.xht to INDEX_NAMES (suggested by Dave Hodder).
* Got rid of the custom-jiggered syslog.c, now we just use the standard
  system version. Also added a paragraph in the man page about the syslogd
  flags needed to make syslogging work from inside a chroot tree.
* Added some OpenOffice MIME types (Dave Hodder).
* Lowered the default DESIRED_MAX_MAPPED_FILES from 2000 to 1000.
* Set up accept filters after listen() (Kris Spinka).
* Preserve query string when doing a missing-slash directory redirect.
* Special-case logging to '-' as stdout (Matt Armstrong).
* Added -s to usage line (Pavel Janík).
* Fix for security hole that exposed contents of .htpasswd in some cases
  (noticed by zeno@cgisecurity.com).
* Allow (and ignore) extra fields in .htpasswd files.
* Added some calls to shutdown() in strategic places.
* Added a timer-kill of the CGI interpose input and output process.
  These processes also now close the listen fd(s).
* Fixed rare file descriptor leak, when we get an unknown sockaddr family
  (George Schlossnagle).
* Put virtual hostname in non-local referer syslog (Craig Leres).
* Added a P3P server privacy header setting (Henrik Schack Jensen).
And lots of other bug fixes.
2002-06-16 19:10:25 +00:00
joda
603dd5fd63 don't change .htpasswd into .thtpasswd 2002-05-12 14:47:28 +00:00
jlam
e0d358778b Solaris' test binary (test/[) doesn't grok "-e". Replace with "-f".
Noted by Stoned Elipot <seb@netbsd.org> in private email.
2002-02-05 06:04:36 +00:00
jlam
55ffb37406 bsd.pkg.install.mk calls the INSTALL script at the right times
automatically, so no need to do it ourselves.
2001-12-02 06:56:38 +00:00
jlam
6e896e42e0 Forgot a CONFDIR -> PKG_SYSCONFDIR replacement. 2001-11-26 07:30:44 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
jlam
892b322f45 These rc.d scripts are copied to ${RCD_SCRIPTS_DIR} == /etc/rc.d, so change
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
2001-11-21 21:38:50 +00:00