pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/jabberd Initial import of jabberd-1.4.3 from pkgs...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da670d16195a
branches:  trunk
changeset: 465174:da670d16195a
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Dec 23 10:16:20 2003 +0000

description:
Initial import of jabberd-1.4.3 from pkgsrc-wip.

Jabber is an open XML protocol for real-time exchange of messages and
presence notification between any two points on the Internet.  The first
application of Jabber technology is an asynchronous, extensible instant
messaging platform, and an IM network that offers functionality similar
to legacy IM systems such as AIM, ICQ, MSN, and Yahoo.

diffstat:

 chat/jabberd/DESCR            |    5 +
 chat/jabberd/Makefile         |   81 +++++++++++++++++++++++++
 chat/jabberd/PLIST            |   16 +++++
 chat/jabberd/distinfo         |    8 ++
 chat/jabberd/files/jabberd.sh |   21 ++++++
 chat/jabberd/patches/patch-aa |  133 ++++++++++++++++++++++++++++++++++++++++++
 chat/jabberd/patches/patch-ab |   13 ++++
 chat/jabberd/patches/patch-ac |   14 ++++
 chat/jabberd/patches/patch-ad |   36 +++++++++++
 9 files changed, 327 insertions(+), 0 deletions(-)

diffs (truncated from 363 to 300 lines):

diff -r 65967e67bd09 -r da670d16195a chat/jabberd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/DESCR        Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,5 @@
+Jabber is an open XML protocol for real-time exchange of messages and
+presence notification between any two points on the Internet.  The first
+application of Jabber technology is an asynchronous, extensible instant
+messaging platform, and an IM network that offers functionality similar
+to legacy IM systems such as AIM, ICQ, MSN, and Yahoo.
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/Makefile     Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/23 10:16:20 xtraeme Exp $
+#
+
+DISTNAME=              jabberd-1.4.3
+CATEGORIES=            chat
+MASTER_SITES=          http://jabberd.jabberstudio.org/1.4/dist/
+
+MAINTAINER=            xtraeme%NetBSD.org@localhost
+HOMEPAGE=              http://jabberd.jabberstudio.org/1.4/
+COMMENT=               Instant messaging server
+
+CONFLICTS=             jabberd2-[0-9]*:../../wip/jabberd2
+
+USE_BUILDLINK2=                yes
+HAS_CONFIGURE=         yes
+USE_GMAKE=             yes
+USE_PKGINSTALL=                yes
+
+CONFIGURE_ARGS+=       --enable-ssl
+
+RCD_SCRIPTS=           jabberd
+PKG_SYSCONFSUBDIR=     jabberd
+
+EGDIR=                 ${PREFIX}/share/examples/jabberd
+LIBDIR=                        ${PREFIX}/lib/jabberd
+INCDIR=                        ${PREFIX}/include/jabberd
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+=           JABBERD_USER    JABBERD_GROUP \
+                       JABBERD_LOGDIR  JABBERD_SPOOLDIR \
+                       JABBERD_PIDDIR  USE_INET6
+
+.if !empty(USE_INET6:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+=       --enable-ipv6
+.endif
+
+PKG_GROUPS=             ${JABBERD_GROUP}
+PKG_USERS=              ${JABBERD_USER}:${JABBERD_GROUP}::Jabberd\\ user
+
+FILES_SUBST+=          JABBERD_USER="${JABBERD_USER}"
+FILES_SUBST+=          JABBERD_GROUP="${JABBERD_GROUP}"
+FILES_SUBST+=          JABBERD_SPOOLDIR="${JABBERD_SPOOLDIR}"
+FILES_SUBST+=          JABBERD_PIDDIR="${JABBERD_PIDDIR}"
+
+.for f in ${JABBERD_LOGDIR} ${JABBERD_SPOOLDIR} ${JABBERD_PIDDIR}
+OWN_DIRS_PERMS+=       ${f} ${JABBERD_USER} ${JABBERD_GROUP} 750
+.endfor
+.undef f
+
+CONF_FILES=            ${EGDIR}/jabber.xml ${PKG_SYSCONFDIR}/jabber.xml
+SUPPORT_FILES=         ${EGDIR}/platform-settings \
+                       ${PKG_SYSCONFDIR}/platform-settings
+post-extract:
+       @${MV} ${WRKSRC}/jabber.xml ${WRKSRC}/jabber.xml.in
+
+pre-configure:
+       @${SED} \
+               -e "s|@LIBDIR@|${PREFIX}/lib/jabberd|g" \
+               -e "s|@LOGDIR@|${JABBERD_LOGDIR}|g" \
+               -e "s|@PIDDIR@|${JABBERD_PIDDIR}|g" \
+               -e "s|@SPOOLDIR@|${JABBERD_SPOOLDIR}|g" \
+               ${WRKSRC}/jabber.xml.in > ${WRKSRC}/jabber.xml
+
+do-install:
+       ${INSTALL_DATA_DIR} ${EGDIR} ${LIBDIR} ${INCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/jabber.xml ${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/platform-settings ${EGDIR}
+       ${INSTALL_PROGRAM} ${WRKSRC}/jabberd/jabberd ${PREFIX}/sbin
+       ${INSTALL_DATA} ${WRKSRC}/jsm/jsm.so ${LIBDIR}
+       ${INSTALL_DATA} ${WRKSRC}/xdb_file/xdb_file.so ${LIBDIR}
+       ${INSTALL_DATA} ${WRKSRC}/pthsock/pthsock_client.so ${LIBDIR}
+       ${INSTALL_DATA} ${WRKSRC}/dnsrv/dnsrv.so ${LIBDIR}
+       ${INSTALL_DATA} ${WRKSRC}/dialback/dialback.so ${LIBDIR}
+       ${INSTALL_DATA} ${WRKSRC}/jabberd/jabberd.h ${INCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/jabberd/lib/lib.h ${INCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/jabberd/lib/xmlparse.h ${INCDIR}
+
+.include "../../devel/pth/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/PLIST        Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/23 10:16:20 xtraeme Exp $
+etc/rc.d/jabberd
+include/jabberd/jabberd.h
+include/jabberd/lib.h
+include/jabberd/xmlparse.h
+lib/jabberd/dialback.so
+lib/jabberd/dnsrv.so
+lib/jabberd/jsm.so
+lib/jabberd/pthsock_client.so
+lib/jabberd/xdb_file.so
+sbin/jabberd
+share/examples/jabberd/jabber.xml
+share/examples/jabberd/platform-settings
+@dirrm share/examples/jabberd
+@dirrm lib/jabberd
+@dirrm include/jabberd
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/distinfo     Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/23 10:16:20 xtraeme Exp $
+
+SHA1 (jabberd-1.4.3.tar.gz) = cf968017c8a4f2d0dc3c139c712846a722d9bbed
+Size (jabberd-1.4.3.tar.gz) = 258016 bytes
+SHA1 (patch-aa) = f51bb9bbab6e884d6f36f4e67c7d76a38fd7db4f
+SHA1 (patch-ab) = 8685472f1acc4b5ae4cc15627076ff67b6964a25
+SHA1 (patch-ac) = 7639bc0762d9e64438034b016c1bb3c87c5f5a94
+SHA1 (patch-ad) = 3b17761c9ea2d1e17f3194ac8cf54fbca4c80367
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/files/jabberd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/files/jabberd.sh     Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,21 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: jabberd.sh,v 1.1.1.1 2003/12/23 10:16:20 xtraeme Exp $
+#
+
+# PROVIDE: jabberd
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="jabberd"
+help_name="jabber"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="@PKG_SYSCONFDIR@/jabber.xml"
+command_args="-B -c $required_files 2> /dev/null"
+pidfile="@JABBERD_PIDDIR@/${help_name}.pid"
+jabberd_user="@JABBERD_USER@"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/patches/patch-aa     Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,133 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/12/23 10:16:21 xtraeme Exp $
+
+--- jabber.xml.in.orig 2003-11-17 11:01:33.000000000 +0100
++++ jabber.xml.in      2003-11-17 11:07:37.000000000 +0100
+@@ -295,21 +295,21 @@
+     -->
+ 
+     <load main="jsm">
+-      <jsm>./jsm/jsm.so</jsm>
+-      <mod_echo>./jsm/jsm.so</mod_echo>
+-      <mod_roster>./jsm/jsm.so</mod_roster>
+-      <mod_time>./jsm/jsm.so</mod_time>
+-      <mod_vcard>./jsm/jsm.so</mod_vcard>
+-      <mod_last>./jsm/jsm.so</mod_last>
+-      <mod_version>./jsm/jsm.so</mod_version>
+-      <mod_announce>./jsm/jsm.so</mod_announce>
+-      <mod_agents>./jsm/jsm.so</mod_agents>
+-      <mod_browse>./jsm/jsm.so</mod_browse>
+-      <mod_disco>./jsm/jsm.so</mod_disco>
+-      <mod_admin>./jsm/jsm.so</mod_admin>
+-      <mod_filter>./jsm/jsm.so</mod_filter>
+-      <mod_offline>./jsm/jsm.so</mod_offline>
+-      <mod_presence>./jsm/jsm.so</mod_presence>
++      <jsm>@LIBDIR@/jsm.so</jsm>
++      <mod_echo>@LIBDIR@/jsm.so</mod_echo>
++      <mod_roster>@LIBDIR@/jsm.so</mod_roster>
++      <mod_time>@LIBDIR@/jsm.so</mod_time>
++      <mod_vcard>@LIBDIR@/jsm.so</mod_vcard>
++      <mod_last>@LIBDIR@/jsm.so</mod_last>
++      <mod_version>@LIBDIR@/jsm.so</mod_version>
++      <mod_announce>@LIBDIR@/jsm.so</mod_announce>
++      <mod_agents>@LIBDIR@/jsm.so</mod_agents>
++      <mod_browse>@LIBDIR@/jsm.so</mod_browse>
++      <mod_disco>@LIBDIR@/jsm.so</mod_disco>
++      <mod_admin>@LIBDIR@/jsm.so</mod_admin>
++      <mod_filter>@LIBDIR@/jsm.so</mod_filter>
++      <mod_offline>@LIBDIR@/jsm.so</mod_offline>
++      <mod_presence>@LIBDIR@/jsm.so</mod_presence>
+ 
+       <!--
+       Authentication
+@@ -325,19 +325,19 @@
+       -->
+       <!-- mod_auth_digest: Password in clear text in storage,
+            encrypted/hashed on the wire -->
+-      <mod_auth_digest>./jsm/jsm.so</mod_auth_digest>
++      <mod_auth_digest>@LIBDIR@/jsm.so</mod_auth_digest>
+       <!-- mod_auth_plain: Password in clear text in storage
+            and on the wire. Disable this if you do not use clients
+            that need plaintext auth -->
+-      <mod_auth_plain>./jsm/jsm.so</mod_auth_plain>
++      <mod_auth_plain>@LIBDIR@/jsm.so</mod_auth_plain>
+       <!-- mod_auth_crypt: Password encrypted/hashed in storage,
+            clear text on the wire. Disabled as this only makes
+            sense when used exclusively and with SSL mandatory
+       <mod_auth_crypt>./jsm/jsm.so</mod_auth_crypt> -->
+ 
+-      <mod_log>./jsm/jsm.so</mod_log>
+-      <mod_register>./jsm/jsm.so</mod_register>
+-      <mod_xml>./jsm/jsm.so</mod_xml>
++      <mod_log>@LIBDIR@/jsm.so</mod_log>
++      <mod_register>@LIBDIR@/jsm.so</mod_register>
++      <mod_xml>@LIBDIR@/jsm.so</mod_xml>
+     </load>
+ 
+   </service>
+@@ -353,10 +353,10 @@
+   <xdb id="xdb">
+     <host/>
+     <load>
+-      <xdb_file>./xdb_file/xdb_file.so</xdb_file>
++          <xdb_file>@LIBDIR@/xdb_file.so</xdb_file>
+     </load>
+     <xdb_file xmlns="jabber:config:xdb_file">
+-      <spool><jabberd:cmdline flag='s'>./spool</jabberd:cmdline></spool>
++      <spool><jabberd:cmdline flag='s'>@SPOOLDIR@</jabberd:cmdline></spool>
+     </xdb_file>
+   </xdb>
+ 
+@@ -387,7 +387,7 @@
+ 
+   <service id="c2s">
+     <load>
+-      <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
++      <pthsock_client>@LIBDIR@/pthsock_client.so</pthsock_client>
+     </load>
+     <pthcsock xmlns='jabber:config:pth-csock'>
+       <authtime/>
+@@ -430,7 +430,7 @@
+     <host/>
+     <logtype/>
+     <format>%d: [%t] (%h): %s</format>
+-    <file>error.log</file>
++    <file>@LOGDIR@/error.log</file>
+     <stderr/>
+   </log>
+ 
+@@ -443,7 +443,7 @@
+     <host/>
+     <logtype>record</logtype>
+     <format>%d %h %s</format>
+-    <file>record.log</file>
++    <file>@LOGDIR@/record.log</file>
+   </log>
+ 
+   <!-- The following two services are for handling server-to-server traffic. -->
+@@ -453,7 +453,7 @@
+   <service id="dnsrv">
+     <host/>
+     <load>
+-      <dnsrv>./dnsrv/dnsrv.so</dnsrv>
++      <dnsrv>@LIBDIR@/dnsrv.so</dnsrv>
+     </load>
+     <dnsrv xmlns="jabber:config:dnsrv">
+       <resend service="_xmpp-server._tcp">s2s</resend> <!-- for supporting XMPP compliant SRV records -->
+@@ -473,7 +473,7 @@
+ 
+   <service id="s2s">
+     <load>
+-      <dialback>./dialback/dialback.so</dialback>
++      <dialback>@LIBDIR@/dialback.so</dialback>
+     </load>
+     <dialback xmlns='jabber:config:dialback'>
+       <legacy/>
+@@ -668,7 +668,7 @@
+   <!--
+   This specifies the file to store the pid of the process in.
+   -->
+-  <pidfile>./jabber.pid</pidfile>
++  <pidfile>@PIDDIR@/jabber.pid</pidfile>
+ 
+ 
+ </jabber>
diff -r 65967e67bd09 -r da670d16195a chat/jabberd/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd/patches/patch-ab     Tue Dec 23 10:16:20 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/12/23 10:16:21 xtraeme Exp $
+
+--- configure.orig     2003-05-10 11:40:14.000000000 +0200
++++ configure  2003-05-10 11:41:01.000000000 +0200
+@@ -32,7 +32,7 @@
+ LDFLAGS="$LDFLAGS"
+ LIBS="$LIBS"
+ XLDFLAGS="$XLDFLAGS "



Home | Main Index | Thread Index | Old Index