Package: miredo
Version: 1.1.5-2
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

miredo depends on iproute which is Linux specific. Please depend on
freebsd-net-tools on kfreebsd-* instead.

The init.d script has Linux specific parts, too.

Following a patch which should solve at least these two issues:

---snip---
diff -ur miredo-1.1.5_orig/debian/changelog miredo-1.1.5/debian/changelog
--- miredo-1.1.5_orig/debian/changelog  2009-10-07 19:16:07.000000000 +0200
+++ miredo-1.1.5/debian/changelog       2009-10-07 19:19:27.000000000 +0200
@@ -1,3 +1,9 @@
+miredo (1.1.5-3~abe+kbsd1) unstable; urgency=low
+
+  * Fix dependencies and init.d script on kfreebsd-*
+
+ -- Axel Beckert <a...@deuxchevaux.org>  Wed, 07 Oct 2009 18:44:39 +0200
+
 miredo (1.1.5-2) unstable; urgency=low
 
   * Remove bogus chkconfig entries from initscript.
diff -ur miredo-1.1.5_orig/debian/control miredo-1.1.5/debian/control
--- miredo-1.1.5_orig/debian/control    2009-10-07 19:16:07.000000000 +0200
+++ miredo-1.1.5/debian/control 2009-10-07 18:42:12.000000000 +0200
@@ -12,7 +12,7 @@
 Package: miredo
 Architecture: any
 Pre-Depends: adduser, makedev (>= 2.3.1-62) | udev
-Depends: ${shlibs:Depends}, ${misc:Depends}, iproute
+Depends: ${shlibs:Depends}, ${misc:Depends}, iproute [!hurd-i386 
!kfreebsd-i386 !kfreebsd-amd64], freebsd-net-tools [kfreebsd-i386 
kfreebsd-amd64]
 Description: Teredo IPv6 tunneling through NATs
  The Teredo IPv6 tunneling protocol encapsulates IPv6 packets into UDP/IPv4
  datagrams, to allow hosts behind NAT devices to access the IPv6 Internet.
diff -ur miredo-1.1.5_orig/debian/miredo.init miredo-1.1.5/debian/miredo.init
--- miredo-1.1.5_orig/debian/miredo.init        2009-10-07 19:16:07.000000000 
+0200
+++ miredo-1.1.5/debian/miredo.init     2009-10-07 19:12:41.000000000 +0200
@@ -41,15 +41,22 @@
                echo "$DAEMON not starting."
                exit 0
        fi
-       if [ -e /proc/sys/kernel/modprobe ]; then
-               `cat /proc/sys/kernel/modprobe` tun 2>/dev/null
-               `cat /proc/sys/kernel/modprobe` ipv6 2>/dev/null
-       fi
-       if [ ! -e /dev/net/tun ]; then
-               echo "/dev/net/tun does not exist."
-               echo "$DAEMON cannot be started."
-               exit 0
-       fi
+        if [ `uname -s` = Linux ]; then
+               if [ -e /proc/sys/kernel/modprobe ]; then
+                       `cat /proc/sys/kernel/modprobe` tun 2>/dev/null
+                       `cat /proc/sys/kernel/modprobe` ipv6 2>/dev/null
+               fi
+               if [ ! -e /dev/net/tun ]; then
+                       echo "/dev/net/tun does not exist."
+                       echo "$DAEMON cannot be started."
+                       exit 0
+               fi
+        fi
+        if [ `uname -s` = GNU/kFreeBSD ]; then
+               if ! kldstat | grep if_tun; then
+                       kldload if_tun
+               fi
+        fi
 }
 
 check_conf_file() {
---snap---

This patch suffices to get the teredo interface up, but unfortunately
it doesn't suffice to get an IPv6 address on that interface yet. It's
though a start for further debugging on kfreebsd-*.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (110, 'experimental')
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 8.0-0-686-smp
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages miredo depends on:
ii  adduser                       3.111      add and remove users and groups
ii  freebsd-net-tools             7.2-8      FreeBSD networking tools
ii  libc0.1                       2.9-27     GNU C Library: Shared libraries
ii  libfreebsd0                   0.0-8      FreeBSD compatibility library - sh
ii  libjudydebian1                1.0.5-1    C library for creating and accessi
ii  makedev                       2.3.1-89   creates device files in /dev

miredo recommends no packages.

miredo suggests no packages.

-- no debconf information

-- debsums errors found:
Your vendor has not defined Fcntl macro O_NOATIME, used at /usr/bin/debsums 
line 277.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to