Add ngircd (#3739)
[openwrt/svn-archive/archive.git] / net / ngircd / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ngircd
12 PKG_VERSION:=0.12.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ngircd.barton.de/pub/ngircd/
17 PKG_MD5SUM:=db8618877a4dd5fb2be50402a2cb4a14
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ngircd
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+zlib
28 TITLE:=Next Generation IRC Server
29 URL:=http://ngircd.barton.de
30 endef
31
32 define Package/ngircd/description
33 ngIRCd is an Open Source server for the Internet Relay Chat (IRC), which
34 is developed and published under the terms of the GNU General Public Licence.
35 ngIRCd means "next generation IRC daemon", it's written from scratch and
36 not deduced from the "grandfather of IRC daemons", the daemon of the IRCNet.
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default)
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/ngircd/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ngircd $(1)/usr/sbin/
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ngircd.conf $(1)/etc/
54 endef
55
56 $(eval $(call BuildPackage,ngircd))