# $FreeBSD: net/ipsorc/Makefile 327755 2013-09-20 22:10:23Z bapt $

PORTNAME=	ipsorc
PORTVERSION=	1.7.5
PORTREVISION=	4
CATEGORIES=	net security
MASTER_SITES=	http://200ok.org/distfiles/ipsorc/ \
		http://sorcerer.mirrors.pair.com/sources/ipsorcery/${PORTVERSION}/

MAINTAINER=	ecu@200ok.org
COMMENT=	A tool to create and send IP packets with a graphical GTK front-end

USE_GNOME=	gtk12
USE_BZIP2=	yes

NO_STAGE=	yes
post-patch:
	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
	@${SED} s,gtk-config,${GTK_CONFIG}, < ${WRKSRC}/Makefile.old \
	        > ${WRKSRC}/Makefile
	@${RM} ${WRKSRC}/Makefile.old

do-install:
.for file in ipmagic magic
	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in README HOWTO
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
