File hylafax-6.0.4-fax_user.patch of Package hylafax
Index: config.site
================================================================================
--- config.site
+++ config.site
@@ -71,8 +71,8 @@
#
#DEFVRES="196" # default vertical res for outbound fax
#FILLORDER="MS2LSB" # bit order of cpu (MSB2LSB/LSB2MSB)
-#FAXGID="uucp" # group ID for fax user
-#FAXUID="uucp" # user ID for fax user
+FAXGID="uucp" # group ID for fax user
+FAXUID="fax" # user ID for fax user
PAGESIZE="ISO A4" # default page size
#SYSGID="sys" # group ID for system installs
#SYSUID="bin" # user ID for system installs
--- configure
+++ configure
@@ -51,7 +51,7 @@
LOCALE_DOMAIN=hylafax
DEFVRES=98
PAGESIZE="North American Letter"
-FAXUID=uucp
+FAXUID=fax
FAXGID=
SYSUID=bin
SYSGID=
--- etc/faxaddmodem.sh.in
+++ etc/faxaddmodem.sh.in
@@ -1803,7 +1803,7 @@
die
fi
}
-$CHOWN uucp.uucp $FIFO; $CHMOD 600 $FIFO
+$CHOWN ${FAX}:${faxGID} $FIFO; $CHMOD 600 $FIFO
if [ "$OLDFIFO" ]; then
echo "Removing old fifo $OLDFIFO.";
$RMCMD $OLDFIFO;
--- faxmail/mailfax.sh-postfix
+++ faxmail/mailfax.sh-postfix
@@ -97,7 +97,7 @@
# =====
#
# Notes:
-# 1) If you want the fax to be submitted as an user other than fax (uucp),
+# 1) If you want the fax to be submitted as an user other than fax,
# then replace
# flags= user=fax argv=/usr/bin/faxmail -d -n ${user}
# with
--- pkg/postinstall.in
+++ pkg/postinstall.in
@@ -130,16 +130,16 @@
0 0 * * * ${sbindir}/faxqclean
EOF
- cat >/tmp/uucp.crontab <<EOF
+ cat >/tmp/fax.crontab <<EOF
# crontab(1)
# (minutes) (hour) (day of the month) (month of the year) (day of the week)
# faxcron - HylaFAX routine maintenance script
25 23 * * 0 ${sbindir}/faxcron -rcv 20 | mailx -s "Fax Reports" FaxMaster
EOF
- echo "See sample crontab(1) entries for root and fax (uucp)"
+ echo "See sample crontab(1) entries for root and fax"
echo "/tmp/root.crontab"
- echo "/tmp/uucp.crontab"
+ echo "/tmp/fax.crontab"
else
echo "\n\nRun ${sbindir}/faxsetup -client\n"
--- pkg/postremove.in
+++ pkg/postremove.in
@@ -13,7 +13,7 @@
# I'll automate this part when I get time
echo "Remove @SBIN@/faxqclean from root's crontab"
- echo "Remove @SBIN@/faxcron from uucp's crontab"
+ echo "Remove @SBIN@/faxcron from fax's crontab"
fi
exit 0