Changeset 216 for trunk/dns.cgi


Ignore:
Timestamp:
01/04/12 23:25:56 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Found some not-so-little things missing for a tarball

  • munging of @INC via "use lib" needs to be pointed to the right path on install
  • session dir should be configurable (eg, to put it in /var/lib/dnsdb when packaged scripts + templates all go in /usr/share/dnsdb)
  • Finally remove lingering unused viadns.css
  • Remember to install template files on 'make install'
  • Get a good start on filling out INSTALL halfway properly by copy-pasting the IPDB version
  • Add all-commented example config file to be installed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r213 r216  
    3232#die "argh! \@INC got tainted!" if is_tainted(@INC);
    3333
    34 # custom modules
    35 use lib '.';
     34# don't remove!  required for GNU/FHS-ish install from tarball
     35use lib '.';    ##uselib##
     36
    3637use DNSDB qw(:ALL);
    3738
     
    4142# Let's do these templates right...
    4243my $templatedir = "templates";
    43 my $sessiondir = "session";
    4444
    4545# Set up the CGI object...
     
    6464# persistent stuff needed on most/all pages
    6565my $sid = ($webvar{sid} ? $webvar{sid} : undef);
    66 my $session = new CGI::Session("driver:File", $sid, {Directory => $sessiondir})
     66my $session = new CGI::Session("driver:File", $sid, {Directory => $config{sessiondir}})
    6767        or die CGI::Session->errstr();
    6868#$sid = $session->id() if !$sid;
Note: See TracChangeset for help on using the changeset viewer.