head	1.8;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.7
	RELEASE_8_2_0:1.7
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.8
date	2012.11.17.06.01.19;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2010.12.13.00.23.32;	author wxs;	state Exp;
branches;
next	1.6;

1.6
date	2009.08.22.00.35.04;	author amdmi3;	state Exp;
branches;
next	1.5;

1.5
date	2008.05.24.05.33.14;	author rafan;	state Exp;
branches;
next	1.4;

1.4
date	2007.07.14.22.21.13;	author beech;	state Exp;
branches;
next	1.3;

1.3
date	2006.06.29.08.30.48;	author itetcu;	state Exp;
branches;
next	1.2;

1.2
date	2005.11.17.18.13.10;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2005.06.07.20.56.27;	author niels;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for:	sancp
# Date created:				10 Feb 2005
# Whom:					Paul Schmehl <pauls@@utdallas.edu>
#
# $FreeBSD: head/security/sancp/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	sancp
PORTVERSION=	1.6.1
DISTVERSIONSUFFIX=	-stable
PORTREVISION=	4
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}-stable

MAINTAINER=	pauls@@utdallas.edu
COMMENT=	A network connection profiler

ALL_TARGET=	bsd
USE_RC_SUBR=	sancp
SUB_FILES=	pkg-message

USERS=		sancp
GROUPS=		sancp

PORTDOCS=	CHANGES INSTALL ISSUES README \
		SETUP fields.LIST LICENSE

post-extract:
	@@cd ${WRKSRC} && ${MV} LICENSE docs/

do-install:
	@@${INSTALL_PROGRAM} ${WRKSRC}/sancp ${PREFIX}/bin
	@@${INSTALL_DATA} ${WRKSRC}/etc/sancp/sancp.conf ${PREFIX}/etc/sancp.conf-dist
	@@${CP} -n ${PREFIX}/etc/sancp.conf-dist ${PREFIX}/etc/sancp.conf

.if !defined(NOPORTDOCS)
	@@${INSTALL} -d ${DOCSDIR}/
	cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.7
log
@Dont declare ${sancp_flags} in command_args.
Drop .sh extension from RC script.
Drop MD5 checksum from distinfo.
Switch from adding & removing users by hand to using USERS & GROUPS.
Dont remove data gathered by app on uninstall, notify user to do it manually
should they wish to.

PR:		ports/152225, ports/152226
Submitted by:	Sevan Janiyan <venture37@@geeklan.co.uk>
Approved by:	pauls@@utdallas.edu (maintainer timeout)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d11 1
a11 1
PORTREVISION=	3
d19 1
a19 1
USE_RC_SUBR=	sancp.sh
d22 3
a31 1
	@@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@


1.5
log
@- Use the preferred way of setting default rc parameters
- Move startup options to rc script
- Bump PORTREVISION

PR:		ports/123916 (based on)
Submitted by:	Paul Schmehl <pauls at utdallas.edu> (maintainer)
@
text
@d13 1
a13 1
MASTER_SITES=	SF
@


1.4
log
@- Update to 1.6.1_2
- Minor fixes

PR:		ports/114390
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
Approved by:	sat (mentor)
@
text
@d11 1
a11 1
PORTREVISION=	2
@


1.3
log
@Two new patches have been released, one resolves compiler issues on x86-64
architectures, the other fixes a critical problem that causes the program to
use 100% of the CPU. Both added them to the port.

PR:		ports/99596
Submitted by:	maintainer
@
text
@d10 2
a11 1
PORTREVISION=	1
d13 1
a13 8
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	sancp

PATCH_SITES=	http://sancp.sourceforge.net/
PATCHFILES=	sancp-1.6.1.fix200511.a.patch \
		sancp-1.6.1.fix200606.bd.patch \
		sancp-1.6.1.fix200601.c.patch
PATCH_DIST_STRIP=-p1
d18 1
a18 1
ALL_TARGET=	final
d22 5
a26 1
PORTDOCS=	CHANGES INSTALL ISSUES README SETUP fields.LIST
d28 5
a32 1
.include <bsd.port.pre.mk>
a33 8
post-install:
	${SH} ${PKGINSTALL}
	${INSTALL_PROGRAM} ${WRKSRC}/sancp ${PREFIX}/bin
.for f in sancp.conf
	${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}-dist
	[ -f ${PREFIX}/etc/${f} ] || \
		${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}
.endfor
d35 1
a35 2
	@@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} LICENSE ${DOCSDIR}
d40 1
a40 1
.include <bsd.port.post.mk>
@


1.2
log
@- Update MASTER_SITES
- Add two vendor patches
- Fix config file handling
- Use SUB_FILES for pkg-message and better of USE_RC_SUBR

PR:		ports/89178
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d17 2
a18 1
		sancp-1.6.1.fix200511.b.patch
@


1.1
log
@New port based on submission by Paul Schmehl

Sancp is a network security tool designed to collect
statistical information regarding network traffic, as
well as, collect the traffic itself in pcap format, all
for the purpose of: auditing, historical analysis, and
network activity discovery.

PR:		ports/77426
Submitted by:	Paul Schmehl
Approved by:	nectar (mentor)
@
text
@d10 1
d12 7
a18 1
MASTER_SITES=	http://www.metre.net/files/
d24 2
a25 3
USE_REINPLACE=	yes
USE_RC_SUBR=	yes
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
a30 4
post-patch:
	@@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/sancp.sh > ${WRKDIR}/sancp.sh

a33 1
	${INSTALL_SCRIPT} -m 755 ${WRKDIR}/sancp.sh ${PREFIX}/etc/rc.d/sancp.sh
d35 1
a35 1
	${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}-sample
d37 1
a37 1
	${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}
d44 1
a44 1
	@@${SED} 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}
@

