From 556cab1b0a59523d6e6bf78e570b3b45dc89ed6e Mon Sep 17 00:00:00 2001 From: Claudio Leite Date: Fri, 3 Jul 2015 09:17:14 -0400 Subject: [PATCH 1/3] ngircd: import from oldpackages as-is Signed-off-by: Claudio Leite --- net/ngircd/Makefile | 93 ++++++++++++++++++++++++++++++++++++ net/ngircd/files/ngircd.init | 11 +++++ 2 files changed, 104 insertions(+) create mode 100644 net/ngircd/Makefile create mode 100644 net/ngircd/files/ngircd.init diff --git a/net/ngircd/Makefile b/net/ngircd/Makefile new file mode 100644 index 000000000..ab9795dc2 --- /dev/null +++ b/net/ngircd/Makefile @@ -0,0 +1,93 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ngircd +PKG_VERSION:=18 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:= \ + http://ngircd.barton.de/pub/ngircd/ \ + ftp://ftp.berlios.de/pub/ngircd/ +PKG_MD5SUM:=4958c8b2d128cf3e9888af3f782892a1 + +PKG_INSTALL:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/ngircd/Default + SECTION:=net + CATEGORY:=Network + SUBMENU:=Instant Messaging + DEPENDS:=+zlib + TITLE:=Next Generation IRC Server + URL:=http://ngircd.barton.de +endef + +define Package/ngircd/Default/description + ngIRCd is an Open Source server for the Internet Relay Chat (IRC), which + is developed and published under the terms of the GNU General Public Licence. + ngIRCd means "next generation IRC daemon", it's written from scratch and + not deduced from the "grandfather of IRC daemons", the daemon of the IRCNet. +endef + +define Package/ngircd + $(call Package/ngircd/Default) + TITLE+= (with OpenSSL support) + DEPENDS+= +libopenssl + VARIANT:=ssl +endef + +define Package/ngircd/conffiles +/etc/ngircd.conf +endef + +define Package/ngircd/description + $(call Package/ngircd/Default/description) + This package is built with OpenSSL support. +endef + +define Package/ngircd-nossl +$(call Package/ngircd/Default) + TITLE+= (without OpenSSL support) + VARIANT:=nossl +endef + +Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles) + +define Package/ngircd-nossl/description + $(call Package/ngircd/Default/description) + This package is built without OpenSSL support. +endef + +ifeq ($(BUILD_VARIANT),ssl) + CONFIGURE_ARGS += \ + --with-openssl="$(STAGING_DIR)/usr" +endif + +ifeq ($(BUILD_VARIANT),nossl) + CONFIGURE_ARGS += \ + --without-openssl +endif + +define Package/ngircd/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ngircd $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ngircd.conf $(1)/etc/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/ngircd.init $(1)/etc/init.d/ngircd +endef + +Package/ngircd-nossl/install = $(Package/ngircd/install) + +$(eval $(call BuildPackage,ngircd)) +$(eval $(call BuildPackage,ngircd-nossl)) diff --git a/net/ngircd/files/ngircd.init b/net/ngircd/files/ngircd.init new file mode 100644 index 000000000..6a2135863 --- /dev/null +++ b/net/ngircd/files/ngircd.init @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common + +START=65 + +start() { + service_start /usr/sbin/ngircd +} + +stop() { + service_stop /usr/sbin/ngircd +} From 8a14478b21c8ed38b60a0fd362a92e5b159e5cfe Mon Sep 17 00:00:00 2001 From: Claudio Leite Date: Fri, 3 Jul 2015 09:20:43 -0400 Subject: [PATCH 2/3] ngircd: make myself the maintainer Signed-off-by: Claudio Leite --- net/ngircd/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ngircd/Makefile b/net/ngircd/Makefile index ab9795dc2..ca8d3baf4 100644 --- a/net/ngircd/Makefile +++ b/net/ngircd/Makefile @@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ngircd PKG_VERSION:=18 PKG_RELEASE:=1 +PKG_MAINTAINER:=Claudio Leite +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=COPYING PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ From d9de90c82a149c2d0453da63fd084c17f28b7148 Mon Sep 17 00:00:00 2001 From: Claudio Leite Date: Fri, 3 Jul 2015 09:21:18 -0400 Subject: [PATCH 3/3] ngircd: update to release 22.1 Also enable IPv6 by default, depending on the OpenWrt build config. Signed-off-by: Claudio Leite --- net/ngircd/Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/net/ngircd/Makefile b/net/ngircd/Makefile index ca8d3baf4..a431cd990 100644 --- a/net/ngircd/Makefile +++ b/net/ngircd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2008-2012 OpenWrt.org +# Copyright (C) 2008-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ngircd -PKG_VERSION:=18 +PKG_VERSION:=22.1 PKG_RELEASE:=1 PKG_MAINTAINER:=Claudio Leite PKG_LICENSE:=GPL-2.0 @@ -18,7 +18,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ http://ngircd.barton.de/pub/ngircd/ \ ftp://ftp.berlios.de/pub/ngircd/ -PKG_MD5SUM:=4958c8b2d128cf3e9888af3f782892a1 +PKG_MD5SUM:=586c4fef1fbb77dcbe723e9136ec08eb PKG_INSTALL:=1 @@ -71,6 +71,11 @@ define Package/ngircd-nossl/description This package is built without OpenSSL support. endef +ifeq ($(CONFIG_IPV6),y) + CONFIGURE_ARGS += \ + --enable-ipv6 +endif + ifeq ($(BUILD_VARIANT),ssl) CONFIGURE_ARGS += \ --with-openssl="$(STAGING_DIR)/usr" @@ -81,6 +86,14 @@ ifeq ($(BUILD_VARIANT),nossl) --without-openssl endif +# The test for HAVE_WORKING_GETADDRINFO fails +# when cross-compiling. +# +define Build/Configure + $(call Build/Configure/Default) + $(SED) 's/\/\* #undef HAVE_WORKING_GETADDRINFO \*\//#define HAVE_WORKING_GETADDRINFO 1/' $(PKG_BUILD_DIR)/src/config.h +endef + define Package/ngircd/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ngircd $(1)/usr/sbin/