Port psybnc to -ng
[openwrt/svn-archive/archive.git] / net / psybnc / Makefile
1 #
2 # Copyright (C) 2006 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:=psybnc
12 PKG_VERSION:=2.3.2-7
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
15
16 PKG_SOURCE_URL:=http://www.psybnc.info/download/beta/
17 PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/psybnc
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=
28 TITLE:=An IRC-Bouncer with many features
29 DESCRIPTION:=psyBNC is an easy-to-use, multi-user, permanent\\\
30 IRC-Bouncer with many features. Some of its features\\\
31 vhost- and relay support to connected bouncers and an\\\
32 extensive online help system. Many other helpful\\\
33 functions are included.\\\
34 URL:=http://www.psybnc.info/
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CC="$(TARGET_CC)" \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 HOSTCC="$(HOSTCC)" \
42 all
43 endef
44
45 define Package/psybnc/install
46 install -d -m0755 $(1)/usr/share/psybnc/lang/
47 install -d -m0755 $(1)/usr/share/psybnc/log/
48 install -d -m0755 $(1)/usr/sbin/
49 install -m0755 $(PKG_BUILD_DIR)/psybnc $(1)/usr/share/psybnc/
50 install -m0600 $(PKG_BUILD_DIR)/psybnc.conf $(1)/usr/share/psybnc/
51 install -m0644 $(PKG_BUILD_DIR)/lang/english.lng $(1)/usr/share/psybnc/lang/
52 install -m0755 $(PKG_BUILD_DIR)/psybnc.sh $(1)/usr/sbin/psybnc
53 endef
54
55 $(eval $(call BuildPackage,psybnc))