summaryrefslogblamecommitdiffstats
path: root/sample/LocalVars.pm
blob: 34a4d19dfd701f2d463be28d885a6c8a5e494c67 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                           
                          
                        
                                                                  
                              
  



                       

                        








                                                      
                                                      
                        
 



                                                       
                                  
                                    



                          
                      
 



                                      
  
#!/usr/bin/perl
package LocalVars;
require Exporter;
@ISA = qw/Exporter/;
@EXPORT = qw/
    $hostname $MYHOSTNAME $FQDN $SMTPSERVER
    $BBSHOME $JOBSPOOL $TMP
    $TAR $LYNX $WGET $GREP
    $BLOGDATA $BLOGCACHE
    $BLOGdbname $BLOGdbhost $BLOGdbuser $BLOGdbpasswd $BLOGdefault
    $MANDATA $MANIDX $MANCACHE
/;

# host
$hostname = 'ptt';
$MYHOSTNAME = 'ptt.cc';
$FQDN = 'ptt.cc';
$SMTPSERVER = 'ptt2.cc';

# dir
$BBSHOME = '/home/bbs';
$JOBSPOOL = "$BBSHOME/jobspool";
$TMP = '/tmp';

# program
$TAR = '/usr/bin/tar';
$LYNX = '/usr/local/bin/lynx';   # /usr/ports/www/lynx
$WGET = '/usr/local/bin/wget';   # /usr/ports/www/wget
$GREP = '/usr/bin/grep';

# BLOG:
#    $BLOGDATA 是用來放置 Blog 資料的路徑
#    $BLOGCACHE是用來放置 Template compiled 資料的路徑,
#              須為 apache owner 可寫入
$BLOGDATA = '/home/bbs/blog/data';
$BLOGCACHE = '/home/bbs/blog/cache';
$BLOGdbname = 'myblog';
$BLOGdbhost = 'localhost';
$BLOGdbuser = 'root';
$BLOGdbpasswd = '';
$BLOGdefault = 'Blog';

$MANDATA = '/home/web/ptt.man.data';
$MANIDX = '/home/web/ptt.man.data';
$MANCACHE = '/home/web/ptt.man.cache';

1;