diff options
author | mita <mita@FreeBSD.org> | 2002-05-23 19:10:59 +0800 |
---|---|---|
committer | mita <mita@FreeBSD.org> | 2002-05-23 19:10:59 +0800 |
commit | 1eddb6cf051e069ceb4eb411f4aebc5f0b310a47 (patch) | |
tree | ed48725bef1a2053adc7c524a430d87bf534fb47 /comms | |
parent | 8d29dbd34776efd810462563d0ddd19e7dfad228 (diff) | |
download | freebsd-ports-gnome-1eddb6cf051e069ceb4eb411f4aebc5f0b310a47.tar.gz freebsd-ports-gnome-1eddb6cf051e069ceb4eb411f4aebc5f0b310a47.tar.zst freebsd-ports-gnome-1eddb6cf051e069ceb4eb411f4aebc5f0b310a47.zip |
This is yet another FAX send/receive program.
Can handle class1 modems. Works nicely.
Submitted by: me. ports-jp 12772
Diffstat (limited to 'comms')
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/efax/Makefile | 42 | ||||
-rw-r--r-- | comms/efax/distinfo | 1 | ||||
-rw-r--r-- | comms/efax/files/patch-src:Makefile | 28 | ||||
-rw-r--r-- | comms/efax/files/patch-src:fax | 73 | ||||
-rw-r--r-- | comms/efax/pkg-comment | 1 | ||||
-rw-r--r-- | comms/efax/pkg-descr | 2 | ||||
-rw-r--r-- | comms/efax/pkg-install | 10 | ||||
-rw-r--r-- | comms/efax/pkg-plist | 14 |
9 files changed, 172 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index a399e9c9b12f..9600cb23f657 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -10,6 +10,7 @@ SUBDIR += conserver SUBDIR += conserver-com SUBDIR += ecu + SUBDIR += efax SUBDIR += ghfaxviewer SUBDIR += gkermit SUBDIR += gnokii diff --git a/comms/efax/Makefile b/comms/efax/Makefile new file mode 100644 index 000000000000..18ea418292fc --- /dev/null +++ b/comms/efax/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: efax +# Date created: 11 May 2002 +# Whom: MITA Yoshio <mita@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= efax-0.9a +PORTVERSION= 001114a7 +CATEGORIES= comms +MASTER_SITES= http://shino.pos.to/linux/ + +MAINTAINER= mita@FreeBSD.org + +RUN_DEPENDS= xloadimage:${PORTSDIR}/x11/xloadimage + +USE_GMAKE= YES +MAN1= fax.1 \ + efax.1 \ + efix.1 +DOCDIR= ${PREFIX}/share/doc/efax +MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ + INSTALL_DATA="${INSTALL_DATA}" + +post-build: + ${MV} ${WRKSRC}/fax ${WRKSRC}/fax.orig + ${CAT} ${WRKSRC}/fax.orig | ${SED} -e s!%%PREFIX%%!${PREFIX}!g > \ + ${WRKSRC}/fax + +post-install: + ${CHOWN} uucp.dialer ${PREFIX}/bin/efax + ${CHMOD} 4755 ${PREFIX}/bin/efax + ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample ${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample.ja ${PREFIX}/etc + ${MKDIR} ${DOCDIR} +.for i in COPYING README printcap.sample efax.html fax.html + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCDIR} +.endfor + ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/comms/efax/distinfo b/comms/efax/distinfo new file mode 100644 index 000000000000..ad19137b7a5d --- /dev/null +++ b/comms/efax/distinfo @@ -0,0 +1 @@ +MD5 (efax-0.9a-001114a7.tar.gz) = ac48b6c0cff9cc4869089c56f0af9b4a diff --git a/comms/efax/files/patch-src:Makefile b/comms/efax/files/patch-src:Makefile new file mode 100644 index 000000000000..b673f4dd5626 --- /dev/null +++ b/comms/efax/files/patch-src:Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig Thu Jun 29 11:01:22 2000 ++++ Makefile Sat May 11 13:02:46 2002 +@@ -15,8 +15,8 @@ + # binaries and man pages. Probably /usr/bin and /usr/man on + # Linux, /usr/local/{bin,man} on other systems. + +-BINDIR=/usr/bin +-MANDIR=/usr/man ++BINDIR=$(PREFIX)/bin ++MANDIR=$(PREFIX)/man + + .c.o: + $(CC) $(CFLAGS) -c $< +@@ -32,11 +32,9 @@ + strip efix + + install: +- cp fax efax efix $(BINDIR) +- chmod 755 $(BINDIR)/fax $(BINDIR)/efax $(BINDIR)/efix +- cp fax.1 efax.1 efix.1 $(MANDIR)/man1 +- chmod 644 $(MANDIR)/man1/fax.1 $(MANDIR)/man1/efax.1 \ +- $(MANDIR)/man1/efix.1 ++ $(INSTALL_PROGRAM) efax efix $(BINDIR) ++ $(INSTALL_SCRIPT) fax $(BINDIR) ++ $(INSTALL_DATA) fax.1 efax.1 efix.1 $(MANDIR)/man1 + + clean: + rm -f efax efix efax.o efix.o efaxlib.o efaxio.o efaxos.o efaxmsg.o diff --git a/comms/efax/files/patch-src:fax b/comms/efax/files/patch-src:fax new file mode 100644 index 000000000000..0ff329de58aa --- /dev/null +++ b/comms/efax/files/patch-src:fax @@ -0,0 +1,73 @@ +--- fax.orig Sat May 11 12:39:37 2002 ++++ fax Sat May 11 13:42:33 2002 +@@ -24,7 +24,7 @@ + # - do not put spaces before or after the equal (=) signs. + # + # - variables can also be set on the command line, for example: +-# fax DEV=cua0 send file.ps ++# fax DEV=cuaa0 send file.ps + # or in a configuration file (see CONFIGFILES below) + # + +@@ -36,16 +36,16 @@ + EFIX=efix + + # The device to which the fax modem is connected (e.g. ttya for +-# /dev/ttya). Use a dial-out (cua) device if available. If ++# /dev/ttya). Use a dial-out (cuaa) device if available. If + # there are links to this device then all programs must use same + # name or the UUCP locking mechanism will fail. For example, if +-# /dev/modem is a link to /dev/cua1, then getty, uucp, kermit, +-# pppd, dip, etc. must *all* use either /dev/modem or /dev/cua1. ++# /dev/modem is a link to /dev/cuaa1, then getty, uucp, kermit, ++# pppd, dip, etc. must *all* use either /dev/modem or /dev/cuaa1. + + # 19 Aug 2001 changed by Masaki Shinomiya, + # because 'man efax' sais the default is /dev/modem. + DEV=modem +-#DEV=cua1 ++#DEV=cuaa1 + + # Your fax number in international format, 20 characters maximum. + # Use only digits, spaces, and the "+" character. +@@ -98,7 +98,8 @@ + # conventions. Protect with single quotes for delayed evaluation. + # Add a leading '#' to the file name to use binary format. + +-LOCK='-x /var/lock/LCK..$DEV' # modern systems ++LOCK='-x /var/spool/lock/LCK..$DEV' # FreeBSD ++# LOCK='-x /var/lock/LCK..$DEV' # modern systems + # LOCK='-x /usr/spool/uucp/LCK..$DEV' # older systems + # LOCK='-x /var/lock/LCK..$DEV -x /var/spool/uucp/LCK..$DEV' # both + # LOCK='-x #/usr/spool/uucp/LCK..$DEV' # binary format +@@ -124,7 +125,7 @@ + # out if you don't need to use config files. Warning: any type of + # shell command in these files will be executed. + +-CONFIGFILES="/etc/efax.rc ${HOME:-~}/.efaxrc ./.efaxrc" ++CONFIGFILES="%%PREFIX%%/etc/efax.rc ${HOME:-~}/.efaxrc ./.efaxrc" + + # A command that will generate unique names for logs and received + # files. 'date +%m%d%H%M%S' works on most systems. Protect with +@@ -421,9 +422,9 @@ + # efax even if a previous process (e.g. login) has changed it. + # Comment out if you don't need to reset device ownership. + +-OWNER=root.tty # typical +-MODE=666 # anybody +-# MODE=660 # only owner & group ++OWNER=uucp.dialer # typical ++#MODE=666 # anybody ++MODE=660 # only owner & group + + # Regular expression for efax exit codes in log files that will + # *not* be saved. For example, use [145] to ignore exits due to +@@ -1101,7 +1102,7 @@ + + if given no arguments, answers the phone and receives a fax. + +- use VAR=value to set variables (e.g. "fax DEV=cua2 receive") ++ use VAR=value to set variables (e.g. "fax DEV=cuaa2 receive") + + session logs are written to a file with the date/time as the + file name and extension of .log (except for automatic reception). diff --git a/comms/efax/pkg-comment b/comms/efax/pkg-comment new file mode 100644 index 000000000000..d11c45fc3d38 --- /dev/null +++ b/comms/efax/pkg-comment @@ -0,0 +1 @@ +Fax send/receive program diff --git a/comms/efax/pkg-descr b/comms/efax/pkg-descr new file mode 100644 index 000000000000..fec186970088 --- /dev/null +++ b/comms/efax/pkg-descr @@ -0,0 +1,2 @@ +Efax can send and receive FAX via FAX modem. Enhanced from mgetty+sendfax +program, this program can handle `CLASS1' modems. diff --git a/comms/efax/pkg-install b/comms/efax/pkg-install new file mode 100644 index 000000000000..193b9eb73c53 --- /dev/null +++ b/comms/efax/pkg-install @@ -0,0 +1,10 @@ +#!/bin/sh +if [ "$2" != "POST-INSTALL" ]; then exit 0; fi +/bin/mkdir -p /var/spool/fax/incoming +/usr/sbin/chown uucp:dialer /var/spool/fax/incoming +/bin/mkdir -p /var/spool/fax/outgoing +/usr/sbin/chown uucp:dialer /var/spool/fax/outgoing +/usr/bin/touch /var/spool/fax/outgoing/lock +/usr/sbin/chown uucp:dialer /var/spool/fax/outgoing/lock +/bin/echo "Copy \${PREFIX}/etc/efax.rc.sample(.ja) to \${PREFIX}/etc/efax.rc" +/bin/echo "and edit. At least you should modify DEV=, FROM=, and NAME=" diff --git a/comms/efax/pkg-plist b/comms/efax/pkg-plist new file mode 100644 index 000000000000..4b5f7331ac90 --- /dev/null +++ b/comms/efax/pkg-plist @@ -0,0 +1,14 @@ +bin/fax +bin/efax +bin/efix +etc/efax.rc.sample +etc/efax.rc.sample.ja +share/doc/efax/COPYING +share/doc/efax/README +share/doc/efax/efax.html +share/doc/efax/fax.html +share/doc/efax/printcap.sample +@dirrm share/doc/efax +@unexec /bin/rm /var/spool/fax/outgoing/lock +@unexec /bin/rmdir /var/spool/fax/incoming +@unexec /bin/rmdir /var/spool/fax/outgoing |