summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c7309f215dd545063b07be00cc0fd0ad43c6d82 (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
# Wildfly Application Server package
# Contributor: Holger Rauch <holger dot rauch at posteo dot de>
# Contributor: Stick <stick at stma dot is>
# Maintainer: Zdenek Obst <zdenek dot obst at gmail dot com>

pkgname=wildfly
pkgver=21.0.2.Final
pkgrel=1

pkgdesc='Wildfly Application Server'
arch=('any')
url='http://www.wildfly.org/'
license=('LGPL')
depends=('java-runtime>=8')
conficts=('wildfly-devel')

_pkgloc=opt
backup=(etc/profile.d/${pkgname}.sh
	${_pkgloc}/${pkgname}/domain/configuration/application-roles.properties
	${_pkgloc}/${pkgname}/domain/configuration/application-users.properties
	${_pkgloc}/${pkgname}/domain/configuration/logging.properties
	${_pkgloc}/${pkgname}/domain/configuration/mgmt-groups.properties
	${_pkgloc}/${pkgname}/domain/configuration/mgmt-users.properties
	${_pkgloc}/${pkgname}/domain/configuration/domain.xml
	${_pkgloc}/${pkgname}/domain/configuration/host.xml
	${_pkgloc}/${pkgname}/standalone/configuration/application-roles.properties
	${_pkgloc}/${pkgname}/standalone/configuration/application-users.properties
	${_pkgloc}/${pkgname}/standalone/configuration/logging.properties
	${_pkgloc}/${pkgname}/standalone/configuration/mgmt-groups.properties
	${_pkgloc}/${pkgname}/standalone/configuration/mgmt-users.properties
	${_pkgloc}/${pkgname}/standalone/configuration/standalone.xml
	${_pkgloc}/${pkgname}/bin/add-user.properties
	${_pkgloc}/${pkgname}/bin/appclient.conf
	${_pkgloc}/${pkgname}/bin/domain.conf
	${_pkgloc}/${pkgname}/bin/jboss-cli-logging.properties
	${_pkgloc}/${pkgname}/bin/jboss-cli.xml
	${_pkgloc}/${pkgname}/bin/standalone.conf)

install=${pkgname}.install

source=(http://download.jboss.org/wildfly/${pkgver}/wildfly-${pkgver}.tar.gz
	${pkgname}.service
	${pkgname}.sh
	${pkgname}.install
	systemd-wrapper.sh)

sha256sums=('e809c1abe943f827da675aaa0338a7b836dac8c3f02423e734775a4b3ec972ac'
	'65e4b22b106aa16413e5c95686969b3f16974235451d8445ce4c562299325412'
	'3b2d059fcecb799ea8134b23ee0b77b4bc53dd99c7bd541679c4c139638b323a'
	'a360ddb4beb9c704257bd78e08e8eea69c43b410a9c93d346541158c3b9d4330'
	'922035fcf68a66ed4b36a89370d2335941cb64ef8561e81fa6f59b5784f659e1')

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	rm -f bin/*.{bat,exe}
	install -dm755 ${pkgdir}/${_pkgloc}
	cp -R ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/${_pkgloc}/${pkgname}

	# Prepare systemd service file
	install -Dm755 ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service

	# Prepare file for environment variables to profile.d
	install -Dm755 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d/${pkgname}.sh

	# Include wrapper script for systemd startup
	install -Dm755 ${srcdir}/systemd-wrapper.sh ${pkgdir}/${_pkgloc}/${pkgname}/bin/systemd-wrapper.sh
}