diff --git a/games/tinymux/Makefile b/games/tinymux/Makefile index 0688d24f345f..dea434e43fc0 100644 --- a/games/tinymux/Makefile +++ b/games/tinymux/Makefile @@ -20,9 +20,6 @@ USES= gmake GNU_CONFIGURE= yes USE_LDCONFIG= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lcrypto - PATCHLEVEL= 12 PORTDOCS= * @@ -49,7 +46,9 @@ MEMORY_BASED_CONFIGURE_ENABLE= memorybased REALITY_LVLS_CONFIGURE_ENABLE= realitylvls SELFCHECK_CONFIGURE_ENABLE= selfcheck SSL_CONFIGURE_ENABLE= ssl -SSL_USE= OPENSSL=yes +SSL_USES= ssl +SSL_CPPFLAGS= -I${OPENSSLINC} +SSL_LDFLAGS= -L${OPENSSLLIB} -lcrypto WOD_REALMS_CONFIGURE_ENABLE= wodrealms SUB_FILES= ${PORTNAME} pkg-deinstall pkg-message diff --git a/games/tinymux/files/patch-player.cpp b/games/tinymux/files/patch-player.cpp new file mode 100644 index 000000000000..691ae109cb7b --- /dev/null +++ b/games/tinymux/files/patch-player.cpp @@ -0,0 +1,20 @@ +--- player.cpp.orig 2012-07-12 05:25:51 UTC ++++ player.cpp +@@ -422,7 +422,7 @@ void ChangePassword(dbref player, const + s_Pass(player, pEncodedPassword); + } + +-#ifdef UNIX_DIGEST ++#if defined(UNIX_DIGEST) && !defined(OPENSSL_NO_SHA0) + const UTF8 *p6h_xx_crypt(const UTF8 *szPassword) + { + // Calculate SHA-0 Hash. +@@ -598,7 +598,7 @@ const UTF8 *mux_crypt(const UTF8 *szPass + case CRYPT_CLEARTEXT: + return szPassword; + +-#ifdef UNIX_DIGEST ++#if defined(UNIX_DIGEST) && !defined(OPENSSL_NO_SHA0) + case CRYPT_P6H_XX: + return p6h_xx_crypt(szPassword); + #endif