summaryrefslogtreecommitdiff
path: root/security/amap/Makefile
blob: 8ed407c71e7dd10550c5bca34a1f86a75cb82434 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
# $NetBSD: Makefile,v 1.13 2007/02/22 19:27:06 wiz Exp $
#

DISTNAME=	amap-5.2
CATEGORIES=	net security
MASTER_SITES=	http://thc.segfault.net/releases/ \
		http://www.thc.org/releases/

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://thc.org.segfault.net/thc-amap/
COMMENT=	Applications and Services scanner

HAS_CONFIGURE=	YES

CONFIGURE_ARGS+=	--prefix=${PREFIX:Q}
EGDIR=			${PREFIX}/share/examples/amap
PKG_SYSCONFSUBDIR?=	amap

LICENSE=	amap-license

CONF_FILES=	${EGDIR}/appdefs.resp ${PKG_SYSCONFDIR}/appdefs.resp
CONF_FILES+=	${EGDIR}/appdefs.rpc ${PKG_SYSCONFDIR}/appdefs.rpc
CONF_FILES+=	${EGDIR}/appdefs.trig ${PKG_SYSCONFDIR}/appdefs.trig

SUBST_CLASSES+=		conf
SUBST_FILES.conf=	configure
SUBST_STAGE.conf=	pre-configure
SUBST_SED.conf=		-e 's|@PREFIX@|${PREFIX}|g'
SUBST_SED.conf+=	-e 's|@MANDIR@|${PREFIX}/man|g'
SUBST_SED.conf+=	-e 's|@COMPILER_RPATH_FLAG@|${COMPILER_RPATH_FLAG}|g'
SUBST_SED.conf+=	-e 's|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g'
SUBST_SED.conf+=	-e "s|@UNAME@|${UNAME}|g"
SUBST_SED.conf+=	-e "s|@GREP@|${GREP}|g"
SUBST_SED.conf+=	-e "s|@SED@|${SED}|g"
SUBST_MESSAGE.conf=	Fixing configure script.

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

post-extract:
	${CHMOD} 0700 ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/amap ${PREFIX}/bin
	${LN} -s ${PREFIX}/bin/amap ${PREFIX}/bin/amap6
	${INSTALL_PROGRAM} ${WRKSRC}/amapcrap ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/amap.1 ${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/appdefs.trig ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/appdefs.resp ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/appdefs.rpc ${EGDIR}


.include "../../devel/pcre/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"