BinDir /usr/local/fidonet/bin/filefix
KoiToAlt /usr/local/fidonet/bin/filefix/koi82alt
AltToKoi /usr/local/fidonet/bin/filefix/alt2koi8
DosToUnix /usr/local/fidonet/bin/filefix/fromdos
Users /usr/local/fidonet/etc/filefix/Users
Areas /usr/local/fidonet/etc/filefix/Areas
IfConfig /usr/local/fidonet/etc/config
Queue /usr/local/fidonet/tmp/filefix/queue
LogFile /usr/local/fidonet/log/filefix.log
LockFile /usr/local/fidonet/tmp/filefix.lock
TicDir /usr/local/fidonet/tmp/filefix/tics
BadTic /usr/local/fidonet/tmp/filefix/bad
BadFile /usr/local/fidonet/tmp/filefix/bad
HelpFile /usr/local/fidonet/etc/filefix/help.txt
MailTo fido@domain.my
ANewsCommand /usr/local/news/bin/inews -h -S
ANewsgroups f99.notify
LastScan /usr/local/fidonet/tmp/filefix/filefix.scan
Area default
Desc The new area
Group A
Path /var/spool/uucppublic
Exclude 'files.bbs' '.+\.desc'
Newfile /usr/local/fidonet/log/new_files.log
Mode 644
DupeCheck name
Mode 444
, filefix должен иметь права r/w на
файлы в файлэхах. Если вы выписываете r/o файлэхи (NODEDIFF, R50ROUTE, etc.), то
для них можно прописать ReadOnly 1
, во избежание ;).2:5058/500 passwd UpLink * +A
2:5058/99.1 passwd2 Home_Point * +C +!
$ConfigFile = "/usr/local/fidonet/etc/filefix/config";
filefix:"|/usr/local/fidonet/bin/filefix/areaqueue /usr/local/fidonet/tmp/filefix/queue", fido
allfix: filefix
-r-sr-sr-x 1 fido fido 8192 1 ноя 16:43 areaqueue
$ mail filefix
Subject: test
test
.
EOT
2:5058/99.2 PASSWORD Test_User *
To: filefix <filefix@f99.n5058.z2.fidonet.org>
From: Test_User <Test_User@p2.f99.n5058.z2.fidonet.org>
Subject: PASSWORD
%HELP
%LIST
Nov 31 23:28:08 filefix(mgr)[28949] Read config ok.
Nov 31 23:28:09 filefix(mgr)[28949] Read Users Ok.
Nov 31 23:28:09 filefix(mgr)[28949] Read Areas Ok.
Nov 31 23:28:09 filefix(mgr)[28949] Reply to 2:5058/99.2...
Nov 31 23:28:09 filefix(mgr)[28949] Processing %HELP...
Nov 31 23:28:09 filefix(mgr)[28949] Processing %LIST...
#open (STDERR, ">>/dev/null");
#open (STDOUT, ">>/dev/null");
Can't locate /usr/share/perl/errno.ph in @INC (did you run h2ph?) (@INC
contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./filefix line 117.
CONFIG = "/usr/local/fidonet/etc/filefix/config"
CONFIGDIR = "/usr/local/fidonet/etc/filefix"
BINDIR = "/usr/local/fidonet/bin/filefix"
OWNER = fido
GROUP = fido
OPTS = -DSECURE_CONFIG
$ ls -la /usr/local/fidonet/etc/filefix
total 16
drwxr-xr-x 3 fido fido 512 15 фев 11:33 .
drwxr-xr-x 4 fido fido 512 17 ноя 15:14 ..
-rw-r--r-- 1 fido fido 548 15 фев 11:33 areagroups
-rw-r--r-- 1 fido fido 384 15 фев 11:33 areagroups.help
-rw-r--r-- 1 fido fido 1396 15 фев 11:33 areas
-rw-r--r-- 1 fido fido 913 15 фев 11:33 areas.help
-rw-r--r-- 1 fido fido 68 15 фев 11:33 autohatch.conf
-rw-r--r-- 1 fido fido 3071 15 фев 11:33 config
-rw-r--r-- 1 fido fido 483 15 фев 11:33 domains
-rw-r--r-- 1 fido fido 764 15 фев 11:33 help
-rw------- 1 fido fido 785 15 фев 11:33 users
-rw-r--r-- 1 fido fido 450 15 фев 11:33 users.help
$ ls -la /usr/local/fidonet/bin/filefix
total 278
drwxr-xr-x 3 fido fido 512 15 фев 11:36 .
drwxr-xr-x 5 fido fido 512 15 фев 11:36 ..
---s--x--- 1 fido fido 263052 15 фев 11:36 gtic
-rwxr-xr-x 1 root fido 106 15 фев 11:36 gtic.announce
-rwxr-xr-x 1 root fido 997 15 фев 11:36 gtic.autohatch
-rwxr-xr-x 1 root fido 713 15 фев 11:36 gtic.create_area
Обратите внимание на владельца каталогов etc/filefix, bin/filefix и
файлов в них.address 2:5058/99
inbound /usr/local/fidonet/inbound.pro
domains_file /usr/local/fidonet/etc/filefix/domains
outbound_mode 640
users_file /usr/local/fidonet/etc/filefix/users
areas_file /usr/local/fidonet/etc/filefix/areas
areagroups_config /usr/local/fidonet/etc/filefix/areagroups
log_file /usr/local/fidonet/log/gtic.log
lock_file /usr/local/fidonet/tmp/gtic.lck
default_newfile /usr/local/fidonet/tmp/gtic.newfile
bad_dir /usr/local/fidonet/tmp/filefix/bad
bad_dir_mode 755
help_file /usr/local/fidonet/etc/filefix/help
announce_exec /usr/local/fidonet/bin/filefix/gtic.announce
newarea_exec /usr/local/fidonet/bin/filefix/gtic.create_area
response_exec /usr/sbin/sendmail -f$msg_from root
toss_badtic yes
# используйте здесь имя, отличное
от filefix@ или allfix@
msg_from filefix-response@f99.n5058.z2.fidonet.org
make_hardlinks yes
add_point_seenby yes
newarea_group default
basepath /var/spool/uucppublic
msg_to fido
default:options:
*:options:
Area XORNBOOK
Description Orenburg : books
Group default
Path /var/spool/uucppublic/XORNBOOK
Links 2:5058/500 2:5058/99.1 !2:5058/99.2
Mode 644
Area NODEDIFF
Description FidoNet nodediffs
Group default
Path /var/spool/uucppublic/NODEDIFF
Links 2:5020/204.1000 !2:5058/500 !2:5058/99.1
Mode 644
Options readonly
Area 957PHONE
Description 2:5020/957 : Phone
Group default
Path /var/spool/uucppublic/957PHONE
Links 2:5020/0 2:5058/500
Mode 644
Options passthru
2 /usr/local/fidonet/outbound
# Этот линк имеет право автокриэйта фэх у меня, и на него же
# автоматом прокидываются все фэхи, создавшиеся от других линков
2:5058/500 PASSWORD * autocreate,auto_rw
# На пойнта фэхи кладутся на холд
2:5058/99.1 HOME * hold
# Аплинки
2:5020/0 PWD1 * autocreate
2:5030/0 PWD2 * autocreate
2:2/0 PWD3 * autocreate,auto_rw,hold
#!/bin/sh
#sendmail -f$msg_from root
/usr/local/news/bin/inews -f FileFix-Announce@f49.n5058.z2.fidonet.org -n f99.notify -t "New file announce"
lowercase_name=`echo $1|tr A-Z a-z`
исправил на lowercase_name=`echo $1|tr a-z A-Z`
.
По умолчанию, gtic извещает о создании новой фэхи сисопа нетмейлом. Я исправил
это на анонс в эху, заменив строчку echo|mail -s "fileecho $1
autocreated by gtic" $SYSOP
на printf "Filearea $1
created at 2:5058/99 by $2\n\n--- gtic 1.3b\n" | /usr/local/news/bin/inews
-f FileFix-Announce@f99.n5058.z2.fidonet.org -n f99.notify -t "New filearea
created"
allfix: filefix
filefix: "|/usr/local/fidonet/bin/filefix/gtic -m", fido
This is a part of "HOWTO : fidonet software for unix", http://howto.id.ru Original of this document is located at http://howto.id.ru/filefix.html Copyright (c) Vitaly Kuharev, 2:5058/49@fidonet, 1999-2001 Last updated : March, 09, 2001 |