Index: Makefile =================================================================== --- Makefile (revision 310710) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: knock -# Date Created: 2006-03-17 -# Whom: Shaun Amott -# +# Created by: Shaun Amott # $FreeBSD$ -# PORTNAME= knock PORTVERSION= 0.5 @@ -11,10 +7,10 @@ PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.zeroflux.org/proj/knock/files/ \ - ${MASTER_SITE_LOCAL:S,%SUBDIR%,sbz,} + LOCAL/sbz MAINTAINER= sbz@FreeBSD.org -COMMENT= A flexible port-knocking server and client +COMMENT= Flexible port-knocking server and client LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING @@ -25,25 +21,28 @@ CFLAGS+= -I${LOCALBASE}/include -OPTIONS= SERVER "Install knockd server" on \ - CLIENT "Install knock client" on +OPTIONS_DEFINE= CLIENT SERVER +OPTIONS_DEFAULT= CLIENT SERVER -.include +.include -.if defined(WITH_SERVER) +CLIENT_DESC= Install knock client +SERVER_DESC= Install knockd server + +.if ${PORT_OPTIONS:MSERVER} MAN1= knockd.1 USE_RC_SUBR= knockd PLIST_FILES+= bin/knockd PLIST_FILES+= etc/knockd.conf.sample .endif -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} MAN1+= knock.1 PLIST_FILES+= bin/knock .endif pre-configure: -.if defined(WITHOUT_SERVER) && defined(WITHOUT_CLIENT) +.if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MCLIENT} IGNORE= at least one component must be selected for installation .endif @@ -60,22 +59,22 @@ ${WRKSRC}/src/knock.c do-install: -.if defined(WITH_SERVER) +.if ${PORT_OPTIONS:MSERVER} ${INSTALL_PROGRAM} ${WRKSRC}/knockd ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/knockd.conf ${PREFIX}/etc/knockd.conf.sample .endif -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} ${INSTALL_PROGRAM} ${WRKSRC}/knock ${PREFIX}/bin .endif post-install-script: -.if defined(WITH_SERVER) +.if ${PORT_OPTIONS:MSERVER} ${INSTALL_MAN} ${WRKSRC}/doc/knockd.1.in ${MAN1PREFIX}/man/man1/knockd.1 .endif -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} ${INSTALL_MAN} ${WRKSRC}/doc/knock.1.in ${MAN1PREFIX}/man/man1/knock.1 .endif -.include +.include Index: pkg-descr =================================================================== --- pkg-descr (revision 310710) +++ pkg-descr (working copy) @@ -6,6 +6,6 @@ at the link-layer level, it sees all traffic even if it's destined for a closed port. When the server detects a specific sequence of port-hits port-hits, it runs a command defined in its configuration file. This -can be used to open up holes in a firewall for quick access. +can be used to open up holes in a firewall for quick access. WWW: http://www.zeroflux.org/projects/knock