Commit graph

44 commits

Author SHA1 Message Date
is
371bb45b14 There were a few places where time_t was passed to printf-like functions,
but the format string specifies %d.
As all of them are time differences, and a fax transmission shouldn't
need more than 2^31 (normally not even 2^15) seconds, cast to (int),
like already in a few other places.
Needed because sizeof(time_t) > sizeof(int) in NetBSD-6 and later.
2015-08-21 11:08:36 +00:00
is
fc4344267b Workaround for NetBSD-6, but problem not understood: sendfax would
overflow the modem with data when FLOW_HARD (FLOWHARD|FLOW_SOFT) was
used.
2015-08-21 11:03:43 +00:00
joerg
7052e7aa43 utmpx.h is no longer included by util.h, adjust. Fix inline use. 2013-03-28 21:17:56 +00:00
is
bdf2a443a7 Fix the VARBASE propagation to all utilities. Without this, we tried
to log to /spool/fax/Faxlog.
2013-01-29 16:56:39 +00:00
dholland
8a48c84ce8 Use SPECIAL_PERMS and switch to user-destdir mode. While this is intended
to produce the same binary package, if something went wrong it might not,
so bump PKGREVISION (to 2) as a precaution.
2012-04-08 01:28:35 +00:00
dholland
5327375d60 Rework config patches somewhat so they might work on non-NetBSD.
Attempt to honor VARBASE instead of blithely dropping stuff into /var;
may be incomplete. Doing this right may require sorting out multiple
/var trees as it shouldn't, at least by default, be working dialer
locks in the pkgsrc VARBASE; however, it's not clear that those will
always necessarily be in /var either. For now the package assumes
they will be though.

*** If I have broken this for you, please let me know ASAP.
2012-04-08 00:47:26 +00:00
dholland
3638940ec7 Don't warn in ~every file that DEVICE_GROUP is being defined on the
command line. Eliminates a lot of build noise.
2012-04-08 00:04:12 +00:00
hans
ab724cef75 Fix build on SunOS. 2012-02-16 17:25:16 +00:00
is
fab299b67f Update to 1.1.37 2011-04-06 20:57:18 +00:00
obache
1f68fe164b treat DragonFly same as other *BSD. 2011-01-06 00:33:39 +00:00
is
e69253dfec Actually, the security patch was missing from my last commit. PKGREVISION
increased to distinguish.
2009-10-03 11:43:49 +00:00
is
8e2bbaae71 Update mgetty to 1.1.36, at the same time patching faxspool to use
mktemp(1) to avoid symlink vulnerabilities in tmp file/directory
creation/removal (mitre.org CVE-2008-4936). Named 1.1.36nb1 to
emphasize difference from upstream.

Commit ok'd by agc@.
2009-10-02 19:21:58 +00:00
joerg
3f0596ac78 Fix path to and depend on Perl. Bump revision. 2007-08-30 16:29:56 +00:00
joerg
5ed1bde135 Don't use malloc.h. 2007-08-08 20:00:12 +00:00
wiz
21626dd865 pkglint cleanup:
Replace configure-script with a patch that does the same.
Use SUBST framework instead of mv+sed.
2007-03-01 17:09:00 +00:00
jlam
2c46420eaf * Remove unnecessary INSTALL and DEINSTALL scripts and replace with an
appropriate OWN_DIRS_PERMS definition.

* Simplify the patches by overriding the value of CONFDIR at build time
  and at installation time.

* Honor PKGINFODIR and PKGMANDIR.

Bump PKGREVISION to 4 due to INSTALL script changes.
2006-03-20 04:09:37 +00:00
joerg
3acd0de959 Add DragonFly support. 2006-01-05 17:32:52 +00:00
abs
f72dc9cd65 Catch some NetBSD statvfs() checks phrased alternatively as > 200030000
rather than >= 200040000 and one enterprisingly hidden as > 200050000
2005-09-08 22:37:53 +00:00
hira
d95fa722f6 - Add missing definition of CONF_EXAMPLES_DIR.
- Add missing entry to PLIST.

Bump PKGREVISION.  This closes PR pkg/30073.
2005-06-12 14:29:53 +00:00
wiz
daedcb3f45 Regen some patches to get correct line number offsets; some patch(1) care. 2005-03-07 11:29:28 +00:00
jwise
f66855dd98 Sigh. RCS Id. 2005-02-23 19:14:31 +00:00
jwise
e1e6e72afa While here, fix the group for voice mail messages in the default voice.conf. 2005-02-23 19:14:03 +00:00
jwise
aea1303f82 Re-add RCS Ids. 2005-02-23 16:58:26 +00:00
jwise
81e3e265f5 Update to mgetty+sendfax-1.1.31. While here, also install vgetty
config file, which we were skipping.


Changes from mgetty+sendfax-1.1.30:

Sat Jul 24 16:54:52 MEST 2004  Gert Doering <gert@greenie.muc.de>

	* release 1.1.31

	* doc/mgetty.texi-in: add section on isdn4linux and CAPI

Sat Jul 17 17:21:38 MEST 2004  Gert Doering <gert@greenie.muc.de>

	* doc/sff2g3.1in: add man page for sff2g3

Sat Jul 17 12:18:28 MEST 2004  Andreas Barth <aba@not.so.argh.org>

	* cnd.c: add "+CLIP:" string for caller ID

	* voice/libvoice/detect.c: ATI codes for Zoom and Multitech modems

	* voice/libvoice/V253modem.c: more flexible sample/s. handling
	   (old stuff was fixed at 7200 hz)

	* voice/pvftools/pvftormd.c: accept 7200, 8000, 11025 Hz for "Lucent"

	* fax/faxspool.in: use per-user .faxheader/.make.coverpg files
	  instead of global defaults (if per-user files exists)

Fri Jul 16 19:03:48 MEST 2004  Gert Doering <gert@greenie.muc.de>

	* g3/Makefile: add "make test" test suite (for G3 tools)

	* g3/sff2g3.c: NEW: converter from CAPI SFF fax format to raw G3

	* Makefile: pack g3/sff2g3.c

Thu Feb  5 18:40:29 MET 2004  Gert Doering <gert@greenie.muc.de>

	* fax/faxspool: rework umask saving/restoring (use subshell trick)

Sat Jan 10 00:01:25 MET 2004  Gert Doering <gert@greenie.muc.de>

	* faxlib.c: add 1503 ID code (ZyXEL U-90E)

Tue Dec 16 12:46:52 MET 2003  Andreas Barth <aba+nospam@not.so.argh.org>

	* Makefile: remove -DAUTO_PPP

	* policy.h: include FIDO and AUTO_PPP here

Fri Dec  5 22:46:47 MET 2003  Ken Findlay <kjf@taylorbritt.com>

	* login.c: empty lines should never match, not even empty user names

Mon Nov 17 20:08:59 MET 2003  Gert Doering

	* mgetty.c: log warning if parent PID is not "1" (init)

	* mgetty.cfg.in: add clarification about "direct yes" to sample cfg

Fri Nov  7 21:47:27 MET 2003  Andreas Barth <aba+nospam@not.so.argh.org>

	* fax/faxspool.in: add per-user faxheader and coverpg files

	* doc/faxspool.1in, mgetty.texi: document new feature

Thu Oct  9 12:44:47 MEST 2003  Gert Doering

	* fax/faxspool.in: reject empty (0 bytes) input files

Sun Oct  5 13:59:51 MEST 2003  Gert Doering

	* do_chat.c: make clean_line() logging show the timeout value

Mon Sep 29 23:36:34 MEST 2003  Andreas Barth

	* contrib/g3tolj.c, g3toxwd.c: clean up protoypes and return types

	* various .c files: integrate Debian cleanup fixes (usually
	  adding <string.h> and/or <stdlib.h> where missing)

Wed Aug 20 12:39:53 MEST 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxrunqd.in: change signal handling - use HUP for graceful
	    exit, and dump statistics to logfile upon receipt of USR2

Sat Jun 28 22:14:35 MEST 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxq-helper.c: honour user umask when spooling G3 files
	  (user decides whether group/other can read faxes)

	* fax/faxspoool.in: reset umask after creating tmpdir (with umask 077)

	* fax/faxq-helper.c: file name validation was overly strict -
	  accept anything that's printable, not a space, '/' or '\'

Thu Jun 12 16:56:44 MEST 2003  Gert Doering (gert@greenie.muc.de)

	* faxlib.c: Multitech and USR return class 2.0/2.1 +FPS:<x>,<lc>
	  values in decimal, not hex -> change +FPS: parser to do decimal
	  for those modems (via modem_quirks |= MQ_FPS_NOT_HEX)

	* fax_lib.h: add MQ_FPS_NOT_HEX modem quirk bit

	* faxrec.c, faxrecp.c: understand VR=8 for "normal mode" (200x100 dpi)

Mon Apr 28 19:41:14 MEST 2003  Gert Doering (gert@greenie.muc.de)

	* logname: make "buffer overrun" error message more precise

Wed Apr 23 10:49:25 MEST 2003  John R. Jackson <jrj@purdue.edu>

	* voice/libutil/access.c: more verbose error reporting

Wed Apr  9 23:05:23 MEST 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxspool.in: fix spooling without header line (-h -)

Sun Apr  6 16:09:14 MEST 2003  Andreas Barth <aba@not.so.argh.org>

	* mgetty.8in, mgetty.texi-in: document escape sequences for
	  /etc/issue and login prompt.

Wed Mar  5 21:37:38 MET 2003  Gert Doering (gert@greenie.muc.de)

	* Makefile: abort "make install" before installing faxspool
	  if fax user does not exist

	* Makefile: unconditionally chown $FAX_SPOOL_OUT to fax user

Tue Feb  4 17:46:45 MET 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxq-helper.c: uid=0 overrides access permission checks

	* fax/faxrm.in: bugfix: get faxq-helper path from sedscript

Tue Jan 21 14:27:39 MET 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxspool.in: abort with a proper error message on input file
	  names containing white space or quote characters

Tue Jan 14 14:30:42 MET 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxrunqd.in: include "success" counter in per_phone_statistics

	* ugly.h: #define USE_VARARGS for non-Ansi C compilers

	* logfile.c: change #include<> sequence to catch USE_VARARGS def.

Wed Jan  8 23:03:26 MET 2003  Gert Doering (gert@greenie.muc.de)

	* fax/faxrunqd.in: if a fax job fails, reschedule on different
	  modem (if possible)

	* voice/libvoice/V253modem.c: fix ELSA_RMD_NAME (used for
	  V.253 modem <-> other modem RMD equivalency checks)
2005-02-23 16:57:28 +00:00
tron
99ebfe5dd8 Make this build under NetBSD 2.0D and above with statvfs(2). 2004-04-26 19:59:15 +00:00
fredb
15c2645f6b Let "faxq" and "faxrm" find the "faxrunq-helper" in ${PREFIX} (which is
probably not "/usr/local").
2003-12-20 20:06:38 +00:00
fredb
b48fd375df Make this compile on NetBSD-current. 2003-09-25 20:27:12 +00:00
fredb
da1bc56e30 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 16:39:33 +00:00
fredb
55d7859cdf Use the same ut_id as "login" does, so we can properly close out the wtmpx
entry that "login" creates.
2003-02-27 21:43:36 +00:00
fredb
12a4b3036a - - Use standard ${PKG_SYSCONFDIR} handling; bump ${PKGREVISION}.
- - Reorganize Makefile #defines into global toggles, global settings,
    local settings.
- - Reorganize and consolidate override targets.
2003-02-27 17:13:37 +00:00
fredb
a0cf782e7c Be consistent about testing for __GLIBC__. 2003-02-27 14:42:55 +00:00
fredb
6b9c6cc6b6 Add support for /var/run/utmpx on NetBSD 1.6B or newer, including
building on a suggestion by Gert Doering, filling ut_pid with the pid
of the uucp-style lock holder. This should fix PR pkg/12261, although
you will need today's "w" to see any results. Bump PKGREVSION.
2003-02-26 21:45:43 +00:00
fredb
ed43b11728 Revert last change. Gert Doering says that's not a bug - it's a feature.
I'll look at fixing "w", instead.
2002-07-27 10:47:29 +00:00
fredb
e987b63ca2 Mgetty has no business making a utmp entry while it's only waiting for
a lock. Closes PR pkg/12261.
2002-07-24 18:37:34 +00:00
fredb
5d01117aac Update mgetty+sendfax to 1.1.28. From the ChangeLog file:
* release 1.1.28
    * faxrec.c: replace "0"'s by "STDIN" (readability)
    * doc/mgetty.texi-in: some updates
    * doc/faxrunq.1in, doc/faxrunqd.8in: document calling convention
      changes (as below)
    * fax/faxrunq(d).in: pass (last) sendfax return code as 2nd
      argument to success/failure program
    * policy.h, utmp.c: incorporate some NetBSD changes
    * various: change time() prototype to "time_t time(time_t *tloc)"
    * mgetty.h, syslibs.h, logfile.c: some #ifdef fiddling for Darwin
    * doc/faxrunq.1in, doc/faxrunqd.8in: document more stuff
    * fax/faxrunq, fax/faxrunqd: don't run queue if a file
      $FAX_SPOOL_OUT/stop exists.
    * login.c: MAX_LOGIN_ARGS handling reworked (claimed N, but allowed
      only N-1), plus warning message improved.  <Juergen.Kosel@gmx.de>

    * release 1.1.27
    * doc/mgetty.texi-in: work on isdn4linux notes
    * cnd.c (cndtable): add swedish ZyXEL caller ID format (T. Lundgren)
    * cnd.c (cndtable): add "CALLED NUMBER:" (Jan Oberlaender/i4l)
    * various: adaptions to OpenBSD (similar to NetBSD)
    * mgetty.h: patch to adapt to Linux/S390 (PTR_IS_LONG)
    * frontends/www/: integrate new version from Neko
2002-03-09 17:17:05 +00:00
fredb
65fecffe31 Rename the fax overview manpage from "fax" to "sendfax", to avoid any
conflict with the "efax" package. "efax" already has an "efax.1", the
actual man page, but "mgetty"'s "sendfax" manpage is "sendfax.8", so
"sendfax.1" is available. Closes PR pkg 14254.
2002-03-06 19:19:02 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00
fredb
359fb97696 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 17:02:23 +00:00
tron
8033b337af Search fax notify program in "${PREFIX}/lib/mgetty+sendfax" not in
"/usr/local/lib/mgetty+sendfax/new_fax". Problem noted by Simon J. Gerraty
in PR pkg/8255.
1999-08-23 21:04:34 +00:00
tron
49e322fffd Dont' clobber NetPBM's "g3topbm" with a symbolic link to "g32pbm". 1999-05-07 19:35:27 +00:00
tron
ffc2248aad Create and install standard "mgetty.config" and "sendfax.config" because
we don't use FreeBSD's perl script for that purpose.
1998-11-16 02:49:48 +00:00
tron
c8f504a447 Use FreeBSD utmp handling. 1998-11-16 02:36:22 +00:00
tron
ccdb63e64f Adapt this package to NetBSD. 1998-11-15 20:45:29 +00:00
tron
7f9d5fc7cc Initial import of FreeBSD "mgetty+sendfax" port:
Handle external logins, send and receive faxes.
1998-11-15 18:04:25 +00:00