Done, new version at the same time :)
Bye.
>From ae6f513ba15ce8151348a7f189096bd33a7c6aba Mon Sep 17 00:00:00 2001
From: Adrien Ramos <adr...@aang.(none)>
Date: Fri, 16 Apr 2010 12:39:21 +0200
Subject: [PATCH] prosody-0.6.2-1-i686
* New package
---
docs/ids.txt | 2 +-
source/network-extra/prosody/FrugalBuild | 30 +++++++
source/network-extra/prosody/README.Frugalware | 10 ++
source/network-extra/prosody/prosody.cfg.lua | 112 ++++++++++++++++++++++++
source/network-extra/prosody/prosody.install | 32 +++++++
source/network-extra/prosody/rc.prosody | 48 ++++++++++
6 files changed, 233 insertions(+), 1 deletions(-)
create mode 100644 source/network-extra/prosody/FrugalBuild
create mode 100644 source/network-extra/prosody/README.Frugalware
create mode 100644 source/network-extra/prosody/prosody.cfg.lua
create mode 100644 source/network-extra/prosody/prosody.install
create mode 100644 source/network-extra/prosody/rc.prosody
diff --git a/docs/ids.txt b/docs/ids.txt
index a2c9f4d..c6dbc60 100644
--- a/docs/ids.txt
+++ b/docs/ids.txt
@@ -58,7 +58,7 @@
|051 | | |telnetd |shadow
|052 | | |tape |shadow
|053 | | |dialout |shadow
-|054 | | | |
+|054 |prosody |prosody |prosody |prosody
|055 | | | |
|056 | | | |
|057 | | |realtime |pulseaudio
diff --git a/source/network-extra/prosody/FrugalBuild b/source/network-extra/prosody/FrugalBuild
new file mode 100644
index 0000000..eac6fe3
--- /dev/null
+++ b/source/network-extra/prosody/FrugalBuild
@@ -0,0 +1,30 @@
+# Compiling Time: 0 SBU
+# Maintainer: nick <n...@email>
+# Contributor: Kooda <[email protected]>
+
+pkgname=prosody
+pkgver=0.6.2
+pkgrel=1
+pkgdesc="Prosody is a light and fast XMPP server."
+url="http://prosody.im/"
+depends=('luafilesystem' 'luaexpat' 'luasec')
+groups=('network-extra')
+archs=('i686' 'x86_64')
+up2date="Flasttar $url/downloads/source/"
+source=($url/downloads/source/$pkgname-$pkgver.tar.gz \
+ 'prosody.cfg.lua' \
+ 'rc.prosody' \
+ 'README.Frugalware')
+
+sha1sums=('9172227865b1e2bc7aa695852c40effb696fc3a0' \
+ '0184ea1517b3e50c555f1cd95da00776aa8b2167' \
+ 'd5b5b5dfd4b67edf855e27d6b7881449f13632fa' \
+ '1000770125e04b0eb8daab83fed9ad136ae16fed')
+
+backup=(etc/prosody.cfg.lua)
+
+build()
+{
+ Fbuild
+ Fcp prosody.cfg.lua etc/
+}
diff --git a/source/network-extra/prosody/README.Frugalware b/source/network-extra/prosody/README.Frugalware
new file mode 100644
index 0000000..20577c5
--- /dev/null
+++ b/source/network-extra/prosody/README.Frugalware
@@ -0,0 +1,10 @@
+Don't forget to change /etc/prosody.cfg.lua when needed
+For more informations about prosody's configurtion, please take a look at :
+http://prosody.im/doc
+
+If you want to add or delete JIDs you have to be in the 'prosody' group
+You can do it with this command : 'usermod -aG prosody LOGIN_NAME'
+
+To start the daemon, type 'service prosody start'
+To automaticly start the daemon at boot time, type 'service prosody add'
+Please do NOT use prosodyctl start and stop
diff --git a/source/network-extra/prosody/prosody.cfg.lua b/source/network-extra/prosody/prosody.cfg.lua
new file mode 100644
index 0000000..57a5e74
--- /dev/null
+++ b/source/network-extra/prosody/prosody.cfg.lua
@@ -0,0 +1,112 @@
+-- Prosody Example Configuration File
+--
+-- Information on configuring Prosody can be found on our
+-- website at http://prosody.im/doc/configure
+--
+-- Tip: You can check that the syntax of this file is correct
+-- when you have finished by running: luac -p prosody.cfg.lua
+-- If there are any errors, it will let you know what and where
+-- they are, otherwise it will keep quiet.
+--
+-- The only thing left to do is rename this file to remove the .dist ending, and fill in the
+-- blanks. Good luck, and happy Jabbering!
+
+
+---------- Server-wide settings ----------
+-- Settings in this section apply to the whole server and are the default settings
+-- for any virtual hosts
+
+-- This is a (by default, empty) list of accounts that are admins
+-- for the server. Note that you must create the accounts separately
+-- (see http://prosody.im/doc/creating_accounts for info)
+-- Example: admins = { "[email protected]", "[email protected]" }
+admins = { }
+
+-- This is the list of modules Prosody will load on startup.
+-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
+modules_enabled = {
+
+ -- Generally required
+ "roster"; -- Allow users to have a roster. Recommended ;)
+ "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
+ "tls"; -- Add support for secure TLS on c2s/s2s connections
+ "dialback"; -- s2s dialback support
+ "disco"; -- Service discovery
+
+ -- Not essential, but recommended
+ "private"; -- Private XML storage (for room bookmarks, etc.)
+ "vcard"; -- Allow users to set vCards
+
+ -- Nice to have
+ "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
+ "version"; -- Replies to server version requests
+ "uptime"; -- Report how long server has been running
+ "time"; -- Let others know the time here on this server
+ "ping"; -- Replies to XMPP pings with pongs
+ "pep"; -- Enables users to publish their mood, activity, playing music and more
+ "register"; -- Allow users to register on this server using a client and change passwords
+
+ -- Other specific functionality
+ "posix"; -- POSIX functionality, sends server to background, enables syslog, etc. (Do not comment this line)
+ --"console"; -- Opens admin telnet interface on localhost port 5582
+ --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
+ --"httpserver"; -- Serve static files from a directory over HTTP
+};
+
+-- These modules are auto-loaded, should you
+-- for (for some mad reason) want to disable
+-- them then uncomment them below
+modules_disabled = {
+ -- "presence";
+ -- "message";
+ -- "iq";
+};
+
+-- Do not change these five lines, they are used by the prosody's startup script {
+pidfile = "/var/run/prosody.pid"
+setuid = 54
+setgid = 54
+umask = "007"
+log = "*syslog"
+-- }
+
+-- Disable account creation by default, for security
+-- For more information see http://prosody.im/doc/creating_accounts
+allow_registration = false;
+
+-- These are the SSL/TLS-related settings. If you don't want
+-- to use SSL/TLS, you may comment or remove this
+ssl = {
+ key = "certs/localhost.key";
+ certificate = "certs/localhost.cert";
+}
+
+----------- Virtual hosts -----------
+-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
+-- Settings under each VirtualHost entry apply *only* to that host.
+
+VirtualHost "localhost"
+
+VirtualHost "example.com"
+ enabled = false -- Remove this line to enable this host
+
+ -- Assign this host a certificate for TLS, otherwise it would use the one
+ -- set in the global section (if any).
+ -- Note that old-style SSL on port 5223 only supports one certificate, and will always
+ -- use the global one.
+ ssl = {
+ key = "certs/example.com.key";
+ certificate = "certs/example.com.crt";
+ }
+
+------ Components ------
+-- You can specify components to add hosts that provide special services,
+-- like multi-user conferences, and transports.
+-- For more information on components, see http://prosody.im/doc/components
+
+---Set up a MUC (multi-user chat) room server on conference.example.com:
+--Component "conference.example.com" "muc"
+
+---Set up an external component (default component port is 5347)
+--Component "gateway.example.com"
+-- component_secret = "password"
diff --git a/source/network-extra/prosody/prosody.install b/source/network-extra/prosody/prosody.install
new file mode 100644
index 0000000..6cbaa68
--- /dev/null
+++ b/source/network-extra/prosody/prosody.install
@@ -0,0 +1,32 @@
+post_install()
+{
+ if ! grep -q 'prosody' /etc/group; then
+ #create group
+ /usr/sbin/groupadd -g 54 prosody 2>/dev/null
+ fi
+
+ if ! grep -q 'prosody' /etc/shadow; then
+ #create user
+ /usr/sbin/useradd -s /bin/false -c "daemon system user prosody" -d /var/lib/prosody -u 54 -g prosody prosody 2>/dev/null
+ fi
+
+ # Fix permissions
+ chown -R prosody:prosody /var/lib/prosody
+ chmod -R 770 /var/lib/prosody
+ rm -f /var/run/prosody.pid
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+pre_remove()
+{
+ service prosody stop
+ service prosody del
+}
+
+op=$1
+shift
+$op $*
diff --git a/source/network-extra/prosody/rc.prosody b/source/network-extra/prosody/rc.prosody
new file mode 100644
index 0000000..c67528f
--- /dev/null
+++ b/source/network-extra/prosody/rc.prosody
@@ -0,0 +1,48 @@
+#!/bin/bash
+# (c) 2010 Kooda <[email protected]>
+# rc.prosody for Frugalware
+# distributed under GPL License
+# chkconfig: 2345 85 15
+# description: Start and stop Prosody daemon, a light and fast XMPP server
+
+source /lib/initscripts/functions
+daemon="Prosody"
+
+actions=(restart start status stop)
+
+pid="cat /var/run/prosody.pid 2>/dev/null"
+
+rc_start()
+{
+ start_msg
+ if [ -z "$(eval $pid)" ]; then
+ /usr/bin/prosody 1>/dev/null
+ ok $?
+ else
+ ok 999
+ fi
+}
+
+rc_stop()
+{
+ stop_msg
+ if [ ! -z "$(eval $pid)" ] ;then
+ kill "$(eval $pid)" 2> /dev/null 1> /dev/null
+ rm -f /var/run/prosody.pid
+ ok $?
+ else
+ ok 999
+ fi
+}
+
+rc_status()
+{
+ status_msg
+ if [ ! -z "$(eval $pid)" ] ;then
+ ok 997
+ else
+ ok 998
+ fi
+}
+
+rc_exec $1
--
1.7.0.4
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel