blob: 5a05febc69d25f9455a671186d3d5c120cb13b6f (
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
|
# New ports collection makefile for: prosody
# Date created: 25 June 2009
# Whom: Andrew Lewis <freeghb@gmail.com>
#
# $FreeBSD$
#
PORTNAME= prosody
PORTVERSION= 0.5.1
CATEGORIES= net-im
MASTER_SITES= http://prosody.im/downloads/source/
MAINTAINER= kelly.hays@jkhfamily.org
COMMENT= A simple extensible XMPP server written in Lua
BUILD_DEPENDS= ${LOCALBASE}/include/stringprep.h:${PORTSDIR}/dns/libidn
RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket \
${LUA_MODLIBDIR}/ssl.so:${PORTSDIR}/security/luasec \
${LUA_MODLIBDIR}/lxp.so:${PORTSDIR}/textproc/luaexpat
USE_RC_SUBR= prosody
MAN1= prosodyctl.1
MANCOMPRESSED= no
USE_LUA= 5.1
WANT_LUA_VER= 5.1
HAS_CONFIGURE= yes
CONFIGURE_ARGS+="--ostype=freebsd"
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" LUA_SUFFIX="-${LUA_VER}" LUA_LIBDIR="${LUA_LIBDIR}" LUA_INCDIR="${LUA_INCDIR}"
SUB_FILES= pkg-install pkg-deinstall prosody.cfg.lua.install
pre-install:
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
${MV} ${WRKDIR}/prosody.cfg.lua.install ${WRKSRC}/prosody.cfg.lua.install
${REINPLACE_CMD} -e 's|/usr/bin/env lua|${LUA_CMD}|' ${WRKSRC}/prosody ${WRKSRC}/prosodyctl
post-install:
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|