Commit Graph

74 Commits

Author SHA1 Message Date
Eugene Grosbein
ad7221c383 security/ipsec-tools: unbreak racoon_create_dirs
Specifying required_dirs and creating it at prestart stage does not work
because required_dirs is checked before running prestart these days.
So it fails to start for mfs-based /var even if racoon_create_dirs=YES

Unbreak this by replacing "required_dirs" and "mkdir -p"
in the racoon_prestart with "install -d" that returns error in case
of failure and does nothing if the directory already exists.

Reported by:	Cybil Courraud <freebsd@cyb.fr>
2019-10-10 13:15:13 +00:00
Eugene Grosbein
bea4f8a142 security/ipsec-tools: fix aggressive mode tunnels with wildcard-psk config
Wilcard patch exposures existing bug where agressive tunnels using ip addresses
for identification were not matching the entry in the PSK file,
due to the identifier not being cast to a 'xxx.xxx.xxx.xxx' notation.

PR:		203308
Submitted by:	andywhite@gmail.com (based on)
2019-07-01 04:49:33 +00:00
Eugene Grosbein
e917e3b2c5 security/ipsec-tools: autoload ipsec.ko if possible
Check for IPSEC support in kernel and auto-load ipsec.ko
if needed while starting racoon except of 11.0-RELEASE
that had not IPSEC as a module.
2019-05-12 13:22:28 +00:00
Eugene Grosbein
6f8db91167 security/ipsec-tools: small correction NATT patch
This change fixes rare case for "site to site" IPSec tunnel mode
when remote peer is behind NAT and has its own LAN behind.
Now this works too (previously NATT worked only for single host behind NAT).
2019-03-27 08:56:35 +00:00
Olivier Cochard
8015d5bbf1 Fix build on 12-stable when using OpenSSL from port.
PR:		232169
Submitted by:	Michael Grimm <trashcan@ellael.org>
2019-02-03 21:04:24 +00:00
Tobias Kortkamp
67be5df041 security/ipsec-tools: Only append to BUILD_DEPENDS after bsd.port.pre.mk 2019-01-31 17:59:50 +00:00
Olivier Cochard
78be6b73a6 Fix openssl 1.1.1 breakage
PR:		232169
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Obtained from:	https://bugs.archlinux.org/task/59734
2018-11-25 20:35:22 +00:00
Eugene Grosbein
45058f51c6 security/ipsec-tools: make binary package more useful
- enable options ADMINPORT and WCPSKEY by default;
- polish NATT_DESC a bit as we have releases past 11.0-STABLE;
- bump PORTREVISION.
2018-10-03 10:08:15 +00:00
Eugene Grosbein
6f2a940dde security/ipsec-tools: add support for multiple if_ipsec(4) interfaces
- added patch introducing racoon compatibility with multiple
  if_ipsec(4) interfaces (*);
- MAINTAINER reset due to nearly 3 years maintainer inactivity;
- bump PORTREVISION.

Submitted by:	ae (*)
Approved by:	vanhu (implicitly)
2018-08-10 10:03:30 +00:00
Eugene Grosbein
fd23b98f31 Fix phase 1 initiation in the racoon daemon after base system change r285204
PR:		192774, 222065
Submitted by:	Andreas Longwitz <longwitz@incore.de>
Approved by:	VANHULLEBUS Yvan (maintainer, implicitly)
2018-04-29 10:00:01 +00:00
Eugene Grosbein
4e95cbb248 security/ipsec-tools: fix CVE-2016-10396
The racoon daemon in IPsec-Tools 0.8.2 contains a remotely exploitable
computational-complexity attack when parsing and storing ISAKMP fragments.
The implementation permits a remote attacker to exhaust computational
resources on the remote endpoint by repeatedly sending ISAKMP fragment
packets in a particular order such that the worst-case computational
complexity is realized in the algorithm utilized to determine
if reassembly of the fragments can take place.

The fix obtained from NetBSD CVS head with a command:

cvs diff -D 2017-01-24 -D 2017-09-01 \
	src/racoon/handler.h \
	src/racoon/isakmp.c \
	src/racoon/isakmp_frag.c \
	src/racoon/isakmp_inf.c

While here, add LICENSE.

PR:		225066
Approved by:	VANHULLEBUS Yvan (maintainer timeout, 3 months)
Obtained from:	NetBSD
MFH:		2018Q1
Security:	CVE-2016-10396
2018-04-14 12:07:58 +00:00
Eugene Grosbein
f6007b9495 This patch adds NATT_EXTRA_PATCHES=natt.diff and enables only UDP encapsulation defined in RFC3948.
The natt.diff patch contains the following changes:
* added support for SADB_X_EXT_NAT_T_OAI and SADB_X_EXT_NAT_T_OAR PF_KEY messages;
* used NAT address instead of original for SAs created by racoon;
* NAT-T keep-alives now sends only by NATed host.

Tested with 11.0-STABLE after projects/ipsec merge.

PR:		217131
Submitted by:	Andrey V. Elsukov
Approved by:	VANHULLEBUS Yvan (maintainer timeout, 2 months), vsevolod (mentor)
2017-04-18 14:36:08 +00:00
Mathieu Arnold
a28f0f7f7f Remove all USE_OPENSSL occurrences.
Sponsored by:	Absolight
2017-03-15 14:45:30 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Dmitry Marakasov
3b49e4c544 - Switch to options helpers
- Drop 8.x support

Approved by:	portmgr blanket
2015-10-11 15:13:52 +00:00
Brad Davis
33b56f642c Update ipsec-tools with a patch from NetBSD to fix a memory leak.
PR:		200334 (reported in)
Submitted by:	brd
Approved by:	bdrewery (mentor, portmgr)
MFH:		2015Q2
2015-05-19 17:00:57 +00:00
Kurt Jaeger
2e412fff60 security/ipsec-tools: 0.8.1 -> 0.8.2
From ChangeLog:
- Fix admin port establish-sa for tunnel mode SAs (Alexander Sbitnev)
- Fix source port selection regression from version 0.8.1
- Various logging improvements
- Additional compliance and build fixes

From submitter:
- extra patch to adding wildcard psk option

PR:		196930
Submitted by:	Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>,
		Ed Schouten <ed@80368.nl>
Approved by:	vanhu (maintainer)
2015-02-06 20:31:54 +00:00
Baptiste Daroussin
9103331822 Simplify plist
Modernize a bit
2014-09-23 09:29:00 +00:00
Tijl Coosemans
37f54e0f66 net/openldap24-*:
- Convert to USES=libtool and bump dependent ports
- Avoid USE_AUTOTOOLS
- Don't use PTHREAD_LIBS
- Use MAKE_CMD

databases/glom:
- Drop :keepla
- Add INSTALL_TARGET=install-strip

databases/libgda4* databases/libgda5*:
- Convert to USES=libtool and bump dependent ports
- USES=tar:xz
- Use INSTALL_TARGET=install-strip
- Use @sample

databases/libgdamm:
- Drop :keepla
- USES=tar:bzip2
- Use INSTALL_TARGET=install-strip

databases/libgdamm5:
- Add INSTALL_TARGET=install-strip
- Drop --enable-static (inherited from old repocopy)

devel/anjuta x11-toolkits/py-gnome-extras:
- Drop :keepla

dns/powerdns dns/powerdns-devel:
- Convert to USES=libtool
- Add INSTALL_TARGET=install-strip
- Disable static modules
- Stop creating library symlinks with .0 suffix, not needed for dynamically
  opened modules

mail/dovecot2:
- Add USES=libtool

mail/dovecot2-pigeonhole:
- Drop CONFIGURE_TARGET (incorrect for Dragonfly)
- Add USES=libtool and INSTALL_TARGET=install-strip

math/gnumeric:
- USES=libtool tar:xz

Approved by:	portmgr (implicit, bump unstaged ports)
2014-07-24 18:34:16 +00:00
Dmitry Marakasov
85555962cb - Drop .la files, no dependees require them
Approved by:	portmgr blanket
2014-06-05 19:55:52 +00:00
Tijl Coosemans
aad09bc5e2 When linking a library libA with a library libB using libtool, if libB.la
exists, libtool will add all libraries libB.la refers to (dependency_libs
field) to the linker command line and store them in the dependency_libs
field of libA.la.  So everything that subsequently links with libA will also
link to these extra libraries.  This causes too much overlinking.

This commit modifies Mk/Uses/libtool.mk so it empties the dependency_libs
field in .la libraries during staging.  However, because .la libraries have
very limited use when dependency_libs is empty it makes sense to completely
remove them during staging.

So with this commit USES=libtool is modified to remove .la libraries and a
new form (USES=libtool:keepla) is introduced in case they need to be kept
(dependency_libs is still emptied).

PORTREVISION is bumped on all ports with USES=libtool that install .la
libraries.  Most ports are also changed to add :keepla because .la
libraries have to be kept around as long as there are dependent ports with
.la libraries that refer to them in their dependency_libs field.  In most
cases :keepla can be removed again as soon as all dependent ports that
install .la libraries have some form of USES=libtool added to their
Makefile.

PR:		ports/188759
Exp-run:	bdrewery
Approved by:	portmgr (bdrewery)
2014-04-23 13:25:16 +00:00
Mark Linimon
c33fb18ed9 Restore vanhu as maintainer: bounce was due to mail configuration error. 2014-04-22 15:17:41 +00:00
Mark Linimon
769f43b13e Reset vanhu@netasq.com: email bounces. 2014-04-22 02:55:43 +00:00
Baptiste Daroussin
3b0bf9466f Fix build with clang 3.4 2014-02-17 14:50:47 +00:00
Baptiste Daroussin
85fd614298 Remove CFLAGS unsupported by ancient gcc and just remove -Werror to have the code build with clang
Reported by:	olgeni
2014-02-11 11:20:52 +00:00
Baptiste Daroussin
d79928d34f Fix build with clang,
Convert to USES=libtool
Strip binaries
2014-02-10 16:42:40 +00:00
William Grzybowski
430a6c120a security/ipsec-tools: update to 0.8.1
- Update to 0.8.1 [1]
- Allow staging [1]
- Remove FreeBSD < 8.x message

PR:		ports/182758 [1]
Submitted by:	Kurt Jaeger <fbsd-ports opsec.eu>
2013-10-29 20:03:39 +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
Antoine Brodin
7fc1718493 - Fix a typo in PORT_OPTIONS conversion
- Create configuration directory we try to remove on uninstall
2013-06-13 20:39:52 +00:00
Marcus von Appen
95e7081976 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig and
  USE_GETTEXT=yes to USES=gettext while here
2013-04-27 18:25:24 +00:00
Baptiste Daroussin
7c736f500c Convert vanhu@ ports to new options framework
Removed optionnal dependency on the deprecated py-visual for net/scapy

Approved by:	maintainer (vanhu)
2013-01-09 11:06:32 +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
Jason Helfman
01f239ee0f Apply utmp patch from ${FILESDIR} (not files) if OSVERSION < 900007
Spotted by: Jason Hellenthal <jhell at DataIX.net>
Approved by:	crees,rene (mentors,implicit)
2012-01-25 06:13:53 +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
8d5d707de8 Fix the rc.d script to avoid unconditional code execution,
and various other cleanups.
2011-07-21 05:14:57 +00:00
Stephen Montgomery-Smith
537fa88c5f - Fix startup script rc.d/racoon.
- Bump portrevision.

PR:		ports/148605
Submitted by:	John Hein <jhein@symmetricom.com>
Approved by:	maho (mentor) and vanhu@netasq.com (maintainer)
2011-07-19 03:33:26 +00:00
Florian Smeets
8a131b63e8 - update to 0.8.0
PR:		ports/155883
Submitted by:	vanhu (maintainer)
2011-03-23 19:48:10 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +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
Martin Wilke
5a23bb49bd - Mark BROKEN on HEAD: fails to build with new utmpx
Reported by:	pointyhat
2010-03-20 15:45:21 +00:00
Martin Wilke
d7bc82e497 - Update to 0.7.3
PR:		137966
Submitted by:	VANHULLEBUS Yvan <vanhu@netasq.com> (maintainer)
2009-08-26 16:37:22 +00:00
Jeremy Messenger
789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +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
Wesley Shields
60e37f26a0 - Update to 0.7.2. This release fixes a remote DoS bug with IKE
fragmentation reassembly.

PR:		ports/133922
Submitted by:	VANHULLEBUS Yvan <vanhu@netasq.com> (maintainer)
2009-04-23 16:02:44 +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
Tilman Keskinoz
d31eb81ef0 Add an WITH_LDAP option
enable hybrid, xauth and mode-cfg per default

PR:		125748
Submitted by:	Matthew Grooms
Approved by:	vanhu (maintainer)
2008-08-01 12:57:25 +00:00
Beech Rintoul
b190a8cde5 - Update to 0.7.1
PR:		ports/125957
Submitted by:	VANHULLEBUS Yvan <vanhu@netasq.com> (maintainer)
2008-07-25 21:39:29 +00:00
Tom McLaughlin
b7917da8c5 Fix build on 7.x when RC5 support is enabled.
PR:		103084, 122187
Submitted by:	Dmitry A Grigorovich
Approved by:	maintainer
2008-07-07 23:59:33 +00:00
Beech Rintoul
fffceacc53 - Fix: Have the racoon startup script [optionally] create its required dirs.
PR:		ports/117128
Submitted by:	John Hein <jhein@timing.com>
Approved by:	VANHULLEBUS Yvan <vanhu@netasq.com> (maintainer)
2008-07-02 04:19:30 +00:00
Edwin Groothuis
13441eac4b Remove always-false/true conditions based on OSVERSION 500000 2007-10-04 06:02:06 +00:00