b4f474e085
has gone away. from Antoine Jacoutot <ajacoutot@lphp.org>; ok alek@ brad@
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.24 2005/09/25 18:18:23 aanriot Exp $
|
|
|
|
COMMENT= "handle external logins, send and receive faxes"
|
|
|
|
VERSION= 1.1.33
|
|
RELEASE= Apr10
|
|
DISTNAME= mgetty${VERSION}-${RELEASE}
|
|
PKGNAME= mgetty+sendfax-${VERSION}
|
|
CATEGORIES= comms
|
|
|
|
HOMEPAGE= http://alpha.greenie.net/mgetty/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@lphp.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= yes
|
|
PERMIT_PACKAGE_FTP= yes
|
|
PERMIT_DISTFILES_CDROM= yes
|
|
PERMIT_DISTFILES_FTP= yes
|
|
WANTLIB= c m util
|
|
|
|
MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/ \
|
|
ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/
|
|
|
|
RUN_DEPENDS= ::print/ghostscript/gnu \
|
|
::graphics/netpbm
|
|
|
|
WRKDIST= ${WRKDIR}/mgetty-${VERSION}
|
|
|
|
MAKE_ENV+= SYSCONFDIR=${SYSCONFDIR}
|
|
|
|
pre-configure:
|
|
@sed -e "s,@prefix@,${PREFIX},g" \
|
|
-e "s,@sysconfdir@,${SYSCONFDIR},g" \
|
|
${FILESDIR}/setup > ${WRKDIR}/setup
|
|
@cp ${WRKSRC}/policy.h-dist ${WRKSRC}/policy.h
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mgetty+sendfax
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/setup ${PREFIX}/lib/mgetty+sendfax
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgetty+sendfax
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgetty+sendfax/faq
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgetty+sendfax/voice
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/mgetty+sendfax
|
|
${INSTALL_DATA} ${WRKSRC}/faq/SGML/* ${PREFIX}/share/doc/mgetty+sendfax/faq
|
|
${INSTALL_DATA} ${WRKSRC}/voice/doc/* ${PREFIX}/share/doc/mgetty+sendfax/voice
|
|
${INSTALL_DATA} -m 600 ${WRKSRC}/voice/voice.conf-dist ${PREFIX}/share/examples/mgetty+sendfax/voice.conf
|
|
${TAR} -cf - -C ${WRKSRC} samples | ${TAR} -xf - -C ${PREFIX}/share/examples/mgetty+sendfax
|
|
|
|
REGRESS_TARGET= check
|
|
TESTS_ENVIRONMENT= MAKE=${GMAKE}
|
|
|
|
do-regress:
|
|
@cd ${WRKBUILD} && \
|
|
exec ${SETENV} ${MAKE_ENV} \
|
|
TESTS_ENVIRONMENT='${TESTS_ENVIRONMENT}' \
|
|
${MAKE_PROGRAM} ${REGRESS_FLAGS} -f ${MAKE_FILE} \
|
|
${REGRESS_TARGET}
|
|
|
|
.include <bsd.port.mk>
|