Date:2013-08-01 14:18:09 (7 years 10 days ago)
Author:kyak
Commit:9b6e25c984c6e63deee620893faf08905630541e
Message:unrealircd: initial commit

Files: unrealircd/Makefile (1 diff)
unrealircd/files/unrealircd.init (1 diff)
unrealircd/patches/01-no_openssl_ripe.patch (1 diff)
unrealircd/patches/02-config.patch (1 diff)

Change Details

unrealircd/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=unrealircd
9PKG_VERSION:=3.2.10.1
10PKG_RELEASE:=1
11
12PKG_SOURCE:=Unreal$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://www.unrealircd.com/downloads/
14PKG_MD5SUM:=97b4bd68a804e517355efa756f401a90
15
16PKG_BUILD_DIR:=$(BUILD_DIR)/Unreal$(PKG_VERSION)
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/unrealircd
21  SECTION:=net
22  CATEGORY:=Network
23  SUBMENU:=Instant Messaging
24  DEPENDS:=+zlib +libopenssl +libcurl +libcares +tre
25  TITLE:=Open Source IRC Server
26  URL:=http://unrealircd.com
27endef
28
29define Package/unrealircd/conffiles
30/etc/unrealircd.conf
31endef
32
33CONFIGURE_ARGS+= --with-showlistmodes \
34      --enable-prefixaq --with-listen=5 \
35      --with-dpath=/etc/unrealircd \
36      --with-spath=/usr/bin \
37      --with-nick-history=2000 --with-sendq=3000000 \
38      --with-bufferpool=18 \
39      --with-permissions=0600 --with-fd-setsize=1024 \
40      --enable-dynamic-linking \
41      --enable-ziplinks=$(STAGING_DIR)/usr \
42      --enable-ssl=$(STAGING_DIR)/usr \
43      --disable-inet6 \
44      --enable-libcurl=$(STAGING_DIR)/usr \
45      --with-system-cares \
46      --with-system-tre
47
48CONFIGURE_VARS+=ac_cv_nonblocking=O_NONBLOCK ac_cv_force_core=yes ac_cv_sigtype=POSIX
49
50define Package/unrealircd/install
51    $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/unrealircd $(1)/usr/lib/unrealircd/modules
52    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/bin/unrealircd
53    $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/example.conf $(1)/etc/unrealircd/unrealircd.conf
54    $(CP) $(PKG_BUILD_DIR)/*.conf $(1)/etc/unrealircd
55    $(CP) $(PKG_BUILD_DIR)/src/modules/*.so $(1)/usr/lib/unrealircd/modules
56    ln -s /usr/lib/unrealircd/modules $(1)/etc/unrealircd/modules
57    $(INSTALL_DIR) $(1)/etc/init.d
58    $(CP) $(FILES_DIR)/unrealircd.init $(1)/etc/init.d/unrealircd
59endef
60
61$(eval $(call BuildPackage,unrealircd))
unrealircd/files/unrealircd.init
1#!/bin/sh /etc/rc.common
2
3START=65
4
5start() {
6    service_start /usr/bin/unrealircd 1>>/dev/null 2>>/dev/null
7}
8
9stop() {
10    service_stop /usr/bin/unrealircd
11}
unrealircd/patches/01-no_openssl_ripe.patch
1--- a/include/struct.h
2@@ -39,8 +39,10 @@
3 #include <openssl/evp.h>
4 #include <openssl/rand.h>
5 #include <openssl/md5.h>
6+#ifndef OPENSSL_NO_RIPEMD
7 #include <openssl/ripemd.h>
8 #endif
9+#endif
10 #include "common.h"
11 #include "sys.h"
12 #include "hash.h"
13--- a/include/auth.h
14@@ -37,7 +37,9 @@ typedef struct {
15 #ifdef USE_SSL
16 #define AUTHENABLE_SHA1
17 #define AUTHENABLE_SSL_CLIENTCERT
18+#ifndef OPENSSL_NO_RIPEMD
19 #define AUTHENABLE_RIPEMD160
20+#endif
21 #define AUTHENABLE_SSL_CLIENTCERTFP
22 /* OpenSSL provides a crypt() */
23 #ifndef AUTHENABLE_UNIXCRYPT
unrealircd/patches/02-config.patch
1--- a/doc/example.conf
2@@ -33,8 +33,8 @@
3  */
4
5 /* FOR *NIX, uncomment the following 2lines: */
6-//loadmodule "src/modules/commands.so";
7-//loadmodule "src/modules/cloak.so";
8+loadmodule "modules/commands.so";
9+loadmodule "modules/cloak.so";
10
11 /* FOR Windows, uncomment the following 2 lines: */
12 //loadmodule "modules/commands.dll";

Archive Download the corresponding diff file



interactive