Creating necessary configuration files on package installation

Hi,

I am writing a fairly customised piece of software. And some parts of
the software are configurable - meaning that there exists some sort of
configuration file like httpd.conf (for Apache 2). Now, I want to be
able to set this up upon package installation.

Is there a procedure I can use to do this?
david.g.hong [ Mo, 21 April 2008 02:39 ] [ ID #1947093 ]

Re: Creating necessary configuration files on package installation

On Apr 21, 10:39 am, "David G. Hong" <david.g.h... [at] gmail.com> wrote:
> Hi,
>
> I am writing a fairly customised piece of software. And some parts of
> the software are configurable - meaning that there exists some sort of
> configuration file like httpd.conf (for Apache 2). Now, I want to be
> able to set this up upon package installation.
>
> Is there a procedure I can use to do this?

May be I should clarify a little more.

Ultimately, I want to setup somethings like:

$PREFIX/conf/prog.conf

And have prog.conf contain some generic default configuration
settings. And this should be created upon:

perl Makefile.pl
make
make test
make install


Thanks,
David
david.g.hong [ Mo, 21 April 2008 03:12 ] [ ID #1947095 ]

Re: Creating necessary configuration files on package installation

On Apr 21, 10:39 am, "David G. Hong" <david.g.h... [at] gmail.com> wrote:
> Hi,
>
> I am writing a fairly customised piece of software. And some parts of
> the software are configurable - meaning that there exists some sort of
> configuration file like httpd.conf (for Apache 2). Now, I want to be
> able to set this up upon package installation.
>
> Is there a procedure I can use to do this?

May be I should clarify a little more.

Ultimately, I want to setup somethings like:

$PREFIX/conf/prog.conf

And have prog.conf contain some generic default configuration
settings. And this should be created upon:

perl Makefile.pl
make
make test
make install


Thanks,
David
david.g.hong [ Mo, 21 April 2008 03:12 ] [ ID #1947096 ]
Perl » comp.lang.perl.misc » Creating necessary configuration files on package installation

Vorheriges Thema: FAQ 1.10 Can I do [task] in Perl?
Nächstes Thema: FAQ 1.3 Which version of Perl should I use?