2010-12-17 13:31:44 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 Alfred E. Heggestad
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=restund
|
|
|
|
PKG_VERSION:=0.1.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.creytiv.com/pub/
|
|
|
|
#PKG_MD5SUM:=ee345fe605ffcfce843dae4aed81122b
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/restund
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libre
|
|
|
|
TITLE:=libre stun server
|
|
|
|
URL:=http://www.creytiv.com/
|
|
|
|
endef
|
|
|
|
|
|
|
|
#PKG_MAKE_OPTS += USE_MYSQL=
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-12-17 20:41:15 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
$(PKG_MAKE_OPTS) \
|
|
|
|
SYSROOT="$(TOOLCHAIN_DIR)" \
|
|
|
|
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
|
|
|
RELEASE=1 \
|
|
|
|
all install
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/restund/install
|
2010-12-17 20:41:15 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/restund $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/$(PKG_NAME)/modules
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/modules/*.so $(1)/usr/lib/$(PKG_NAME)/modules/.
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/restund.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/restund.init $(1)/etc/init.d/restund
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,restund))
|