blob: b0bbc1d4664de689171de9b92a0389bb84934c41 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Created by: Yonatan <onatan@gmail.com>
# $FreeBSD$
PORTNAME= amap
PORTVERSION= 5.4
CATEGORIES= security
MASTER_SITES= PACKETSTORM/groups/thc
MAINTAINER= onatan@gmail.com
COMMENT= Application mapper
LICENSE= AMAP GPLv2
LICENSE_COMB= multi
LICENSE_NAME_AMAP= amap license
LICENSE_FILE_AMAP= ${WRKSRC}/LICENCE.AMAP
LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE.GNU
LICENSE_PERMS_AMAP= dist-mirror dist-sell pkg-mirror pkg-sell
USES= ssl
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV= SSL_PATH=${OPENSSLLIB} \
CRYPTO_PATH=${OPENSSLLIB} \
SSL_IPATH=${OPENSSLINC}
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS
PORTDOCS= README TODO CHANGES AMAP-LIB-INTERFACE
LOCAL_CONF_FILES= appdefs.resp appdefs.rpc appdefs.trig
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
do-install:
${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
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|