PKGBUILD correction for 6.1.2
# Contributor: Aleksandr <contact at via dot aur>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Christian Hersevoort <contact at via dot aur>
pkgname=activemq
pkgver=6.1.2
pkgrel=1
pkgdesc="Popular and powerful open source messaging and Integration Patterns provider"
arch=('x86_64')
url="https://activemq.apache.org"
license=('Apache 2.0')
depends=('java-runtime' 'lsb-release')
source=("https://dlcdn.apache.org/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
'service'
'sysusers')
sha512sums=('e912ba1efad4cf5309e9516eb1735d450d9d713532d363fd40bf89dfe8e924c777050d9393b4ee4f822046190843ead69184c8d8f004628ee704fefaff66e5c5'
'5fc6617e5104956603145cbdb62a909f4df7d1b4bd386685e0eaa0257fb7779144b8befae8e2d2f6d1604c487af781f45aff621f12b59b854f66f524bf726b1b'
'70da58b82ed88644b0095a033821745055c23714d62ff24ef578ad83111b876327f60470de39e34f10246ed8b37ca3084a6087d264d4b07fd8d326c071b29b45')
options=(!strip)
install=install
package() {
install -dm0755 "${pkgdir}/opt/${pkgname}"
install -dm0755 "${pkgdir}/usr/lib/sysusers.d"
install -D -m0644 sysusers "${pkgdir}/usr/lib/sysusers.d/activemq.conf"
install -D -m0644 service "${pkgdir}/usr/lib/systemd/system/activemq.service"
mv apache-${pkgname}-${pkgver} "${pkgdir}/opt/${pkgname}/"
ln -s /opt/activemq/apache-${pkgname}-${pkgver} ${pkgdir}/opt/${pkgname}/current
}
As of 2023 Novermber 23 this package build worked for me
# Contributor: Aleksandr <contact at via dot aur>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=activemq
pkgver=6.0.0
pkgrel=1
pkgdesc="Popular and powerful open source messaging and Integration Patterns provider"
arch=('x86_64')
url="https://activemq.apache.org"
license=('Apache 2.0')
depends=('java-runtime' 'lsb-release')
source=("https://archive.apache.org/dist/activemq/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
'service'
'sysusers')
sha256sums=('02274164aacb1883ed997ae060aed8116c57cac3153e2a1d36aca218cc907146'
'8a3dbf1130cb66beef6d5bb84636594bbd090663e4ccca5214c8269e0c8a6e1f'
'3898131d4c696828dd2cca793907417db9471ad6bf9c8014d25a4995796daff7')
options=(!strip)
install=install
package() {
install -dm0755 "${pkgdir}/opt/${pkgname}"
install -dm0755 "${pkgdir}/usr/lib/sysusers.d"
install -D -m0644 sysusers "${pkgdir}/usr/lib/sysusers.d/activemq.conf"
install -D -m0644 service "${pkgdir}/usr/lib/systemd/system/activemq.service"
mv apache-${pkgname}-${pkgver} "${pkgdir}/opt/${pkgname}/"
ln -s /opt/activemq/apache-${pkgname}-${pkgver} ${pkgdir}/opt/${pkgname}/current
}
works:
pkgname=activemq
pkgver=5.17.2
pkgrel=1
pkgdesc="Popular and powerful open source messaging and Integration Patterns provider"
arch=('x86_64')
url="https://activemq.apache.org"
license=('Apache 2.0')
depends=('java-runtime' 'lsb-release')
#source=("$url/dist/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
source=("https://dlcdn.apache.org/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
'service'
'sysusers')
options=(!strip)
install=install
package() {
install -dm0755 "${pkgdir}/opt/${pkgname}"
install -dm0755 "${pkgdir}/usr/lib/sysusers.d"
install -D -m0644 sysusers "${pkgdir}/usr/lib/sysusers.d/activemq.conf"
install -D -m0644 service "${pkgdir}/usr/lib/systemd/system/activemq.service"
mv apache-${pkgname}-${pkgver} "${pkgdir}/opt/${pkgname}/"
ln -s /opt/activemq/apache-${pkgname}-${pkgver} ${pkgdir}/opt/${pkgname}/current
}
sha512sums=('7c6ee4c1a9f58ccaa374d8528255d55c181c3402855fe06202bb30f722bdbd69a2cebaf0eded67324f94b4158b6d8d97b621d8730d92676e51b982ed4fc8a7b0'
'5fc6617e5104956603145cbdb62a909f4df7d1b4bd386685e0eaa0257fb7779144b8befae8e2d2f6d1604c487af781f45aff621f12b59b854f66f524bf726b1b'
'70da58b82ed88644b0095a033821745055c23714d62ff24ef578ad83111b876327f60470de39e34f10246ed8b37ca3084a6087d264d4b07fd8d326c071b29b45')
Package is out of date. This pkgbuild works:
pkgname=activemq
pkgver=5.16.3
pkgrel=1
pkgdesc="Popular and powerful open source messaging and Integration Patterns provider"
arch=('x86_64')
url="https://downloads.apache.org"
license=('Apache 2.0')
depends=('java-runtime' 'lsb-release')
source=("$url/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
'service'
'sysusers')
options=(!strip)
install=install
package() {
install -dm0755 "${pkgdir}/opt/${pkgname}"
install -dm0755 "${pkgdir}/usr/lib/sysusers.d"
install -D -m0644 sysusers "${pkgdir}/usr/lib/sysusers.d/activemq.conf"
install -D -m0644 service "${pkgdir}/usr/lib/systemd/system/activemq.service"
mv apache-${pkgname}-${pkgver} "${pkgdir}/opt/${pkgname}/"
ln -s /opt/activemq/apache-${pkgname}-${pkgver} ${pkgdir}/opt/${pkgname}/current
}
sha512sums=('3394afe9963f55cf62dafb287bdc58cac1fb76a614cc87939bec7b7909972eb5b3069022a9eb324242a315899b1096335c0531af75152c74eb309c0c5981b217'
'5fc6617e5104956603145cbdb62a909f4df7d1b4bd386685e0eaa0257fb7779144b8befae8e2d2f6d1604c487af781f45aff621f12b59b854f66f524bf726b1b'
'70da58b82ed88644b0095a033821745055c23714d62ff24ef578ad83111b876327f60470de39e34f10246ed8b37ca3084a6087d264d4b07fd8d326c071b29b45')
Used sha512sums because the download server has them readily available
Dear maintainer,
the current download URL is incorrect (404) and I can't update my activemq installation.
Please update the URL. I've written this patch for your, feel free to apply it, or to modify it as you wish.
diff --git a/activemq_orig b/activemq
index d776b3c..2004e53 100644
--- a/activemq_orig
+++ b/activemq
@@ -6,10 +6,10 @@ pkgver=5.16.1
pkgrel=1
pkgdesc="Popular and powerful open source messaging and Integration Patterns provider"
arch=('x86_64')
-url="http://activemq.apache.org"
+url="https://downloads.apache.org"
license=('Apache 2.0')
depends=('java-runtime' 'lsb-release')
-source=("$url/dist/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
+source=("$url/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
'service'
'sysusers')
options=(!strip)
PS: this patch also use an HTTPS link.
Thank you very much,
Luca
The service file seems to be looking in the wrong place for the executable. I get the following error when starting the service:
activemq.service: Failed to execute command: No such file or directory
activemq.service: Failed at step EXEC spawning /opt/activemq/bin/activemq: No such file or directory
Digging in a little bit, I see an executable at the following paths
/opt/activemq/current/bin/activemq
/opt/activemq/apache-activemq-5.15.10/bin/activemq
current is a symlink to apache-activemq-5.15.10 so this is the same executable
The current service-file is broken(?). The command in ExecStart is blocking (/usr/bin/java -jar /opt/activemq/bin/activemq.jar start). As a result, the service does not start by timeout:
# systemctl start activemq
Job for activemq.service failed because a timeout was exceeded.
in status/journalctl:
activemq.service: start operation timed out. Terminating.
...
activemq.service: Control process exited, code=exited, status=143/n/a
activemq.service: Failed with result 'timeout'.
Could you perhaps also add the files in /opt/activemq/conf to the backup field of the PKGBUILD, to avoid changes in activemq.xml being overwritten on update?