net/bird: update to version 1.2.5
[openwrt/svn-archive/archive.git] / net / znc / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=znc
11 PKG_VERSION:=0.094
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/znc
16 PKG_MD5SUM:=db101f7a7756285d824b59e3b33e3ad5
17
18 PKG_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/znc/default
23 SUBMENU:=Instant Messaging
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=ZNC
27 URL:=http://en.znc.in/
28 endef
29
30 define Package/znc
31 $(Package/znc/default)
32 DEPENDS:=+libopenssl +uclibcxx +coreutils-su
33 MENU:=1
34 endef
35
36 define Package/znc/description
37 ZNC is an IRC bouncer with many advanced features like detaching,
38 multiple users, per channel playback buffer, SSL, IPv6, transparent DCC
39 bouncing, and c++ module support to name a few.
40 endef
41
42 define Package/znc/conffiles
43 /etc/config/znc
44 endef
45
46
47 CONFIGURE_VARS += \
48 CXX="$(STAGING_DIR)/host/bin/g++-uc"
49 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
50 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
51 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
52 LIBS="-luClibc++ -lm -lssl $(LIBGCC_S) -lc"
53
54 CONFIGURE_ARGS += \
55 --disable-c-ares \
56 --disable-perl
57
58 MAKE_FLAGS += \
59 CXX="$(STAGING_DIR)/host/bin/g++-uc"
60
61 define Build/Configure
62 # webadmin doesn't compile
63 $(RM) $(PKG_BUILD_DIR)/modules/webadmin.cpp
64 $(call Build/Configure/Default,)
65 $(call libtool_disable_rpath)
66 endef
67
68 define Package/znc/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
71 $(INSTALL_DIR) $(1)/etc/init.d
72 $(INSTALL_BIN) ./files/znc.init $(1)/etc/init.d/znc
73 $(INSTALL_DIR) $(1)/etc/config
74 $(INSTALL_DATA) ./files/znc.conf $(1)/etc/config/znc
75 endef
76
77
78 ZNC_MODULES :=
79
80 define module
81 define Package/znc-mod-$(1)
82 $(Package/znc/default)
83 TITLE+= ($(1) plugin)
84 DEPENDS:=znc
85 endef
86
87 define Package/znc-mod-$(1)/description
88 $(strip $(2))
89 endef
90
91 define Package/znc-mod-$(1)/install
92 $(INSTALL_DIR) $$(1)/usr/lib/znc/
93 $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/znc/
94 endef
95
96 ZNC_MODULES += znc-mod-$(1)
97 endef
98
99
100 , := ,
101
102 $(eval $(call module,admin,Allows you to add/remove/edit users and settings on \
103 the fly via IRC messages.))
104
105 $(eval $(call module,adminlog,Log user connects and disconnects and failed \
106 logins to file or syslog.))
107
108 $(eval $(call module,autoattach,Reattaches you to channels on activity.))
109
110 $(eval $(call module,autocycle,Cycles a channel when you are the only one in \
111 there and you don't have op.))
112
113 $(eval $(call module,autoop,Auto op the good guys.))
114
115 $(eval $(call module,autoreply,Gives a automatic reply if someone messages you \
116 if you are away.))
117
118 $(eval $(call module,away,Stores messages while away$(,) also auto away.))
119
120 $(eval $(call module,awaynick,Change your nick while you are away.))
121
122 $(eval $(call module,blockuser,Blocks certain users from using ZNC saying \
123 their account was disabled.))
124
125 $(eval $(call module,buffextras,Add nick changes$(,) joins$(,) parts$(,) topic \
126 changes etc. to your playback buffer.))
127
128 $(eval $(call module,certauth,This module allows users to log in via SSL \
129 client keys.))
130
131 $(eval $(call module,chansaver,Keeping config up to date when user joins and \
132 parts.))
133
134 $(eval $(call module,clientnotify,Notify about new incoming connections to \
135 your user.))
136
137 $(eval $(call module,crypt,Encryption for channel/private messages.))
138
139 $(eval $(call module,disconkick,This module will kick your client from all \
140 channels where you are$(,) in case if ZNC disconnects from server.))
141
142 $(eval $(call module,fail2ban,Block IPs for some time after a failed login.))
143
144 $(eval $(call module,fixfreenode,This module blocks some freenode-specific \
145 feature which results in plus (+) and minus (-) signs being displayed in \
146 front of every message from a client.))
147
148 $(eval $(call module,keepnick,Tries to get you your primary nick.))
149
150 $(eval $(call module,kickrejoin,Implements auto-rejoin-on-kick.))
151
152 $(eval $(call module,lastseen,Logs when a user last logged in to ZNC.))
153
154 $(eval $(call module,nickserv,Auths you with NickServ.))
155
156 $(eval $(call module,notes,This modules stores and displays short notes using \
157 a key/note pairs and shows them to you on connect.))
158
159 $(eval $(call module,partyline,Allows ZNC users to join internal channels and \
160 query other ZNC users on the same ZNC.))
161
162 $(eval $(call module,perform,Performs commands on connect.))
163
164 $(eval $(call module,q,Auths you with Q (and a little more).))
165
166 $(eval $(call module,raw,View all of the raw traffic.))
167
168 $(eval $(call module,route-replies,Routes back answers to the right client \
169 when connected with multiple clients.))
170
171 $(eval $(call module,savebuff,Saves your channel buffers into an encrypted \
172 file so they can survive restarts and reboots.))
173
174 $(eval $(call module,schat,SSL (encrypted) DCC chats.))
175
176 $(eval $(call module,simple-away,This module will automatically set you away \
177 on IRC while you are disconnected from the bouncer.))
178
179 $(eval $(call module,stickychan,Keeps you sticked to specific channels.))
180
181 $(eval $(call module,watch,Monitor activity for specific text patterns from \
182 specific users and have the text sent to a special query window.))
183
184
185 $(eval $(call BuildPackage,znc))
186
187 PKG_CONFIG_DEPENDS := $(patsubst %,CONFIG_PACKAGE_%,$(ZNC_MODULES))
188 $(foreach m,$(ZNC_MODULES),$(eval $(call BuildPackage,$(m))))