head	1.15;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.7
	RELEASE_8_2_0:1.7
	RELEASE_6_EOL:1.7
	RELEASE_8_1_0:1.7
	RELEASE_7_3_0:1.7
	RELEASE_8_0_0:1.7
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2;
locks; strict;
comment	@# @;


1.15
date	2013.03.16.11.45.31;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2013.01.20.18.44.10;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.17.06.01.06;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.08.29.10.54.47;	author sbz;	state Exp;
branches;
next	1.11;

1.11
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.10;

1.10
date	2012.07.04.21.51.42;	author sbz;	state Exp;
branches;
next	1.9;

1.9
date	2011.09.26.08.26.17;	author sbz;	state Exp;
branches;
next	1.8;

1.8
date	2011.03.18.10.04.52;	author sbz;	state Exp;
branches;
next	1.7;

1.7
date	2009.07.19.18.59.39;	author shaun;	state Exp;
branches;
next	1.6;

1.6
date	2009.06.23.12.21.12;	author jadawin;	state Exp;
branches;
next	1.5;

1.5
date	2009.03.13.23.27.18;	author shaun;	state Exp;
branches;
next	1.4;

1.4
date	2008.11.14.16.36.55;	author shaun;	state Exp;
branches;
next	1.3;

1.3
date	2008.03.20.10.03.40;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2006.08.06.19.27.58;	author shaun;	state Exp;
branches;
next	1.1;

1.1
date	2006.07.12.18.03.23;	author shaun;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314279
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Shaun Amott <shaun@@inerd.com>
# $FreeBSD: head/security/knock/Makefile 314279 2013-03-15 08:33:39Z sbz $

PORTNAME=	knock
PORTVERSION=	0.5
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	security
MASTER_SITES=	http://www.zeroflux.org/proj/knock/files/ \
		LOCAL/sbz

MAINTAINER=	sbz@@FreeBSD.org
COMMENT=	Flexible port-knocking server and client

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

CONFLICTS=	doorman-[0-9]*

GNU_CONFIGURE=	yes

CFLAGS+=	-I${LOCALBASE}/include

OPTIONS_SINGLE=	SG1
OPTIONS_SINGLE_SG1=	CLIENT SERVER

.include <bsd.port.options.mk>

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 ${PORT_OPTIONS:MCLIENT}
MAN1+=		knock.1
PLIST_FILES+=	bin/knock
.endif

post-patch:
	@@${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#g"	\
			  -e "s#eth0#fxp0#g"		\
			  ${WRKSRC}/src/knockd.c

	@@${REINPLACE_CMD} -e "s/#VERSION#/${PORTVERSION}/g" \
			  -e "s#eth0#fxp0#g"		\
			  ${WRKSRC}/doc/knock.1.in	\
			  ${WRKSRC}/doc/knockd.1.in	\
			  ${WRKSRC}/src/knockd.c	\
			  ${WRKSRC}/src/knock.c

do-install:
.if ${PORT_OPTIONS:MSERVER}
	${INSTALL_PROGRAM} ${WRKSRC}/knockd ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/knockd.conf ${PREFIX}/etc/knockd.conf.sample
.endif

.if ${PORT_OPTIONS:MCLIENT}
	${INSTALL_PROGRAM} ${WRKSRC}/knock ${PREFIX}/bin
.endif

post-install-script:
.if ${PORT_OPTIONS:MSERVER}
	${INSTALL_MAN} ${WRKSRC}/doc/knockd.1.in ${MAN1PREFIX}/man/man1/knockd.1
.endif

.if ${PORT_OPTIONS:MCLIENT}
	${INSTALL_MAN} ${WRKSRC}/doc/knock.1.in ${MAN1PREFIX}/man/man1/knock.1
.endif

.include <bsd.port.mk>
@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310711
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/security/knock/Makefile 310711 2013-01-20 18:28:49Z sbz $
d24 2
a25 2
OPTIONS_DEFINE=	CLIENT SERVER
OPTIONS_DEFAULT=	CLIENT SERVER
a43 5
pre-configure:
.if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MCLIENT}
IGNORE=		at least one component must be selected for installation
.endif

@


1.13
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	knock
# Date Created:				2006-03-17
# Whom:					Shaun Amott <shaun@@inerd.com>
#
# $FreeBSD: head/security/knock/Makefile 303331 2012-08-29 10:54:47Z sbz $
#
d10 1
a10 1
		${MASTER_SITE_LOCAL:S,%SUBDIR%,sbz,}
d13 1
a13 1
COMMENT=	A flexible port-knocking server and client
d24 2
a25 2
OPTIONS=	SERVER		"Install knockd server"		on \
		CLIENT		"Install knock client"		on
d27 1
a27 1
.include <bsd.port.pre.mk>
d29 4
a32 1
.if defined(WITH_SERVER)
d39 1
a39 1
.if defined(WITH_CLIENT)
d45 1
a45 1
.if defined(WITHOUT_SERVER) && defined(WITHOUT_CLIENT)
d62 1
a62 1
.if defined(WITH_SERVER)
d67 1
a67 1
.if defined(WITH_CLIENT)
d72 1
a72 1
.if defined(WITH_SERVER)
d76 1
a76 1
.if defined(WITH_CLIENT)
d80 1
a80 1
.include <bsd.port.post.mk>
@


1.12
log
@SVN rev 303331 on 2012-08-29 10:54:47Z by sbz

- Fix duplicated flags

PR:		ports/171117
Submitted by:	Lung-Pin Chang <changlp at cs.nctu.edu.tw>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.11
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d10 1
@


1.10
log
@- Fix CONFLICTS with security/doorman

Reported by:	FreeBSD Ports conflicts checker
@
text
@d34 1
a34 1
USE_RC_SUBR=	knockd.sh
@


1.9
log
@- Add LICENSE
- Add support for tun devices [1]
- Update MASTER_SITES
- Make happy portlint
- Bump PORTEPOCH

PR:		ports/159078 [1]
Submitted by:	Lung-Pin Chang <changlp at cs.nctu.edu.tw>
Approved by:	jadawin@@ (mentor)
@
text
@d18 4
a21 2
LICENSE=       GPLv2
LICENSE_FILE=  ${WRKSRC}/COPYING
@


1.8
log
@Update my MAINTAINER address to sbz at FreeBSD.org.

Approved by:	jadawin@@ (mentor)
@
text
@d9 2
a10 2
PORTVERSION=	0.5.20051124
PORTREVISION=	1
d12 2
a13 2
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	shaun
d18 3
a27 3
RUNDIR=		/var/run
SUB_LIST=	RUNDIR=${RUNDIR}

a48 1
			  -e "s#%%RUNDIR%%#${RUNDIR}#g"	\
d53 5
a57 3
			  -e "s#eth0#fxp0#g"		    \
			  ${WRKSRC}/doc/knock.1.in	    \
			  ${WRKSRC}/doc/knockd.1.in
@


1.7
log
@Remove references to my mirror, which will be decommissioned shortly;
fall back to FreeBSD mirrors in case the port has no others.
@
text
@d15 1
a15 1
MAINTAINER=	sbrabez@@gmail.com
@


1.6
log
@- Update WWW
- Submitter take maintainership

PR:		ports/135960
Submitted by:	Sofian Brabez <sbrabez gmail.com>
@
text
@d12 2
a13 1
MASTER_SITES=	http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
@


1.5
log
@Free most of my ports, since they aren't being maintained to a
reasonable standard.
@
text
@d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
@


1.4
log
@Increase pcap read timeout to reduce gratuitous CPU burden.

PR:		ports/127313
Submitted by:	Duane Wessels <wessels@@life-gone-hazy.com>
@
text
@d14 1
a14 1
MAINTAINER=	shaun@@FreeBSD.org
@


1.3
log
@- Remove USE_GETOPT_LONG which is a no-op since March 2007
@
text
@d10 1
@


1.2
log
@Fix build on FreeBSD 4.x.

Submitted by:	pointyhat via kris
@
text
@a17 1
USE_GETOPT_LONG=yes
@


1.1
log
@Add a port of "knock" - a flexible port-knocking server and client.

PR:		ports/94626
Submitted by:	shaun (me)
Approved by:	ahze (mentor, implicit)
@
text
@d18 3
@

