From 8c8e27eeb3c201b346c1fae7b1a6cd0ddaa25972 Mon Sep 17 00:00:00 2001 From: Bart Verwilst Date: Sat, 11 May 2002 08:13:42 +0000 Subject: new revision --- net-im/jabber-server/ChangeLog | 10 +- net-im/jabber-server/files/ServSetup | 41 --- net-im/jabber-server/files/SetupEngine.py | 249 --------------- net-im/jabber-server/files/WriteEngine.py | 351 --------------------- net-im/jabber-server/files/config-1.4.2.tar.bz2 | Bin 0 -> 3359 bytes .../jabber-server/files/digest-jabber-server-1.4.2 | 7 - .../files/digest-jabber-server-1.4.2-r1 | 7 + net-im/jabber-server/files/jabber-server | 5 - net-im/jabber-server/files/jabber.rc6 | 26 +- net-im/jabber-server/jabber-server-1.4.2-r1.ebuild | 105 ++++++ net-im/jabber-server/jabber-server-1.4.2.ebuild | 87 ----- 11 files changed, 135 insertions(+), 753 deletions(-) delete mode 100644 net-im/jabber-server/files/ServSetup delete mode 100644 net-im/jabber-server/files/SetupEngine.py delete mode 100644 net-im/jabber-server/files/WriteEngine.py create mode 100644 net-im/jabber-server/files/config-1.4.2.tar.bz2 delete mode 100644 net-im/jabber-server/files/digest-jabber-server-1.4.2 create mode 100644 net-im/jabber-server/files/digest-jabber-server-1.4.2-r1 delete mode 100644 net-im/jabber-server/files/jabber-server create mode 100644 net-im/jabber-server/jabber-server-1.4.2-r1.ebuild delete mode 100644 net-im/jabber-server/jabber-server-1.4.2.ebuild (limited to 'net-im') diff --git a/net-im/jabber-server/ChangeLog b/net-im/jabber-server/ChangeLog index 4cadbbcaa020..f23895242349 100644 --- a/net-im/jabber-server/ChangeLog +++ b/net-im/jabber-server/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-im/jabber-server # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/ChangeLog,v 1.1 2002/02/01 21:53:32 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/ChangeLog,v 1.2 2002/05/11 08:13:42 verwilst Exp $ + +*jabber-server-1.4.2-r1 (11 May 2002) + + 11 May 2002; B.Verwilst ChangeLog : + + Totally reworked ebuild, with the latest snapshots of the transports, + this should work virtually out of the box now. Included ssl script as + well. *jabber-server-1.4.1 (1 Feb 2002) diff --git a/net-im/jabber-server/files/ServSetup b/net-im/jabber-server/files/ServSetup deleted file mode 100644 index 06395f64b2b8..000000000000 --- a/net-im/jabber-server/files/ServSetup +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -################################################################## -## ## -## Written By Bart Verwilst ## -## For additions and bugfixes, Please consult the author! ## -## ## -################################################################## - -from SetupEngine import * -from WriteEngine import * - -print " " -print "Gentoo Jabber Server 1.4.1 Configuration Utility (version 0.4)" -print " " -ShowIntro() - -Init = 1 -while Init == 1: - CmdInput = raw_input("Enter your choice: ") - if CmdInput == "1": - SetupGeneral() - elif CmdInput == "2": - JUDConfig() - elif CmdInput == "3": - CONConfig() - elif CmdInput == "4": - AIMConfig() - elif CmdInput == "5": - ICQConfig() - elif CmdInput == "6": - MSNConfig() - elif CmdInput == "7": - YahooConfig() - elif CmdInput == "8": - SecurityConfig() - elif CmdInput == "9": - WriteConfig() - Init = 0 - elif CmdInput == "0": - Init = 0 diff --git a/net-im/jabber-server/files/SetupEngine.py b/net-im/jabber-server/files/SetupEngine.py deleted file mode 100644 index e2877d9e8ee2..000000000000 --- a/net-im/jabber-server/files/SetupEngine.py +++ /dev/null @@ -1,249 +0,0 @@ -#!/usr/bin/env python - -################################################################## -## ## -## Written By Bart Verwilst ## -## For additions and bugfixes, Please consult the author! ## -## ## -################################################################## - -global GeneralData -GeneralData = {} - -## List all Attribs for GeneralData ## -GeneralData['domainname'] = '' -GeneralData['vcard_subject'] = '' -GeneralData['vcard_desc'] = '' -GeneralData['vcard_url'] = '' -GeneralData['admin_notif'] = '' -GeneralData['new_welcome'] = 0 ## 0 for no messages, 1 for messages ## -GeneralData['new_welcome_subject'] = '' -GeneralData['new_welcome_body'] = '' -GeneralData['vcard2jud'] = 0 ## 0 for no messages, 1 for messages ## - -global JUDData -JUDData = {} - -## List all Attribs for JUDData ## -JUDData['extra_jud'] = 0 -JUDData['jid'] = '' -JUDData['name'] = '' - -global CONData -CONData = {} - -## List all Attribs for CONData ## -CONData['enable_con'] = 0 -CONData['jid'] = '' -CONData['name'] = '' - -global AIMData -AIMData = {} - -## List all Attribs for AIMData ## -AIMData['enable_aim'] = 0 -AIMData['jid'] = '' -AIMData['name'] = '' - -global ICQData -ICQData = {} - -## List all Attribs for ICQData ## -ICQData['enable_icq'] = 0 -ICQData['jid'] = '' -ICQData['name'] = '' - -global MSNData -MSNData = {} - -## List all Attribs for MSNData ## -MSNData['enable_msn'] = 0 -MSNData['jid'] = '' -MSNData['name'] = '' - -global YahooData -YahooData = {} - -## List all Attribs for MSNData ## -YahooData['enable_yahoo'] = 0 -YahooData['jid'] = '' -YahooData['name'] = '' - - -def ShowIntro(): - print " " - print " Choose one of the following options: " - print " [\x1b[32;01m1\x1b[0m] General Server Configuration " - print " [\x1b[32;01m2\x1b[0m] JUD Configuration " - print " [\x1b[32;01m3\x1b[0m] Conference Configuration " - print " [\x1b[32;01m4\x1b[0m] AIM Transport Configuration " - print " [\x1b[32;01m5\x1b[0m] ICQ Transport Configuration " - print " [\x1b[32;01m6\x1b[0m] MSN Transport Configuration " - print " [\x1b[32;01m7\x1b[0m] Yahoo! Transport Configuration " - print " [\x1b[32;01m8\x1b[0m] Server Security Configuration " - print " [\x1b[32;01m9\x1b[0m] Write Configuration File " - print " [\x1b[32;01m0\x1b[0m] Quit " - print " " - -def SetupGeneral(): - print " " - print "<---\x1b[33;02m| General Server Configuration |\x1b[0m--------------------------------->" - GeneralData['domainname'] = raw_input(" Server DomainName (eg. myjabberserver.com):\n # ") - GeneralData['vcard_subject'] = raw_input(" Server vCard: Subject (eg. Jabber Server):\n # ") - GeneralData['vcard_desc'] = raw_input(" Server vCard: Description (eg. My Jabber Server!):\n # ") - GeneralData['vcard_url'] = raw_input(" Server vCard: WebSite URL (eg. http://foo.bar):\n # ") - a = raw_input(" Admin gets notified of new registration? ([yes]|no):\n # ") - if a == "no" or a == "n": - GeneralData['admin_notif'] = 0 - elif a == "yes" or a == "ye" or a == "y": - GeneralData['admin_notif'] = 1 - else: - print " * Incorrect Input, Assuming \"Yes\" *" - GeneralData['admin_notif'] = 1 - - b = raw_input(" Send welcome Message to new users? (yes|[no]):\n # ") - if b == "yes" or b == "ye" or b == "y": - GeneralData['new_welcome'] = 1 - GeneralData['new_welcome_subject'] = raw_input(" * Message Subject (eg. Welcome!):\n # ") - GeneralData['new_welcome_body'] = raw_input(" * Message Body (eg. Welcome to our Jabber server...):\n # ") - else: - GeneralData['new_welcome'] = 0 - print " * Welcome Messages will NOT be sent *" - - c = raw_input(" Auto-Update JUD when vCard is edited? ([yes]|no):\n # ") - if c == "no" or c == "n": - GeneralData['vcard2jud'] = 0 - elif c == "yes" or c == "ye" or c == "y": - GeneralData['vcard2jud'] = 1 - else: - print " * Incorrect Input, Assuming \"Yes\" *" - GeneralData['vcard2jud'] = 1 - - - print " " - print " *** \x1b[32;02mGeneral Server Configuration Finished SuccessFully!\x1b[0m ***" - print " " - ShowIntro() - - -def JUDConfig(): - print " " - print "<---\x1b[33;02m| Jabber User Directory Configuration |\x1b[0m--------------------------------->" - - a = raw_input(" Do you want to add a second JUD (eg. Intranet JUD?) ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - JUDData['extra_jud'] = 1 - JUDData['jid'] = raw_input(" Enter JabberID for server (eg. users.foo.bar):\n # ") - JUDData['name'] = raw_input(" Enter Name for server (eg. My Intranet JUD):\n # ") - else: - print " * No extra JUD will be configured *" - JUDData['extra_jud'] = 0 - - print " " - print " *** JUD Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def CONConfig(): - print " " - print "<---\x1b[33;02m| Conference Configuration |\x1b[0m--------------------------------->" - a = raw_input(" Do you want to enable Conferencing on your server? ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - CONData['enable_con'] = 1 - CONData['jid'] = raw_input(" Enter Prefix for the Conference Host (default: conference):\n # ") - if CONData['jid'] == "": - CONData['jid'] = "conference" - CONData['name'] = raw_input(" Enter Name for Conference Transport (eg. My Own Conf. Transport):\n # ") - else: - print " * No extra JUD will be configured *" - CONData['extra_jud'] = 0 - - print " " - print " *** Conference Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def AIMConfig(): - print " " - print "<---\x1b[33;02m| AIM Transport Configuration |\x1b[0m--------------------------------->" - a = raw_input(" Do you want to enable the AIM Transport on your server? ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - AIMData['enable_aim'] = 1 - AIMData['jid'] = raw_input(" Enter Prefix for the AIM Host (default: aim):\n # ") - if AIMData['jid'] == "": - AIMData['jid'] = "aim" - AIMData['name'] = raw_input(" Enter Name for AIM Transport (eg. My Own AIM Transport):\n # ") - else: - print " * AIM Transport will NOT be installed *" - AIMData['enable_aim'] = 0 - - print " " - print " *** AIM Transport Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def ICQConfig(): - print " " - print "<---\x1b[33;02m| ICQ Transport Configuration |\x1b[0m--------------------------------->" - a = raw_input(" Do you want to enable the ICQ Transport on your server? ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - ICQData['enable_icq'] = 1 - ICQData['jid'] = raw_input(" Enter Prefix for the ICQ Host (default: icq):\n # ") - if ICQData['jid'] == "": - ICQData['jid'] = "icq" - ICQData['name'] = raw_input(" Enter Name for ICQ Transport (eg. My Own ICQ Transport):\n # ") - else: - print " * ICQ Transport will NOT be installed *" - ICQData['enable_icq'] = 0 - - print " " - print " *** ICQ Transport Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def MSNConfig(): - print " " - print "<---\x1b[33;02m| MSN Transport Configuration |\x1b[0m--------------------------------->" - a = raw_input(" Do you want to enable the MSN Transport on your server? ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - MSNData['enable_msn'] = 1 - MSNData['jid'] = raw_input(" Enter Prefix for the MSN Host (default: msn):\n # ") - if MSNData['jid'] == "": - MSNData['jid'] = "msn" - MSNData['name'] = raw_input(" Enter Name for MSN Transport (eg. My Own MSN Transport):\n # ") - else: - print " * MSN Transport will NOT be installed *" - MSNData['enable_msn'] = 0 - - print " " - print " *** MSN Transport Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def YahooConfig(): - print " " - print "<---\x1b[33;02m| Yahoo! Transport Configuration |\x1b[0m--------------------------------->" - a = raw_input(" Do you want to enable the Yahoo! Transport on your server? ([yes]|no):\n # ") - if a == "yes" or a == "ye" or a == "y" or a == "": - YahooData['enable_yahoo'] = 1 - YahooData['jid'] = raw_input(" Enter Prefix for the Yahoo! Host (default: msn):\n # ") - if YahooData['jid'] == "": - YahooData['jid'] = "yahoo" - YahooData['name'] = raw_input(" Enter Name for Yahoo! Transport (eg. My Own Yahoo! Transport):\n # ") - else: - print " * Yahoo! Transport will NOT be installed *" - MSNData['enable_yahoo'] = 0 - - print " " - print " *** Yahoo! Transport Configuration Finished SuccessFully! ***" - print " " - ShowIntro() - -def SecurityConfig(): - print " " - print "<---\x1b[33;02m| Server Security Configuration |\x1b[0m--------------------------------->" - - print " " - print " *** Server Security Configuration Finished SuccessFully! ***" - print " " - ShowIntro() \ No newline at end of file diff --git a/net-im/jabber-server/files/WriteEngine.py b/net-im/jabber-server/files/WriteEngine.py deleted file mode 100644 index b820df582c55..000000000000 --- a/net-im/jabber-server/files/WriteEngine.py +++ /dev/null @@ -1,351 +0,0 @@ -#!/usr/bin/env python - -################################################################## -## ## -## Written By Bart Verwilst ## -## For additions and bugfixes, Please consult the author! ## -## ## -################################################################## -from SetupEngine import * - -def WriteConfig(): - if GeneralData['admin_notif'] == 0: - admin_notif = "" - else: - admin_notif = "" - - if GeneralData['new_welcome'] == 0: - new_welcome = " " - else: - new_welcome = """ - - """ + GeneralData['new_welcome_subject'] + """ - """ + GeneralData['new_welcome_body'] + """ - - """ - - if GeneralData['vcard2jud'] == 0: - vcard2jud = " " - else: - vcard2jud = """ - """ - - if JUDData['extra_jud'] == 1: - extra_jud_1 = """ - - jabber:iq:search - jabber:iq:register - """ - extra_jud_2 = """ jud.""" + GeneralData['domainname'] + """ - ./jud-0.4/jud.so - - - User Directory on """ + GeneralData['domainname'] + """ - This service provides a simple user directory service. - """ + GeneralData['vcard_url'] + """ - - - - """ - else: - extra_jud_1 = " " - extra_jud_2 = " " - - if CONData['enable_con'] == 1: - enable_con_1 = "\n""" - enable_con_2 = "\n" + """ - ./conference-0.4.1/conference.so - - - Conferencing Service - This service is for private chatrooms. - """ + GeneralData['vcard_url'] + """ - - 20 - - has joined - has left - is now known as - - - - """ - - else: - enable_con_1 = " " - enable_con_2 = " " - - - if AIMData['enable_aim'] == 1: - enable_aim_1 = """ - - jabber:iq:gateway - jabber:iq:search - jabber:iq:register - """ - enable_aim_2 = " - - - AIM Transport - The AIM Transport - """ + GeneralData['vcard_url'] + """ - - - - ./aim-transport-0.9.24c/src/aimtrans.so - - - """ - else: - enable_aim_1 = " " - enable_aim_2 = " " - - - if ICQData['enable_icq'] == 1: - enable_icq_1 = """ - - jabber:iq:gateway - jabber:iq:search - jabber:iq:register - """ - enable_icq_2 = " - - - Please enter your ICQ number (in the "username" field), - nickname, and password. Leave the "username" field blank - to create a new ICQ number. - Search for ICQ users - - ICQ Transport - The ICQ Transport - """ + GeneralData['vcard_url'] + """ - - 37 - - 2000 - 3000 - - - - ./aim-transport-0.9.24c/src/aimtrans.so - - - """ - else: - enable_icq_1 = " " - enable_icq_2 = " " - - - if MSNData['enable_msn'] == 1: - enable_msn_1 = """ - - jabber:iq:gateway - jabber:iq:register - """ - enable_msn_2 = " - - Enter your MSN Messenger account and password. Example: user1@hotmail.com. Nickname is optional. - Search for ICQ users - - MSN Transport - The MSN Transport - """ + GeneralData['vcard_url'] + """ - - - - ./msn-transport-1.1/msntrans.so - - - """ - else: - enable_msn_1 = " " - enable_msn_2 = " " - - - - f = open('jabber.xml', 'w') - f.write(""" - - - - - - """ + GeneralData['domainname'] + """ - - - - - - 100 - - - - - - - - - - - - - - - - - - - - - - - - - - """ + GeneralData['vcard_subject'] + """ - """ + GeneralData['vcard_desc'] + """ - """ + GeneralData['vcard_url'] + """ - - - """ + admin_notif + """ - Choose a username and password to register with this server. - - - - - """ + new_welcome + vcard2jud + """ - - - - - - jabber:iq:search - jabber:iq:register - - """ + extra_jud_1 + enable_con_1 + enable_aim_1 + enable_icq_1 + """ - - - - - - - - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - ./jsm/jsm.so - - - - - - - - ./xdb_file/xdb_file.so - - - ./spool - - - - - - ./pthsock/pthsock_client.so - - - - - 10 - 10 - 1 - 1 - -6 - 10 - - - - - - - - - - - %d: [%t] (%h): %s - error.log - - - - - - record - %d %h %s - record.log - - - - - - ./dnsrv/dnsrv.so - - - s2s - s2s - - - - - - ./dialback/dialback.so - - - - - - 50 - 50 - 4 - 1 - -5 - 50 - - - - - """ + extra_jud_2 + enable_con_2 + enable_aim_2 + enable_icq_2 + """ - - - - - - - - ./jabber.pid - - -""") - - f.close() - - - - print " " - print "Jabber Server Configuration File Written.... Exiting...." - print " " diff --git a/net-im/jabber-server/files/config-1.4.2.tar.bz2 b/net-im/jabber-server/files/config-1.4.2.tar.bz2 new file mode 100644 index 000000000000..7cae8d56ec7d Binary files /dev/null and b/net-im/jabber-server/files/config-1.4.2.tar.bz2 differ diff --git a/net-im/jabber-server/files/digest-jabber-server-1.4.2 b/net-im/jabber-server/files/digest-jabber-server-1.4.2 deleted file mode 100644 index 983eae5f1be6..000000000000 --- a/net-im/jabber-server/files/digest-jabber-server-1.4.2 +++ /dev/null @@ -1,7 +0,0 @@ -MD5 e5a0f96ba804a1626e37806d17114e1e jabber-1.4.2.tar.gz 691919 -MD5 a3c18654d41ebfaa3c74117004bf7d93 aim-transport-0.9.24c.tar.gz 298241 -MD5 01b825d9f917674f25fdba29255d081b conference-0.4.1.tar.gz 9645 -MD5 a08ef678fa8d768d7696af5bb85d1e34 irc-transport-0.1.1-1.4.linux.tar.gz 126244 -MD5 a057e8dd5966fa0d26ded03697ba395a jud-0.4.tar.gz 3950 -MD5 251cd4b6cfc6c52a0f15c3ff2bfbfff9 msn-transport-1.1.tar.gz 24399 -MD5 0850f8d36d7b1e8df656fa84d03c82ba yahoo-transport-0.8-1.4.linux.tar.gz 143828 diff --git a/net-im/jabber-server/files/digest-jabber-server-1.4.2-r1 b/net-im/jabber-server/files/digest-jabber-server-1.4.2-r1 new file mode 100644 index 000000000000..2a23d203c69e --- /dev/null +++ b/net-im/jabber-server/files/digest-jabber-server-1.4.2-r1 @@ -0,0 +1,7 @@ +MD5 e5a0f96ba804a1626e37806d17114e1e jabber-1.4.2.tar.gz 691919 +MD5 b17f55aa42a3e6e6ca484fa2e9688b87 conference-0.4.tar.gz 9533 +MD5 a057e8dd5966fa0d26ded03697ba395a jud-0.4.tar.gz 3950 +MD5 802fbf87f950147afe47841af234d40d aim-transport-stable-20020503.tar.gz 149342 +MD5 7cff38bc6f2b0adae9e942cffa1b5b70 msn-transport-stable-20011217.tar.gz 33781 +MD5 910073bf65c00b08aa2edd95ca122ece yahoo-transport-0.8.4.6.tar.gz 89610 +MD5 3946cf625278fb5899cad78d49f469d4 Install_AIM_3.5.1670.exe 2452872 diff --git a/net-im/jabber-server/files/jabber-server b/net-im/jabber-server/files/jabber-server deleted file mode 100644 index c05d0d6165a6..000000000000 --- a/net-im/jabber-server/files/jabber-server +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cd /usr/jabber-1.4.2 -chown -R jabber.jabber /usr/jabber -su - jabber -c "./jabberd/jabberd &" diff --git a/net-im/jabber-server/files/jabber.rc6 b/net-im/jabber-server/files/jabber.rc6 index 3101de7d2db7..7a12d2687087 100644 --- a/net-im/jabber-server/files/jabber.rc6 +++ b/net-im/jabber-server/files/jabber.rc6 @@ -1,28 +1,30 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/files/jabber.rc6,v 1.2 2002/02/13 16:04:42 verwilst Exp $ - +# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/files/jabber.rc6,v 1.3 2002/05/11 08:13:42 verwilst Exp $ depend() { need net } -checkconfig() { - if [ ! -e /usr/jabber-1.4.2/jabber.xml ] ; then - eerror "You need an /usr/jabber/jabber.xml file first" - return 1 - fi -} - start() { - checkconfig || return 1 ebegin "Starting Jabber Server" - start-stop-daemon --start --quiet --exec /usr/sbin/jabber-server + + cd /usr/jabber-1.4.2 + + ./jabberd/jabberd -c multiple.xml & + ./jabberd/jabberd -c aimtrans.xml & + ./jabberd/jabberd -c msntrans.xml & + ./jabberd/jabberd -c yahootrans.xml & + ./jabberd/jabberd -c confserv.xml & + ./jabberd/jabberd -c icqtrans.xml & + ./jabberd/jabberd -c judserv.xml & + eend $? } stop() { ebegin "Stopping Jabber Server" - start-stop-daemon --stop --quiet --pidfile /usr/jabber-1.4.2/jabber.pid + killall jabberd + sleep 2 eend $? } diff --git a/net-im/jabber-server/jabber-server-1.4.2-r1.ebuild b/net-im/jabber-server/jabber-server-1.4.2-r1.ebuild new file mode 100644 index 000000000000..bcb72f3beaf5 --- /dev/null +++ b/net-im/jabber-server/jabber-server-1.4.2-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Author Bart Verwilst +# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/jabber-server-1.4.2-r1.ebuild,v 1.1 2002/05/11 08:13:42 verwilst Exp $ + +S="${WORKDIR}/jabber-${PV}" +DESCRIPTION="Open Source Jabber Server & JUD,AIM,MSN,ICQ,Yahoo and Conference transports" +HOMEPAGE="http://www.jabber.org" +SRC_URI="http://jabberd.jabberstudio.org/downloads/jabber-${PV}.tar.gz + http://jabberd.jabberstudio.org/downloads/conference-0.4.tar.gz + http://jabberd.jabberstudio.org/downloads/jud-0.4.tar.gz + http://www.ibiblio.org/gentoo/distfiles/aim-transport-stable-20020503.tar.gz + http://www.ibiblio.org/gentoo/distfiles/msn-transport-stable-20011217.tar.gz + http://www.ibiblio.org/gentoo/distfiles/yahoo-transport-0.8.4.6.tar.gz + http://www.ibiblio.org/gentoo/distfiles/Install_AIM_3.5.1670.exe" + +DEPEND="virtual/glibc + >=dev-libs/pth-1.4.0 + ssl? ( >=dev-libs/openssl-0.9.6c )" + +src_unpack() { + + unpack jabber-${PV}.tar.gz + cd ${S} + tar -xjf ${FILESDIR}/config-1.4.2.tar.bz2 + unpack msn-transport-stable-20011217.tar.gz + unpack aim-transport-stable-20020503.tar.gz + unpack conference-0.4.tar.gz + unpack jud-0.4.tar.gz + unpack yahoo-transport-0.8.4.6.tar.gz + cd ${S}/aim-transport + cp ${DISTDIR}/Install_AIM_3.5.1670.exe . + +} + +src_compile() { + + local myconf + cd ${S} + use ssl && myconf="--enable-ssl" + + mv jabberd/jabberd.c jabberd/jabberd.c.orig + sed 's:pstrdup(jabberd__runtime,HOME):"/usr/jabber-1.4.2":' jabberd/jabberd.c.orig > jabberd/jabberd.c + rm -f jabberd/jabberd.c.orig + ./configure ${myconf} || die + make || die + + cd ${S}/conference-0.4 + make || die + + cd ${S}/jud-0.4 + make || die + + cd ${S}/aim-transport + ./autogen.sh || die + make || die + + cd ${S}/msn-transport + ./bootstrap || die + ./configure || die + make || die + + cd ${S}/yahoo-transport + CPPFLAGS="$CPPFLAGS -I../jabberd -I../../jabberd" ./autogen.sh || die + make || die + +} + + +src_install() { + + cd ${S} + touch error.log + touch record.log + exeinto /etc/init.d ; newexe ${FILESDIR}/jabber.rc6 jabber + mkdir -p ${D}/usr/jabber-${PV} + cp -rf * ${D}/usr/jabber-${PV}/ + cd ${D}/usr/jabber-${PV}/jabberd + +} + +pkg_postinst() { + + cd /usr/jabber-${PV} + groupadd jabber + useradd jabber -s /bin/false -d /usr/jabber-${PV} -g jabber -m + chown jabber.jabber * -R + chmod o-rwx * -R + chmod g-x * -R + chmod g+rw * -R + chmod u+xs jabberd/jabberd + + einfo "Change 'localhost' to your server's domainname in the *.xml configs first" + einfo "To enable SSL connections, execute ./self-cert.sh in the server's dir" + einfo "(Only if compiled with SSL support (ssl in USE)" + einfo "Server admins should be added to the "jabber" group" + +} + +pkg_postrm() { + + userdel jabber + groupdel jabber + +} diff --git a/net-im/jabber-server/jabber-server-1.4.2.ebuild b/net-im/jabber-server/jabber-server-1.4.2.ebuild deleted file mode 100644 index 3dc7ecc773d0..000000000000 --- a/net-im/jabber-server/jabber-server-1.4.2.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# Author Bart Verwilst -# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/jabber-server-1.4.2.ebuild,v 1.4 2002/02/17 15:13:44 verwilst Exp $ - -S="${WORKDIR}/jabber-${PV}" -DESCRIPTION="Open Source Jabber Server & AIM,MSN,ICQ,Yahoo en conference transports" -HOMEPAGE="http://www.jabber.org" -SRC_URI="http://download.jabber.org/stable/jabber-${PV}.tar.gz - http://download.jabber.org/dists/transports/aim-transport/aim-transport-0.9.24c.tar.gz - http://download.jabber.org/dists/1.4/final/conference-0.4.1.tar.gz - http://download.jabber.org/dists/transports/irc-transport/irc-transport-0.1.1-1.4.linux.tar.gz - http://download.jabber.org/dists/1.4/final/jud-0.4.tar.gz - http://download.jabber.org/dists/1.4/final/msn-transport-1.1.tar.gz - http://download.jabber.org/dists/1.4/final/yahoo-transport-0.8-1.4.linux.tar.gz" - -DEPEND="virtual/glibc - >=dev-libs/pth-1.4.0 - ssl? ( >=dev-libs/openssl-0.9.6c )" - -src_unpack() { - - unpack jabber-${PV}.tar.gz - cd ${S} - unpack msn-transport-1.1.tar.gz - unpack aim-transport-0.9.24c.tar.gz - unpack conference-0.4.1.tar.gz - unpack irc-transport-0.1.1-1.4.linux.tar.gz - unpack jud-0.4.tar.gz - unpack yahoo-transport-0.8-1.4.linux.tar.gz - -} - -src_compile() { - - cd ${S} - if [ "`use ssl`" ] ; then - mv configure configure.orig - sed 's:WANT_SSL=0:WANT_SSL=1:' configure.orig > configure - rm -f configure.orig - chmod 750 configure - fi - mv jabberd/jabberd.c jabberd/jabberd.c.orig - sed 's:pstrdup(jabberd__runtime,HOME):"/usr/jabber-1.4.2":' jabberd/jabberd.c.orig > jabberd/jabberd.c - rm -f jabberd/jabberd.c.orig - ./configure || die - make || die - - cd ${S}/conference-0.4.1 - make || die - - cd ${S}/jud-0.4 - make || die - - cd ${S}/aim-transport-0.9.24c - CPPFLAGS="$CPPFLAGS -I../jabberd -I../../jabberd" ./configure || die - make || die - - cd ${S}/msn-transport-1.1 - make || die - - cd ${S}/yahoo-transport-0.8-1.4 - CPPFLAGS="$CPPFLAGS -I../jabberd -I../../jabberd" ./configure || die - make || die - -} - - -src_install() { - - cd ${S} - - exeinto /etc/init.d ; newexe ${FILESDIR}/jabber.rc6 jabber - exeinto /usr/sbin ; doexe ${FILESDIR}/jabber-server - mkdir -p ${D}/usr/jabber-${PV} - cp -rf * ${D}/usr/jabber-${PV}/ - -} - -src_postinst() { - - echo " # " - echo " # Please chmod and use the jabber server as a different" - echo " # user as root.. Running as root is a security hazard.." - echo " # " - -} -- cgit v1.2.3-65-gdbad