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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://ngircd.barton.de
/pub
/ngircd
16 PKG_HASH
:=56dcc6483058699fcdd8e54f5010eecee09824b93bad7ed5f18818e550d855c6
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:ngircd
:ngircd
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/ngircd
/Default
31 SUBMENU
:=Instant Messaging
33 TITLE
:=Next Generation IRC Server
34 URL
:=https
://ngircd.barton.de
37 define Package
/ngircd
/Default
/description
38 ngIRCd is an Open Source server for the Internet Relay Chat
(IRC
), which
39 is developed and published under the terms of the GNU General Public Licence.
40 ngIRCd means
"next generation IRC daemon", it
's written from scratch and
41 not deduced from the "grandfather of IRC daemons", the daemon of the IRCNet.
45 $(call Package/ngircd/Default)
46 TITLE+= (with OpenSSL support)
51 define Package/ngircd/conffiles
55 define Package/ngircd/description
56 $(call Package/ngircd/Default/description)
57 This package is built with OpenSSL support.
60 define Package/ngircd-nossl
61 $(call Package/ngircd/Default)
62 TITLE+= (without OpenSSL support)
66 Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles)
68 define Package/ngircd-nossl/description
69 $(call Package/ngircd/Default/description)
70 This package is built without OpenSSL support.
73 ifeq ($(CONFIG_IPV6),y)
78 ifeq ($(BUILD_VARIANT),ssl)
80 --with-openssl="$(STAGING_DIR)/usr"
83 ifeq ($(BUILD_VARIANT),nossl)
88 # The test for HAVE_WORKING_GETADDRINFO fails
89 # when cross-compiling.
91 define Build/Configure
92 $(call Build/Configure/Default)
93 $(SED) 's
/\
/\
* #undef HAVE_WORKING_GETADDRINFO \*\//#define HAVE_WORKING_GETADDRINFO 1/' $(PKG_BUILD_DIR)/src/config.h
96 define Package
/ngircd
/install
97 $(INSTALL_DIR
) $(1)/usr
/sbin
98 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ngircd
$(1)/usr
/sbin
/
99 $(INSTALL_DIR
) $(1)/etc
100 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/ngircd.conf
$(1)/etc
/
101 $(INSTALL_DIR
) $(1)/etc
/init.d
102 $(INSTALL_BIN
) .
/files
/ngircd.init
$(1)/etc
/init.d
/ngircd
105 Package
/ngircd-nossl
/install = $(Package
/ngircd
/install)
107 $(eval
$(call BuildPackage
,ngircd
))
108 $(eval
$(call BuildPackage
,ngircd-nossl
))