Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138393

Summary: hylafax little enhancements
Product: Gentoo Linux Reporter: Alessandro Zarrilli <alessandro>
Component: [OLD] ServerAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: enhancement CC: m.debruijne
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/cron.d/hylafax.cron
/etc/modules.d/hylafax

Description Alessandro Zarrilli 2006-06-28 14:00:30 UTC
1) It sould be nice to let the hylafax ebuild automatically install a cron job caring about fax queue cleaning, as suggested in:
http://www.hylafax.org/man/current/faxqclean.1m.html
http://www.hylafax.org/man/current/faxcron.1m.html
I propose an attached cron file, to be put in /etc/cron.d



2) If you are using iptables on a HylaFAX server, the first time you try to connect unisng any of the available HylaFAX clients you will have a very big headache! Even if you open the 4559 port in iptables, it's not gonna work! Infact, HylaFAX acts as an FTP server, just on the unusual 4559 port. So you will need to load ip_conntrack_ftp iptables module, and you will need to tell it to track FTP connections not only on the usual 21 port, but also on the 4559. So I propose to:

a) put a new module options file in /etc/modules.d
b) warn the user (by the end of the emerging process) to load ip_conntrack_ftp in /etc/modules.autoload.d/kernel-2.6 in case he uses iptables
Comment 1 Alessandro Zarrilli 2006-06-28 14:01:37 UTC
Created attachment 90374 [details]
/etc/cron.d/hylafax.cron

Cron job to cleanup fax queues
Comment 2 Alessandro Zarrilli 2006-06-28 14:03:28 UTC
Created attachment 90375 [details]
/etc/modules.d/hylafax
Comment 3 Alessandro Zarrilli 2006-06-28 14:07:22 UTC
I forgot one thing about the second enhancement: of course it would be nice if the ebuild would perform a modules-update after putting the file in /etc/modules.d
Comment 4 Steve Arnold archtester gentoo-dev 2007-08-24 03:49:10 UTC
I've added these files to the tree, as well as an elog message in the 4.3.1 ebuild, but I'm leaving it to the users to install or adapt as they need to.  There are several possible cron packages (not all of which respect cron.d) and many many kernel configs, so I'm reluctant to make any unwarranted assumptions.  Thanks for the tips/files.