Package Details: activemq 5.18.2-1

Git Clone URL: https://aur.archlinux.org/activemq.git (read-only, click to copy)
Package Base: activemq
Description: Popular and powerful open source messaging and Integration Patterns provider
Upstream URL: https://activemq.apache.org
Licenses: Apache 2.0
Submitter: None
Maintainer: Christian.H
Last Packager: Christian.H
Votes: 6
Popularity: 0.44
First Submitted: 2017-07-17 03:13 (UTC)
Last Updated: 2023-08-24 09:27 (UTC)

Dependencies (2)

Required by (2)

Sources (3)

Latest Comments

1 2 Next › Last »

dark_barker commented on 2022-11-07 15:25 (UTC)

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')

ajian commented on 2022-03-20 08:44 (UTC)

这个下载不下来,显示404 https://activemq.apache.org/dist/activemq/5.16.3/apache-activemq-5.16.3-bin.tar.gz 新版好像是 https://dlcdn.apache.org//activemq/5.17.0/apache-activemq-5.17.0-bin.tar.gz

crispyrice commented on 2021-10-21 09:17 (UTC)

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

Luca91 commented on 2021-03-26 10:10 (UTC) (edited on 2021-03-26 10:19 (UTC) by Luca91)

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

3ocene commented on 2019-10-31 18:01 (UTC)

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

<deleted-account> commented on 2019-10-21 04:18 (UTC)

Updated

dark_barker commented on 2019-10-15 12:18 (UTC) (edited on 2019-10-15 12:19 (UTC) by dark_barker)

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'.

<deleted-account> commented on 2019-02-28 16:03 (UTC)

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?

<deleted-account> commented on 2019-02-28 09:05 (UTC)

Thanks for the update.

I think the current service file isn't right, tho: The type's still forking, but java -jar activemq.jar doesn't fork, nor does it write a PID file. As far as I understand both of these things come from the service wrapper used by the shell script (which exists to add all those service things like PID files and forking to Java apps). If you don't use this wrapper I think you have to use simple as type, and then systemd handles the forking and stuff itself. The PIDFile option isn't used in this case. The service file would look like this then:

[Unit]
Description=Messaging and Integration Patterns provider
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/java -jar /opt/activemq/bin/activemq.jar start

[Install]
WantedBy=multi-user.target

To use the forking type you need to use the activemq shell script which forks; in this case PIDFile must point to the actual PID file written by activemq (somewhere under /opt/activemq…/data I think).

<deleted-account> commented on 2019-02-27 13:04 (UTC)

Please remove >/dev/null 2>&1 from ExecStart in service. ExecStart is no shell command, so the redirection has no effect (check systemctl status); the service starts only by coincidence, because activemq seems to ignore excess arguments.

The systemd.service manpage also recommends to set PIDFile for forking daemons, but why not switch to simple and use console instead of start, and thus let systemd handle all the forking? You could then even use just java -jar /opt/activemq/bin/activemq.jar start as ExecStart, which would have the added benefit of making activemq's output appear in systemctl status activemq and journalctl.