summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules4
-rw-r--r--setup.py12
-rw-r--r--src/lib/Server/Hostbase/settings.py2
3 files changed, 12 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index a5b93b2f6..1b038c281 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,8 +40,4 @@ binary-install/bcfg2 ::
binary-install/bcfg2-server ::
cd doc && make manual.html
dh_installinit -p$(cdbs_curpkg) -o
- mkdir debian/bcfg2-server/usr/share/bcfg2/hostbase
- cp src/lib/Server/Hostbase/templates/* debian/bcfg2-server/usr/share/bcfg2/hostbase
- debian/bcfg2-server/usr/share/bcfg2/hostbase/webtemplates
- cp src/lib/Server/Hostbase/hostbase/webtemplates debian/bcfg2-server/usr/share/bcfg2/hostbase/webtemplates
endif
diff --git a/setup.py b/setup.py
index 0d1904b37..47d2d0feb 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,16 @@ setup(name="Bcfg2.Server",
('share/man/man5', glob("man/*.5")),
('share/man/man8', glob("man/*.8")),
('share/bcfg2/Reports/templates',
- glob('src/lib/Server/Reports/reports/templates/*')),
+ glob('src/lib/Server/Reports/reports/templates/*.html')),
+ ('share/bcfg2/Reports/templates/display',
+ glob('src/lib/Server/Reports/reports/templates/display/*')),
+ ('share/bcfg2/Reports/templates/clients',
+ glob('src/lib/Server/Reports/reports/templates/clients/*')),
+ ('share/bcfg2/Reports/templates/config_items',
+ glob('src/lib/Server/Reports/reports/templates/config_items/*')),
+ ('share/bcfg2/Hostbase/templates',
+ glob('src/lib/Server/Hostbase/hostbase/webtemplates/*')),
+ ('share/bcfg2/Hostbase/repo',
+ glob('src/lib/Server/Hostbase/templates/*')),
]
)
diff --git a/src/lib/Server/Hostbase/settings.py b/src/lib/Server/Hostbase/settings.py
index 96f73cc29..d23cb83d7 100644
--- a/src/lib/Server/Hostbase/settings.py
+++ b/src/lib/Server/Hostbase/settings.py
@@ -98,7 +98,7 @@ TEMPLATE_DIRS = (
'/usr/lib/python2.3/site-packages/Bcfg2/Server/Hostbase/hostbase/webtemplates',
'/usr/lib/python2.4/site-packages/Bcfg2/Server/Hostbase/hostbase/webtemplates',
'/usr/lib/python2.3/site-packages/Bcfg2/Server/Hostbase/templates',
- '/usr/lib/python2.4/site-packages/Bcfg2/Server/Hostbase/templates',
+ '/usr/share/bcfg2/Hostbase/templates',
)