tinc: moved to github
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bahamut
11 PKG_VERSION:=1.8.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-release.tar.gz
15 PKG_SOURCE_URL:=http://bahamut.dal.net/download
16 PKG_MD5SUM:=a814a4e0ff1fabcf026ea8574b4a1e20
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bahamut
21   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+libopenssl +zlib
24   SUBMENU:=Instant Messaging
25   TITLE:=Bahamut IRC server
26   URL:=http://bahamut.dal.net
27 endef
28
29 TARGET_CFLAGS += \
30         -DSYS_ERRLIST_DECLARED
31
32 define Build/Configure
33         $(call Build/Configure/Default,\
34                 --with-maxconnections=64 \
35                 --with-openssl="$(STAGING_DIR)/usr/lib" \
36                 ,\
37                 ac_cv_func_dn_skipname=yes \
38                 ZLIB_HOME="$(STAGING_DIR)/usr" \
39         )
40 endef
41
42 define Build/Compile
43         $(call Build/Compile/Default,\
44                 prefix="$(PKG_INSTALL_DIR)/usr" \
45                 INSTALL_DIR="$(PKG_INSTALL_DIR)" \
46                 STAGING_DIR="$(STAGING_DIR)" \
47                 all \
48         )
49 endef
50
51 define Package/bahamut/install
52         $(INSTALL_DIR) $(1)/usr/sbin
53         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/sbin
55         $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/*.{txt,conf} $(1)/etc/$(PKG_NAME)
56 endef
57
58 $(eval $(call BuildPackage,bahamut))