Commit graph

84 commits

Author SHA1 Message Date
Matthias Andree
1e137b9b46 Fix several compilation issues where the upstream's configure script
required pkg-config, for instance, the PKCS11 option.

Submitted by:	mat@
2014-02-28 16:24:40 +00:00
Matthias Andree
00f3cb728a - Repair PKCS11 option [1].
- Use the opportunity to simplify Makefile: leverage some of the
  OptionsNG and Staging features, removing our homebrew predecessors.
- QA: Strip .so libraries, fix shebang paths in samples.

Obtained from:	<https://forums.freebsd.org/viewtopic.php?f=7&t=44866> [1]
2014-02-18 09:03:59 +00:00
Matthias Andree
869264fc4d Fix self-tests and their non-fatal auto-skip on RedPorts.
Add patch-tests__t_cltsrv.sh to properly skip self-tests when no
inet/inet6 addresses are available, and to properly use udp6 when only
inet6 is available (for instance, on RedPorts).

Drop patch-src__openvpn__syshead.h, had already been integrated upstream.

PR:		ports/185439 (related)
2014-01-27 19:00:07 +00:00
Matthias Andree
c936d95cea Convert from port-specific to official STAGEDIR support. 2013-10-01 14:43:26 +00:00
Baptiste Daroussin
a65ed2e51b Add NO_STAGE all over the place in preparation for the staging support (cat: security) 2013-09-20 22:55:24 +00:00
Matthias Andree
c8d0576046 Update to new upstream release
2013.05.31 -- Version 2.3.2
Arne Schwabe (3):
      Only print script warnings when a script is used. Remove stray mention of script-security system.
      Move settings of user script into set_user_script function
      Move checking of script file access into set_user_script

Davide Brini (1):
      Provide more accurate warning message

Gert Doering (2):
      Fix NULL-pointer crash in route_list_add_vpn_gateway().
      Fix problem with UDP tunneling due to mishandled pktinfo structures.

James Yonan (1):
      Always push basic set of peer info values to server.

Jan Just Keijser (1):
      make 'explicit-exit-notify' pullable again

Josh Cepek (2):
      Fix proto tcp6 for server & non-P2MP modes
      Fix Windows script execution when called from script hooks

Steffan Karger (2):
      Fixed tls-cipher translation bug in openssl-build
      Fixed usage of stale define USE_SSL to ENABLE_SSL

svimik (1):
      Fix segfault when enabling pf plug-ins
2013-05-31 23:06:39 +00:00
Matthias Andree
2cc4d448bc security upgrade to OpenVPN 2.3.1; upstream release notes are
"This release adds supports for PolarSSL 1.2. It also adds a fix to
  prevent potential side-channel attacks by switching to a constant-time
  memcmp when comparing HMACs in the openvpn_decrypt function. In
  addition, it contains several bugfixes and documentation updates, as
  well as some minor enhancements."

Full ChangeLog:
<https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23>

The port upgrade also offers an option to use the GPLv2+-licensed
PolarSSL instead of OpenSSL (which brings in a license mix).

PR:		ports/177517
Reviewed by:	miwi
Approved by:	portmgr (miwi)
Security:	92f30415-9935-11e2-ad4c-080027ef73ec
2013-03-31 16:00:02 +00:00
Matthias Andree
053c78f1e9 - When installing from port, do not tamper with permissions of other files
in ${PREFIX}/sbin and ${PREFIX}/lib. [1]

- Do not install plugin .la/.so files with the executable bit set, they
  are not executable.

PR:		ports/175434 [1]
Submitted by:	Benjamin Lorenz [1]
2013-01-20 02:55:48 +00:00
Matthias Andree
47897d0dce - Fix NOPORTDOCS regression [1], by installing to DESTDIR= and then installing from
there, rather than tweaking the Makefiles.
- Move examples to EXAMPLESDIR, and heed NOPORTEXAMPLES
- Remove a leftover SUB_LIST addition.
- Switch comment to my FreeBSD e-mail address.
- Use PORTDOCS=* and PORTEXAMPLES=* to remove pkg-plist cruft
- Sort PORT_OPTIONS .ifs and stuff.

PR:		ports/175283 [1]
Submitted by:	Alexey Markov [1]
2013-01-17 23:12:24 +00:00
Matthias Andree
f094e1198d Add a new security/easy-rsa package that contains the bits that got
split out of OpenVPN prior to the current 2.3.0 release, and make that
security/openvpn RUN_DEPENDS on it. Also update UPDATING record.
2013-01-13 21:35:06 +00:00
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
Matthias Andree
a6f6689e5a Update to new upstream release v2.2.2.
Changelog: http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.html
2011-12-28 20:43:49 +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
a2cf6822c5 Use required_modules rather than _precmd.
To fix failures with 'restart'.

Reported by: Miroslav Lachman
2011-08-30 17:11:57 +00:00
Matthias Andree
af6239f488 Fix skipping t_cltsrv when IP missing. Really this time.
Cause was a   trap "... ; exit 1" 0   shell construct that needs to be
cancelled for the exit 77 to take effect. trap 0 inserted to that end.
2011-08-16 22:33:30 +00:00
Matthias Andree
20103c4245 Fix NOPORTDOCS support, though differently than suggested
Reported by: pgollucci
PR:          ports/159610
2011-08-08 22:38:44 +00:00
Matthias Andree
f62451dfef Skip self-test more readily without addresses. 2011-08-07 18:05:35 +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
5271ccc4c3 Avoid jamming the build if the jail is without address, skip self-test. 2011-07-20 20:37:43 +00:00
Matthias Andree
cf8ca0757d Update to upstream release 2.2.1.
NOTE: the easy-rsa/2.0 openssl.cnf file has been removed and replaced by
an openssl-0.9.8.cnf and an openssl-1.0.0.cnf file.

Changelog URL:
http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.html
2011-07-07 00:16:57 +00:00
Matthias Andree
88b3bf4165 Patch hardwired gcc to ${CC}, fixing clang-ports builds [1].
Use full ${MAKE} environment from do-build, for consistency.

Found by: -exp run [1].
2011-06-20 21:14:23 +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
727cbc4c26 Remove support for lzo-1. 2011-05-11 09:20:45 +00:00
Matthias Andree
6fb948eb09 Update to 2.2.0. Add LICENSE (GPLv2). Add a local mirror of the distfile (file
has been uploaded and will propagate soonish).

Changelog: http://openvpn.net/index.php/open-source/documentation/change-log/425-changelog-for-openvpn-22.html
2011-05-03 19:24:48 +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
d63defe9f9 Switch to XZ distribution format. 2010-11-09 20:25:58 +00:00
Matthias Andree
39ffd6b702 Update to new upstream release 2.1.4.
Update MASTER_SITES.

Submitted by: Eric F. Crist <ecrist@secure-computing.net>
PR: ports/151962
2010-11-09 18:55:56 +00:00
Matthias Andree
9ce3d7d281 Update to 2.1.3
No functional changes, but avoids 'have you seen new release'
type mail flood. :)
2010-08-27 20:03:12 +00:00
Matthias Andree
cc632e1482 Update to new upstream version 2.1.2.
Contains various bugfixes and improvements.
2010-08-17 19:19:31 +00:00
Matthias Andree
7edfda12ae Add openvpn-beta-[0-9]* to CONFLICTS variable.
Submitted by: Eric F. Crist
PR: ports/149617
2010-08-13 15:49:09 +00:00
Matthias Andree
f33f5a90ca Support /etc/rc.d/openvpn softrestart
to send SIGUSR1 (rather than SIGHUP) to OpenVPN processes.

Suggested by: Nick Hibma (in private email)
2010-08-04 19:53:56 +00:00
Matthias Andree
614a8b617c Fix bashisms (source FILE -> . FILE)
replace shebang-lines /bin/bash -> /bin/sh
bump portrevision (changed files)

based on:
PR: ports/147472
Submitted by: Olli Hauer <ohauer@gmx.de>

Approved by: miwi (mentor)
2010-06-05 14:12:29 +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