diff options
author | abs <abs@pkgsrc.org> | 2004-06-26 14:28:09 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2004-06-26 14:28:09 +0000 |
commit | f821265a081787836a818dbd9731db9a274a3211 (patch) | |
tree | 54486086b2eb998adaf2cd6abd3fbf1ba4bc3eab /chat/mu-conference | |
parent | d960c801532485f140aa0cc0467ded539a910b1d (diff) | |
download | pkgsrc-f821265a081787836a818dbd9731db9a274a3211.tar.gz |
Import chat/mu-conference-0.6.0
mu-conference is an implementation of the Multi-User Chat protocol,
as defined in JEP-0045, intended for use against jabberd2 (tested)
or jabberd.
Diffstat (limited to 'chat/mu-conference')
-rw-r--r-- | chat/mu-conference/DESCR | 3 | ||||
-rw-r--r-- | chat/mu-conference/Makefile | 55 | ||||
-rw-r--r-- | chat/mu-conference/PLIST | 3 | ||||
-rw-r--r-- | chat/mu-conference/distinfo | 6 | ||||
-rw-r--r-- | chat/mu-conference/files/muc.sh | 41 |
5 files changed, 108 insertions, 0 deletions
diff --git a/chat/mu-conference/DESCR b/chat/mu-conference/DESCR new file mode 100644 index 00000000000..1cf466f7cf8 --- /dev/null +++ b/chat/mu-conference/DESCR @@ -0,0 +1,3 @@ +Implementation of the Multi-User Chat protocol, as defined in JEP-0045 + +Will work against jabberd or jabberd2 diff --git a/chat/mu-conference/Makefile b/chat/mu-conference/Makefile new file mode 100644 index 00000000000..f91ecd84cb8 --- /dev/null +++ b/chat/mu-conference/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/06/26 14:28:09 abs Exp $ +# + +DISTNAME= mu-conference-0.6.0 +CATEGORIES= chat +MASTER_SITES= http://jabber.terrapin.com/JCR/ http://www.jabberstudio.org/projects/mu-conference/releases/download.php?file= +DISTFILES= ${DISTNAME}.tar.gz jcr-0.1.2.tar.gz + +MAINTAINER= abs@mono.org +HOMEPAGE= http://jabber.terrapin.com/JCR/ +COMMENT= Implementation of the JEP-0045 Multi-User Chat protocol + +DEPENDS+= jabberd-[0-9]*:../../chat/jabberd2 + +WRKSRC= ${WRKDIR}/jcr-0.1.2 +SUBWRKSRC= ${WRKSRC}/${DISTNAME}/src +XMLCONFIG= ${WRKDIR}/${DISTNAME}/muc-jcr.xml + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_BUILDLINK3= yes +USE_PKGINSTALL= yes + +PKG_SYSCONFSUBDIR= jabberd +RCD_SCRIPTS= muc + +FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR} + +EGDIR= ${PREFIX}/share/examples/jabberd +CONF_FILES+= ${EGDIR}/muc-jcr.xml ${PKG_SYSCONFDIR}/muc-jcr.xml + +post-extract: + @${MV} ${XMLCONFIG} ${XMLCONFIG}.in + +pre-configure: + @${SED} -e "s|\(<logdir>\)[^<]*|\1${JABBERD_LOGDIR}|g" \ + -e "s|\(<pidfile>\).|\1${JABBERD_PIDDIR}|g" \ + -e "s|\(<spool>\).|\1${JABBERD_SPOOLDIR}|g" \ + ${XMLCONFIG}.in > ${XMLCONFIG} + +pre-build: + cd ${WRKDIR} ; ${PAX} -rw -pe ${DISTNAME} ${WRKSRC} + +post-build: + ${CP} ${WRKSRC}/src/main.c ${WRKSRC}/src/jcomp.mk ${SUBWRKSRC} + cd ${SUBWRKSRC} ; ${GMAKE} -f jcomp.mk + +do-install: + ${INSTALL_PROGRAM} ${SUBWRKSRC}/mu-conference ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/muc-jcr.xml ${EGDIR} + +.include "../../devel/glib2/buildlink3.mk" +.include "../../devel/pkgconfig/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" + diff --git a/chat/mu-conference/PLIST b/chat/mu-conference/PLIST new file mode 100644 index 00000000000..5cee2b936fd --- /dev/null +++ b/chat/mu-conference/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/26 14:28:09 abs Exp $ +bin/mu-conference +share/examples/jabberd/muc-jcr.xml diff --git a/chat/mu-conference/distinfo b/chat/mu-conference/distinfo new file mode 100644 index 00000000000..df67683b01b --- /dev/null +++ b/chat/mu-conference/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/06/26 14:28:09 abs Exp $ + +SHA1 (mu-conference-0.6.0.tar.gz) = cc81619378a86c6c449c4122586c353102d4876e +Size (mu-conference-0.6.0.tar.gz) = 56272 bytes +SHA1 (jcr-0.1.2.tar.gz) = 057c4e2fb13148a105c8631cea211bdb9c28115b +Size (jcr-0.1.2.tar.gz) = 147439 bytes diff --git a/chat/mu-conference/files/muc.sh b/chat/mu-conference/files/muc.sh new file mode 100644 index 00000000000..3c3d9f28b30 --- /dev/null +++ b/chat/mu-conference/files/muc.sh @@ -0,0 +1,41 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: muc.sh,v 1.1.1.1 2004/06/26 14:28:09 abs Exp $ +# +# PROVIDE: muc +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="muc" +rcvar=$name +command="@PREFIX@/bin/mu-conference" +required_files="@PKG_SYSCONFDIR@/${name}-jcr.xml" +extra_commands="reload" +command_args="-c ${required_files} 2>&1 > /dev/null &" +pidfile="@JABBERD_PIDDIR@/${name}.pid" +stop_postcmd="remove_pidfile" +start_precmd="ensure_piddir" + +ensure_piddir() +{ + mkdir -p @JABBERD_PIDDIR@ + chown @JABBERD_USER@ @JABBERD_PIDDIR@ +} + +remove_pidfile() +{ + if [ -f @JABBERD_PIDDIR@/${name}.pid ]; then + rm -f @JABBERD_PIDDIR@/${name}.pid + fi +} + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + @ECHO@ -n " ${name}" + ${command} ${muc_flags} ${command_args} +fi |