pkgsrc/comms/fidogate/Makefile
rillig 84f2203288 all: migrate some SourceForge homepage URLs back from https to http
https://mail-index.netbsd.org/pkgsrc-changes/2020/01/18/msg205146.html

In the above commit, the homepage URLs were migrated from http to https,
assuming that SourceForge would use the same host names for both http and
https connections. This assumption was wrong. Their documentation at
https://sourceforge.net/p/forge/documentation/Custom%20VHOSTs/ states
that the https URLs use the domain sourceforge.io instead.

To make the homepages from the above commit reachable again, pkglint has
been extended to check for reachable homepages. This check is only
enabled when the --network command line option is given.

Each of the homepages that referred to https://$project.sourceforge.net
before was migrated to https://$project.sourceforge.io (27), and if that
was not reachable, to the fallback URL http://$project.sourceforge.net
(163).
2020-01-26 05:26:08 +00:00

70 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.79 2020/01/26 05:26:17 rillig Exp $
DISTNAME= fidogate-4.4.10
PKGREVISION= 12
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fidogate/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fidogate.sourceforge.net/
COMMENT= FidoNet (FTN) <-> Internet mail and news gateway
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake makeinfo perl:run yacc
MAKE_ENV+= DEBUG=${CFLAGS:Q}" -Werror"
EGDIR= ${PREFIX}/share/examples/fidogate
CONF_FILES= ${EGDIR}/fidogate.conf ${PKG_SYSCONFDIR}/fidogate/fidogate.conf
RCD_SCRIPTS= fidogate
RCD_SCRIPT_SRC.fidogate= ${WRKSRC}/scripts/maintenance/rc.fidogate
INFO_FILES= yes # PLIST
PKG_GROUPS= news
PKG_USERS= news:news
PKG_GECOS.news= Network News
PKG_HOME.news= /var/spool/news
NO_CONFIGURE= yes
SUBST_CLASSES+= paths
SUBST_FILES.paths= config.make
SUBST_VARS.paths= PREFIX
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_VARS.paths+= PKGINFODIR
SUBST_SED.paths+= -e "s,@PERL@,${TOOLS_PATH.perl},g"
SUBST_STAGE.paths= pre-build
# Too many schar/uchar issues.
BUILDLINK_TRANSFORM+= rm:-Werror
OWN_DIRS= ${PKG_SYSCONFDIR}/fidogate
AUTO_MKDIRS= yes
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}
post-extract:
${CP} ${WRKSRC}/examples/orodruin/fidogate.conf \
${WRKSRC}/fidogate.conf.dist
pre-build:
${RM} -f ${WRKSRC}/doc/fidogate.info*
cd ${WRKSRC}/doc && makeinfo fidogate.texi && \
${TOUCH} fidogate.txt html/fidogate_toc.html
${PERL5} ${WRKSRC}/subst.pl -t${WRKSRC} ${WRKSRC}/fidogate.conf.dist \
>${WRKSRC}/fidogate.conf
post-install:
cd ${WRKSRC}/examples && for f in `${FIND} [m-p]* -type d -print`; do \
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
cd ${WRKSRC}/examples && for f in `${FIND} README [m-p]* -type f -print`; do \
${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/examples/fidogate/$$f; done
cd ${WRKSRC}/sendmail/mailer && ${INSTALL_DATA} ffx.m4 ftn.m4 \
${DESTDIR}${PREFIX}/share/fidogate/sendmail/mailer
${INSTALL_DATA} ${WRKSRC}/doc/fidogate.txt ${DESTDIR}${PREFIX}/share/doc/fidogate
${INSTALL_DATA} ${WRKSRC}/fidogate.conf ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"