Lines 1-12
Link Here
|
1 |
# $FreeBSD: head/net/pichi/Makefile 519824 2019-12-11 17:53:48Z jbeich $ |
1 |
# $FreeBSD: head/net/pichi/Makefile 519824 2019-12-11 17:53:48Z jbeich $ |
2 |
|
2 |
|
3 |
PORTNAME= pichi |
3 |
PORTNAME= pichi |
4 |
DISTVERSION= 1.2.0 |
4 |
DISTVERSION= 1.2.1 |
5 |
PORTREVISION= 1 |
5 |
PORTREVISION= 1 |
6 |
CATEGORIES= net |
6 |
CATEGORIES= net |
7 |
|
7 |
|
8 |
MAINTAINER= pichi@elude.in |
8 |
MAINTAINER= pichi@elude.in |
9 |
COMMENT= Application Layer Proxy controlled via RESTful APIs |
9 |
COMMENT= Flexible rule-based proxy |
10 |
|
10 |
|
11 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
Lines 22-41
Link Here
|
22 |
PLIST_SUB= DISTVERSION=${DISTVERSION} |
22 |
PLIST_SUB= DISTVERSION=${DISTVERSION} |
23 |
|
23 |
|
24 |
CMAKE_BUILD_TYPE= MinSizeRel |
24 |
CMAKE_BUILD_TYPE= MinSizeRel |
25 |
CMAKE_ARGS= -DVERSION=${DISTVERSION} |
25 |
CMAKE_ARGS= -DVERSION=${DISTVERSION} |
26 |
CMAKE_ON= BUILD_SERVER BUILD_TEST |
26 |
CMAKE_ON= BUILD_SERVER BUILD_TEST |
27 |
CMAKE_OFF= INSTALL_HEADERS |
27 |
INSTALL_TARGET= install/strip |
28 |
INSTALL_TARGET= install/strip |
28 |
TEST_TARGET= test |
29 |
TEST_TARGET= test |
|
|
30 |
|
29 |
|
31 |
OPTIONS_DEFINE= STATIC TLS |
30 |
OPTIONS_DEFINE= DEVEL STATIC TLS |
32 |
OPTIONS_DEFAULT= TLS |
31 |
OPTIONS_DEFAULT= TLS |
33 |
OPTIONS_SUB= yes |
32 |
OPTIONS_SUB= yes |
34 |
|
33 |
|
35 |
TLS_DESC= Enable TLS support ( requiring OpenSSL ) |
34 |
TLS_DESC= Enable TLS support ( requiring OpenSSL ) |
36 |
TLS_CMAKE_BOOL= ENABLE_TLS |
35 |
TLS_CMAKE_BOOL= ENABLE_TLS |
37 |
|
36 |
|
38 |
STATIC_DESC= Build/Install static library |
37 |
STATIC_DESC= Static linking |
39 |
STATIC_CMAKE_BOOL= STATIC_LINK |
38 |
STATIC_CMAKE_BOOL= STATIC_LINK |
40 |
STATIC_BUILD_DEPENDS= boost-libs>=1.67.0:devel/boost-libs \ |
39 |
STATIC_BUILD_DEPENDS= boost-libs>=1.67.0:devel/boost-libs \ |
41 |
libmaxminddb>=1.3.0:net/libmaxminddb \ |
40 |
libmaxminddb>=1.3.0:net/libmaxminddb \ |
Lines 51-56
Link Here
|
51 |
libmbedx509.so:security/mbedtls \ |
50 |
libmbedx509.so:security/mbedtls \ |
52 |
libsodium.so:security/libsodium |
51 |
libsodium.so:security/libsodium |
53 |
|
52 |
|
|
|
53 |
DEVEL_DESC= Install development files |
54 |
DEVEL_CMAKE_BOOL= INSTALL_HEADERS |
55 |
|
54 |
.include <bsd.port.options.mk> |
56 |
.include <bsd.port.options.mk> |
55 |
|
57 |
|
56 |
.if ! ${PORT_OPTIONS:MSTATIC} |
58 |
.if ! ${PORT_OPTIONS:MSTATIC} |
Lines 65-75
Link Here
|
65 |
.endif |
67 |
.endif |
66 |
.endif |
68 |
.endif |
67 |
|
69 |
|
|
|
70 |
.if ${PORT_OPTIONS:MDEVEL} |
68 |
post-install: |
71 |
post-install: |
69 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
72 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
70 |
${INSTALL_DATA} ${WRKSRC}/test/geo.mmdb ${STAGEDIR}${ETCDIR}/geo.mmdb |
73 |
${INSTALL_DATA} ${WRKSRC}/test/geo.mmdb ${STAGEDIR}${ETCDIR}/geo.mmdb |
71 |
${INSTALL_DATA} ${WRKSRC}/server/pichi.json.default ${STAGEDIR}${ETCDIR}/pichi.json.sample |
74 |
${INSTALL_DATA} ${WRKSRC}/server/pichi.json.default ${STAGEDIR}${ETCDIR}/pichi.json.sample |
72 |
${MKDIR} ${STAGEDIR}${PREFIX}/include |
75 |
${MKDIR} ${STAGEDIR}${PREFIX}/include |
73 |
${INSTALL_DATA} ${WRKSRC}/include/pichi.h ${STAGEDIR}${PREFIX}/include/pichi.h |
76 |
${INSTALL_DATA} ${WRKSRC}/include/pichi.h ${STAGEDIR}${PREFIX}/include/pichi.h |
|
|
77 |
.else |
78 |
post-install: |
79 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
80 |
${INSTALL_DATA} ${WRKSRC}/test/geo.mmdb ${STAGEDIR}${ETCDIR}/geo.mmdb |
81 |
${INSTALL_DATA} ${WRKSRC}/server/pichi.json.default ${STAGEDIR}${ETCDIR}/pichi.json.sample |
82 |
.endif |
74 |
|
83 |
|
75 |
.include <bsd.port.mk> |
84 |
.include <bsd.port.mk> |