2003-04-02 12:22:39 +02:00
|
|
|
# Ports collection makefile for: amap
|
|
|
|
# Date created: 23 Mar 2003
|
2004-11-14 23:26:11 +01:00
|
|
|
# Whom: Yonatan <onatan@gmail.com>
|
2003-04-02 12:22:39 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= amap
|
2005-10-26 03:42:18 +02:00
|
|
|
PORTVERSION= 5.2
|
2003-04-02 12:22:39 +02:00
|
|
|
CATEGORIES= security
|
2006-08-07 14:55:51 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PACKETSTORM}
|
|
|
|
MASTER_SITE_SUBDIR= groups/thc
|
2003-04-02 12:22:39 +02:00
|
|
|
|
2004-11-14 23:26:11 +01:00
|
|
|
MAINTAINER= onatan@gmail.com
|
2003-04-02 12:22:39 +02:00
|
|
|
COMMENT= Application mapper
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2005-05-22 17:16:46 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
2003-06-30 04:10:18 +02:00
|
|
|
|
2003-04-02 12:22:39 +02:00
|
|
|
MAN1= amap.1
|
2005-05-22 17:16:46 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= README TODO CHANGES AMAP-LIB-INTERFACE
|
|
|
|
.endif
|
|
|
|
PLIST_SUB= AMAPLIBDIR=lib/${PORTNAME} AMAPINCDIR=include/${PORTNAME}
|
|
|
|
|
|
|
|
CONF_DIR= ${PREFIX}/etc/${PORTNAME}
|
2006-02-20 14:31:57 +01:00
|
|
|
LOCAL_CONF_FILES= appdefs.resp appdefs.rpc appdefs.trig
|
2005-05-22 17:16:46 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
2006-02-20 14:31:57 +01:00
|
|
|
SUB_LIST= CONF_FILES="${LOCAL_CONF_FILES}" CONF_DIR="${CONF_DIR}"
|
2005-05-22 17:16:46 +02: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 12:22:39 +02:00
|
|
|
|
|
|
|
do-install:
|
2003-08-13 14:54:55 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/amap ${PREFIX}/bin
|
2005-05-22 17:16:46 +02:00
|
|
|
${LN} -s ${PREFIX}/bin/amap ${PREFIX}/bin/amap6
|
2003-08-13 14:54:55 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/amapcrap ${PREFIX}/bin
|
2005-05-22 17:16:46 +02:00
|
|
|
${MKDIR} ${PREFIX}/lib/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/amap-lib.o ${PREFIX}/lib/${PORTNAME}
|
|
|
|
${MKDIR} ${PREFIX}/include/${PORTNAME}
|
|
|
|
. for i in amap.h amap-inc.h amap-lib.h
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include/${PORTNAME}
|
|
|
|
. endfor
|
|
|
|
${MKDIR} ${CONF_DIR}
|
2006-02-20 14:31:57 +01:00
|
|
|
. for i in ${LOCAL_CONF_FILES}
|
2005-05-22 17:16:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${CONF_DIR}/${i}.default
|
2003-08-13 14:54:55 +02:00
|
|
|
. endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/amap.1 ${MANPREFIX}/man/man1
|
2003-06-30 04:10:18 +02:00
|
|
|
. if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-02-10 15:44:32 +01:00
|
|
|
. for i in ${PORTDOCS}
|
2003-06-30 04:10:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
. endif
|
2005-05-22 17:16:46 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2003-04-02 12:22:39 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|