perl-Config-Secure-0.0.1-alt1.noarch.rpm


Advertisement

Description

perl-Config-Secure - Perl extension for scripts run with PSC

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Config-Secure
Package version 0.0.1
Package release alt1
Package architecture noarch
Package type rpm
Installed size 8.45 KB
Download size 8.45 KB
Official Mirror ftp.altlinux.org
Config::Secure is a module for reading config data passed in by.Perl Secure Conf (PSC) which can be found at http://psc.sourceforge.net/
It is really not useful unless your script is called through PSC.
PSC is a setuid C program which opens a protected conf file, drops
its permissions, and then runs an unprotected perl script.
Theoretically that perl script uses this module, and this module
then opens the filehandle and parses the data to return it to
you in a nice hash (or hashref). If the conf file is writeable
by the setuid user, you may also use write_conf to write back to
the conf file. For more info on PSC, see its documentation.
This module expects conf files to be in the form of
key: value
lines beginning with a # are comment lines. I have done my best
to maintain conf file comments on writeback. If you want to have
comments and write to your conf file, use the form of
foo: bar
that way your comments will stay associated with their proper
keys.
You may have more than one value for a certain key, if you do this
the value in the hash will automagically change from a scalar value
to a hashref containing all the values in the order they were defined
in the file. It is up to you to catch this if you put in multiple
values for one key.
If you do not wish to use Config::Secure's get and write functions
you are free to write your own, though I would suggest you still
use Config::Secure to initialize your program. If you wish to do
this I have provided the get_fh method. Calling get_fh returns you
the filehandle to the file, and a flag as to whether or not you
may write to it. Use it as follows:
my($fh,$writeable) = Config::Secure::get_fh();
You may then do whatever you want with the file.
Config::Secure does a neat little trick for you, it sets
$0 to contain the path to the psc link that was called
to invoke the script. This makes it easier to replace any
existing scripts that may rely on $0. Keep in mind, though,
that FindBin will point to the actual script, not the same
as the PSC link.

Alternatives

Package Version Architecture Repository
perl-Config-Secure - - -

Requires

Name Value
/usr/share/perl5 -
perl(AutoLoader.pm) -
perl(Fcntl.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Config/Secure.pm) = 0.0.001
perl-Config-Secure = 0.0.1-alt1

Download

Type URL
Binary Package perl-Config-Secure-0.0.1-alt1.noarch.rpm
Source Package perl-Config-Secure-0.0.1-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Config-Secure rpm package:
    # sudo apt-get install perl-Config-Secure

Files

Path
/usr/share/doc/perl-Config-Secure-0.0.1/Changes
/usr/share/doc/perl-Config-Secure-0.0.1/README
/usr/share/perl5/Config/Secure.pm
/usr/share/perl5/auto/Config/
/usr/share/perl5/auto/Config/Secure/autosplit.ix

See Also

Package Description
perl-Config-Setting-0.04-alt1.noarch.rpm Perl extension for configuration files
perl-Config-Settings-0.02-alt1.noarch.rpm Parsing pleasant configuration files
perl-Config-Simple-Conf-2.003-alt1.noarch.rpm A fast and lightweight configuration file handler
perl-Config-Simple-Extended-0.16-alt1.noarch.rpm Extend Config::Simple w/ Configuration Inheritance, chosen by URL
perl-Config-Simple-Inherit-0.04-alt1.noarch.rpm Inherit values from, overwrite a base configuration
perl-Config-Singleton-0.005-alt1.noarch.rpm one place for your app's configuration
perl-Config-Source-0.08-alt1.noarch.rpm manage a configuration from multiple sources
perl-Config-Station-0.002001-alt1.noarch.rpm Load configs from files and the environment
perl-Config-Strict-0.07-alt1.noarch.rpm Add strict name- and type-checking to configuration data
perl-Config-TT2-0.53-alt1.noarch.rpm Reading configuration files with the Template-Toolkit parser
perl-Config-Terse-0.01-alt1.noarch.rpm delimited key and value:
perl-Config-Tiny-Ordered-1.02-alt1.noarch.rpm Read/Write ordered .ini style files with as little code as possible
perl-Config-Tiny-Singleton-0.02-alt1.noarch.rpm singleton-pattern implementation for Config::Tiny
perl-Config-TinyDNS-1-alt1.noarch.rpm Manipulate tinydns' data file
perl-Config-TinyDNS-scripts-1-alt1.noarch.rpm Config-TinyDNS scripts
Advertisement
Advertisement