Commit Graph

78 Commits

Author SHA1 Message Date
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Ed Schouten
936c46861d Be sure to remove -std= from apxs.
My change to apache13, to build it with -std=gnu89 also caused this
compiler flag to be exposed through the apxs utility. This caused some
Apache modules to fail to build.

Reported by:	pav, miwi
2009-06-08 09:27:33 +00:00
Andrey A. Chernov
637efd3cf4 Add default php5 instructions to make easy php5+apache config
PR:     124274
Submitted by: Till Klampaeckel <till@php.net> (partially)
2008-07-19 15:32:23 +00:00
Andrey A. Chernov
78d54b62e0 Honor NOPORTDOC
PR:             117126
Submitted by:   "Philip M. Gollucci" <pgollucci@p6m7g8.com>
2007-10-19 06:57:30 +00:00
Andrey A. Chernov
2e3f5ecdfa Stop linking data and cgi-bin to -dist ones by default, it affects packages
badly when they installed in batch (they write into -dist dirs).
Try to create empty data and cgi-bin instead.
2007-10-01 05:53:05 +00:00
Andrey A. Chernov
0da62a9b46 Use new style of startup script install
Use dirrmtry when remove some directories
Respect DOCSDIR in pkg-plist
(with small mod from me)

PR:             116776
Submitted by:   Alexander Logvinov <ports@logvinov.com>
2007-10-01 04:00:08 +00:00
Andrey A. Chernov
4a2e8ee32b Upgrade to 1.3.39 2007-09-08 01:25:14 +00:00
Andrey A. Chernov
ba32102818 Fix build when custom LC_ALL is set
PR:     96703
2007-05-31 11:08:46 +00:00
Andrey A. Chernov
0e4c93de36 Fix objformat problem 2007-04-04 15:09:44 +00:00
Andrey A. Chernov
a89c1b1bd6 Replace
# REQUIRE: DAEMON
# BEFORE: LOGIN
with
# REQUIRE: LOGIN cleanvar
(mysql-first problem)

PR:             106429
2006-12-09 17:34:33 +00:00
Andrey A. Chernov
8452a04665 Use more rcNG compatible method for limits(1)
PR:             101746
2006-08-10 11:51:42 +00:00
Andrey A. Chernov
18e3766af4 Upgrade to 1.3.37 2006-07-28 23:49:23 +00:00
Andrey A. Chernov
81b6c855ff Security fix: off-by-one error in mod_rewrite
Submitted by:   simon
2006-07-27 15:28:20 +00:00
Andrey A. Chernov
978d1b7230 Upgrade to 1.3.35 2006-05-10 13:57:18 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Andrey A. Chernov
633043b817 CVE-2005-3352 2005-12-14 16:16:59 +00:00
Andrey A. Chernov
0976ed79f6 Upgrade to 1.3.34 2005-10-18 19:20:28 +00:00
Andrey A. Chernov
a07d258eba Fix http request smuggling for proxy
Approved by:    portmgr (clement)
2005-08-11 12:34:43 +00:00
Clement Laforet
d2f4ba1b1e - don't create httpd.conf.bak
- remove httpd.conf.bak if exists

Approved by:	portmgr (krion, kris)
2005-02-11 20:43:04 +00:00
Andrey A. Chernov
76c93bb3fb Upgrade to 1.3.32 2004-10-25 14:19:55 +00:00
Andrey A. Chernov
e730d415d0 rc_flags not expanded yet at this point in startup script.
Change it to apache_flags directly.
2004-08-29 11:07:42 +00:00
Andrey A. Chernov
ea9c548604 Move 'limits' from start_precmd to start_cmd because with new localpkg
it affects all subsequent scripts.
2004-07-27 11:17:11 +00:00
Peter Pentchev
f554cfdb78 In the rc.d/localpkg New World Order, the apache.sh startup script may
be executed when the apache_enable and other config variables have
already been set, e.g. via /etc/rc.conf.  In that case, load_rc_config
will not do anything at all, and the "defaults" set in the script will
override the user's settings.  Fix this by honoring any previously-set
config variables.

Carte blanche by:	ache (maintainer)
2004-07-26 15:24:05 +00:00
Andrey A. Chernov
c43d638eb4 Fix connection problem with mod_dav and FP
http://issues.apache.org/bugzilla/show_bug.cgi?id=29237

PR:             67928
Submitted by:   Helge Oldach <apache13jun14@oldach.net>
2004-06-14 13:22:58 +00:00
Andrey A. Chernov
84a693f929 Fix mod_proxy overflow.
GG security advisory #69
2004-06-11 20:56:55 +00:00
Andrey A. Chernov
2627b64644 Upgrade to 1.3.31 2004-05-19 02:11:05 +00:00
Andrey A. Chernov
21fea37d04 Add start_precmd to set limits of www user 2004-05-07 20:20:24 +00:00
Andrey A. Chernov
69ddacfb77 commmand -> command 2004-05-01 18:44:59 +00:00
Norikatsu Shigemura
576de236ac rcNG-fy.
Approved by:	ache
Suggested by:	hrs
2004-04-30 21:44:50 +00:00
Andrey A. Chernov
58ed800e6a Fix netmask problem on 64bit machines, patch from dev. tree 2004-03-08 13:30:03 +00:00
Andrey A. Chernov
0ea69366dd Upgrade to 1.3.28 2003-07-18 14:28:07 +00:00
Andrey A. Chernov
a157dbaede Understand '$1$' prefix for crypt() in dbmmanage
PR:             25031
2003-06-02 19:12:45 +00:00
Andrey A. Chernov
842c89048e Don't even try to sense Berkeley DB2/DB3 (from /usr/local), it
completely breaks passwd functions.
2003-02-20 10:02:44 +00:00
Andrey A. Chernov
e275acfa6b Additional suexec tuning and login.conf support in suexec
Submitted by:   Alexander Yurchenko <grange@rt.mipt.ru>
2002-10-30 01:56:05 +00:00
Andrey A. Chernov
62f5f0377c Fix more .default -> -dist leftovers 2002-06-22 05:47:36 +00:00
Andrey A. Chernov
b1359056a9 Rename .default suffix to -dist, probably it will be less confusing 2002-06-21 21:32:12 +00:00
Andrey A. Chernov
f3fcaf8d1d Don't remove data.default & cgi-bin.default on install 2002-06-20 01:35:05 +00:00
Andrey A. Chernov
eab3217123 Upgrade to 1.3.26
Unforbidde it.
2002-06-19 02:02:03 +00:00
Andrey A. Chernov
7784bb92d4 Pick official proxy_http1.1_chunking.patch
Install apache.sh as apache.sh.default first
Use limits of 'www' user for apachectl
2002-05-04 23:42:08 +00:00
Dirk Meyer
995ac1fee4 Make startscript apache.sh PREFIX aware at install time,
so it can be called within an path or dir.
e.g. in: /usr/local/etc/rc.local/apache.sh
and in /etc/rc.conf:
local_startup="/usr/local/etc/rc.local"

Approved by:	ache
2002-04-22 03:26:12 +00:00
Andrey A. Chernov
9dc2701dc4 Upgrade to 1.3.23 2002-01-25 05:40:18 +00:00
Andrey A. Chernov
8bc172765b Don't put 'manual' link to the Apache manual, it already handled by httpd.conf 2001-12-02 08:28:49 +00:00
Andrey A. Chernov
925425e291 Install properly in case existen main "data" and "cgi-bin" are symlinks 2001-10-22 17:40:16 +00:00
Andrey A. Chernov
af0efb65b6 Fix Group replacing in httpd.conf 2001-10-21 19:27:12 +00:00
Andrey A. Chernov
6b9dcd7194 Separate manual and default data dir
Add missing icons to pkg-list
2001-10-17 03:20:57 +00:00
Andrey A. Chernov
4fb92ec5bc Upgrade to 1.3.22 2001-10-14 09:41:28 +00:00
Andrey A. Chernov
9c18a27c4c Upgrade to 1.3.20 2001-05-22 15:34:38 +00:00
Andrey A. Chernov
eb11ba8c12 Add official patch to not coredump on missing ServerName
PR:		26237
Submitted by:	Scot W. Hetzel <hetzels@westbend.net>
2001-03-31 20:01:09 +00:00
Andrey A. Chernov
c8a277dd4a Fix path to apachectl in stop 2000-07-18 10:17:39 +00:00