pkgsrc/net/netcat/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

58 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.40 2020/01/26 05:26:25 rillig Exp $
DISTNAME= nc110
PKGNAME= netcat-1.10
PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://nc110.sourceforge.io/
COMMENT= Read and write data across network connections
WRKSRC= ${WRKDIR}
MAKE_ENV+= DFLAGS="-DGAPING_SECURITY_HOLE -DTELNET"
.include "../../mk/bsd.prefs.mk"
NC_TARGET.${OPSYS}?= ${LOWER_OPSYS}
NC_TARGET.IRIX= irix
NC_TARGET.Interix= netbsd
NC_TARGET.OpenBSD= netbsd
NC_TARGET.DragonFly= freebsd
NC_TARGET.Darwin= generic
BUILD_TARGET= ${NC_TARGET.${OPSYS}}
EXTRA_PROGS= data rservice xor
EXAMPLE_DIR= share/examples/nc
PLIST_SRC= ${PKGDIR}/PLIST ${WRKSRC}/data/PLIST.data
INSTALLATION_DIRS= ${PKGMANDIR}/man1 sbin
post-build:
@cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} ${MAKE} ${EXTRA_PROGS}
# Note: the nc binary is installed into sbin to avoid a conflict with
# editors/nedit.
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nc ${DESTDIR:Q}${PREFIX:Q}/sbin
.for i in ${EXTRA_PROGS}
${INSTALL_PROGRAM} ${WRKSRC}/data/${i} \
${DESTDIR:Q}${PREFIX:Q}/sbin/nc-${i}
.endfor
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}
@( \
cd ${WRKSRC}/data; \
${RM} -f PLIST.data; \
for i in README Makefile *.c *.d; \
do \
${INSTALL_DATA} $$i ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}; \
${ECHO} ${EXAMPLE_DIR}/$$i >> PLIST.data; \
done; \
)
${INSTALL_MAN} ${FILESDIR}/nc.1 \
${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/nc.1
.include "../../mk/bsd.pkg.mk"