Makefile (2797B)
1 # 2 # Copyright (C) 2008-2015 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:=ngircd 11 PKG_VERSION:=24 12 PKG_RELEASE:=1 13 PKG_MAINTAINER:=Claudio Leite <leitec@staticky.com> 14 PKG_LICENSE:=GPL-2.0 15 PKG_LICENSE_FILES:=COPYING 16 17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 18 PKG_SOURCE_URL:= \ 19 http://ngircd.barton.de/pub/ngircd/ \ 20 ftp://ftp.berlios.de/pub/ngircd/ 21 PKG_MD5SUM:=59b2d56f6eb55b85225e91ebfbfc848b 22 23 PKG_INSTALL:=1 24 25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 26 27 include $(INCLUDE_DIR)/package.mk 28 29 define Package/ngircd/Default 30 SECTION:=net 31 CATEGORY:=Network 32 SUBMENU:=Instant Messaging 33 DEPENDS:=+zlib 34 TITLE:=Next Generation IRC Server 35 URL:=http://ngircd.barton.de 36 endef 37 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. 43 endef 44 45 define Package/ngircd 46 $(call Package/ngircd/Default) 47 TITLE+= (with OpenSSL support) 48 DEPENDS+= +libopenssl 49 VARIANT:=ssl 50 endef 51 52 define Package/ngircd/conffiles 53 /etc/ngircd.conf 54 endef 55 56 define Package/ngircd/description 57 $(call Package/ngircd/Default/description) 58 This package is built with OpenSSL support. 59 endef 60 61 define Package/ngircd-nossl 62 $(call Package/ngircd/Default) 63 TITLE+= (without OpenSSL support) 64 VARIANT:=nossl 65 endef 66 67 Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles) 68 69 define Package/ngircd-nossl/description 70 $(call Package/ngircd/Default/description) 71 This package is built without OpenSSL support. 72 endef 73 74 ifeq ($(CONFIG_IPV6),y) 75 CONFIGURE_ARGS += \ 76 --enable-ipv6 77 endif 78 79 ifeq ($(BUILD_VARIANT),ssl) 80 CONFIGURE_ARGS += \ 81 --with-openssl="$(STAGING_DIR)/usr" 82 endif 83 84 ifeq ($(BUILD_VARIANT),nossl) 85 CONFIGURE_ARGS += \ 86 --without-openssl 87 endif 88 89 # The test for HAVE_WORKING_GETADDRINFO fails 90 # when cross-compiling. 91 # 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 95 endef 96 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 104 endef 105 106 Package/ngircd-nossl/install = $(Package/ngircd/install) 107 108 $(eval $(call BuildPackage,ngircd)) 109 $(eval $(call BuildPackage,ngircd-nossl))