pkgsrc/net/knock/Makefile
rillig 9637f7852e all: migrate homepages from http to https
pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
2020-01-26 17:30:40 +00:00

35 lines
982 B
Makefile

# $NetBSD: Makefile,v 1.9 2020/01/26 17:31:50 rillig Exp $
DISTNAME= knock-0.7
CATEGORIES= net
MASTER_SITES= http://www.zeroflux.org/proj/knock/files/
MAINTAINER= adam@NetBSD.org
HOMEPAGE= https://www.zeroflux.org/projects/knock/
COMMENT= Port knocking server
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${EGDIR}
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/knock
CONF_FILES= ${EGDIR}/knockd.conf ${PKG_SYSCONFDIR}/knockd.conf
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 ${EGDIR}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_MESSAGE.paths= Fixing absolute paths.
SUBST_FILES.paths= src/knockd.c
SUBST_SED.paths= -e 's,"/etc,"${PKG_SYSCONFDIR},g'
SUBST_SED.paths+= -e 's,"/var,"${VARBASE},g'
post-install:
cd ${DESTDIR}${PREFIX}/${PKGMANDIR} && ${MV} man1/knockd.1 man8/knockd.8 || ${TRUE}
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"