aboutsummaryrefslogtreecommitdiff
path: root/security/luasec/Makefile
blob: 2584bb30830c9ba981755d8d117ea0af2e72b949 (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
PORTNAME=	luasec
PORTVERSION=	1.2.0
DISTVERSIONPREFIX=	v
CATEGORIES=	security
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}

MAINTAINER=	thomas@beingboiled.info
COMMENT=	Lua binding for the OpenSSL library to provide TLS/SSL communication

LICENSE=	MIT

USES=		lua:module ssl

USE_GITHUB=	yes
GH_ACCOUNT=	brunoos

MAKE_ENV+=	LUAPATH=${LUA_MODSHAREDIR} LUACPATH=${LUA_MODLIBDIR} \
		INC_PATH=-I${LUA_INCDIR} LIB_PATH=-L${LUA_LIBDIR} \
		DESTDIR=${STAGEDIR}
ALL_TARGET=	bsd
CFLAGS+=	-I${OPENSSLINC} -DOPENSSL_NO_SSL3
LDFLAGS+=	-L${OPENSSLLIB}

post-install:
	${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR}/ssl.so

.include <bsd.port.mk>