Catalog

 view release on metacpan or  search on metacpan

cgi-bin/Makefile  view on Meta::CPAN

#
# Non GNU make need this before implicit rule
#
.SUFFIXES: .PL

.PL:
	@perl $<

install:
	for i in $(EXE) ; do \
	  rm -f $(cgidir)/$$i ; \
	  cp $$i $(cgidir) ; \
	  chmod +x $(cgidir)/$$i ; \
	done

clean:
	rm -f *~

realclean:
	rm -f $(EXE)

test:

conf/Makefile.PL  view on Meta::CPAN

#
# This -*- perl -*- script writes the Makefile for Catalog

require 5.005;
use strict;

require "./lib.pl";

conf_env(
	      'infodir' => 'INFODIR',
	      'cgidir' => 'CGIDIR',
	      'cgipath' => 'CGIPATH',
	      'config_dir' => 'CONFIG_DIR',
	      'use_config' => 'USE_CONFIG',
	      'htmldir' => 'HTMLDIR',
	      'htmlpath' => 'HTMLPATH',
	      'userid' => 'USERID',
	      'db_type' => 'DB_TYPE',
	      );

sub misc_ask {

conf/Makefile.PL  view on Meta::CPAN

    } else {
	$install_conf->{'chown'} = ':';
    }
    
    unload_config($install_conf, "install.conf");
}

sub install_ask {
    my($install_conf) = load_config("install.conf");

    getparam('cgidir', $install_conf,
	    {
		'prompt' => "
The absolute pathname of the directory where the cgi-bin
scripts will be installed",
                'mandatory' => 1,
                'directory' => 1,
                'absolute' => 1,
    });
    getparam('cgipath', $install_conf,
	    {
		'prompt' => "
What is the CGIPATH corresponding to CGIDIR
(CGIDIR = $install_conf->{'cgidir'}) ? 
CGIPATH must be the path used to access the cgi-bin located in CGIDIR
when browsing from the WEB. For instance, if CGIDIR is 
/home/httpd/cgi-bin, the CGIPATH is very likely to be /cgi-bin",
                'mandatory' => 1,
                'absolute' => 1,
    });
    $install_conf->{'config_dir'} = $install_conf->{'cgidir'};
    getparam('config_dir', $install_conf,
	    {
		'prompt' => "
The absolute pathname of the directory where the default
configuration files will be installed. If not specified the 
default configuration files will be installed in the CGIDIR 
directory",
                'undef_comment' => "CONFIG_DIR set to CGIDIR ($install_conf->{'cgidir'})\n",
                'directory' => 1,
                'absolute' => 1,
    });
    getparam('htmldir', $install_conf,
            {
                'prompt' => "
The absolute pathname of the directory where the HTML
material (documentation, images, examples) will be installed. It is
a good idea to put all this in a sub directory specific to Catalog so
that it will not interfere with other applications",

conf/install.conf  view on Meta::CPAN

#
# Emacs info format documentat directory
#
infodir = /spare1/local/info
#
# cgi-bin directory
#
cgidir = /spare1/local/cgi-bin
#
# cgi-bin directory HTML path
#
cgipath = /cgi-bin
#
# configuration files (*.conf) installation directory
#
config_dir = /spare1/local/cgi-bin
#
# Catalog material directory

conf/lib.pl  view on Meta::CPAN

#
# Usage: 
# in a Makefile.PL
#
# require "lib.pl" 
# #
# # Mapping between configuration label and environment variables
# #
# conf_env(
#	      'infodir' => 'INFODIR',
#	      'cgidir' => 'CGIDIR',
#	      'cgipath' => 'CGIPATH',
#	      'config_dir' => 'CONFIG_DIR',
#	      'use_config' => 'USE_CONFIG',
#	      'htmldir' => 'HTMLDIR',
#	      'htmlpath' => 'HTMLPATH',
#	      'userid' => 'USERID',
#	      'home' => 'MYSQL_HOME',
#	      'user' => 'MYSQL_USER',
#	      'passwd' => 'MYSQL_PASSWORD',
#	      'host' => 'MYSQL_HOST',
#	      'base' => 'MYSQL_BASE',
#	      'port' => 'MYSQL_PORT',
#	      'unix_port' => 'MYSQL_UNIX_PORT',
#	      );
# #
# # Get configuration parameters
# #
# sub install_ask {
#    my($install_conf) = load_config("install.conf");
#
#    getparam('cgidir', $install_conf,
#	    {
#		'prompt' => "
#The absolute pathname of the directory where the cgi-bin
#scripts will be installed",
#                'mandatory' => 1,
#                'directory' => 1,
#                'absolute' => 1,
#    });
#
#	yesno('html', \%h,

doc/catalog.texinfo  view on Meta::CPAN

@cindex configuration parameters

Used by the sqledit package (sqledit.pm).

This configuration file is created during the installation. It is
used by @strong{sqledit} to find the location of the @code{Catalog}
components.

@table @samp

@cindex cgidir, installation parameter
@item cgidir (optional)
The absolute path of the cgi-bin directory.

@cindex cgipath, installation parameter
@item cgipath (optional)
The absolute location of the cgi-bin directory.

@cindex config_dir, installation parameter
@item config_dir (optional)
The absolute path of the directory containing configuration files.

doc/catalog.texinfo  view on Meta::CPAN

Here is an example configuration file:

@example
#
# Emacs info format documentat directory
#
infodir = 
#
# cgi-bin directory
#
cgidir = /home/httpd/cgi-bin
#
# cgi-bin directory HTML path
#
cgipath = /cgi-bin
#
# configuration files (*.conf) installation directory
#
config_dir = /home/httpd/cgi-bin
#
# Catalog material directory

example/Makefile  view on Meta::CPAN

BASE = catalog_example

include ../conf/install.conf
include ../conf/mysql.conf

all:

install:
	rm -fr $(htmldir)/index.html $(cgidir)/browse $(cgidir)/admin $(cgidir)/DMOZ
	perl -p -e 's|_CGIPATH_|$(cgipath)|g' < index.html > $(htmldir)/index.html
	cp -rp admin browse DMOZ $(cgidir)
	$(MAKE) DIR=browse CGI=Catalog configure
	$(MAKE) DIR=admin CGI=Catalog configure
	$(MAKE) DIR=DMOZ CGI=dmoz BASE=dmoz configure
	$(MAKE) BASE=dmoz create
	$(MAKE) load

configure:
	cd $(cgidir)/$(DIR) ; \
	cp $(cgidir)/$(CGI) . ; \
	perl -p -e 's|^base.*|base = $(BASE)|' < $(config_dir)/mysql.conf > mysql.conf ; \
	ln -s $(config_dir)/cgi.conf . ; \
	ln -s $(config_dir)/db.conf . ; \
	ln -s $(config_dir)/install.conf . ; \
	if [ -f sqledit.conf ] ; then perl -pi -e 's|_HTMLPATH_|$(htmlpath)|' sqledit.conf ; fi

clean:

realclean:



( run in 1.920 second using v1.01-cache-2.11-cpan-97f6503c9c8 )