From 728bea56ffacee087930106197fadb240a13e34d Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 9 Nov 2008 20:16:21 +0000 Subject: [PATCH] Use dh_installdirs, dh_install, dh_link for installation --- debian/memories.dirs | 8 ++++++++ debian/memories.links | 1 + debian/rules | 22 ++++++++-------------- 3 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 debian/memories.dirs create mode 100644 debian/memories.links diff --git a/debian/memories.dirs b/debian/memories.dirs new file mode 100644 index 0000000..982e4ee --- /dev/null +++ b/debian/memories.dirs @@ -0,0 +1,8 @@ +etc/memories +etc/memories/templates +usr/lib/cgi-bin +usr/share/lintian/overrides +usr/share/perl5/Memories +var/lib/memories +var/lib/memories/sessionlock +var/lib/memories/sessions diff --git a/debian/memories.links b/debian/memories.links new file mode 100644 index 0000000..43e10c2 --- /dev/null +++ b/debian/memories.links @@ -0,0 +1 @@ +etc/memories/Config.pm usr/share/perl5/Memories/Config.pm diff --git a/debian/rules b/debian/rules index ff2c287..0a83a52 100755 --- a/debian/rules +++ b/debian/rules @@ -10,23 +10,17 @@ binary-arch : binary-indep : dh_testroot - install -d debian/memories/usr/share/perl5/Memories - install -m 644 Memories.pm debian/memories/usr/share/perl5/ - install -m 644 Memories/*.pm debian/memories/usr/share/perl5/Memories/ - install -d debian/memories/usr/lib/cgi-bin + dh_installdirs + dh_install Memories.pm usr/share/perl5/ + dh_install Memories/*.pm usr/share/perl5/Memories/ install -m 755 debian/memories.cgi debian/memories/usr/lib/cgi-bin/ - install -d debian/memories/etc/memories install -m 644 Memories/Config.pm.example debian/memories/etc/memories/Config.pm - ln -s /etc/memories/Config.pm debian/memories/usr/share/perl5/Memories/ - install -d debian/memories/etc/memories/templates - install -m 644 debian/apache.conf debian/memories/etc/memories/ - install -d debian/memories/usr/share/memories - cp -dR templates debian/memories/usr/share/memories/ - install -m 644 memories.sql debian/memories/usr/share/memories/ - install -d debian/memories/var/lib/memories - install -d -o www-data -g www-data -m 770 debian/memories/var/lib/memories/sessions debian/memories/var/lib/memories/sessionlock - install -d debian/memories/usr/share/lintian/overrides + dh_install debian/apache.conf etc/memories/ + dh_install memories.sql templates usr/share/memories/ + chown www-data:www-data debian/memories/var/lib/memories/session* + chmod 770 debian/memories/var/lib/memories/session* install -m 644 debian/lintian-overrides debian/memories/usr/share/lintian/overrides/memories + dh_link dh_perl dh_installchangelogs Changes dh_installdocs -- 2.39.5