openbsd-ports/security/luasec/Makefile
gsoares 894e157435 - update security/luasec to 0.4.1
- tweaks patch-src_Makefile from sthen@ and jolan@
- remove jolan@ as maintainer per his request
- take maintainership

OK sthen@ jolan@
"get it in" jasper@
2011-06-10 15:04:23 +00:00

40 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2011/06/10 15:04:23 gsoares Exp $
SHARED_ONLY= Yes
COMMENT= lua binding to OpenSSL to provide TLS/SSL communication
DISTNAME= luasec-0.4.1
CATEGORIES= security
MASTER_SITES= http://www.inf.puc-rio.br/~brunoos/luasec/download/
HOMEPAGE= http://www.inf.puc-rio.br/~brunoos/luasec/
MAINTAINER= Gleydson Soares <gsoares@openbsd.org>
# MIT
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MODULES= lang/lua
NO_REGRESS= Yes
RUN_DEPENDS+= net/luasocket
WANTLIB+= crypto ssl
MAKE_ENV+= INCDIR="-I${LOCALBASE}/include/" SAVECFLAGS="${CFLAGS}"
ALL_TARGET= bsd
EXAMPLEDIR= ${PREFIX}/share/examples/luasec
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/src/ssl.so ${MODLUA_LIBDIR}
${INSTALL_DATA} ${WRKSRC}/src/ssl.lua ${MODLUA_DATADIR}
cd ${WRKSRC}/samples && \
find . -type d \
-exec ${INSTALL_DATA_DIR} ${EXAMPLEDIR}/{} \; && \
find . ! -type d \
-exec ${INSTALL_DATA} -m 644 {} ${EXAMPLEDIR}/{} \;
.include <bsd.port.mk>