unrealircd/Makefile |
| 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # See /LICENSE for more information. |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/rules.mk |
| 7 | |
| 8 | PKG_NAME:=unrealircd |
| 9 | PKG_VERSION:=3.2.10.1 |
| 10 | PKG_RELEASE:=1 |
| 11 | |
| 12 | PKG_SOURCE:=Unreal$(PKG_VERSION).tar.gz |
| 13 | PKG_SOURCE_URL:=http://www.unrealircd.com/downloads/ |
| 14 | PKG_MD5SUM:=97b4bd68a804e517355efa756f401a90 |
| 15 | |
| 16 | PKG_BUILD_DIR:=$(BUILD_DIR)/Unreal$(PKG_VERSION) |
| 17 | |
| 18 | include $(INCLUDE_DIR)/package.mk |
| 19 | |
| 20 | define 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 |
| 27 | endef |
| 28 | |
| 29 | define Package/unrealircd/conffiles |
| 30 | /etc/unrealircd.conf |
| 31 | endef |
| 32 | |
| 33 | CONFIGURE_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 | |
| 48 | CONFIGURE_VARS+=ac_cv_nonblocking=O_NONBLOCK ac_cv_force_core=yes ac_cv_sigtype=POSIX |
| 49 | |
| 50 | define 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 |
| 59 | endef |
| 60 | |
| 61 | $(eval $(call BuildPackage,unrealircd)) |
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 |