blob: 931b1bd30394df096d01dac7383f77bb89a51730 (
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
|
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
# Contributor: Dmitry Nosachev quartz64 gmail
# Contributor: Patrick Schneider Patrick.Schneider uni-ulm.de
# Install guide:
# http://openmeetings.apache.org/installation.html
# The early steps are done by this PKGBUILD.
# Original instructions for 1.9.1, some of which may still apply:
# ==> Please make sure that mysql is reachable via TCP/IP
# ==> Do this by commenting out the following line in /etc/my.cnf:
# ==> skip-networking
#
# ==> OpenMeetings/red5 also requires you to open the following ports:
# ==> 5080 8443 1935 8088 9035"
#
# ==> Last, please configure your mysql database, user and password at
# ==> /opt/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
# ==> Then start mysql and red5. If all went ok, you can access the
# ==> OpenMeetings installer at http://localhost:5080/openmeetings/install
set -u
pkgname='openmeetings'
pkgver='3.0.6'
pkgrel='1'
#pkgdesc='Multi-Language Cross-Platform Customizable Web-Conferencing and Collaboration'
pkgdesc='provides video conferencing, instant messaging, white board, collaborative document editing and other groupware tools using the Red5 Streaming Server'
arch=('any')
#url='http://code.google.com/p/openmeetings/'
url=('http://openmeetings.apache.org/')
license=('apache')
depends=('mysql' 'imagemagick' 'ghostscript' 'swftools' 'sox' 'lame' 'openjdk6'
'ffmpeg' 'libreoffice-base' 'libreoffice-calc' 'libreoffice-common'
'libreoffice-draw' 'libreoffice-impress' 'libreoffice-writer')
makedepends=('curl') # 'unzip') # Used to download as zip
#install="${pkgname}.install"
_srczip="apache-${pkgname}-${pkgver}.tar.gz"
# by Guillaume ALAUX for storm,kafka
#_apache_cgi='http://www.apache.org/dyn/closer.cgi'
#_closest="$(curl "${_apache_cgi}?asjson=1" | tr -d '\n ' | sed -r 's/.*"preferred":"(.+)".*/\1/')" # '
_closest="http://www.apache.org/dist" # It worked but wasn't compatible with mksrcinfo
source=("${_closest}${pkgname}/${pkgver}/bin/${_srczip}"
"http://www.apache.org/dist/${pkgname}/${pkgver}/bin/${_srczip}.asc" # Sigs always come from the master repository
"${pkgname}.service"
)
backup=("opt/${pkgname}/webapps/${pkgname}/WEB-INF/classes/META-INF/persistence.xml")
noextract=("${_srczip}")
sha256sums=('1fcddf6ef03861d611a7ed3cf6bc6fc87f67d92a77a30603bb9818bd29e703de'
'SKIP'
'a22001d137e7adf92d9f52985a1497967ada421f14f1d697df1823d74cbbce87')
options=('!strip') # Nothing to strip in a Java package, wastes time!
package() {
set -u
install -dm755 "${pkgdir}/opt/${pkgname}"
#unzip -q -d "${pkgdir}/opt/${pkgname}" "${srcdir}/${_srczip}"
tar -xz -C "${pkgdir}/opt/${pkgname}" -f "${srcdir}/${_srczip}"
#chmod 755 "${pkgdir}/opt/${pkgname}"/*.sh # 1.9.1 forgot to set the shell scripts executable
install -Dpm644 "${srcdir}/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system/"
# Overwrite Apache Derby with MySQL/MariaDB which has been installed by this PKGBUILD.
# The user can select Derby or any of the others after Install.
cp -p "${pkgdir}/opt/${pkgname}/webapps/${pkgname}/WEB-INF/classes/META-INF/mysql_persistence.xml" "${pkgdir}/opt/${pkgname}/webapps/${pkgname}/WEB-INF/classes/META-INF/persistence.xml"
# Ensure there are no forbidden paths (git-aurcheck)
! grep -alqr "/sbin" "${pkgdir}" || echo "${}"
! grep -alqr "/usr/tmp" "${pkgdir}" || echo "${}"
! test -d "${pkgdir}/usr/sbin" || echo "${}"
set +u
}
set +u
|