Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2014 15:30:52 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349541 - in head/games/tinymux: . files
Message-ID:  <201403291530.s2TFUqDp042562@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Sat Mar 29 15:30:52 2014
New Revision: 349541
URL: http://svnweb.freebsd.org/changeset/ports/349541
QAT: https://qat.redports.org/buildarchive/r349541/

Log:
  - Update to 2.10.1.12
  - Remove FTP master site
  - Remove leading article from COMMENT
  - Add license(s) (GPLv3)
  - Remove DEPRECATED, EXPIRATION_DATE
  - USES gmake instead of USE_GMAKE, remove gettext
  - Add libmux.so, strip library and USE_LDCONFIG=yes
  - Support STAGEDIR and add OPTIONS_SUB
  - Simplify DOCS installation handling
  - Add FIRANMUX MEMORY_BASED REALITY_LVLS SELFCHECK SSL WOD_REALMS Options
  - Add ASYNCHRONOUS_SQL SSL REALITY_LVLS WOD_REALMS to default Options
  - Add OPTIONS_RADIO=MYSQL and ASYNCHRONOUS_SQL INLINE_SQL
  - Add tinymux pkg-deinstall pkg-message
  - Add IGNORE when is used FIRANMUX with WOD_REALMS or REALITY_LVLS
  - Simplify REINPLACE and install installation handling, use %%DATADIR%%
    instead of %%DATADIR%%/game/netmux
  - Recreate pkg-plist with make makeplist and proper use configuration
    handling

Added:
  head/games/tinymux/files/
  head/games/tinymux/files/pkg-deinstall.in   (contents, props changed)
  head/games/tinymux/files/pkg-message.in   (contents, props changed)
  head/games/tinymux/files/tinymux.in   (contents, props changed)
Modified:
  head/games/tinymux/Makefile
  head/games/tinymux/distinfo
  head/games/tinymux/pkg-plist

Modified: head/games/tinymux/Makefile
==============================================================================
--- head/games/tinymux/Makefile	Sat Mar 29 15:26:34 2014	(r349540)
+++ head/games/tinymux/Makefile	Sat Mar 29 15:30:52 2014	(r349541)
@@ -2,78 +2,116 @@
 # $FreeBSD$
 
 PORTNAME=	tinymux
-PORTVERSION=	2.6.5.${PATCHLEVEL}
+PORTVERSION=	2.10.1.${PATCHLEVEL}
 CATEGORIES=	games net
-MASTER_SITES=	GOOGLE_CODE \
-		ftp://ftp.tinymux.org/TinyMUX/old/tinymux-2.6/
+MASTER_SITES=	GOOGLE_CODE
 DISTNAME=	mux-${PORTVERSION}.unix
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Multi-Player FreeForm adventure Program
+COMMENT=	Multi-Player FreeForm adventure Program
 
-WRKSRC=		${WRKDIR}/mux2.6/src
+LICENSE=	GPLv3
 
-DEPRECATED=	Unmaintained since 2001
-EXPIRATION_DATE=	2014-04-12
-USES=		gettext
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
+WRKSRC=		${WRKDIR}/mux2.10/src
 
-PORTDOCS=	*
+USES=		gmake
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-PATCHLEVEL=	33
+PATCHLEVEL=	12
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+PORTDOCS=	*
+
+DOCSRCDIR1=	${WRKSRC}/..
+DOC_FILES1=	ATTACK CHANGES MODULES NOTES README REALITY REALITY.SETUP SGP \
+		SQL SSL
+
+DOCSRCDIR2=	${WRKSRC}/../docs
+DOCSDIR2=	${DOCSDIR}/docs
+DOC_FILES2=	*
+
+OPTIONS_DEFINE=	DOCS FIRANMUX MEMORY_BASED REALITY_LVLS SELFCHECK SSL WOD_REALMS
+
+OPTIONS_DEFAULT=	ASYNCHRONOUS_SQL SSL REALITY_LVLS WOD_REALMS
+OPTIONS_SUB=	yes
+
+OPTIONS_RADIO=	MYSQL
+OPTIONS_RADIO_MYSQL=	ASYNCHRONOUS_SQL INLINE_SQL
+
+ASYNCHRONOUS_SQL_DESC=	MySQL asynchronous support is unique to TinyMUX
+FIRANMUX_DESC=	Firan MUX via Firan's database (need MEMORY_BASED)
+INLINE_SQL_DESC=	MySQL support compatible with PennMUSH, TinyMUSH 3.x
+MEMORY_BASED_DESC=	Memory Based Database support
+REALITY_LVLS_DESC=	Reality Levels support
+SELFCHECK_DESC=	Enable expensive self-checking
+WOD_REALMS_DESC=	World of Darkness Realms support
+
+ASYNCHRONOUS_SQL_CONFIGURE_ENABLE=	stubslave
+FIRANMUX_CONFIGURE_ENABLE=	firanmux
+INLINE_SQL_CONFIGURE_ENABLE=	inlinesql
+MEMORY_BASED_CONFIGURE_ENABLE=	memorybased
+REALITY_LVLS_CONFIGURE_ENABLE=	realitylvls
+SELFCHECK_CONFIGURE_ENABLE=	selfcheck
+SSL_CONFIGURE_ENABLE=	ssl
+WOD_REALMS_CONFIGURE_ENABLE=	wodrealms
+
+SUB_FILES=	${PORTNAME} pkg-deinstall pkg-message
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MASYNCHRONOUS_SQL} || ${PORT_OPTIONS:MINLINE_SQL}
+USE_MYSQL=	yes
+CONFIGURE_ARGS+=	--with-mysql-include=${LOCALBASE}/include/mysql \
+			--with-mysql-libs=${LOCALBASE}/lib/mysql
+.endif
+
+.if ${PORT_OPTIONS:MFIRANMUX}
+.if ${PORT_OPTIONS:MREALITY_LVLS} || ${PORT_OPTIONS:MWOD_REALMS}
+IGNORE=	FIRANMUX is incompatible with both WOD_REALMS and REALITY_LVLS
+.endif
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e \
-		'/^LIBS/s|= @LIBS@|= @LDFLAGS@ @LIBS@|g ; \
-		 /^OPTIM/s|=.*|= @CPPFLAGS@|g' ${WRKSRC}/Makefile.in
+		's|@LIBS@|@LDFLAGS@ @LIBS@|; \
+		 s|^OPTIM =.*|OPTIM = @CPPFLAGS@|' ${WRKSRC}/Makefile.in
 
 do-install:
-# Binaries
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
 .for file in netmux slave
-	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
+	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/sbin/
 .endfor
-	${INSTALL_PROGRAM} ${WRKSRC}/../game/bin/dbconvert ${PREFIX}/bin
-# Configuration
-	${MKDIR} ${ETCDIR}
+	${LN} -sf ${PREFIX}/sbin/netmux ${STAGEDIR}${PREFIX}/bin/dbconvert
+	${INSTALL_DATA} ${WRKSRC}/libmux.so ${STAGEDIR}${PREFIX}/lib/
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmux.so
+
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
 .for file in alias.conf compat.conf mux.config netmux.conf
 	${INSTALL_DATA} ${WRKSRC}/../game/${file} \
-		${ETCDIR}/${file}.sample
+		${STAGEDIR}${ETCDIR}/${file}.sample
 .endfor
-# Data
-	${MKDIR} ${DATADIR}/game/netmux
-.for file in Backup Startmux _backupflat.sh
-	${INSTALL_SCRIPT} ${WRKSRC}/../game/${file} ${DATADIR}/game/netmux/
-.endfor
-	${MKDIR} ${DATADIR}/game/netmux/data
-.for file in db_check db_load db_unload
-	${INSTALL_SCRIPT} ${WRKSRC}/../game/data/${file} \
-		${DATADIR}/game/netmux/data
-.endfor
-	${INSTALL_DATA} ${WRKSRC}/../game/data/netmux.db \
-		${DATADIR}/game/netmux/data
-	${MKDIR} ${DATADIR}/game/netmux/text
-.for file in badsite connect create_reg down full guest help motd \
-	news newuser plushelp quit register staffhelp wizhelp wizmotd wiznews
-	${INSTALL_DATA} ${WRKSRC}/../game/text/${file}.txt \
-		${DATADIR}/game/netmux/text
-.endfor
-# Docs
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for file in ATTACK CHANGES INSTALL NOTES README SGP
-	${INSTALL_DATA} ${WRKSRC}/../${file} ${DOCSDIR}
+
+.if ${PORT_OPTIONS:MSSL}
+	${INSTALL_DATA} ${WRKSRC}/../game/muxssl.conf \
+		${STAGEDIR}${ETCDIR}/muxssl.conf.sample
+.endif
+
+.for d in data text
+	@(cd ${WRKSRC}/../game && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
 .endfor
-.for file in BACKUPS CONFIGURATION CONVERSION CREDITS DISTRIBUTIONS GUESTS \
-	LIMITS MEMORY PATCHES REALMS
-	${INSTALL_DATA} ${WRKSRC}/../docs/${file} ${DOCSDIR}
+	@${CHMOD} 775 ${STAGEDIR}${DATADIR}/data
+
+.for file in Backup Startmux _backupflat.sh
+	${INSTALL_SCRIPT} ${WRKSRC}/../game/${file} \
+		${STAGEDIR}${DATADIR}
 .endfor
-.endif
 
-.include <bsd.port.post.mk>
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
+.include <bsd.port.mk>

Modified: head/games/tinymux/distinfo
==============================================================================
--- head/games/tinymux/distinfo	Sat Mar 29 15:26:34 2014	(r349540)
+++ head/games/tinymux/distinfo	Sat Mar 29 15:30:52 2014	(r349541)
@@ -1,2 +1,2 @@
-SHA256 (mux-2.6.5.33.unix.tar.gz) = 5f4d98be11a72ca5cd947308f69052c681bffecd32130d39fd1c58e577c5637e
-SIZE (mux-2.6.5.33.unix.tar.gz) = 984137
+SHA256 (mux-2.10.1.12.unix.tar.gz) = fe7d7b25723a7fc618a3ff6c15d274a107839d5e9797911d142cbc9d25ce51e8
+SIZE (mux-2.10.1.12.unix.tar.gz) = 1303734

Added: head/games/tinymux/files/pkg-deinstall.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/tinymux/files/pkg-deinstall.in	Sat Mar 29 15:30:52 2014	(r349541)
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+    echo ""
+    echo ""
+    echo "==============================================================================="
+    echo ""
+    echo "After deinstallation, some files may stay in %%DATADIR%% and"
+    echo "%%ETCDIR%%, you can delete them with"
+    echo ""
+    echo "    /bin/rm -fr %%DATADIR%%"
+    echo ""
+    echo "    /bin/rm -fr %%ETCDIR%%"
+    echo ""
+    echo "==============================================================================="
+    echo ""
+fi

Added: head/games/tinymux/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/tinymux/files/pkg-message.in	Sat Mar 29 15:30:52 2014	(r349541)
@@ -0,0 +1,9 @@
+===============================================================================
+
+TinyMUX has been installed.
+
+All options are given only in the config files in %%ETCDIR%%
+
+Have fun!
+
+===============================================================================

Added: head/games/tinymux/files/tinymux.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/tinymux/files/tinymux.in	Sat Mar 29 15:30:52 2014	(r349541)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec ./Startmux "${@}"

Modified: head/games/tinymux/pkg-plist
==============================================================================
--- head/games/tinymux/pkg-plist	Sat Mar 29 15:26:34 2014	(r349540)
+++ head/games/tinymux/pkg-plist	Sat Mar 29 15:30:52 2014	(r349541)
@@ -1,37 +1,48 @@
 bin/dbconvert
+bin/tinymux
+@unexec if cmp -s %D/etc/tinymux/alias.conf %D/etc/tinymux/alias.conf.sample; then rm -f %D/etc/tinymux/alias.conf; fi
 etc/tinymux/alias.conf.sample
+@exec if [ ! -f %D/etc/tinymux/alias.conf ] ; then cp -p %D/%F %B/alias.conf; fi
+@unexec if cmp -s %D/etc/tinymux/compat.conf %D/etc/tinymux/compat.conf.sample; then rm -f %D/etc/tinymux/compat.conf; fi
 etc/tinymux/compat.conf.sample
+@exec if [ ! -f %D/etc/tinymux/compat.conf ] ; then cp -p %D/%F %B/compat.conf; fi
+@unexec if cmp -s %D/etc/tinymux/mux.config %D/etc/tinymux/mux.config.sample; then rm -f %D/etc/tinymux/mux.config; fi
 etc/tinymux/mux.config.sample
+@exec if [ ! -f %D/etc/tinymux/mux.config ] ; then cp -p %D/%F %B/mux.config; fi
+%%SSL%%@unexec if cmp -s %D/etc/tinymux/muxssl.conf %D/etc/tinymux/muxssl.conf.sample; then rm -f %D/etc/tinymux/muxssl.conf; fi
+%%SSL%%etc/tinymux/muxssl.conf.sample
+%%SSL%%@exec if [ ! -f %D/etc/tinymux/muxssl.conf ] ; then cp -p %D/%F %B/muxssl.conf; fi
+@unexec if cmp -s %D/etc/tinymux/netmux.conf %D/etc/tinymux/netmux.conf.sample; then rm -f %D/etc/tinymux/netmux.conf; fi
 etc/tinymux/netmux.conf.sample
+@exec if [ ! -f %D/etc/tinymux/netmux.conf ] ; then cp -p %D/%F %B/netmux.conf; fi
+lib/libmux.so
 sbin/netmux
 sbin/slave
-%%DATADIR%%/game/netmux/Backup
-%%DATADIR%%/game/netmux/Startmux
-%%DATADIR%%/game/netmux/_backupflat.sh
-%%DATADIR%%/game/netmux/data/db_check
-%%DATADIR%%/game/netmux/data/db_load
-%%DATADIR%%/game/netmux/data/db_unload
-%%DATADIR%%/game/netmux/data/netmux.db
-%%DATADIR%%/game/netmux/text/badsite.txt
-%%DATADIR%%/game/netmux/text/connect.txt
-%%DATADIR%%/game/netmux/text/create_reg.txt
-%%DATADIR%%/game/netmux/text/down.txt
-%%DATADIR%%/game/netmux/text/full.txt
-%%DATADIR%%/game/netmux/text/guest.txt
-%%DATADIR%%/game/netmux/text/help.txt
-%%DATADIR%%/game/netmux/text/motd.txt
-%%DATADIR%%/game/netmux/text/news.txt
-%%DATADIR%%/game/netmux/text/newuser.txt
-%%DATADIR%%/game/netmux/text/plushelp.txt
-%%DATADIR%%/game/netmux/text/quit.txt
-%%DATADIR%%/game/netmux/text/register.txt
-%%DATADIR%%/game/netmux/text/staffhelp.txt
-%%DATADIR%%/game/netmux/text/wizhelp.txt
-%%DATADIR%%/game/netmux/text/wizmotd.txt
-%%DATADIR%%/game/netmux/text/wiznews.txt
-@dirrm %%DATADIR%%/game/netmux/text
-@dirrm %%DATADIR%%/game/netmux/data
-@dirrm %%DATADIR%%/game/netmux
-@dirrm %%DATADIR%%/game
-@dirrm %%DATADIR%%
-@dirrm etc/tinymux
+%%DATADIR%%/Backup
+%%DATADIR%%/Startmux
+%%DATADIR%%/_backupflat.sh
+%%DATADIR%%/data/db_check
+%%DATADIR%%/data/db_load
+%%DATADIR%%/data/db_unload
+%%DATADIR%%/data/netmux.db
+%%DATADIR%%/text/badsite.txt
+%%DATADIR%%/text/connect.txt
+%%DATADIR%%/text/create_reg.txt
+%%DATADIR%%/text/down.txt
+%%DATADIR%%/text/full.txt
+%%DATADIR%%/text/guest.txt
+%%DATADIR%%/text/help.txt
+%%DATADIR%%/text/motd.txt
+%%DATADIR%%/text/news.txt
+%%DATADIR%%/text/newuser.txt
+%%DATADIR%%/text/plushelp.txt
+%%DATADIR%%/text/quit.txt
+%%DATADIR%%/text/register.txt
+%%DATADIR%%/text/staffhelp.txt
+%%DATADIR%%/text/wizhelp.txt
+%%DATADIR%%/text/wizmotd.txt
+%%DATADIR%%/text/wiznews.txt
+@dirrm %%DATADIR%%/text
+@dirrmtry %%DATADIR%%/data
+@dirrmtry %%DATADIR%%
+@dirrmtry etc/tinymux



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403291530.s2TFUqDp042562>