2 # Copyright (C) 2008-2012 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
16 http://ngircd.barton.de/pub/ngircd/ \
17 ftp://ftp.berlios.de/pub/ngircd/
18 PKG_MD5SUM:=4958c8b2d128cf3e9888af3f782892a1
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
24 include $(INCLUDE_DIR)/package.mk
26 define Package/ngircd/Default
29 SUBMENU:=Instant Messaging
31 TITLE:=Next Generation IRC Server
32 URL:=http://ngircd.barton.de
35 define Package/ngircd/Default/description
36 ngIRCd is an Open Source server for the Internet Relay Chat (IRC), which
37 is developed and published under the terms of the GNU General Public Licence.
38 ngIRCd means "next generation IRC daemon", it's written from scratch and
39 not deduced from the "grandfather of IRC daemons", the daemon of the IRCNet.
43 $(call Package/ngircd/Default)
44 TITLE+= (with OpenSSL support)
49 define Package/ngircd/conffiles
53 define Package/ngircd/description
54 $(call Package/ngircd/Default/description)
55 This package is built with OpenSSL support.
58 define Package/ngircd-nossl
59 $(call Package/ngircd/Default)
60 TITLE+= (without OpenSSL support)
64 Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles)
66 define Package/ngircd-nossl/description
67 $(call Package/ngircd/Default/description)
68 This package is built without OpenSSL support.
71 ifeq ($(BUILD_VARIANT),ssl)
73 --with-openssl="$(STAGING_DIR)/usr"
76 ifeq ($(BUILD_VARIANT),nossl)
81 define Package/ngircd/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ngircd $(1)/usr/sbin/
84 $(INSTALL_DIR) $(1)/etc
85 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ngircd.conf $(1)/etc/
86 $(INSTALL_DIR) $(1)/etc/init.d
87 $(INSTALL_BIN) ./files/ngircd.init $(1)/etc/init.d/ngircd
90 Package/ngircd-nossl/install = $(Package/ngircd/install)
92 $(eval $(call BuildPackage,ngircd))
93 $(eval $(call BuildPackage,ngircd-nossl))