pkgsrc/comms/mgetty+sendfax/Makefile

99 lines
2.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.95 2016/07/09 06:37:55 wiz Exp $
2011-04-06 22:57:18 +02:00
DISTNAME= mgetty1.1.37-Jun05
PKGNAME= mgetty-1.1.37
PKGREVISION= 16
CATEGORIES= comms
MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mgetty.greenie.net/
COMMENT= Handle external logins, send and receive faxes
LICENSE= gnu-gpl-v2
DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
MAKE_JOBS_SAFE= no
BUILD_DEPENDS+= texi2roff-[0-9]*:../../textproc/texi2roff
CONFLICTS= hylafax-[0-9]*
2000-10-22 00:19:21 +02:00
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
MAKE_ENV+= MGETTY_CONFDIR=${PKG_SYSCONFDIR:Q} PERL5=${PERL5:Q}
MAKE_ENV+= ROOT_USER=${REAL_ROOT_USER:Q}
MAKE_ENV+= ROOT_GROUP=${REAL_ROOT_GROUP:Q}
MAKE_ENV+= SHELL=${SH:Q}
MAKE_ENV+= VARBASE=${VARBASE:Q}
2011-04-05 23:09:50 +02:00
MAKE_FLAGS+= prefix=${DESTDIR:Q}${PREFIX:Q} \
spool=${VARBASE}/spool \
2011-04-05 23:09:50 +02:00
INFODIR=${DESTDIR:Q}${PREFIX:Q}/${PKGINFODIR:Q} \
MAN1DIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man1\
MAN4DIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man4\
MAN5DIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man5\
MAN8DIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man8\
LIBS=${LIBS:Q}
2011-04-05 23:09:50 +02:00
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} CONFDIR=${DESTDIR:Q}${EXAMPLES_DIR:Q}
BUILD_MAKE_FLAGS= ${MAKE_FLAGS:S,${DESTDIR},,} CONFDIR=${PKG_SYSCONFDIR:Q}
2012-02-16 18:25:16 +01:00
CFLAGS.SunOS+= -Dsolaris2
CFLAGS+= -DDEVICE_GROUP=\"${REAL_ROOT_GROUP}\"
2012-02-16 18:25:16 +01:00
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "SunOS"
LIBS+= -lutil
.endif
USE_TOOLS+= makeinfo perl:run
INFO_FILES= yes
PKG_SYSCONFSUBDIR= mgetty+sendfax
2001-08-22 04:21:44 +02:00
PKG_GROUPS= dialer
PKG_USERS= fax:dialer
#USERGROUP_PHASE= pre-install
EXAMPLES_DIR= ${PREFIX}/share/examples/mgetty+sendfax
SPOOL_DIR= ${VARBASE}/spool/fax
.for cfg in dialin.config \
faxheader \
faxrunq.config \
faxspool.rules.sample \
login.config \
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 17:57:28 +01:00
mgetty.config \
voice.conf
CONF_FILES+= ${EXAMPLES_DIR}/${cfg} ${PKG_SYSCONFDIR}/${cfg}
.endfor
ROOT_DIR_PERMS= ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
FAX_DIR_PERMS= fax ${REAL_ROOT_GROUP} 755
SETUID_FAX_PERMS= fax ${REAL_ROOT_GROUP} 4711
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
# XXX the package's makefile sets SPOOL_DIR to FAX_DIR_PERMS but the
# pkgsrc package has had it as ROOT_DIR_PERMS. I'm going to leave it
# the way pkgsrc had it; if you find it breaks that way please file a PR.
OWN_DIRS_PERMS+= ${SPOOL_DIR} ${ROOT_DIR_PERMS}
OWN_DIRS_PERMS+= ${SPOOL_DIR}/incoming ${ROOT_DIR_PERMS}
OWN_DIRS_PERMS+= ${SPOOL_DIR}/outgoing ${FAX_DIR_PERMS}
SPECIAL_PERMS+= lib/mgetty+sendfax/faxq-helper ${SETUID_FAX_PERMS}
SUBST_CLASSES+= prefix
SUBST_FILES.prefix= faxrunq.config
SUBST_SED.prefix= -e 's|/usr/local|${PREFIX}|'
SUBST_SED.prefix+= -e 's|/var/log|${VARBASE}/log|'
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fixing hardcoded installation prefix.
post-extract:
cd ${WRKSRC} && cp policy.h-dist policy.h
do-configure:
mv ${WRKSRC}/doc/fax.1in ${WRKSRC}/doc/sendfax.1in
.include "../../mk/bsd.pkg.mk"