summaryrefslogtreecommitdiff
path: root/security/gtk-knocker/Makefile
blob: cf7023a178f61133b460d6651fa2c234db01c4fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# New ports collection makefile for:	gtk-knocker
# Date created:				Tue Jul 10 02:18:39 EDT 2001
# Whom:					Patrick Li <pat@databits.net>
#
# $FreeBSD$
#

PORTNAME=	knocker
PORTVERSION=	0.6.6
PORTREVISION=	3
CATEGORIES=	security net x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
PKGNAMEPREFIX=	gtk-
DISTNAME=	gtk-${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A simple and easy to use TCP only port scanner (GTK+ version)

USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes
USE_XPM=	yes
USE_GNOME=	gtk12

MAN1=		gtk-knocker.1

.include <bsd.port.pre.mk>

post-patch:
.for file in src/gtk_support.c src/gtk_callbacks.c
	@${REINPLACE_CMD} -e 's|"\.\./pixmaps"|PACKAGE_DATA_DIR "/pixmaps"|g' \
		${WRKSRC}/${file}
.endfor
.for file in src/license.h
	@${REINPLACE_CMD} -e 's|$$|\\n\\|g ; \
		 s|^".*|";|g' ${WRKSRC}/${file}
.endfor

post-install:
	@${INSTALL_MAN} ${WRKSRC}/docs/gtk-knocker.1 ${MANPREFIX}/man/man1

.include <bsd.port.post.mk>