2013-09-20 22:55:24 +00:00
|
|
|
# Created by: Yonatan <onatan@gmail.com>
|
2003-04-02 10:22:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= amap
|
2005-10-26 01:42:18 +00:00
|
|
|
PORTVERSION= 5.2
|
2014-05-01 01:42:38 +00:00
|
|
|
PORTREVISION= 1
|
2003-04-02 10:22:39 +00:00
|
|
|
CATEGORIES= security
|
2006-08-07 12:55:51 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PACKETSTORM}
|
|
|
|
MASTER_SITE_SUBDIR= groups/thc
|
2003-04-02 10:22:39 +00:00
|
|
|
|
2004-11-14 22:26:11 +00:00
|
|
|
MAINTAINER= onatan@gmail.com
|
2003-04-02 10:22:39 +00:00
|
|
|
COMMENT= Application mapper
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2005-05-22 15:16:46 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
2003-06-30 02:10:18 +00:00
|
|
|
|
2014-05-01 02:33:06 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2005-05-22 15:16:46 +00:00
|
|
|
PORTDOCS= README TODO CHANGES AMAP-LIB-INTERFACE
|
|
|
|
|
2006-02-20 13:31:57 +00:00
|
|
|
LOCAL_CONF_FILES= appdefs.resp appdefs.rpc appdefs.trig
|
2005-05-22 15:16:46 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/local|${LOCALBASE}|g; \
|
|
|
|
s|\(-DAMAP_PREFIX\)=\(\$$PREFIX\)|\1=\\\\\\"\2\\\\\\"|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|; s|^CC=.*||' \
|
|
|
|
${WRKSRC}/Makefile.am
|
|
|
|
@${REINPLACE_CMD} -e 's|etc/|etc/amap/|g' ${WRKSRC}/amap-lib.c
|
2003-04-02 10:22:39 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-05-01 01:42:38 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/amap ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${LN} -s amap ${STAGEDIR}${PREFIX}/bin/amap6
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/amapcrap ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/amap-lib.o ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
|
|
|
.for i in amap.h amap-inc.h amap-lib.h
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
.for i in ${LOCAL_CONF_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/amap.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
2003-04-02 10:22:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|