Fix paths and debian packaging.

Look for templates and static files in /usr/share/ngcp-panel.
Actually package the share/ folder.
Add config file to /etc/ngcp-panel/ngcp_panel.conf
agranig/1_0_subfix
Andreas Granig 12 years ago
parent 0816cbc9fd
commit ed02cf232d

2
debian/control vendored

@ -32,6 +32,7 @@ Build-Depends: debhelper (>= 8),
libtrycatch-perl,
libhash-merge-simple-perl,
liburi-encode-perl,
libdata-printer-perl,
ngcp-schema
Standards-Version: 3.9.4
Homepage: http://sipwise.com/
@ -68,6 +69,7 @@ Depends: libcatalyst-actionrole-acl-perl,
libtext-csv-xs-perl,
libhash-merge-simple-perl,
liburi-encode-perl,
libdata-printer-perl,
ngcp-schema,
${misc:Depends},
${perl:Depends}

@ -0,0 +1,2 @@
share/* usr/share/
ngcp_panel.conf etc/ngcp-panel/

@ -45,8 +45,13 @@ __PACKAGE__->config(
disable_component_resolution_regex_fallback => 1,
enable_catalyst_header => 1, # Send X-Catalyst header
encoding => 'UTF-8',
'Plugin::ConfigLoader' => {
file => '/etc/ngcp-panel/ngcp_panel.conf',
},
'View::HTML' => {
INCLUDE_PATH => [
'/usr/share/ngcp-panel/templates',
'/usr/share/ngcp-panel/layout',
__PACKAGE__->path_to('share', 'templates'),
__PACKAGE__->path_to('share', 'layout'),
],
@ -61,6 +66,7 @@ __PACKAGE__->config(
'Plugin::Static::Simple' => {
include_path => [
'/usr/share/ngcp-panel/static',
__PACKAGE__->path_to('share', 'static'),
],
mime_types => {

Loading…
Cancel
Save