View | Details | Raw Unified | Return to bug 40424
Collapse All | Expand All

(-)/root/openvpn/Makefile (-1 / +2 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	openvpn
8
PORTNAME=	openvpn
9
PORTVERSION=	1.2.1
9
PORTVERSION=	1.3.0
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 34-39 Link Here
34
	@${MKDIR} ${DOCSDIR}/${dirs}
34
	@${MKDIR} ${DOCSDIR}/${dirs}
35
	@${INSTALL_DATA} ${WRKSRC}/${dirs}/* ${DOCSDIR}/${dirs}
35
	@${INSTALL_DATA} ${WRKSRC}/${dirs}/* ${DOCSDIR}/${dirs}
36
.endfor
36
.endfor
37
	@${CAT} pkg-message
37
.endif
38
.endif
38
39
39
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)/root/openvpn/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (openvpn-1.2.1.tar.gz) = 9a41f775bb5045d225483c8a2a9b0ad0
1
MD5 (openvpn-1.3.0.tar.gz) = f82482f0ec8d9091876bd86133a8ff2f
(-)/root/openvpn/files/patch-error.c (-11 lines)
Lines 1-11 Link Here
1
--- error.c.orig	Mon Jun 24 02:27:37 2002
2
+++ error.c	Mon Jun 24 02:28:05 2002
3
@@ -215,7 +215,7 @@
4
 #if defined(HAVE_OPENLOG) && defined(HAVE_SYSLOG)
5
       if (daemon (cd != NULL, 0) < 0)
6
 	msg (M_ERR, "daemon() failed");
7
-      openlog ("openvpn", LOG_PID, 0);
8
+      openlog ("openvpn", LOG_PID, LOG_DAEMON);
9
 #else
10
       msg (M_WARN, "Warning: this operating system lacks daemon logging features, therefore when I become a daemon, I won't be able to log status or error messages");
11
       if (daemon (cd != NULL, 0) < 0)
(-)/root/openvpn/files/patch-tun.c (-53 lines)
Lines 1-53 Link Here
1
--- tun.c.orig	Sun Jun 23 23:43:57 2002
2
+++ tun.c	Sun Jun 23 23:45:54 2002
3
@@ -76,7 +76,7 @@
4
 		);
5
       msg (M_INFO, "%s", command_line);
6
       if (openvpn_system (command_line) != 0)
7
-	msg (M_ERR, "linux ifconfig failed");
8
+	msg (M_ERR, "Linux ifconfig failed");
9
 
10
 #elif defined(TARGET_SOLARIS)
11
 
12
@@ -90,7 +90,7 @@
13
 		);
14
       msg (M_INFO, "%s", command_line);
15
       if (openvpn_system (command_line) != 0)
16
-	msg (M_ERR, "solaris ifconfig failed");
17
+	msg (M_ERR, "Solaris ifconfig failed");
18
 
19
 #elif defined(TARGET_OPENBSD)
20
 
21
@@ -118,7 +118,7 @@
22
 		);
23
       msg (M_INFO, "%s", command_line);
24
       if (openvpn_system (command_line) != 0)
25
-	msg (M_ERR, "openbsd ifconfig failed");
26
+	msg (M_ERR, "OpenBSD ifconfig failed");
27
 
28
 #elif defined(TARGET_DARWIN)
29
 
30
@@ -144,7 +144,22 @@
31
 		);
32
       msg (M_INFO, "%s", command_line);
33
       if (openvpn_system (command_line) != 0)
34
-	msg (M_ERR, "darwin ifconfig failed");
35
+	msg (M_ERR, "Darwin ifconfig failed");
36
+
37
+#elif defined(TARGET_FREEBSD)
38
+      /* example: ifconfig tun2 10.2.0.2 10.2.0.1 mtu 1450 netmask 255.255.255.255 up */
39
+      snprintf (command_line, sizeof (command_line),
40
+		IFCONFIG_PATH " %s %s %s mtu %d netmask 255.255.255.255 up",
41
+		dev,
42
+		ifconfig_local,
43
+		ifconfig_remote,
44
+		tun_mtu
45
+		);
46
+      msg (M_INFO, "%s", command_line);
47
+      if (openvpn_system (command_line) != 0)
48
+	msg (M_ERR, "FreeBSD ifconfig failed");
49
+
50
+
51
 
52
 #else
53
       msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfig' commands on this operating system.  You should ifconfig your tun/tap device manually or use an --up script.");
(-)/root/openvpn/pkg-message (+5 lines)
Line 0 Link Here
1
### ---------------------------------------------------------------------- ###
2
###  To retain backwards compatibility of OpenVPN 1.3.0 with OpenVPN peers ###
3
###  that run older versions (back to 1.1.0), you will have to set the MTU ###
4
###  explicitly by command line options since OpenVPN 1.3.0.               ###
5
### ---------------------------------------------------------------------- ###

Return to bug 40424