head	1.7;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1;
locks; strict;
comment	@# @;


1.7
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.10.04.10.48.50;	author bapt;	state Exp;
branches;
next	1.5;

1.5
date	2011.10.18.13.07.10;	author ehaupt;	state Exp;
branches;
next	1.4;

1.4
date	2010.03.20.16.01.04;	author miwi;	state Exp;
branches;
next	1.3;

1.3
date	2009.08.22.00.34.57;	author amdmi3;	state Exp;
branches;
next	1.2;

1.2
date	2009.08.17.05.44.51;	author linimon;	state Exp;
branches;
next	1.1;

1.1
date	2007.10.19.16.52.23;	author novel;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Switch exporter over
@
text
@# Created by: Anton Karpov <toxa@@toxahost.ru>
# $FreeBSD: head/security/openfwtk/Makefile 305249 2012-10-04 10:48:50Z bapt $

PORTNAME=	openfwtk
PORTVERSION=	2.0
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Release%20${PORTVERSION}
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Application proxy toolkit which inherits the ideology of TIS fwtk

LICENSE=	BSD

OPTIONS_DEFINE=	GUI
GUI_DESC=	Install fw-watch GUI (require TCL/TK!)

WRKSRC=		${WRKDIR}/fwtk
WRKSRC_WATCH=	${WRKDIR}/fw_watch
WRKSRC_MILTER=	${WRKDIR}/libci_milter

MAKE_JOBS_UNSAFE=yes

SUB_FILES=	pkg-message
MANCOMPRESSED=	no

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGUI}
USE_TK_WRAPPER=	yes
PLIST_SUB+=	WATCH=""
.else
PLIST_SUB+=	WATCH="@@comment "
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif

post-patch:
.for conf in auth/authadduser.sh reports/summ_resources.sh \
	reports/daily_report reports/frequentcheck \
	reports/frequentcheck.sh squid-gw/squid-gw.restart
	@@${REINPLACE_CMD} -e \
		's|/etc/openfwtk.conf|${PREFIX}/etc/openfwtk.conf|g' ${WRKSRC}/${conf}
.endfor
.for wish in fileselect.tcl fw_watch
	@@${REINPLACE_CMD} -e \
		's|/usr/bin/|${LOCALBASE}/bin/|g' ${WRKSRC_WATCH}/${wish}
.endfor
	@@${REINPLACE_CMD} -e \
		'/^CC/s|=.*|= ${CC}|g ; \
		 /^COPT/s|=.*|= ${CFLAGS}|g' ${WRKSRC_MILTER}/Makefile
	@@${REINPLACE_CMD} -e \
		'/^CC/s|=.*|= ${CC}|g ; \
		 /^COPT/s|-std=c99|${CFLAGS}|g' ${WRKSRC}/configs/FreeBSD

pre-build:
	@@(cd ${WRKSRC_MILTER}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})

pre-install:
	@@${MKDIR} ${ETCDIR}

post-install:
.if ${PORT_OPTIONS:MGUI}
	@@${MKDIR} ${PREFIX}/share/fw_watch
.for data in fileselect.tcl fw_watch newsb.tcl searchbox.tcl taputils.tcl
	${INSTALL_DATA} ${WRKSRC_WATCH}/${data} ${PREFIX}/share/fw_watch
.endfor
.endif
	${ECHO_CMD} "root@@`hostname`" > ${ETCDIR}/admin
	@@${CAT} ${PKGMESSAGE}

.include "Makefile.man"
.include <bsd.port.post.mk>
@


1.6
log
@SVN rev 305249 on 2012-10-04 10:48:50Z by bapt

Convert to new options framework
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@- Add LICENSE
- Support OPTIONS
- Support USE_TK_WRAPPER
- Support ECHO_CMD
- Support MAKE_JOBS_UNSAFE

PR:		161601
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
@
text
@d1 1
a1 4
# New ports collection makefile for:	openfwtk
# Date created:				12 Oct 2007
# Whom:					Anton Karpov <toxa@@toxahost.ru>
#
d16 2
a17 1
OPTIONS=	WATCH "Install fw-watch GUI (require TCL/TK!)" off
d30 1
a30 1
.if defined(WITH_WATCH)
d68 1
a68 1
.if defined(WITH_WATCH)
@


1.4
log
@- Mark BROKEN on HEAD: fails to build with new utmpx

 Reported by:	pointyhat
@
text
@d9 1
d12 1
a12 1
DISTNAME=${PORTNAME}${PORTVERSION}
d17 5
a21 1
WRKSRC=	${WRKDIR}/fwtk
d25 1
a25 1
OPTIONS=	WATCH "Install fw-watch GUI (require TCL/TK!)" off
d30 1
a30 5
.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif
d33 1
a34 1
RUN_DEPENDS+=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
d39 5
a43 1
BUILD_DIRS=	${WRKSRC_MILTER} ${WRKSRC}
d45 6
a50 3
do-build:
.for i in ${BUILD_DIRS}
	(cd ${WRKDIR}/${i}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
d52 13
a65 6
post-build:
	@@${REINPLACE_CMD} -e 's|/etc/openfwtk.conf|${PREFIX}/etc/openfwtk.conf|g' \
		${WRKSRC}/reports/summ_resources.sh ${WRKSRC}/reports/daily_report \
		${WRKSRC}/reports/frequentcheck.sh ${WRKSRC}/reports/frequentcheck \
		${WRKSRC}/auth/authadduser.sh ${WRKSRC}/squid-gw/squid-gw.restart \
		${WRKSRC}/reports/daily_report ${WRKSRC}/reports/frequentcheck
d67 2
a68 1
	${MKDIR} ${ETCDIR}
d71 4
a74 12
	${MKDIR} ${PREFIX}/share/fw_watch
	@@${REINPLACE_CMD} -e 's|/usr/bin/wish|${PREFIX}/bin/wish8.4|g' \
		${WRKSRC_WATCH}/fileselect.tcl \
		${WRKSRC_WATCH}/fw_watch \
		${WRKSRC_WATCH}/newsb.tcl \
		${WRKSRC_WATCH}/searchbox.tcl \
		${WRKSRC_WATCH}/taputils.tcl
	${CP} ${WRKSRC_WATCH}/fileselect.tcl ${PREFIX}/share/fw_watch/
	${CP} ${WRKSRC_WATCH}/fw_watch ${PREFIX}/share/fw_watch/
	${CP} ${WRKSRC_WATCH}/newsb.tcl ${PREFIX}/share/fw_watch/
	${CP} ${WRKSRC_WATCH}/searchbox.tcl ${PREFIX}/share/fw_watch/
	${CP} ${WRKSRC_WATCH}/taputils.tcl ${PREFIX}/share/fw_watch/
d76 1
a76 1
	${ECHO} "root@@`hostname`" > ${ETCDIR}/admin
@


1.3
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d27 4
@


1.2
log
@Reset toxa@@toxahost.ru due to maintainer-timeouts and no response to
email.

Hat:		portmgr
@
text
@d10 1
a10 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.1
log
@OpenFWTK is an application proxy toolkit which inherits the ideology
of TIS fwtk and maintains API backwards compatibility. The design goal
is to make it simple yet powerful; no performance hacks allowed in the
code and library dependencies are reduced to minimum.

WWW: http://sourceforge.net/projects/openfwtk

PR:		ports/117194
Submitted by:	Anton Karpov <toxa at toxahost.ru>
@
text
@d14 1
a14 1
MAINTAINER=	toxa@@toxahost.ru
@

