2013-11-24 05:01:07 +01:00
|
|
|
# $NetBSD: Makefile,v 1.68 2013/11/24 04:01:07 dholland Exp $
|
1998-07-16 19:47:14 +02:00
|
|
|
#
|
|
|
|
|
Update to 4.4.10, finally....
Changes of note (security fixes were already integrated in an earlier
4.4.9nbX release):
* src/gate/ftn2rfc.c (unpack): if * Origin is empty, don't use it
for the Organization header, use default from config.
* src/common/log.c (logit): renamed old log() to avoid conflict
with Standard-C math function.
* src/common/log.c (log_program): removed insecure code entirely,
thanks to Niels Heinen for pointing this out.
* src/gate/send-fidogate.sh: added optimized version using rfc2ftn
-f for INN 2.4, thanks to Viktor Kafke.
Optimized versions for INN 2.2 und INN 2.4 enabled by
OPTIMIZED=yes at the start of this script, default = commented =
off.
* scripts/maintenance/logsendmail2.pl: new version of logsendmail
utility.
* src/gate/rfc2ftn.c (receiver): "sysop" is always a valid name.
* src/gate/rfc2ftn.c (main): new option "SilentBounces" causes
EX_NOHOST, EX_NOUSER errors to return OK without any message.
Useful in the never ending fight against spam, when your gateway
is flooded with messages to unknown adresses, such as Fido.DE :-(
(snd_mail): check silent_bounces, if set return OK and log only.
2005-08-17 13:43:27 +02:00
|
|
|
DISTNAME= fidogate-4.4.10
|
2013-11-24 05:01:07 +01:00
|
|
|
PKGREVISION= 7
|
1998-07-16 19:47:14 +02:00
|
|
|
CATEGORIES= comms
|
2002-07-06 22:15:51 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fidogate/}
|
1998-07-16 19:47:14 +02:00
|
|
|
|
2007-03-19 17:36:41 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-07-06 22:15:51 +02:00
|
|
|
HOMEPAGE= http://www.fidogate.org/
|
2001-02-16 14:51:27 +01:00
|
|
|
COMMENT= FidoNet (FTN) <-> Internet mail and news gateway
|
1998-07-16 19:47:14 +02:00
|
|
|
|
2009-06-30 02:07:09 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= gmake makeinfo perl:run yacc
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= DEBUG="${CFLAGS} -Werror"
|
2002-11-15 00:50:45 +01:00
|
|
|
BUILDLINK_SETENV.CC= CC="cc ${_STRIPFLAG_CC}"
|
1998-07-16 19:47:14 +02:00
|
|
|
|
2002-11-15 00:50:45 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/fidogate
|
|
|
|
CONF_FILES= ${EGDIR}/fidogate.conf ${PKG_SYSCONFDIR}/fidogate/fidogate.conf
|
2002-07-06 22:52:07 +02:00
|
|
|
RCD_SCRIPTS= fidogate
|
2007-08-30 18:22:00 +02:00
|
|
|
RCD_SCRIPT_SRC.fidogate= ${WRKSRC}/scripts/maintenance/rc.fidogate
|
2009-12-18 02:09:23 +01:00
|
|
|
INFO_FILES= yes # PLIST
|
2002-07-06 22:15:51 +02:00
|
|
|
|
2003-08-09 12:15:41 +02:00
|
|
|
PKG_GROUPS= news
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= news:news
|
|
|
|
PKG_GECOS.news= Network News
|
|
|
|
PKG_HOME.news= /var/spool/news
|
2003-08-09 12:15:41 +02:00
|
|
|
|
2006-01-05 22:34:39 +01:00
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= config.make
|
2006-03-20 04:59:39 +01:00
|
|
|
SUBST_SED.paths= -e "s,@PREFIX@,"${PREFIX:Q}",g"
|
|
|
|
SUBST_SED.paths+= -e "s,@PKG_SYSCONFDIR@,"${PKG_SYSCONFDIR:Q}",g"
|
|
|
|
SUBST_SED.paths+= -e "s,@PKGINFODIR@,"${PKGINFODIR:Q}",g"
|
2012-02-28 12:21:50 +01:00
|
|
|
SUBST_SED.paths+= -e "s,@PERL@,"${TOOLS_PATH.perl:Q}",g"
|
2006-03-20 04:59:39 +01:00
|
|
|
SUBST_STAGE.paths= pre-build
|
|
|
|
|
2007-09-29 14:32:22 +02:00
|
|
|
# Too many schar/uchar issues.
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
|
|
|
|
2006-03-20 04:59:39 +01:00
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/fidogate
|
2009-12-18 02:09:23 +01:00
|
|
|
INSTALLATION_DIRS+= ${EGDIR} lib/fidogate \
|
2006-03-20 04:59:39 +01:00
|
|
|
lib/fidogate/bin share/doc/fidogate \
|
|
|
|
share/fidogate share/fidogate/sendmail \
|
2012-06-18 03:51:41 +02:00
|
|
|
${PKGINFODIR} \
|
2007-03-24 20:21:18 +01:00
|
|
|
share/fidogate/sendmail/mailer share/examples/rc.d
|
2006-01-05 22:34:39 +01:00
|
|
|
|
2013-11-24 05:01:07 +01:00
|
|
|
FIDOGATE_SUID_PERMS= news news 4111
|
|
|
|
SPECIAL_PERMS+= ${PREFIX}/lib/fidogate/ffx ${FIDOGATE_SUID_PERMS} \
|
|
|
|
${PREFIX}/lib/fidogate/ftnmail ${FIDOGATE_SUID_PERMS} \
|
|
|
|
${PREFIX}/lib/fidogate/ftnafmail ${FIDOGATE_SUID_PERMS}
|
|
|
|
|
2001-02-22 16:28:56 +01:00
|
|
|
post-extract:
|
2009-12-18 02:09:23 +01:00
|
|
|
${CP} ${WRKSRC}/examples/orodruin/fidogate.conf \
|
2002-07-06 22:15:51 +02:00
|
|
|
${WRKSRC}/fidogate.conf.dist
|
1998-07-18 16:50:38 +02:00
|
|
|
|
2001-02-22 04:00:14 +01:00
|
|
|
pre-build:
|
|
|
|
${RM} -f ${WRKSRC}/doc/fidogate.info*
|
2006-03-20 04:59:39 +01:00
|
|
|
cd ${WRKSRC}/doc && makeinfo fidogate.texi && \
|
2001-02-22 04:00:14 +01:00
|
|
|
${TOUCH} fidogate.txt html/fidogate_toc.html
|
2002-07-06 22:15:51 +02:00
|
|
|
${PERL5} ${WRKSRC}/subst.pl -t${WRKSRC} ${WRKSRC}/fidogate.conf.dist \
|
|
|
|
>${WRKSRC}/fidogate.conf
|
2001-02-22 04:00:14 +01:00
|
|
|
|
|
|
|
post-install:
|
2004-01-27 01:53:10 +01:00
|
|
|
cd ${WRKSRC}/examples && for f in `${FIND} [m-p]* -type d -print`; do \
|
2009-12-18 02:09:23 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
|
2004-01-27 01:53:10 +01:00
|
|
|
cd ${WRKSRC}/examples && for f in `${FIND} README [m-p]* -type f -print`; do \
|
2009-12-18 02:09:23 +01:00
|
|
|
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
|
2001-02-22 04:00:14 +01:00
|
|
|
cd ${WRKSRC}/sendmail/mailer && ${INSTALL_DATA} ffx.m4 ftn.m4 \
|
2009-12-18 02:09:23 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/fidogate/sendmail/mailer
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fidogate.txt ${DESTDIR}${PREFIX}/share/doc/fidogate
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fidogate.conf ${DESTDIR}${EGDIR}
|
1998-07-16 19:47:14 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|