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

(-)/usr/ports/net/miniupnpd/Makefile (-2 / +1 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	miniupnpd
8
PORTNAME=	miniupnpd
9
PORTVERSION=	1.3
9
PORTVERSION=	1.4
10
PORTEPOCH=	1
11
CATEGORIES=	net
10
CATEGORIES=	net
12
MASTER_SITES=	http://miniupnp.tuxfamily.org/files/ \
11
MASTER_SITES=	http://miniupnp.tuxfamily.org/files/ \
13
		http://miniupnp.free.fr/files/
12
		http://miniupnp.free.fr/files/
(-)/usr/ports/net/miniupnpd/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (miniupnpd-1.3.tar.gz) = b5e70e80dcf45b424b8fe3c966bdc613
1
MD5 (miniupnpd-1.4.tar.gz) = ffa33d4ed8732c662bdb7d511e86db76
2
SHA256 (miniupnpd-1.3.tar.gz) = b4585c77ac5a7fb00a687772db95996dd2e8854db9d628c9bb85e5ecfd67f2ff
2
SHA256 (miniupnpd-1.4.tar.gz) = 85ba7cd28cb9f5ac2c96484325a30c64e385e011f57ead5997568bfde753051b
3
SIZE (miniupnpd-1.3.tar.gz) = 83464
3
SIZE (miniupnpd-1.4.tar.gz) = 90071
(-)/usr/ports/net/miniupnpd/files/patch-Makefile (-4 / +4 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	2009-01-29 19:21:05.000000000 +0100
1
--- Makefile.orig	2009-11-05 20:48:29.000000000 +0800
2
+++ Makefile	2009-04-19 14:27:04.264746884 +0200
2
+++ Makefile	2009-11-05 20:48:45.000000000 +0800
3
@@ -25,10 +25,12 @@
3
@@ -25,10 +25,12 @@
4
 
4
 
5
 # better way to find if we are using ipf or pf
5
 # better way to find if we are using ipf or pf
Lines 11-15 Link Here
11
 .endif
11
 .endif
12
+.endif
12
+.endif
13
 
13
 
14
 # Solaris specific CFLAGS
14
 .if $(OSNAME) == "NetBSD"
15
 .if $(OSNAME) == "SunOS"
15
 FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
(-)/usr/ports/net/miniupnpd/files/patch-genconfig.sh (-38 lines)
Lines 1-38 Link Here
1
--- genconfig.sh.orig	2008-10-01 14:49:26.000000000 +0200
2
+++ genconfig.sh	2009-04-19 14:15:37.574904740 +0200
3
@@ -70,17 +70,24 @@
4
 		# new way to see which one to use PF or IPF.
5
 		# see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
6
 		# source file with handy subroutines like checkyesno
7
-		. /etc/rc.subr
8
-		# source config file so we can probe vars
9
-		. /etc/rc.conf
10
-		if checkyesno ipfilter_enable; then
11
-			echo "Using ipf"
12
-			FW=ipf
13
-			echo "#define USE_IPF 1" >> ${CONFIGFILE}
14
-		elif checkyesno pf_enable; then
15
-			echo "Using pf"
16
-			FW=pf
17
-			echo "#define USE_PF 1" >> ${CONFIGFILE}
18
+		if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ]; then
19
+			# source file with handy subroutines like checkyesno
20
+			. /etc/rc.subr
21
+			# source config file so we can probe vars
22
+			. /etc/rc.conf
23
+			if checkyesno ipfilter_enable; then
24
+				echo "Using ipf"
25
+				FW=ipf
26
+				echo "#define USE_IPF 1" >> ${CONFIGFILE}
27
+			elif checkyesno pf_enable; then
28
+				echo "Using pf"
29
+				FW=pf
30
+				echo "#define USE_PF 1" >> ${CONFIGFILE}
31
+			else
32
+				echo "Could not detect usage of ipf or pf. Compiling for pf by default"
33
+				FW=pf
34
+				echo "#define USE_PF 1" >> ${CONFIGFILE}
35
+			fi
36
 		else
37
 			echo "Could not detect usage of ipf or pf. Compiling for pf by default"
38
 			FW=pf

Return to bug 140319