2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://znc.in
/releases \
16 https
://znc.in
/releases
/archive
17 PKG_HASH
:=ff238aae3f2ae0e44e683c4aee17dc8e4fdd261ca9379d83b48a7d422488de0d
19 PKG_MAINTAINER
:=Jonas Gorski
<jonas.gorski@gmail.com
>
20 PKG_LICENSE
:=Apache-2.0
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:znc
:znc
24 PKG_BUILD_FLAGS
:=no-mips16
26 PKG_CONFIG_DEPENDS
:= CONFIG_ZNC_ICU
28 define Package
/znc
/default
29 SUBMENU
:=Instant Messaging
38 $(Package
/znc
/default
)
39 DEPENDS
:=+libopenssl
+libstdcpp
+ZNC_ICU
:icu
+zlib
43 define Package
/znc
/description
44 ZNC is an IRC bouncer with many advanced features like detaching
,
45 multiple users
, per channel playback buffer
, SSL
, IPv6
, transparent DCC
46 bouncing
, and c
++ module support to name a few.
49 define Package
/znc
/config
50 source
"$(SOURCE)/Config.in"
53 define Package
/znc
/conffiles
58 define Package
/znc
/install
59 $(INSTALL_DIR
) $(1)/usr
/bin
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/znc
$(1)/usr
/bin
/
61 $(INSTALL_DIR
) $(1)/etc
/init.d
62 $(INSTALL_BIN
) .
/files
/znc.init
$(1)/etc
/init.d
/znc
63 $(INSTALL_DIR
) $(1)/etc
/config
64 $(INSTALL_DATA
) .
/files
/znc.conf
$(1)/etc
/config
/znc
65 $(INSTALL_DIR
) $(1)/usr
/lib
/znc
/
73 define Package
/znc-mod-
$(strip $(1))
74 $(Package
/znc
/default
)
75 TITLE
+= ($(strip $(1)) plugin
)
79 define Package
/znc-mod-
$(strip $(1))/description
83 define Package
/znc-mod-
$(strip $(1))/install
84 $(INSTALL_DIR
) $$(1)/usr
/lib
/znc
/
85 $(INSTALL_BIN
) $$(PKG_INSTALL_DIR
)/usr
/lib
/znc
/$(subst -,_
,$(strip $(1))).so
$$(1)/usr
/lib
/znc
/
86 # include webadmin page templates if existing
87 if
[ -d
$$(PKG_INSTALL_DIR
)/usr
/share
/znc
/modules
/$(subst -,_
,$(strip $(1))) ]; then \
88 $(INSTALL_DIR
) $$(1)/usr
/share
/znc
/modules
;\
89 $(CP
) $$(PKG_INSTALL_DIR
)/usr
/share
/znc
/modules
/$(subst -,_
,$(strip $(1))) $$(1)/usr
/share
/znc
/modules
;\
93 ZNC_MODULES
+= znc-mod-
$(strip $(1))
94 $(if
$(CONFIG_PACKAGE_znc-mod-
$(strip $(1))),ZNC_MODULE_TARGETS
+= $(subst -,_
,$(strip $(1))).so
)
98 define Package
/znc-mod-webadmin
99 $(Package
/znc
/default
)
100 TITLE
+= (webadmin plugin
)
104 define Package
/znc-mod-webadmin
/description
105 Allows you to add
/remove
/edit users and settings on the fly via a web browser.
108 define Package
/znc-mod-webadmin
/install
109 $(INSTALL_DIR
) $$(1)/usr
/lib
/znc
/
110 $(INSTALL_BIN
) $$(PKG_INSTALL_DIR
)/usr
/lib
/znc
/webadmin.so
$$(1)/usr
/lib
/znc
/
111 $(INSTALL_DIR
) $$(1)/usr
/share
/znc
/modules
112 $(CP
) $$(PKG_INSTALL_DIR
)/usr
/share
/znc
/modules
/webadmin
$$(1)/usr
/share
/znc
/modules
113 $(INSTALL_DIR
) $$(1)/usr
/share
/znc
/webskins
/
114 $(CP
) $$(PKG_INSTALL_DIR
)/usr
/share
/znc
/webskins
/_default_
$$(1)/usr
/share
/znc
/webskins
/
117 ZNC_MODULES
+= znc-mod-webadmin
118 $(if
$(CONFIG_PACKAGE_znc-mod-webadmin
),ZNC_MODULE_TARGETS
+= webadmin.so
)
122 define Package
/znc-webskin-
$(strip $(1))
123 $(Package
/znc
/default
)
124 TITLE
+= ($(strip $(1)) webskin
)
125 DEPENDS
:=znc-mod-webadmin
128 define Package
/znc-webskin-
$(strip $(1))/description
129 $(strip $(1)) webskin for webadmin
132 define Package
/znc-webskin-
$(strip $(1))/install
133 $(INSTALL_DIR
) $$(1)/usr
/share
/znc
/webskins
/
134 $(CP
) $$(PKG_INSTALL_DIR
)/usr
/share
/znc
/webskins
/$(strip $(1)) $$(1)/usr
/share
/znc
/webskins
/
136 ZNC_MODULES
+= znc-webskin-
$(strip $(1))
141 $(eval
$(call module
,adminlog
,Log user connects and disconnects and failed \
142 logins to file or syslog.
))
144 $(eval
$(call module
,alias
,Provides bouncer-side command alias support.
))
146 $(eval
$(call module
,autoattach
,Reattaches you to channels on activity.
))
148 $(eval
$(call module
,autocycle
,Cycles a channel when you are the only one in \
149 there and you don
't have op.))
151 $(eval $(call module,autoop,Auto op the good guys.))
153 $(eval $(call module,autoreply,Gives a automatic reply if someone messages you \
156 $(eval $(call module,autovoice,Autovoices everyone who joins some channel.))
158 $(eval $(call module,awaynick,Change your nick while you are away.))
160 $(eval $(call module,awaystore,Stores messages while away$(,) also auto away.))
162 $(eval $(call module,block-motd,This module blocks the server's Message of the \
165 $(eval
$(call module
,blockuser
,Blocks certain users from using ZNC saying \
166 their account was disabled.
))
168 $(eval
$(call module
,bouncedcc
,Bounces dcc transfers through the znc server \
169 instead of sending them directly to the user.
))
171 $(eval
$(call module
,buffextras
,Add nick changes
$(,) joins
$(,) parts
$(,) topic \
172 changes etc. to your playback buffer.
))
174 $(eval
$(call module
,cert
,Use a SSL certificate for connecting to a server.
))
176 $(eval
$(call module
,certauth
,This module allows users to log in to ZNC via \
179 $(eval
$(call module
,chansaver
,Keeping config up to date when user joins and \
182 $(eval
$(call module
,clearbufferonmsg
,This module keeps the buffer until the \
183 next message from the client.
))
185 $(eval
$(call module
,clientnotify
,Notify about new incoming connections to \
188 $(eval
$(call module
,controlpanel
,Allows you to add
/remove
/edit users and \
189 settings on the fly via IRC messages.
))
191 $(eval
$(call module
,crypt
,Encryption for channel
/private messages.
))
193 $(eval
$(call module
,ctcpflood
,This module tries to block ctcp floods.
))
195 $(eval
$(call module
,dcc
,Allows you to transfer files to and from ZNC.
))
197 $(eval
$(call module
,disconkick
,This module will kick your client from
all \
198 channels where you are
$(,) in case if ZNC disconnects from server.
))
200 $(eval
$(call module
,fail2ban
,Block IPs for some time after a failed login.
))
202 $(eval
$(call module
,flooddetach
,This module detaches you from channels which \
205 $(eval
$(call module
,identfile
,Places the ident of a user to a file when they \
206 are trying to connect.
))
208 $(eval
$(call module
,imapauth
,Allow users to authenticate via IMAP.
))
210 $(eval
$(call module
,keepnick
,Tries to
get you your primary nick.
))
212 $(eval
$(call module
,kickrejoin
,Implements auto-rejoin-on-kick.
))
214 $(eval
$(call module
,lastseen
,Logs when a user last logged in to ZNC.
))
216 $(eval
$(call module
,listsockets
,This module displays a list of
all open \
219 $(eval
$(call module
,log
,Log conversations to file.
))
221 $(eval
$(call module
,missingmotd
,Sends
422 to clients when they login.
))
223 $(eval
$(call module
,modules_online
,This module fakes the online status of \
226 $(eval
$(call module
,nickserv
,Auths you with NickServ.
))
228 $(eval
$(call module
,notes
,This modules stores and displays short notes using \
229 a key
/note pairs and shows them to you on connect.
))
231 $(eval
$(call module
,notify-connect
,Sends a notice to
all admins when a user \
234 $(eval
$(call module
,perform
,Performs commands on connect.
))
236 $(eval
$(call module
,playback
,Avoid repetitive playback buffers on re-connect \
237 with supported clients
(e.g. mutter
, colluquy
)))
239 $(eval
$(call module
,raw
,View
all of the raw traffic.
))
241 $(eval
$(call module
,route-replies
,Routes back answers to the right client \
242 when connected with multiple clients.
))
244 $(eval
$(call module
,sasl
,The SASL module allows you to authenticate to an \
245 IRC network via SASL.
))
247 $(eval
$(call module
,savebuff
,Saves your channel buffers into an encrypted \
248 file so they can survive restarts and reboots.
))
250 $(eval
$(call module
,schat
,SSL
(encrypted
) DCC chats.
))
252 $(eval
$(call module
,send-raw
,Allows you to send raw traffic to IRC from \
255 $(eval
$(call module
,simple-away
,This module will automatically set you away \
256 on IRC while you are disconnected from the bouncer.
))
258 $(eval
$(call module
,shell,Have your unix
shell in a query window right inside \
259 of your IRC client.
))
261 $(eval
$(call module
,stickychan
,Keeps you sticked to specific channels.
))
263 $(eval
$(call module
,watch
,Monitor activity for specific text patterns from \
264 specific users and have the text sent to a special query window.
))
266 $(eval
$(call webadmin
))
268 $(eval
$(call webskin
,dark-clouds
))
269 $(eval
$(call webskin
,forest
))
270 $(eval
$(call webskin
,ice
))
272 PKG_CONFIG_DEPENDS
+= $(patsubst %,CONFIG_PACKAGE_
%,$(ZNC_MODULES
))
274 include $(INCLUDE_DIR
)/package.mk
275 include $(INCLUDE_DIR
)/cmake.mk
278 -DWANT_ICU
=O
$(if
$(CONFIG_ZNC_ICU
),N
,FF
) \
289 $(eval
$(call BuildPackage
,znc
))
290 $(foreach m
,$(ZNC_MODULES
),$(eval
$(call BuildPackage
,$(m
))))