2 # Copyright (C) 2008-2015 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
13 PKG_MAINTAINER
:=Claudio Leite
<leitec@staticky.com
>
15 PKG_LICENSE_FILES
:=COPYING
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 http
://ngircd.barton.de
/pub
/ngircd
/ \
20 ftp
://ftp.berlios.de
/pub
/ngircd
/
21 PKG_MD5SUM
:=a58e0075fea60176fa7df092ca7e2c6a
25 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/ngircd
/Default
32 SUBMENU
:=Instant Messaging
34 TITLE
:=Next Generation IRC Server
35 URL
:=http
://ngircd.barton.de
38 define Package
/ngircd
/Default
/description
39 ngIRCd is an Open Source server for the Internet Relay Chat
(IRC
), which
40 is developed and published under the terms of the GNU General Public Licence.
41 ngIRCd means
"next generation IRC daemon", it
's written from scratch and
42 not deduced from the "grandfather of IRC daemons", the daemon of the IRCNet.
46 $(call Package/ngircd/Default)
47 TITLE+= (with OpenSSL support)
52 define Package/ngircd/conffiles
56 define Package/ngircd/description
57 $(call Package/ngircd/Default/description)
58 This package is built with OpenSSL support.
61 define Package/ngircd-nossl
62 $(call Package/ngircd/Default)
63 TITLE+= (without OpenSSL support)
67 Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles)
69 define Package/ngircd-nossl/description
70 $(call Package/ngircd/Default/description)
71 This package is built without OpenSSL support.
74 ifeq ($(CONFIG_IPV6),y)
79 ifeq ($(BUILD_VARIANT),ssl)
81 --with-openssl="$(STAGING_DIR)/usr"
84 ifeq ($(BUILD_VARIANT),nossl)
89 # The test for HAVE_WORKING_GETADDRINFO fails
90 # when cross-compiling.
92 define Build/Configure
93 $(call Build/Configure/Default)
94 $(SED) 's
/\
/\
* #undef HAVE_WORKING_GETADDRINFO \*\//#define HAVE_WORKING_GETADDRINFO 1/' $(PKG_BUILD_DIR)/src/config.h
97 define Package
/ngircd
/install
98 $(INSTALL_DIR
) $(1)/usr
/sbin
99 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ngircd
$(1)/usr
/sbin
/
100 $(INSTALL_DIR
) $(1)/etc
101 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/ngircd.conf
$(1)/etc
/
102 $(INSTALL_DIR
) $(1)/etc
/init.d
103 $(INSTALL_BIN
) .
/files
/ngircd.init
$(1)/etc
/init.d
/ngircd
106 Package
/ngircd-nossl
/install = $(Package
/ngircd
/install)
108 $(eval
$(call BuildPackage
,ngircd
))
109 $(eval
$(call BuildPackage
,ngircd-nossl
))