2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://prosody.im
/downloads
/source
/
16 PKG_MD5SUM
:=bcc7828c041e53b2c909822b1acdf600
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/prosody
23 DEPENDS
:=+liblua
+libidn
+libopenssl
+luasocket
+luaexpat
+luasec
25 URL
:=http
://prosody.im
28 define Package
/prosody
/description
29 Prosody is an exciting new server for Jabber
/XMPP
30 written in Lua. It aims to be easy to use
, and light
34 define Package
/prosody
/conffiles
35 /etc
/prosody
/prosody.cfg.lua
38 TARGET_CFLAGS
+= $(FPIC
)
40 define Build
/Configure
41 # this is *NOT* GNU autoconf stuff
42 (cd
$(PKG_BUILD_DIR
); .
/configure \
44 --with-lua
="$(STAGING_DIR)/host/bin" \
45 --with-lua-include
="$(STAGING_DIR)/usr/include" \
46 --with-lua-lib
="$(STAGING_DIR)/usr/lib" \
47 --cflags="$(TARGET_CFLAGS)" \
52 $(call Build
/Compile
/Default
,\
53 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -std=gnu99" \
54 LDFLAGS
="$(TARGET_LDFLAGS)" \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Package
/prosody
/install
62 $(INSTALL_DIR
) $(1)/etc
/prosody
63 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/prosody
/prosody.cfg.lua
$(1)/etc
/prosody
/
64 $(INSTALL_DIR
) $(1)/etc
/prosody
/certs
65 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/prosody
/certs
/localhost.
{cert
,key
} $(1)/etc
/prosody
/certs
/
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/prosody
{,ctl
} $(1)/usr
/bin
/
68 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/prosody.version
$(1)/usr
/lib
/prosody
/
70 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
/core
71 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/core
/*.lua
$(1)/usr
/lib
/prosody
/core
/
72 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
/fallbacks
73 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/fallbacks
/*.lua
$(1)/usr
/lib
/prosody
/fallbacks
/
74 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
/modules
75 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/modules
/*.lua
$(1)/usr
/lib
/prosody
/modules
/
76 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
/net
77 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/net
/*.lua
$(1)/usr
/lib
/prosody
/net
/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/prosody
/util
79 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/prosody
/util
/*.
{lua
,so
} $(1)/usr
/lib
/prosody
/util
/
82 $(eval
$(call BuildPackage
,prosody
))