[package] fix wrong logic in named init script (#4691)
[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:=2
14
15 PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.psybnc.info/download/beta/
17 PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/psybnc
24 SUBMENU:=Instant Messaging
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=An IRC-Bouncer with many features
28 URL:=http://www.psybnc.info/
29 endef
30
31 define Package/psybnc/description
32 psyBNC is an easy-to-use, multi-user, permanent
33 IRC-Bouncer with many features. Some of its features
34 vhost- and relay support to connected bouncers and an
35 extensive online help system. Many other helpful
36 functions are included.
37 endef
38
39 ifneq ($(SDK)$(CONFIG_BIG_ENDIAN),)
40 ENDIANESS:=1
41 else
42 ENDIANESS:=0
43 endif
44
45 define Build/Compile
46 $(call Build/Compile/Default, \
47 CFLAGS="$(TARGET_CFLAGS)" \
48 HOSTCC="$(HOSTCC)" \
49 all \
50 )
51 endef
52
53 define Package/psybnc/conffiles
54 /etc/psybnc.conf
55 endef
56
57 define Package/psybnc/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/psybnc.sh $(1)/usr/sbin/psybnc
60 $(INSTALL_DIR) $(1)/usr/share/psybnc
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/psybnc $(1)/usr/share/psybnc/
62 $(INSTALL_CONF) $(PKG_BUILD_DIR)/psybnc.conf $(1)/usr/share/psybnc/
63 $(INSTALL_DIR) $(1)/usr/share/psybnc/lang
64 $(INSTALL_DATA) $(PKG_BUILD_DIR)/lang/english.lng $(1)/usr/share/psybnc/lang/
65 $(INSTALL_DIR) $(1)/etc/
66 $(INSTALL_CONF) $(PKG_BUILD_DIR)/psybnc.conf $(1)/etc
67 endef
68
69 $(eval $(call BuildPackage,psybnc))