Installation Instructions for sysv-rc-conf
==========================================

.5) Debian Users

  If you're a Debian user sysv-rc-conf is already available.

  # apt-get install sysv-rc-conf

1) Install required pre-reqs

  Required libs:

    ncurses
    librsvg2-bin (For logo rendering)

  Required Perl modules:

    Term::ReadKey
    Curses
    Curses::UI
    List::UtilsBy

  Optional Perl modules:

    Test::Pod (For Term::ReadKey tests)

1.1) Package Management

  Before going through the trouble of installing all of the above packages
  manually do yourself a favor and see if your systems package management
  has any or all of these packages. So check those rpms, debs, ebuilds, or
  what-have-you.

1.5) Manual installation

  You can get ncurses from <http://www.gnu.org/software/ncurses/ncurses.html>
  Most systems will already have this installed, though you may need to install
  the "development" version of ncurses. On RPM based Linux distros for instance,
  this is probably called ncurses-devel.

  You can get any of the perl modules from CPAN <http://search.cpan.org>

  You can get Term::ReadKey, Curses, and Curses::UI from any CPAN mirror. The
  typical way to install most Perl modules applies.

  # perl -MCPAN -e 'install Term::ReadKey'
  # perl -MCPAN -e 'install Curses::UI'

  If you have problems installing Curses::UI with CPAN, try downloading the
  package and manually running the tests. They may actually work anyway by
  following the procedures in its INSTALL file.

  Okay, you should be done with the manual installation of the pre-reqs.

2) Decide where you want to install

  The default is to install under /usr/local. If you want to install somewhere
  else, such as /opt or /usr if you are packaging for a distribution, then
  prepare to define and use a PREFIX environment variable in step 4.

3) Edit the Makefile

  By default sysv-rc-conf gets installed to /usr/local/sbin/sysv-rc-conf and
  the man page goes to /usr/local/share/man/man8/sysv-rc-conf.8.gz (for the
  default PREFIX location). The Multistate.pm widget module and LSB.pm
  helper module get installed under /usr/local/lib/site_perl. Additional
  files are installed for desktop integration. If that's fine with you, skip
  to step 4.

  If you want to change the installation paths, edit the variables defined
  at the top of the Makefile.

4) Install it

  Once the Makefile is tailored to your liking, install the program.

  For example,

    make install

  Or,

    PREFIX=/usr make install
