ab9795dc2ad4cb2eec6d3ce2be081cf8a528ca90
[openwrt/svn-archive/packages.git] / net / ngircd / Makefile
1 #
2 # Copyright (C) 2008-2012 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:=18
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:= \
16 http://ngircd.barton.de/pub/ngircd/ \
17 ftp://ftp.berlios.de/pub/ngircd/
18 PKG_MD5SUM:=4958c8b2d128cf3e9888af3f782892a1
19
20 PKG_INSTALL:=1
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/ngircd/Default
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=Instant Messaging
30 DEPENDS:=+zlib
31 TITLE:=Next Generation IRC Server
32 URL:=http://ngircd.barton.de
33 endef
34
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.
40 endef
41
42 define Package/ngircd
43 $(call Package/ngircd/Default)
44 TITLE+= (with OpenSSL support)
45 DEPENDS+= +libopenssl
46 VARIANT:=ssl
47 endef
48
49 define Package/ngircd/conffiles
50 /etc/ngircd.conf
51 endef
52
53 define Package/ngircd/description
54 $(call Package/ngircd/Default/description)
55 This package is built with OpenSSL support.
56 endef
57
58 define Package/ngircd-nossl
59 $(call Package/ngircd/Default)
60 TITLE+= (without OpenSSL support)
61 VARIANT:=nossl
62 endef
63
64 Package/ngircd-nossl/conffiles = $(Package/ngircd/conffiles)
65
66 define Package/ngircd-nossl/description
67 $(call Package/ngircd/Default/description)
68 This package is built without OpenSSL support.
69 endef
70
71 ifeq ($(BUILD_VARIANT),ssl)
72 CONFIGURE_ARGS += \
73 --with-openssl="$(STAGING_DIR)/usr"
74 endif
75
76 ifeq ($(BUILD_VARIANT),nossl)
77 CONFIGURE_ARGS += \
78 --without-openssl
79 endif
80
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
88 endef
89
90 Package/ngircd-nossl/install = $(Package/ngircd/install)
91
92 $(eval $(call BuildPackage,ngircd))
93 $(eval $(call BuildPackage,ngircd-nossl))