diff options
Diffstat (limited to 'net/jabber-users-agent')
-rw-r--r-- | net/jabber-users-agent/Makefile | 51 | ||||
-rw-r--r-- | net/jabber-users-agent/distinfo | 3 | ||||
-rw-r--r-- | net/jabber-users-agent/files/jabber-users-agent.sh.in | 37 | ||||
-rw-r--r-- | net/jabber-users-agent/files/patch-config.xml | 13 | ||||
-rw-r--r-- | net/jabber-users-agent/files/patch-users-agent | 57 | ||||
-rw-r--r-- | net/jabber-users-agent/files/pkg-message.in | 9 | ||||
-rw-r--r-- | net/jabber-users-agent/pkg-descr | 5 | ||||
-rw-r--r-- | net/jabber-users-agent/pkg-plist | 8 |
8 files changed, 0 insertions, 183 deletions
diff --git a/net/jabber-users-agent/Makefile b/net/jabber-users-agent/Makefile deleted file mode 100644 index a202ba420a76..000000000000 --- a/net/jabber-users-agent/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -# New ports collection makefile for: jabber-users-agent -# Date created: 2005-06-07 -# Whom: Renato Botelho <freebsd@galle.com.br> -# -# $FreeBSD$ -# - -PORTNAME= users-agent -PORTVERSION= 1.2 -CATEGORIES= net -MASTER_SITES= http://files.jabberstudio.org/users-agent/ -PKGNAMEPREFIX= jabber- -DISTNAME= Users-Agent-${PORTVERSION} - -MAINTAINER= garga@FreeBSD.org -COMMENT= A Perl based Jabber User Directory - -NO_BUILD= yes -STRIP= -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME} -PORTDOCS= README INSTALL -USE_PERL5= yes -USE_RC_SUBR= jabber-users-agent.sh -SUB_LIST+= PERL=${PERL} - -BUILD_DEPENDS+= ${SITE_PERL}/Net/Jabber.pm:${PORTSDIR}/net/p5-Net-Jabber \ - ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql - -.include <bsd.port.pre.mk> - -post-patch: - @${PERL} -pi -e 's|config.xml|${PREFIX}/etc/jabber-users-agent.xml|g' \ - ${WRKSRC}/users-agent - @${PERL} -pi -e 's|%%PERL%%|${PERL}|g' ${WRKSRC}/users-agent - -do-install: - ${MKDIR} ${INST_DIR} - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${WRKSRC}/createDB ${INST_DIR} - -.if !exists(${PREFIX}/etc/jabber-users-agent.xml) - ${INSTALL_DATA} ${WRKSRC}/config.xml ${PREFIX}/etc/jabber-users-agent.xml -.endif - ${INSTALL_DATA} ${WRKSRC}/config.xml ${PREFIX}/etc/jabber-users-agent.xml.sample - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S!^!${WRKSRC}/!} ${DOCSDIR} -.endif - -.include <bsd.port.post.mk> diff --git a/net/jabber-users-agent/distinfo b/net/jabber-users-agent/distinfo deleted file mode 100644 index ee78184be977..000000000000 --- a/net/jabber-users-agent/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (Users-Agent-1.2.tar.gz) = e1d580dc34b56d00a1990464659ea766 -SHA256 (Users-Agent-1.2.tar.gz) = ed7eaf46bff803446e3e4c5ce80fc3bb1979a59cb30aef5b9afa9a9c355c39d7 -SIZE (Users-Agent-1.2.tar.gz) = 7871 diff --git a/net/jabber-users-agent/files/jabber-users-agent.sh.in b/net/jabber-users-agent/files/jabber-users-agent.sh.in deleted file mode 100644 index cc06be8b2de7..000000000000 --- a/net/jabber-users-agent/files/jabber-users-agent.sh.in +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# Start or stop jabber-users-agent -# $FreeBSD$ - -# PROVIDE: jabber_users_agent -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: FreeBSD shutdown -# -# Define these jabber_users_agent_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -jabber_users_agent_dir=${jabberd_users_agent_dir-"%%PREFIX%%/lib/jabber/users-agent"} -jabber_users_agent_enable=${jabberd_users_agent_enable-"NO"} - -. /etc/rc.subr - -name="jabber_users_agent" -rcvar=`set_rcvar` -command_interpreter="%%PERL%%" -command="${jabber_users_agent_dir}/users-agent" -command_args="&" - -pidfile="/var/jabberd/pid/users-agent.pid" - -load_rc_config $name -stop_postcmd="jabber_users_agent_stop_post" - -jabber_users_agent_stop_post () { - rm -f ${pidfile} -} - -run_rc_command "$1" diff --git a/net/jabber-users-agent/files/patch-config.xml b/net/jabber-users-agent/files/patch-config.xml deleted file mode 100644 index dd30bcf8c6b9..000000000000 --- a/net/jabber-users-agent/files/patch-config.xml +++ /dev/null @@ -1,13 +0,0 @@ ---- config.xml.orig Thu Jun 9 07:25:05 2005 -+++ config.xml Thu Jun 9 07:33:13 2005 -@@ -10,6 +10,10 @@ - </component> - <mysql> - <dbname>JUD</dbname> -+ <!-- -+ <host>mysql.remote.server</host> -+ <port>3306</port> -+ --> - <username>someone</username> - <password>something</password> - <limit>250</limit> diff --git a/net/jabber-users-agent/files/patch-users-agent b/net/jabber-users-agent/files/patch-users-agent deleted file mode 100644 index 3c7de0aa7eaa..000000000000 --- a/net/jabber-users-agent/files/patch-users-agent +++ /dev/null @@ -1,57 +0,0 @@ ---- users-agent.orig Mon Sep 6 23:05:32 2004 -+++ users-agent Mon Jun 13 09:19:06 2005 -@@ -1,9 +1,4 @@ --#!/bin/sh --#-*-Perl-*- -- --exec perl -x $0 "$@"; -- --#!perl -+#!%%PERL%% - - ############################################################################## - # -@@ -29,7 +24,7 @@ - - my %optctl = (); - $optctl{debug} = 0; --$optctl{config} = "config.xml"; -+$optctl{config} = "/usr/local/etc/jabber-users-agent.xml"; - &GetOptions(\%optctl, "debug=i","config=s"); - - if (!(-f $optctl{config})) -@@ -39,6 +34,10 @@ - exit(1); - } - -+open(PIDFILE,">/var/jabberd/pid/users-agent.pid"); -+ print PIDFILE "$$"; -+close(PIDFILE); -+ - my $Debug = new Net::Jabber::Debug(level=>$optctl{debug}, - header=>"Users-Agent"); - -@@ -119,8 +118,13 @@ - ############################################################################## - &readConfigXML(); - -+my $data_source = "DBI:mysql:database=".$config{mysql}->{dbname}; -+ -+if ($config{mysql}->{host} ne '') { -+ $data_source .= ";host=".$config{mysql}->{host}.";port=".($config{mysql}->{port} eq '' ? '3306' : $config{mysql}->{port}); -+} - --my $dbh = DBI->connect("DBI:mysql:database=".$config{mysql}->{dbname},$config{mysql}->{username},$config{mysql}->{password}); -+my $dbh = DBI->connect($data_source,$config{mysql}->{username},$config{mysql}->{password}); - #$dbh->trace(2) if (($optctl{debug} > 0) && defined($dbh)); - - ############################################################################## -@@ -174,7 +178,7 @@ - - ############################################################################## - # --# readConfigXML - read the config.xml file, parse it, and set config hash -+# readConfigXML - read the /usr/local/etc/jabber-users-agent.xml file, parse it, and set config hash - # with the proper settings. - # - ############################################################################## diff --git a/net/jabber-users-agent/files/pkg-message.in b/net/jabber-users-agent/files/pkg-message.in deleted file mode 100644 index b3057d262a18..000000000000 --- a/net/jabber-users-agent/files/pkg-message.in +++ /dev/null @@ -1,9 +0,0 @@ -ATTENTION: - -Before start to use this, you need to create a MySQL database. You -can use a script to help you, this script is installed as -%%PREFIX%%/lib/jabber/users-agent/createDB. You will find instructions -to use it on %%DOCSDIR%%/INSTALL. - -After create the database, configure host, username and password -to access it on %%PREFIX%%/etc/jabber-users-agent.xml. diff --git a/net/jabber-users-agent/pkg-descr b/net/jabber-users-agent/pkg-descr deleted file mode 100644 index 2a3ea7f47e3a..000000000000 --- a/net/jabber-users-agent/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -A Perl based Jabber User Directory. Currently the -one running on users.jabber.org. - -Author: reatmon@jabber.org -WWW: http://jabberstudio.org/projects/users-agent/project/view.php diff --git a/net/jabber-users-agent/pkg-plist b/net/jabber-users-agent/pkg-plist deleted file mode 100644 index 7e8e8052a252..000000000000 --- a/net/jabber-users-agent/pkg-plist +++ /dev/null @@ -1,8 +0,0 @@ -@comment $FreeBSD$ -lib/jabber/users-agent/createDB -lib/jabber/users-agent/users-agent -@dirrm lib/jabber/users-agent -@unexec rmdir %D/lib/jabber 2>/dev/null || true -@unexec if cmp -s %D/etc/jabber-users-agent.xml %D/etc/jabber-users-agent.xml.sample; then rm -f %D/etc/jabber-users-agent.xml; fi -etc/jabber-users-agent.xml.sample -@exec [ -f %B/jabber-users-agent.xml ] || cp %B/%f %B/jabber-users-agent.xml |