blob: 7f195862d0e4ec29955b29d01bc5af2c387931dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=openfire
pkgver=4.2.3
pkgrel=0
pkgdesc="Openfire is a cross-platform real-time collaboration server based on the XMPP (Jabber) protocol."
url="https://www.igniterealtime.org/projects/openfire/"
arch="all !mips !mips64" # java
license="Apache-2.0"
depends="openjdk8-jre-lib"
makedepends="apache-ant openjdk8"
subpackages="$pkgname-plugins::noarch $pkgname-openrc"
source="
https://www.igniterealtime.org/downloadServlet?filename=$pkgname/${pkgname}_src_${pkgver//./_}.tar.gz
$pkgname.initd
$pkgname.confd
$pkgname.logrotate
"
pkgusers="openfire"
pkggroups="openfire"
install="
$pkgname.pre-install
openfire.post-install
openfire.post-upgrade
"
options="!check" # No test suite
builddir="$srcdir/${pkgname}_src"
_ofhome="/var/lib/openfire"
build() {
cd "$builddir"
rm -rf src/resources/nativeAuth
cd build
ant openfire plugins
}
package() {
cd "$builddir"
install -dm0755 "$pkgdir/$_ofhome"
install -dm0755 "$pkgdir/$_ofhome"/plugins
cp -r target/openfire/conf "$pkgdir/$_ofhome"/
cp -r target/openfire/lib "$pkgdir/$_ofhome"/
cp -r target/openfire/resources "$pkgdir/$_ofhome"/
cp -r target/openfire/plugins/admin "$pkgdir/$_ofhome"/plugins/
find "$pkgdir" -type f -exec chmod 0644 {} \;
find "$pkgdir" -type d -exec chmod 0755 {} \;
find "$pkgdir" -type d -exec chmod u-s,g-s {} \;
chmod 0700 "$pkgdir/$_ofhome"/conf \
"$pkgdir/$_ofhome"/resources/security
cd "$pkgdir/$_ofhome"/conf
for i in openfire.xml security.xml
do
mv "$i" "$i".default
chmod 0600 "$i".default
done
cd "$pkgdir/$_ofhome"/resources/security
for i in client.truststore keystore truststore
do
mv "$i" "$i".default
chmod 0600 "$i".default
done
chown -R $pkgusers:$pkggroups "$pkgdir/$_ofhome"
install -Dm0755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm0644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm0644 "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
}
plugins() {
cd "$builddir"
install -dm755 "$subpkgdir/$_ofhome"/plugins
cp target/openfire/plugins/*.jar "$subpkgdir/$_ofhome"/plugins/
chown -R $pkgusers:$pkggroups "$subpkgdir/$_ofhome"
}
sha512sums="8b968c94fcd779544c90de34172b00d472dc2e42142f2aa5eda01f0e0c3dda903a3b9b6d82286916bb1ae8f97fb12f0a94aeb42fad1df0b2dd47e951e03b8523 openfire_src_4_2_3.tar.gz
95a486898b84c4b7b0e3a60ceb7ccbb5d383451228b9c5090dc58513afc9513095e6c124e2ef170912376a7179d058b106d3bbd69db7b7204ff5f1be13823bdc openfire.initd
e952b1dbf10df6c8303f6e71ae08853a1901cbf92f059c3dc927e0085365e6c4752d2c5ddaa9ce1da944a164ee0f29b1057e10a61840814bff3722020253b5bf openfire.confd
e17684600700c85d366549b7ac9fec64b9abcd1fd53e131e2d5b9d53514865ad0eacb25618dfc6c264af25fb880e761cdd7349bdcbc22c1f65a6fa7444dcd2a7 openfire.logrotate"
|