pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/miniupnpd Make it build on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10d6a98f5f71
branches:  trunk
changeset: 394051:10d6a98f5f71
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Thu Jun 04 07:54:26 2009 +0000

description:
Make it build on DragonFly.

diffstat:

 net/miniupnpd/distinfo         |   6 ++++--
 net/miniupnpd/options.mk       |   4 ++--
 net/miniupnpd/patches/patch-aa |  15 +++++++++++----
 net/miniupnpd/patches/patch-ad |  21 +++++++++++++++++++++
 net/miniupnpd/patches/patch-ae |  29 +++++++++++++++++++++++++++++
 5 files changed, 67 insertions(+), 8 deletions(-)

diffs (120 lines):

diff -r 03d3ea64088f -r 10d6a98f5f71 net/miniupnpd/distinfo
--- a/net/miniupnpd/distinfo    Thu Jun 04 07:40:58 2009 +0000
+++ b/net/miniupnpd/distinfo    Thu Jun 04 07:54:26 2009 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.2 2009/01/06 23:39:53 jmcneill Exp $
+$NetBSD: distinfo,v 1.3 2009/06/04 07:54:26 hasso Exp $
 
 SHA1 (miniupnpd-20081009.tar.gz) = 9006d433053c237ccb6628e1856b7cd99a79d989
 RMD160 (miniupnpd-20081009.tar.gz) = 16c36151d7f7058c2579dbba33e92b417304453c
 Size (miniupnpd-20081009.tar.gz) = 81732 bytes
-SHA1 (patch-aa) = 9c65d3459f2435c9318ed163cc2b664ca2f49475
+SHA1 (patch-aa) = 2e4d6a8b3ab975657d3c857167601b77e3d84883
 SHA1 (patch-ab) = fa9c272f80629da6ed50a6acaca7e0dd92283f9e
 SHA1 (patch-ac) = b92d83113f55b1e1b5f9c88f52bebba45f7d746f
+SHA1 (patch-ad) = aa9ffe0963026c52b2bc17b899f1a5d042a86f55
+SHA1 (patch-ae) = 59dfed6777874a545fdfe63bc9e8263d1776be76
diff -r 03d3ea64088f -r 10d6a98f5f71 net/miniupnpd/options.mk
--- a/net/miniupnpd/options.mk  Thu Jun 04 07:40:58 2009 +0000
+++ b/net/miniupnpd/options.mk  Thu Jun 04 07:54:26 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2009/04/29 12:34:42 sborrill Exp $
+# $NetBSD: options.mk,v 1.4 2009/06/04 07:54:26 hasso Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.miniupnpd
 PKG_OPTIONS_REQUIRED_GROUPS=   miniupnpd-fw
@@ -7,7 +7,7 @@
 .if ${OPSYS} == "NetBSD"
 PKG_SUGGESTED_OPTIONS+=                ipfilter
 .else
-.  if exists(/usr/include/net/pfvar.h)
+.  if exists(/usr/include/net/pfvar.h) || exists(/usr/include/net/pf/pfvar.h)
 PKG_SUGGESTED_OPTIONS+=                pf
 .  else
 PKG_SUGGESTED_OPTIONS+=                ipfilter
diff -r 03d3ea64088f -r 10d6a98f5f71 net/miniupnpd/patches/patch-aa
--- a/net/miniupnpd/patches/patch-aa    Thu Jun 04 07:40:58 2009 +0000
+++ b/net/miniupnpd/patches/patch-aa    Thu Jun 04 07:54:26 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/01/06 03:56:45 jmcneill Exp $
+$NetBSD: patch-aa,v 1.2 2009/06/04 07:54:26 hasso Exp $
 
---- genconfig.sh.orig  2008-10-01 08:49:26.000000000 -0400
-+++ genconfig.sh
-@@ -96,12 +96,18 @@ case $OS_NAME in
+--- genconfig.sh.orig  2008-10-01 15:49:26 +0300
++++ genconfig.sh       2009-05-07 11:23:34 +0300
+@@ -96,14 +96,25 @@ case $OS_NAME in
                ;;
        NetBSD)
                OS_URL=http://www.netbsd.org/
@@ -25,4 +25,11 @@
 +                      fi
                fi
                ;;
++      DragonFly)
++              OS_URL=http://www.dragonflybsd.org/
++              echo "#define USE_PF 1" >> ${CONFIGFILE}
++              FW=pf
++              ;;
        SunOS)
+               echo "#define USE_IPF 1" >> ${CONFIGFILE}
+               FW=ipf
diff -r 03d3ea64088f -r 10d6a98f5f71 net/miniupnpd/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpd/patches/patch-ad    Thu Jun 04 07:54:26 2009 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1 2009/06/04 07:54:26 hasso Exp $
+
+--- pf/obsdrdr.c.orig  2008-08-24 22:54:57 +0300
++++ pf/obsdrdr.c       2009-06-04 10:35:24 +0300
+@@ -7,11 +7,16 @@
+ 
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <sys/param.h>
+ #include <net/if.h>
+ #include <netinet/in.h>
+ #include <netinet/tcp.h>
+ #include <arpa/inet.h>
++#ifdef __DragonFly__
++#include <net/pf/pfvar.h>
++#else
+ #include <net/pfvar.h>
++#endif
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <unistd.h>
diff -r 03d3ea64088f -r 10d6a98f5f71 net/miniupnpd/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpd/patches/patch-ae    Thu Jun 04 07:54:26 2009 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-ae,v 1.1 2009/06/04 07:54:26 hasso Exp $
+
+--- bsd/getifstats.c.orig      2009-05-07 11:38:00 +0300
++++ bsd/getifstats.c   2009-05-07 11:40:14 +0300
+@@ -11,10 +11,14 @@
+ #include <net/if.h>
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <net/if_var.h>
+ #endif
++#if defined(__DragonFly__)
++#include <net/pf/pfvar.h>
++#else
+ #include <net/pfvar.h>
++#endif
+ #include <kvm.h>
+ #include <fcntl.h>
+ #include <nlist.h>
+@@ -34,7 +38,7 @@ struct nlist list[] = {
+ int 
+ getifstats(const char * ifname, struct ifdata * data)
+ {
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+       struct ifnethead ifh;
+ #elif defined(__OpenBSD__) || defined(__NetBSD__)
+       struct ifnet_head ifh;



Home | Main Index | Thread Index | Old Index