2 # Author: James Brister <brister@vix.com> -- berkeley-unix --
3 # Start Date: Sat, 24 Aug 1996 22:08:19 +0200
5 # File: innshellvars.pl
6 # RCSId: $Id: innshellvars.pl.in 7466 2005-12-12 03:04:08Z eagle $
7 # Description: Set up any and all variables that an INN perl script
12 eval `@prefix@/bin/innconfval -p`;
14 $newshome = $pathnews;
15 $newslib = "@LIBDIR@";
16 $spooldir = $pathspool;
17 $most_logs = $pathlog;
19 $errlog = "${most_logs}/errlog" ;
20 $log = "${most_logs}/news" ;
22 $spool = $patharticles;
23 $overviewdir = $pathoverview;
24 $archivedir = $patharchive;
25 $badnews = "$pathincoming/bad";
26 $spoolnews = $pathincoming;
27 $batch = $pathoutgoing;
28 $incoming = $pathincoming;
34 $newslbin = "$pathnews/local";
36 $active = "${pathdb}/active" ;
37 $activetimes = "${pathdb}/active.times" ;
38 $ctlfile = "${newsetc}/control.ctl" ;
39 $ctlwatch = "${newsetc}/innwatch.ctl" ;
40 $history = "${pathdb}/history" ;
41 $newactive = "${pathdb}/active.tmp" ;
42 $newsfeeds = "${newsetc}/newsfeeds" ;
43 $newsgroups = "${pathdb}/newsgroups" ;
44 $oldactive = "${pathdb}/active.old" ;
45 $path_motd = "${newsetc}/motd.news" ;
46 $localgroups = "$newsetc/localgroups" ;
47 $expirectl = "${newsetc}/expire.ctl" ;
49 $controlprogs = $pathcontrol;
50 $inews = "${newsbin}/inews" ;
51 $innconfval = "${newsbin}/innconfval" ;
52 $innd = "${newsbin}/innd" ;
53 $inndstart = "${newsbin}/inndstart" ;
54 $innwatch = "${newsbin}/innwatch" ;
55 $rnews = "${newsbin}/rnews" ;
56 $perl_startup_innd = "$pathfilter/startup_innd.pl" ;
57 $perl_filter_innd = "$pathfilter/filter_innd.pl" ;
58 $perl_filter_nnrpd = "$pathfilter/filter_nnrpd.pl" ;
59 $python_filter_innd = "$pathfilter/filter_innd.py" ;
60 $path_python_inn_module ="$pathfilter/INN.py" ;
61 $path_tcl_startup = "$pathfilter/startup.tcl" ;
62 $path_tcl_filter = "$pathfilter/filter.tcl" ;
64 $daily = "${locks}/LOCK.news.daily" ;
66 $newscontrol = "${innddir}/control" ;
67 $nntpconnect = "${innddir}/nntpin" ;
68 $serverpid = "${innddir}/innd.pid" ;
69 $innwstatus = "${innddir}/innwatch.status" ;
70 $watchpid = "${innddir}/innwatch.pid" ;
72 $awk = "@_PATH_AWK@" ;
73 $sed = "@_PATH_SED@" ;
74 $inndf = "${newsbin}/inndf" ;
75 $egrep = "@_PATH_EGREP@" ;
76 $gpgv = "@PATH_GPGV@" ;
77 $perl = "@_PATH_PERL@" ;
78 $pgp = "@_PATH_PGP@" ;
79 $sort = "@_PATH_SORT@" ;
80 $getftp = "@GETFTP@" ;
81 $uux = "@_PATH_UUX@" ;
83 $compress = "@COMPRESS@" ;
85 $uncompress = "@UNCOMPRESS@" ;
86 $log_compress = "@LOG_COMPRESS@" ;
87 $z = "@LOG_COMPRESSEXT@" ;
89 if ($ovmethod && $ovmethod eq "ovdb") {
90 $ENV{'DB_HOME'} = $pathoverview;
93 ($tempsock = "${innddir}/ctlinndXXXXXX") =~ s!.*/(.*)XXXXXX$!$1*! ;
94 ($tempsockdir = "${innddir}/ctlinndXXXXXX") =~ s!/[^/]*$!! ;
96 $have_uustat = ("@HAVE_UUSTAT@" eq "DO" ? 1 : 0) ;
98 $newsmaster = '@NEWSMASTER@' ;
99 $newsuser = '@NEWSUSER@' ;
100 $newsgroup = '@NEWSGRP@' ;
102 $ENV{'TMPDIR'} = $pathtmp;
104 $spooltemp = $pathtmp;
106 $umask = @NEWSUMASK@ ;
108 $syslog_facility = lc("@SYSLOG_FACILITY@");
109 $syslog_facility =~ s/log_//;
112 $ENV{'PATH'} = "${newslbin}:${newsbin}:$ENV{'PATH'}:/bin:/usr/bin:/usr/ucb" ;
114 $ENV{'HOME'} = ${pathnews};