2008-04-04 18:58:54 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bahamut
|
2009-07-18 08:32:38 +00:00
|
|
|
PKG_VERSION:=1.8.6
|
2008-04-04 18:58:54 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-release.tar.gz
|
2009-07-18 08:32:38 +00:00
|
|
|
PKG_SOURCE_URL:=http://bahamut.dal.net/download
|
|
|
|
PKG_MD5SUM:=a814a4e0ff1fabcf026ea8574b4a1e20
|
2008-04-04 18:58:54 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bahamut
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libopenssl +zlib
|
2011-03-12 06:25:44 +00:00
|
|
|
SUBMENU:=Instant Messaging
|
2008-04-04 18:58:54 +00:00
|
|
|
TITLE:=Bahamut IRC server
|
|
|
|
URL:=http://bahamut.dal.net
|
|
|
|
endef
|
|
|
|
|
2009-05-05 13:27:05 +00:00
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-DSYS_ERRLIST_DECLARED
|
|
|
|
|
2008-04-04 18:58:54 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,\
|
|
|
|
--with-maxconnections=64 \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr/lib" \
|
|
|
|
,\
|
|
|
|
ac_cv_func_dn_skipname=yes \
|
2010-02-19 04:11:47 +00:00
|
|
|
ZLIB_HOME="$(STAGING_DIR)/usr" \
|
2008-04-04 18:58:54 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,\
|
|
|
|
prefix="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
INSTALL_DIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
|
|
|
all \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2009-07-18 08:32:38 +00:00
|
|
|
define Package/bahamut/install
|
2008-04-04 18:58:54 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/sbin
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/*.{txt,conf} $(1)/etc/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bahamut))
|