Update to 1.1.30, submitted by Stephane Fortier in PR pkg/22867.
"ChangeLog" since 1.1.28 w/dates and blank lines elided:
* release 1.1.30
* voice/vgetty/answer.c, voice/include/default.c: integrate Paul
Fox' pre_message and beep_sound patches
* voice/libvoice/detect.c: recognize MultiTech MT3334ZDXV
* faxhng.c: add some result codes for the i4l DIVA driver
* voice/libvoice/IS_101.c: fix DTMF events for the unshielded case
* voice/vgetty/answer.c: accept arbitrary ring types, not only 0..6
* ring.c: map DRON/DROF return codes to binary word, use result
as distinctive RING number
* frontends/www/README: add user authentication example
* voice/libvoice/V253modem.c: repair messed-up 16 bit PCM patch
* release 1.1.29
* voice/libvoice/detect.c: insert delay before sending ATE0 to
modem (timing issue - modem might not have sent the full \r\n
sequence from the last "OK" yet when the new AT comes in)
* doc/*.[158]in: bring man pages up to date
* tools/ltest.c, tools/mid.c: adapt to new lprintf() prototype
* mgetty.h, logfile.c: adapt to use <stdarg.h> and "..."
function declaration (unless USE_VARARGS is set, which is
needed for NeXT platforms). Karsten Keil <kkeil@suse.de>.
* Makefile: relax permissions on sendfax and faxrunq.config
install - must be readable/executeable by user "fax" now
* doc/faxrunqd.8in: document "-u", minor updates
* fax/faxrunqd.in, fax/faxspool.in, fax/faxrunq.in: revert
Aug 6, 200 change - put faxqueue_done back into $FAX_SPOOL_OUT/
(faxrunq/faxrunqd have no access rights to $VARRUNDIR/ anymore,
and $FAX_SPOOL_OUT is no longer world writeable anyway)
* fax/faxq.in: change from .last_run to faxqueue_done
* fax/faxrunqd.in: add "-u <user>" switch (set uid to <user>)
* fax/faxq-helper.c: finalize new fax queue handling using helper
process (suid fax) and a fax queue that is no longer
world-readable (open issue since 1994 :) )
* faxrecp.c: implement experimental teergrubing mode (signal
"page bad, please retransmit" at the end of each page - or just
hang up hard on caller). Activared with "modem-quirks 0x100"
or "0x200", respectively.
* voice/libvoice/V253Modem.c: add 16 bit linear PCM support
(patch coming from Peter Bruley)
* voice/pvftools/pvftormd.c, rmdtopvf.c: add 16 bit linear PCM
* rework faxq-helper concept (suid root -> suid fax)
* fax/faxq.in: adap "-r" to use faxq-helper
* fax/faxspool.in: adapt to use faxq-helper
* fax/faxrm.in: adapt to use faxq-helper
* Makefile: create FAX_SPOOL_OUT with mode 755 and owner FAX_OUT_USER
* Makefile: add FAX_OUT_USER definition, pass lots of variables
to fax/Makefile (for faxq-helper)
* README.1st: add instructions about FAX_OUT_USER setup
* doc/mgetty.texi-in add instructions about FAX_OUT_USER setup
* fax/faxrunqd.in: fix symlink / file overwrite race in JOB files.
Pointed out by Jablonovsky Alexander <sasha@cit-saratov.ru>
* doc/faxrunq.8in: point out insecurity in symlink handling
* mgetty.h: Intel 64bit platforms (__x86_64__) needs PTR_IS_LONG
* voice/libvoice/IS_101.c: implement DLE shielding for long DTMF tones
for V.253 (initially by Lee Howard <faxguy@howardsilvan.com>)
* mgetty.c: throw out DIST_RING #define - not used anymore
* ring.c: make sure action strings (CONNECT) are only recognized
at the beginning if a line, not in the middle (Paul Fox,
pgf@foxharp.boston.ma.us, CALLER NAME = CONNECTICUT).
* cnd.c: replace non-printable characters and quotes in caller ID
or caller name strings with ' ' - safeguard for passing them to
shell later on.
* doc/mgetty.texi-in: add stuff about recent multitech modems,
superfine+v.34 fax, and rework chapter about common problems
* faxlib.c: fix ugliness with USR modems reporting remote fax
ID as " 12345" -> skip leading '"' and all whitespace
* cnd.c: possible buffer overrun via CallName
(found by "A. Guru" <a.guru@sympatico.ca>)
* fax/faxrunqd: fix priority vs. write combining bug
* login.c: check for close-on-exec bit on FD 0 (FreeBSD 4.1 bug)
* login.c: export Caller Name as environment variable $CALLER_NAME
* login.c: make message about bad permissions even more clear
2003-09-20 18:39:33 +02:00
|
|
|
# $NetBSD: Makefile,v 1.35 2003/09/20 16:39:33 fredb Exp $
|
1998-11-15 21:45:29 +01:00
|
|
|
# FreeBSD Id: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp
|
1998-11-15 19:04:25 +01:00
|
|
|
#
|
|
|
|
|
Update to 1.1.30, submitted by Stephane Fortier in PR pkg/22867.
"ChangeLog" since 1.1.28 w/dates and blank lines elided:
* release 1.1.30
* voice/vgetty/answer.c, voice/include/default.c: integrate Paul
Fox' pre_message and beep_sound patches
* voice/libvoice/detect.c: recognize MultiTech MT3334ZDXV
* faxhng.c: add some result codes for the i4l DIVA driver
* voice/libvoice/IS_101.c: fix DTMF events for the unshielded case
* voice/vgetty/answer.c: accept arbitrary ring types, not only 0..6
* ring.c: map DRON/DROF return codes to binary word, use result
as distinctive RING number
* frontends/www/README: add user authentication example
* voice/libvoice/V253modem.c: repair messed-up 16 bit PCM patch
* release 1.1.29
* voice/libvoice/detect.c: insert delay before sending ATE0 to
modem (timing issue - modem might not have sent the full \r\n
sequence from the last "OK" yet when the new AT comes in)
* doc/*.[158]in: bring man pages up to date
* tools/ltest.c, tools/mid.c: adapt to new lprintf() prototype
* mgetty.h, logfile.c: adapt to use <stdarg.h> and "..."
function declaration (unless USE_VARARGS is set, which is
needed for NeXT platforms). Karsten Keil <kkeil@suse.de>.
* Makefile: relax permissions on sendfax and faxrunq.config
install - must be readable/executeable by user "fax" now
* doc/faxrunqd.8in: document "-u", minor updates
* fax/faxrunqd.in, fax/faxspool.in, fax/faxrunq.in: revert
Aug 6, 200 change - put faxqueue_done back into $FAX_SPOOL_OUT/
(faxrunq/faxrunqd have no access rights to $VARRUNDIR/ anymore,
and $FAX_SPOOL_OUT is no longer world writeable anyway)
* fax/faxq.in: change from .last_run to faxqueue_done
* fax/faxrunqd.in: add "-u <user>" switch (set uid to <user>)
* fax/faxq-helper.c: finalize new fax queue handling using helper
process (suid fax) and a fax queue that is no longer
world-readable (open issue since 1994 :) )
* faxrecp.c: implement experimental teergrubing mode (signal
"page bad, please retransmit" at the end of each page - or just
hang up hard on caller). Activared with "modem-quirks 0x100"
or "0x200", respectively.
* voice/libvoice/V253Modem.c: add 16 bit linear PCM support
(patch coming from Peter Bruley)
* voice/pvftools/pvftormd.c, rmdtopvf.c: add 16 bit linear PCM
* rework faxq-helper concept (suid root -> suid fax)
* fax/faxq.in: adap "-r" to use faxq-helper
* fax/faxspool.in: adapt to use faxq-helper
* fax/faxrm.in: adapt to use faxq-helper
* Makefile: create FAX_SPOOL_OUT with mode 755 and owner FAX_OUT_USER
* Makefile: add FAX_OUT_USER definition, pass lots of variables
to fax/Makefile (for faxq-helper)
* README.1st: add instructions about FAX_OUT_USER setup
* doc/mgetty.texi-in add instructions about FAX_OUT_USER setup
* fax/faxrunqd.in: fix symlink / file overwrite race in JOB files.
Pointed out by Jablonovsky Alexander <sasha@cit-saratov.ru>
* doc/faxrunq.8in: point out insecurity in symlink handling
* mgetty.h: Intel 64bit platforms (__x86_64__) needs PTR_IS_LONG
* voice/libvoice/IS_101.c: implement DLE shielding for long DTMF tones
for V.253 (initially by Lee Howard <faxguy@howardsilvan.com>)
* mgetty.c: throw out DIST_RING #define - not used anymore
* ring.c: make sure action strings (CONNECT) are only recognized
at the beginning if a line, not in the middle (Paul Fox,
pgf@foxharp.boston.ma.us, CALLER NAME = CONNECTICUT).
* cnd.c: replace non-printable characters and quotes in caller ID
or caller name strings with ' ' - safeguard for passing them to
shell later on.
* doc/mgetty.texi-in: add stuff about recent multitech modems,
superfine+v.34 fax, and rework chapter about common problems
* faxlib.c: fix ugliness with USR modems reporting remote fax
ID as " 12345" -> skip leading '"' and all whitespace
* cnd.c: possible buffer overrun via CallName
(found by "A. Guru" <a.guru@sympatico.ca>)
* fax/faxrunqd: fix priority vs. write combining bug
* login.c: check for close-on-exec bit on FD 0 (FreeBSD 4.1 bug)
* login.c: export Caller Name as environment variable $CALLER_NAME
* login.c: make message about bad permissions even more clear
2003-09-20 18:39:33 +02:00
|
|
|
DISTNAME= mgetty1.1.30-Dec16
|
|
|
|
PKGNAME= mgetty-1.1.30
|
2003-06-18 11:03:16 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
1998-11-15 19:04:25 +01:00
|
|
|
CATEGORIES= comms
|
Fix mgetty package to not delete its config files on pkg_delete (next
time! -- save them by hand if you need them for this upgrade), add a
package hook to change ${CONFDIR}, where the binaries look for their
configuration files, and update to 1.1.26. Many bug fixes and improved
compatibility with various modems. The following were culled from the
extensive ChangeLog file's for being conceivably of general interest.
* login.c: export current tty as $DEVICE to shell
* dialin.config: added V253 codes for OUT_OF_AREA and PRIVATE.
* getdisk.c: fix overflow on file systems with > 2G (2^31 bytes) free
* getdisk.c: default MINFREESPACE from policy.h was interpreted
as *bytes*, not as *kbytes*. Which kind of defeats the purpose
of checking for "enough disk space". Fixed, work with kbytes now.
* faxrecp.c: check access rights first, space second (this will
give clearer log messages for non-existing directories)
* faxrecp.c: change fax page writing to open( O_EXCL|O_CREAT )
* locks.c: use mkstemp() to create tmp file, if available,
open( O_EXCL|O_CREAT ) otherwise.
and for vgetty...
* Fixed buffer overflow in vm and vgetty, submitted by Georg
Kirschbaum, <Georg.Kirschbaum@gimmel.franken.de>. Impact would
not have been very big since only DTMFs are under control
of the user.
2001-06-21 19:02:23 +02:00
|
|
|
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/ \
|
|
|
|
ftp://alpha.greenie.net/pub/mgetty/source/1.1/
|
2000-05-17 05:43:48 +02:00
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2000-05-17 05:43:48 +02:00
|
|
|
HOMEPAGE= http://alpha.greenie.net/mgetty/
|
2001-02-16 14:51:27 +01:00
|
|
|
COMMENT= Handle external logins, send and receive faxes
|
1998-11-15 19:04:25 +01:00
|
|
|
|
2003-06-27 19:19:21 +02:00
|
|
|
BUILD_DEPENDS+= texi2roff-[0-9]*:../../textproc/texi2roff
|
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= hylafax-[0-9]*
|
2000-10-22 00:19:21 +02:00
|
|
|
|
2003-02-27 18:13:37 +01:00
|
|
|
USE_BUILDLINK2= yes
|
2003-08-31 00:51:11 +02:00
|
|
|
|
2003-02-27 18:13:37 +01:00
|
|
|
USE_PKGINSTALL= yes
|
2003-08-31 00:51:11 +02:00
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
1998-11-15 21:45:29 +01:00
|
|
|
|
2003-02-27 18:13:37 +01:00
|
|
|
MAKE_ENV= MGETTY_CONFDIR=${PKG_SYSCONFDIR}
|
1998-11-15 19:04:25 +01:00
|
|
|
|
2003-06-27 19:19:21 +02:00
|
|
|
USE_MAKEINFO= YES
|
2003-02-27 18:13:37 +01:00
|
|
|
INFO_FILES= mgetty.info
|
|
|
|
PKG_SYSCONFSUBDIR= mgetty+sendfax
|
2001-08-22 04:21:44 +02:00
|
|
|
|
2003-02-27 18:13:37 +01:00
|
|
|
.ifndef CONF_FILES
|
|
|
|
. for cfg in dialin.config \
|
|
|
|
faxheader \
|
|
|
|
faxrunq.config \
|
|
|
|
faxspool.rules.sample \
|
|
|
|
login.config \
|
|
|
|
mgetty.config
|
|
|
|
CONF_FILES+= ${_EXAMPLES_DIR}/${cfg} ${PKG_SYSCONFDIR}/${cfg}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
Update to 1.1.30, submitted by Stephane Fortier in PR pkg/22867.
"ChangeLog" since 1.1.28 w/dates and blank lines elided:
* release 1.1.30
* voice/vgetty/answer.c, voice/include/default.c: integrate Paul
Fox' pre_message and beep_sound patches
* voice/libvoice/detect.c: recognize MultiTech MT3334ZDXV
* faxhng.c: add some result codes for the i4l DIVA driver
* voice/libvoice/IS_101.c: fix DTMF events for the unshielded case
* voice/vgetty/answer.c: accept arbitrary ring types, not only 0..6
* ring.c: map DRON/DROF return codes to binary word, use result
as distinctive RING number
* frontends/www/README: add user authentication example
* voice/libvoice/V253modem.c: repair messed-up 16 bit PCM patch
* release 1.1.29
* voice/libvoice/detect.c: insert delay before sending ATE0 to
modem (timing issue - modem might not have sent the full \r\n
sequence from the last "OK" yet when the new AT comes in)
* doc/*.[158]in: bring man pages up to date
* tools/ltest.c, tools/mid.c: adapt to new lprintf() prototype
* mgetty.h, logfile.c: adapt to use <stdarg.h> and "..."
function declaration (unless USE_VARARGS is set, which is
needed for NeXT platforms). Karsten Keil <kkeil@suse.de>.
* Makefile: relax permissions on sendfax and faxrunq.config
install - must be readable/executeable by user "fax" now
* doc/faxrunqd.8in: document "-u", minor updates
* fax/faxrunqd.in, fax/faxspool.in, fax/faxrunq.in: revert
Aug 6, 200 change - put faxqueue_done back into $FAX_SPOOL_OUT/
(faxrunq/faxrunqd have no access rights to $VARRUNDIR/ anymore,
and $FAX_SPOOL_OUT is no longer world writeable anyway)
* fax/faxq.in: change from .last_run to faxqueue_done
* fax/faxrunqd.in: add "-u <user>" switch (set uid to <user>)
* fax/faxq-helper.c: finalize new fax queue handling using helper
process (suid fax) and a fax queue that is no longer
world-readable (open issue since 1994 :) )
* faxrecp.c: implement experimental teergrubing mode (signal
"page bad, please retransmit" at the end of each page - or just
hang up hard on caller). Activared with "modem-quirks 0x100"
or "0x200", respectively.
* voice/libvoice/V253Modem.c: add 16 bit linear PCM support
(patch coming from Peter Bruley)
* voice/pvftools/pvftormd.c, rmdtopvf.c: add 16 bit linear PCM
* rework faxq-helper concept (suid root -> suid fax)
* fax/faxq.in: adap "-r" to use faxq-helper
* fax/faxspool.in: adapt to use faxq-helper
* fax/faxrm.in: adapt to use faxq-helper
* Makefile: create FAX_SPOOL_OUT with mode 755 and owner FAX_OUT_USER
* Makefile: add FAX_OUT_USER definition, pass lots of variables
to fax/Makefile (for faxq-helper)
* README.1st: add instructions about FAX_OUT_USER setup
* doc/mgetty.texi-in add instructions about FAX_OUT_USER setup
* fax/faxrunqd.in: fix symlink / file overwrite race in JOB files.
Pointed out by Jablonovsky Alexander <sasha@cit-saratov.ru>
* doc/faxrunq.8in: point out insecurity in symlink handling
* mgetty.h: Intel 64bit platforms (__x86_64__) needs PTR_IS_LONG
* voice/libvoice/IS_101.c: implement DLE shielding for long DTMF tones
for V.253 (initially by Lee Howard <faxguy@howardsilvan.com>)
* mgetty.c: throw out DIST_RING #define - not used anymore
* ring.c: make sure action strings (CONNECT) are only recognized
at the beginning if a line, not in the middle (Paul Fox,
pgf@foxharp.boston.ma.us, CALLER NAME = CONNECTICUT).
* cnd.c: replace non-printable characters and quotes in caller ID
or caller name strings with ' ' - safeguard for passing them to
shell later on.
* doc/mgetty.texi-in: add stuff about recent multitech modems,
superfine+v.34 fax, and rework chapter about common problems
* faxlib.c: fix ugliness with USR modems reporting remote fax
ID as " 12345" -> skip leading '"' and all whitespace
* cnd.c: possible buffer overrun via CallName
(found by "A. Guru" <a.guru@sympatico.ca>)
* fax/faxrunqd: fix priority vs. write combining bug
* login.c: check for close-on-exec bit on FD 0 (FreeBSD 4.1 bug)
* login.c: export Caller Name as environment variable $CALLER_NAME
* login.c: make message about bad permissions even more clear
2003-09-20 18:39:33 +02:00
|
|
|
PKG_GROUPS= dialer
|
|
|
|
PKG_USERS= fax:dialer
|
|
|
|
|
2003-02-27 18:13:37 +01:00
|
|
|
_EXAMPLES_DIR= ${PREFIX}/share/examples/mgetty+sendfax
|
2003-08-07 17:29:57 +02:00
|
|
|
MAKE_DIRS_PERMS+= /var/spool/fax ${ROOT_USER} ${ROOT_GROUP} 755
|
|
|
|
MAKE_DIRS_PERMS+= /var/spool/fax/incoming ${ROOT_USER} ${ROOT_GROUP} 755
|
|
|
|
MAKE_DIRS_PERMS+= /var/spool/fax/outgoing ${ROOT_USER} ${ROOT_GROUP} 1777
|
|
|
|
MAKE_DIRS_PERMS+= /var/spool/fax/outgoing/locks ${ROOT_USER} ${ROOT_GROUP} 777
|
2002-03-06 20:19:02 +01:00
|
|
|
|
2001-10-26 16:09:59 +02:00
|
|
|
do-configure:
|
2003-02-27 18:13:37 +01:00
|
|
|
${MV} ${WRKSRC}/doc/fax.1in ${WRKSRC}/doc/sendfax.1in
|
|
|
|
cd ${WRKSRC} \
|
|
|
|
&& for _file in faxrunq.config policy.h-dist; \
|
|
|
|
do \
|
|
|
|
${MV} $$_file $${_file}.orig; \
|
|
|
|
${SED} 's|/usr/local|${PREFIX}|' \
|
|
|
|
$${_file}.orig > $$_file; \
|
|
|
|
done \
|
|
|
|
&& cd ${.CURDIR} \
|
|
|
|
&& ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
1998-11-15 19:04:25 +01:00
|
|
|
|
2002-10-09 16:40:26 +02:00
|
|
|
.include "../../graphics/netpbm/buildlink2.mk"
|
1999-09-28 22:40:02 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|