Subject: [alpine-devel] testing/prosody: adding default config (new version)

From: "Mika Havela" <[email-masked]>
Date: Wed, 10 Jun 2009 14:31:57 +0000

Please review and apply.

<<mhavela>>

From ff944ea0f72e9a85d6f89f8c33e885cc97987ed1 Mon Sep 17 00:00:00 2001
From: Mika Havela <[email-masked]>
Date: Wed, 10 Jun 2009 14:29:18 +0000
Subject: [PATCH] testing/prosody: adding default config
 Previously we used the defauilt config built by prosody. We need a modified verison for Alpine.
 The config needs to specify where the pid-file should be placed.
 Adding allow_registration in the default config as a example.

---
 testing/prosody/APKBUILD        |    1 +
 testing/prosody/prosody.cfg.lua |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testing/prosody/APKBUILD b/testing/prosody/APKBUILD
index f4ef147..0637b64 100644
--- a/testing/prosody/APKBUILD
+++ b/testing/prosody/APKBUILD
@@ -21,6 +21,7 @@ build() {
 	cd "$srcdir/$pkgname-$pkgver"
 
 	patch Makefile "$startdir/Makefile-0.4.2.patch" || return 1
+	install -D -m755 "$srcdir"/"$pkgname".cfg.lua "$pkgdir"/etc/prosody/"$pkgname".cfg.lua
 
 	./configure --prefix=/usr \
 		--sysconfdir=/etc/prosody \
diff --git a/testing/prosody/prosody.cfg.lua b/testing/prosody/prosody.cfg.lua
index 99df66a..37bafc1 100644
--- a/testing/prosody/prosody.cfg.lua
+++ b/testing/prosody/prosody.cfg.lua
@@ -87,6 +87,7 @@ Host "*"
 
 -- This allows clients to connect to localhost. No harm in it.
 Host "localhost"
+	allow_registration = yes
 
 -- Section for example.com
 -- (replace example.com with your domain name)
-- 
1.6.2.5

---

From: Michael Mason <[email-masked]>
Date: Wed, 10 Jun 2009 23:15:23 +0000

> <<mhavela>>

Applied patch.
When building the package, abuild complained about checksums.
abuild checksum
All is well.

> <0001-testing-prosody-adding-default-config.patch>

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---