$NetBSD$

--- python/xen/xend/osdep.py.orig	2008-01-31 11:06:54.000000000 +0100
+++ python/xen/xend/osdep.py	2008-03-02 13:38:39.000000000 +0100
@@ -22,15 +22,18 @@ import os
 _scripts_dir = {
     "Linux": "/etc/xen/scripts",
     "SunOS": "/usr/lib/xen/scripts",
+    "NetBSD": "@XENDCONFDIR@/scripts",
 }
 
 _xend_autorestart = {
+    "NetBSD": True,
     "Linux": True,
     "SunOS": False,
 }
 
 _pygrub_path = {
-    "SunOS": "/usr/lib/xen/bin/pygrub"
+    "SunOS": "/usr/lib/xen/bin/pygrub",
+    "NetBSD": "@PREFIX@/bin/pygrub",
 }
 
 _netback_type = {
@@ -93,7 +96,7 @@ _balloon_stat = {
 def _get(var, default=None):
     return var.get(os.uname()[0], default)
 
-scripts_dir = _get(_scripts_dir, "/etc/xen/scripts")
+scripts_dir = _get(_scripts_dir, "@XENDCONFDIR@/scripts")
 xend_autorestart = _get(_xend_autorestart)
 pygrub_path = _get(_pygrub_path, "/usr/bin/pygrub")
 netback_type = _get(_netback_type, "netfront")
