chiark / gitweb /
compile fixes for inotify
[inn-innduct.git] / scripts / innshellvars.tcl.in
1 # -*- tcl -*-
2 #
3 # Author:       James Brister <brister@vix.com> -- berkeley-unix --
4 # Start Date:   Sat, 24 Aug 1996 23:45:34 +0200
5 # Project:      INN
6 # File:         innshellvars.tcl
7 # RCSId:        $Id: innshellvars.tcl.in 7466 2005-12-12 03:04:08Z eagle $
8 # Description:  Set up any and all variables that an INN tcl script
9 #               might need.
10
11 eval `@prefix@/bin/innconfval -t`
12
13 set inn_newshome "$inn_pathnews"
14 set inn_newslib "@LIBDIR@"
15 set inn_spooldir "$inn_pathspool"
16 set inn_most_logs "$inn_pathlog"
17
18 set inn_errlog "${inn_most_logs}/errlog"
19 set inn_log "${inn_most_logs}/news"
20
21 set inn_batch "${inn_pathoutgoing}"
22 set inn_incoming "${inn_pathincoming}"
23 set inn_spool "${inn_patharticles}"
24 set inn_overviewdir "${inn_pathoverview}"
25 set inn_archivedir "${inn_patharchive}"
26 set inn_badnews "${inn_pathincoming}/bad"
27 set inn_spoolnews "${inn_pathincoming}"
28
29 set inn_newslbin "${inn_newshome}/local"
30 set inn_innddir "${inn_pathrun}"
31 set inn_locks "${inn_pathrun}"
32 set inn_newsbin "${inn_pathbin}"
33 set inn_newsetc "${inn_newshome}/etc"
34
35 set inn_active "${inn_pathdb}/active"
36 set inn_activetimes "${inn_pathdb}/active.times"
37 set inn_ctlfile "${inn_newsetc}/control.ctl"
38 set inn_ctlwatch "${inn_newsetc}/innwatch.ctl"
39 set inn_history "${inn_pathdb}/history"
40 set inn_newactive "${inn_pathdb}/active.tmp"
41 set inn_newsfeeds "${inn_newsetc}/newsfeeds"
42 set inn_newsgroups "${inn_pathdb}/newsgroups"
43 set inn_oldactive "${inn_pathdb}/active.old"
44 set inn_localgroups "${inn_newsetc}/localgroups"
45 set inn_expirectl "${inn_newsetc}/expire.ctl"
46 set inn_path_motd "${inn_newsetc}/motd.news"
47
48 set inn_daily "${inn_locks}/locks/LOCK.news.daily"
49
50 set inn_inews "${inn_newsbin}/inews"
51 set inn_innconfval "${inn_newsbin}/innconfval"
52 set inn_innd "${inn_newsbin}/innd"
53 set inn_inndstart "${inn_newsbin}/inndstart"
54 set inn_innwatch "${inn_newsbin}/innwatch"
55 set inn_rnews "${inn_newsbin}/rnews"
56 set inn_controlprogs "${inn_pathcontrol}/control"
57 set inn_perl_startup_innd "${inn_pathfilter}/startup_innd.pl"
58 set inn_perl_filter_innd "${inn_pathfilter}/filter_innd.pl"
59 set inn_perl_filter_nnrpd "${inn_pathfilter}/filter_nnrpd.pl"
60 set inn_python_filter_innd "${pathfilter}/filter_innd.py"
61 set inn_path_python_inn_module "${pathfilter}/INN.py"
62 set inn_path_tcl_startup "${inn_pathfilter}/startup.tcl"
63 set inn_path_tcl_filter "${inn_pathfilter}/filter.tcl"
64
65 set inn_newscontrol "${inn_innddir}/control"
66 set inn_nntpconnect "${inn_innddir}/nntpin"
67 set inn_innwstatus "${inn_innddir}/innwatch.status"
68 set inn_watchpid "${inn_innddir}/innwatch.pid"
69 set inn_serverpid "${inn_innddir}/innd.pid"
70
71 set inn_awk "@_PATH_AWK@"
72 set inn_sed "@_PATH_SED@"
73 set inn_perl "@_PATH_PERL@"
74 set inn_gpgv "@PATH_GPGV@"
75 set inn_pgp "@_PATH_PGP@"
76 set inn_inndf "${inn_newsbin}/inndf"
77 set inn_egrep "@_PATH_EGREP@"
78 set inn_sort "@_PATH_SORT@"
79 set inn_getftp "@GETFTP@"
80 set inn_uux "@_PATH_UUX@"
81
82 set inn_compress "@COMPRESS@"
83 set inn_gzip "@GZIP@"
84 set inn_uncompress "@UNCOMPRESS@"
85 set inn_log_compress "@LOG_COMPRESS@"
86 set inn_z "@LOG_COMPRESSEXT@"
87
88 set inn_tempsock [ eval exec basename ${inn_innddir}/ctlinndXXXXXX | $inn_sed -e {s/XXXXXX$/*/} ]
89 set inn_tempsockdir [ exec echo ${inn_innddir}/ctlinndXXXXXX | $inn_sed -e {s@/[^/]*$@@} ]
90
91 set inn_have_uustat [ expr { "@HAVE_UUSTAT@" == "DO" ? 1 : 0 } ]
92
93 set inn_newsmaster "@NEWSMASTER@"
94 set inn_newsuser "@NEWSUSER@"
95 set inn_newsgroup "@NEWSGRP@"
96
97 set env(TMPDIR) "$inn_pathtmp"
98 set inn_tmpdir "$inn_pathtmp"
99 set inn_spooltemp "$inn_pathtmp"
100
101 scan "@NEWSUMASK@" "%o" inn_umask
102
103 set env(PATH) "$inn_newslbin:$inn_newsbin:$env(PATH):/bin:/usr/bin:/usr/ucb"
104
105 set env(HOME) "$inn_pathnews"