Update bahamut to 1.8.4 (#3609)
[openwrt/svn-archive/archive.git] / net / bahamut / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bahamut
12 PKG_VERSION:=1.8.4
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=6b9a805f4408f3887e75a9d14c69ab93
15
16 PKG_SOURCE_URL:=http://bahamut.dal.net/download/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-release.tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/bahamut
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libopenssl +zlib
25 TITLE:=Bahamut IRC server
26 URL:=http://bahamut.dal.net
27 endef
28
29 define Build/Configure
30 $(call Build/Configure/Default,\
31 --with-maxconnections=64 \
32 --with-openssl="$(STAGING_DIR)/usr/lib" \
33 ,\
34 ac_cv_func_dn_skipname=yes \
35 )
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/Default,\
40 prefix="$(PKG_INSTALL_DIR)/usr" \
41 INSTALL_DIR="$(PKG_INSTALL_DIR)" \
42 STAGING_DIR="$(STAGING_DIR)" \
43 all \
44 )
45 endef
46
47 define Package/bahamut/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/sbin
51 $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/*.{txt,conf} $(1)/etc/$(PKG_NAME)
52 endef
53
54 $(eval $(call BuildPackage,bahamut))