$NetBSD: patch-aa,v 1.2 2008/12/26 19:51:56 epg Exp $

--- setup.py.orig	2011-03-24 23:14:27.000000000 +0000
+++ setup.py
@@ -18,6 +18,7 @@
 
 """Loggerhead is a web viewer for projects in bazaar"""
 
+import os
 from distutils.core import setup
 
 import loggerhead
@@ -64,7 +65,7 @@ setup(
                                    "static/javascript/yui/build/yui-base/*",
                                    "static/images/*"]},
     data_files = [
-        ('share/man/man1', ['start-loggerhead.1',
+        (os.getenv('PKGMANDIR', 'share/man') + '/man1', ['start-loggerhead.1',
                             'stop-loggerhead.1',
                             'serve-branches.1']),
         ('share/doc/loggerhead', ['loggerhead.conf.example']),
