pkgsrc/comms/mgetty+sendfax/Makefile
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

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2001/06/21 17:02:23 fredb Exp $
# FreeBSD Id: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp
#
DISTNAME= mgetty1.1.26-Apr16
PKGNAME= mgetty-1.1.26
CATEGORIES= comms
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/ \
ftp://alpha.greenie.net/pub/mgetty/source/1.1/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://alpha.greenie.net/mgetty/
COMMENT= Handle external logins, send and receive faxes
DEPENDS= netpbm-[0-9]*:../../graphics/netpbm
CONFLICTS= hylafax-*
WRKSRC= ${WRKDIR}/${PKGNAME}
INFO_FILES= mgetty.info
INSTALL_FILE= ${WRKDIR}/INSTALL
MGETTY_CONFDIR= ${PREFIX}/etc/mgetty+sendfax
#MGETTY_CONFDIR=/etc/mgetty
MAKE_ENV+= MGETTY_CONFDIR=${MGETTY_CONFDIR}
post-configure:
${SED} -e 's#$${INSTALL_DATA_DIR}#${INSTALL_DATA_DIR}#' \
-e 's#$${MGETTY_CONFDIR}#${MGETTY_CONFDIR}#' \
-e 's#$${PAX}#${PAX}#' \
-e 's#$${PREFIX}#${PREFIX}#' \
${PKGDIR}/INSTALL > ${INSTALL_FILE}
cd ${WRKSRC}; \
${MV} faxrunq.config faxrunq.config.old; \
${SED} 's#/usr/local#${PREFIX}#' \
faxrunq.config.old > faxrunq.config
post-install:
${INSTALL_DATA_DIR} ${MGETTY_CONFDIR}
cd ${PREFIX}/share/examples/mgetty+sendfax; \
${PAX} -r -w -pe -k * ${MGETTY_CONFDIR}
.include "../../mk/bsd.pkg.mk"