Commit graph

63 commits

Author SHA1 Message Date
Matthias Andree
51939c51c1 OpenVPN changes, upgrades and fixes:
- Upgrade security/openvpn to v2.3.0 (changes installed layout a bit),
  splitting and re-diffing patches.
- Retain v2.2.2 as security/openvpn22
- Mark security/openvpn20 as deprecated and to expire 6 months from now
- Fix TCP_NODELAY option (openvpn 2.3, 2.2), see
  <http://community.openvpn.net/openvpn/ticket/158>
- Fix PassTOS option (openvpn 2.2, 2.0), see
  http://community.openvpn.net/openvpn/ticket/135
2013-01-11 23:09:37 +00:00
Matthias Andree
df0862b076 - Convert to OptionsNG
- Strip Makefile header
- Drop LIB_DEPENDS ABI versions
2013-01-06 11:29:44 +00:00
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Doug Barton
2b1dacc826 Remove more tags from pkg-descr files fo the form:
- Name
em@i.l

or variations thereof. While I'm here also fix some whitespace and other
formatting errors, including moving WWW: to the last line in the file.
2011-10-24 04:17:37 +00:00
Matthias Andree
8f147e0ae5 Update and demote CONFLICTS to CONFLICTS_INSTALL. 2011-10-04 21:58:09 +00:00
Matthias Andree
2a9cbca0a0 Use recently bugfixed rc script from ../openvpn port. 2011-08-30 17:12:31 +00:00
Pav Lucistnik
de9a24e5a8 - Turn off self-tests on pointyhat, they fail
Reported by:	pointyhat
2011-08-07 17:23:39 +00:00
Matthias Andree
3a6b14d13d archivers/lzo was removed, remove support for it. 2011-07-25 19:47:12 +00:00
Matthias Andree
2913e3b281 Fix Pointyhat build failures by skipping (not failing) network-based tests. 2011-07-25 19:45:11 +00:00
Matthias Andree
a414753739 Clang fixes:- patch plugin Makefiles to use ${CC} rather than gcc (found by -exp run);
- silence non-literal format string warnings (non-fix, adds patch-options.c)
- fix missing prototype warning (adds patch-route.c, bumps PORTREVISION)
- Use full ${MAKE} environment from do-build, for consistency.

While here, remove MD5 checksum.
2011-06-20 21:44:47 +00:00
Doug Barton
29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00
Matthias Andree
25c9695900 Add a note about skipping the self-test. 2011-01-08 10:07:21 +00:00
Matthias Andree
f9b85c98f1 Streamline a bit:
- remove subshell to use basename, and use ## substitution [1]
- remove FreeBSD 5.X compatibility comment [1]
- remove FreeBSD 5.X compatibility code

The parts marked with [1] above were
Submitted by: dougb (Doug Barton)
2011-01-08 10:07:00 +00:00
Matthias Andree
d00f8a61b2 Switch MAINTAINER line to FreeBSD address.
Approved by: garga (mentor, implicit)
2010-06-13 11:57:36 +00:00
Doug Barton
86922094aa RC_SUBR_SUFFIX has not been needed for a long time now, all supported
versions of FreeBSD now use /etc/rc.subr and rc.d scripts without .sh
appended to the script name.
2010-03-27 06:14:03 +00:00
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
Matthias Andree
2e2980e147 Move security/openvpn to security/openvpn20 (after previous repocopy).
Update security/openvpn20 to 2.0.9, revising pkg-message.

Move security/openvpn-devel to security/openvpn and
update security/openvpn to 2.1.1.

Remove security/openvpn-devel, adding a MOVED entry.

Update security/Makefile to remove openvpn-devel and add openvpn20 to
SUBDIRS.

Add a UPDATING entry for this shuffle.  Currently without upgrade
instructions since neither portupgrade nor portmaster are up to the
task (because of the CONFLICTS).

Approved by:  garga@ (mentor)
2010-01-07 16:28:56 +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
Beech Rintoul
b222799b62 - Add logging knob
PR:		ports/130893
Submitted by:	Michael Scheidell <scheidell@secnap.net>
Approved by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2009-01-25 08:10:57 +00:00
Rong-En Fan
741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00
Martin Wilke
fd01995a21 - Respect NOPORTDOCS
PR:		125726
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2008-07-18 10:49:40 +00:00
Rong-En Fan
a878ad4e41 - Run opensvn with --daemon ${name} in order to get distinguishable and
useful syslog tags

PR:		ports/120862
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
2008-02-20 01:15:28 +00:00
Doug Barton
ea09bfe516 Remove spurious empty BEFORE: lines
Approved by:	maintainer
2007-03-08 07:16:33 +00:00
Juergen Lock
222105d2f8 rcfile:
- fix for FreeBSD releases before rcorder integration
- update copyright notice
- replace shell backticks by $().

Port:
- bump revision
- reformat comment

PR:		ports/109856
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Approved by:	miwi (mentor)
2007-03-04 19:12:37 +00:00
Vasil Dimov
94d85e9b3e Fix a bug I introduced with last commit which resulted in openvpn not
being started during boot. The reason for this is that at boot $0 is not
/usr/local/etc/rc.d/openvpn but /etc/rc. The fix is a bit hackish because
it retrieves the script name from $_file - variable used in run_rc_script().

Reported by:	bazzoola <bazzoola@gmail.com>
2007-02-25 19:42:55 +00:00
Vasil Dimov
d78269eef1 use $() instead of ``
Requested by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2007-02-23 11:41:46 +00:00
Vasil Dimov
9d4f5552a9 * Add support for running multiple instances of openvpn to the startup script
Inspired by [1]
* Bump PORTREVISION
* Update the comment which says not to send notices about 2.0.8 to 2.0.9 since
  2.0.9 also introduces only Windows changes. Remove maintainer's name from
  this comment since he did not explicitly state this.

PR:		ports/108371 [1]
Submitted by:	Denis Shaposhnikov <dsh@vlink.ru>, Gleb Kozyrev <gkozyrev@gmail.com> [1]
Approved by:	matthias.andree@gmx.de (maintainer timeout, 28 days)
2007-02-23 08:38:53 +00:00
Rong-En Fan
ac65d64c6c - Use newly added RC_SUBR_SUFFIX
Approved by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
2007-02-04 19:14:20 +00:00
Alejandro Pulver
00b24ce00a - Fix build failures that arose from an accidentally omitted -fPIC.
- Portrevision bumped since the change affects all architectures,
  not just those that were failing.

PR:		ports/103863
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Reported by:	pointyhat
2006-10-02 17:47:32 +00:00
Rong-En Fan
ba70d6b79b - Install additional auth-pam plugin
PR:		ports/103833
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
Suggested by:	Michael Helmeste
Tested by:	Michael Helmeste
2006-09-30 07:48:24 +00:00
Rong-En Fan
2504dacd26 - Update comments for OpenVPN 2.0.8
PR:		ports/103243
Submitted by:	Matthias Andree <matthias.andree at gmx.de> (maintainer)
2006-09-14 01:22:01 +00:00
Ion-Mihai Tetcu
990818f156 - conflicts with openvpn-devel-[0-9]*
- bump PORTREVISION

PR:		ports/102301
Submitted by:	Matthias Andree (maintainer)
2006-08-20 07:06:37 +00:00
Ion-Mihai Tetcu
ae62e99ac3 1 - build and install lib/openvpn-down-root.so plugin (see --plugin option in
the man page) and README.openvpn-down-root
2 - match rc.d filename as printed post install in pkg-message to actual file
    name on newer systems (which use openvpn rather than openvpn.sh)
Reported by:	Jean-Baptiste Quenot (Bcc'd)
The maintainer wishes to thank Jean-Baptiste for his report and patience.
3 - add a pkg-req script to prevent installation of 6.1 packages on older
    machines, which is a frequent source of "rc.d script doesn't work"
    complaints.

Added file(s):
- files/pkg-req.in

PR:		ports/100917
Submitted by:	Matthias Andree (maintainer)
2006-07-28 09:56:54 +00:00
Renato Botelho
125f3bab46 Add a message explaining why it won't be upgraded to 2.0.7 version, to
prevent a lot of people asking maintainer about it:

# -----------------------------------------------------
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.7 AS IT FIXES
# A WINDOWS-ONLY BUG THAT DOESN'T AFFECT *BSD AND THUS
# DOES NOT WARRANT A PORT UPGRADE! AND UPGRADE REQUESTS
# WILL BE DROPPED.       -- Matthias Andree, 2006-04-26
# -----------------------------------------------------

PR:		ports/96383
Submitted by:	maintainer
2006-04-27 12:53:55 +00:00
Renato Botelho
c11a9e9f81 - Update to 2.0.6
* security fix for client LD_PRELOAD code injection vulnerability
    through compromised upstream servers
    (FreeBSD VuXML Vuln VID be4ccb7b-c48b-11da-ae12-0002b3b60e4c,
     filed in separate PR)
    CVE id not known yet
  * 2 other changes only relevant for Linux and NetBSD, not detailed here.

PR:		ports/95345
Submitted by:	maintainer
Security:	VuXML be4ccb7b-c48b-11da-ae12-0002b3b60e4c
2006-04-05 14:57:25 +00:00
Vasil Dimov
00f85e891f Fix FreeBSD 4 jail build
PR:		ports/93833
Patch by:	dinoex
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Approved by:	portmgr (marcus)
2006-02-28 16:25:43 +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
Renato Botelho
ffb6138a2e - CATEGORY CHANGE: add "net" secondary category
- fix jail build on FreeBSD 4 (no security.jail.jailed oid in sysctl)
- catch jail IP misconfiguration and print clear error message
- add SHA256 checksum
- revise pkg-message and pkg-descr

PR:		ports/88785
Submitted by:	maintainer
2005-11-10 15:05:42 +00:00
Marcus Alves Grando
14b53820f6 Enables self-tests with WITH_JAIL
Bump PORTREVISION

PR:		88488
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2005-11-05 01:24:15 +00:00
Renato Botelho
7064301ff7 - Update to 2.0.5
PR:		ports/88437
Submitted by:	maintainer
2005-11-03 15:22:44 +00:00
Marcus Alves Grando
95b444294e Update to 2.0.4
PR:		88379
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Security:	CVE-2005-3393, CVE-2005-3409
2005-11-02 01:52:51 +00:00
Dirk Meyer
3e0f8f77f3 - fix build in jail
maintainer emailed 2005-10-04
Approved by:	(maintainer timeout)
2005-10-25 08:03:55 +00:00
Volker Stolz
acce299054 FreeBSD 6 no longer adds debug.if_* sysctl variables in its default kernel
(according to the release notes), so our heuristic assumes the module is
missing and tries to load it, which fails as the module already exists.

PR:		ports/86286
Submitted by:	maintainer
2005-09-18 12:01:57 +00:00
Renato Botelho
aa7ff04e17 - Update to 2.0.2 that brings these upstream changes:
- fix bug that would exhaust file descriptors as the routing table was modified
    (this had already been part of the port previously)
  - fix bug that would block the management socket until the peer connected
  - fix pkitool sh incompatibilities (from NetBSD)

PR:		ports/85299
Submitted by:	maintainer
2005-08-29 18:52:19 +00:00
Renato Botelho
13dc48839d Fix a typo in the new rc file, where documentation didn't match the
actual variables.

PR:		ports/85156
Submitted by:	maintainer
Reported by:	Benjamin Lutz <benlutz@datacomm.ch>
Approved by:	portmgr (krion)
2005-08-22 10:31:35 +00:00
Renato Botelho
0f64e52705 - Security update to version 2.0.1, fixing four denial of service bugs,
CAN-2005-2531, CAN-2005-2532, CAN-2005-2533, CAN-2005-2534
- Drop old init script and add a modern rcNG script in its place,
  requested by Matthias Grimm and Dirk Gouders (although the script below is
  one I, Matthias Andree, wrote). It can automatically load tun/tap drivers.
- move pkg-message to files/pkg-message.in, revise it, list it in SUB_FILES
  to expand ${PREFIX}.
- print pkg-message after installation from port
- switch to official "make check" as smoke-test, rather than wiring our own.
- prefer LZO2 in most situations, as OpenVPN will pick up LZO2 rather than
  LZO1 if both are installed.

PR:		ports/85109
Submitted by:	maintainer
Approved by:	portmgr (krion)
2005-08-19 18:48:34 +00:00
Renato Botelho
cc323eeba5 Add PW_PASS option to compile with --enable-pass-save
PR:		82494
Submitted by:	Landon Fuller <landonf@threerings.net>
Reviewed by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Approved by:	mantainer, flz (mentor)
2005-07-14 13:15:47 +00:00
Florent Thoumie
4f02559f47 - Backout latest commit, it needs a repocopy due to API change.
Noticed by:	Matthias Andree <matthias.andree@gmx.de>
2005-05-31 19:58:33 +00:00
Florent Thoumie
12a7f133fc - Bump lzo lib version.
- Bump PORTREVISION.
2005-05-31 17:57:11 +00:00