diff options
author | Christian Parpart <trapni@gentoo.org> | 2012-05-18 15:00:03 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2012-05-18 15:00:03 +0000 |
commit | 7c5205475441a8c359e1d48c1f6aae2ad9ac283c (patch) | |
tree | d9a07e851e128ed4f61dd196cc2d9506f526e76f /net-misc/rabbitmq-server | |
parent | Give lcms1 USE flag less encouraging description. (diff) | |
download | historical-7c5205475441a8c359e1d48c1f6aae2ad9ac283c.tar.gz historical-7c5205475441a8c359e1d48c1f6aae2ad9ac283c.tar.bz2 historical-7c5205475441a8c359e1d48c1f6aae2ad9ac283c.zip |
Added systemd support
Package-Manager: portage-2.1.10.57/cvs/Linux x86_64
Diffstat (limited to 'net-misc/rabbitmq-server')
-rw-r--r-- | net-misc/rabbitmq-server/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/rabbitmq-server/Manifest | 4 | ||||
-rw-r--r-- | net-misc/rabbitmq-server/files/rabbitmq.service | 12 | ||||
-rw-r--r-- | net-misc/rabbitmq-server/rabbitmq-server-2.8.1-r1.ebuild | 89 |
4 files changed, 111 insertions, 2 deletions
diff --git a/net-misc/rabbitmq-server/ChangeLog b/net-misc/rabbitmq-server/ChangeLog index 4fe7d7bfe059..0c9a6bc063fb 100644 --- a/net-misc/rabbitmq-server/ChangeLog +++ b/net-misc/rabbitmq-server/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/rabbitmq-server # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/ChangeLog,v 1.17 2012/05/12 19:46:46 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/ChangeLog,v 1.18 2012/05/18 15:00:03 trapni Exp $ + +*rabbitmq-server-2.8.1-r1 (18 May 2012) + + 18 May 2012; <trapni@gentoo.org> +rabbitmq-server-2.8.1-r1.ebuild, + +files/rabbitmq.service: + Added systemd support 12 May 2012; Benedikt Böhm <hollow@gentoo.org> -rabbitmq-server-2.5.1.ebuild, -rabbitmq-server-2.6.1.ebuild, diff --git a/net-misc/rabbitmq-server/Manifest b/net-misc/rabbitmq-server/Manifest index a4cc41b883cd..1c85b6ab1287 100644 --- a/net-misc/rabbitmq-server/Manifest +++ b/net-misc/rabbitmq-server/Manifest @@ -1,6 +1,8 @@ AUX rabbitmq-script-wrapper 1844 RMD160 255586b0339a8200c63309eaefb952f67712eb0d SHA1 3b4f880d484541e749e3dd0d913adc6a21e4df23 SHA256 46783bc7466f48d8ddc785c5aac2b94d723c811106b6d8251adee170558f316e AUX rabbitmq-server.init-r3 744 RMD160 eb810f5428ad16a3e2c143a84b9666abf49a535b SHA1 b2e6586dd21e8debbb8ff5e7cb8e59f1abf16626 SHA256 76aa4fe4578c31fe076d7c48770b63ad8836996352a981c6bba415e67e071b5c +AUX rabbitmq.service 190 RMD160 eee42706b3ac3c9a37d6b4311b572e6003fa16d4 SHA1 6cb4749dc1c680e29e60dc75db5358950444937e SHA256 cb47608cd69d654f3064740ba95fe5c01b207fa071f24eaccbc1f63e5e6d67f4 DIST rabbitmq-server-2.8.1.tar.gz 2644402 RMD160 519fe864a36d27cf38a97479e621b15d9a8a6e5b SHA1 24f13c7a9b5d8daf57cb6844e06b605d934f7088 SHA256 b59f46d2cc4ce3427ba16e00cb9def7c51ca9f6b92473c6ae8fc43f6e4d60835 +EBUILD rabbitmq-server-2.8.1-r1.ebuild 2447 RMD160 3970c0cd850c1cfd8b91977f623d0bbdbafd4a37 SHA1 d44ed6f080200dd686f02ee42ccd96ac2a2e68dd SHA256 41625172cac4a358e5057908f001856ac2bed821e30746afdc825db06774de21 EBUILD rabbitmq-server-2.8.1.ebuild 2389 RMD160 b90f9976e56e898043fa044673cbb05436cedfce SHA1 44e77691901bd1a586d8c9133c410660820676c4 SHA256 0e47e3392e2e655bec5486ec6b2a6cc64151e8f83d587e590ba492f03251f102 -MISC ChangeLog 3416 RMD160 d301d5f3795c7fb73bc81d695ff1edef6668e3b3 SHA1 cfc8d81ebd1aeb6f1ada67d26a7434548e9b5c92 SHA256 3ef14fc8f329724155c0b25efb1d9ccd055b65f2b27a83cdf64ee8b61c239552 +MISC ChangeLog 3578 RMD160 b647bf28d7dc1ccb0a504924fda45cc4f22ce9db SHA1 8be05f328c82a2720f552a584cafa32be6b5e2ae SHA256 958de08e043c7361e18e3f45970ffac159b9a27374568b89172e2f6f876e0297 MISC metadata.xml 234 RMD160 cb149fcd7945b8906164cad81daf559757035cde SHA1 9bf4056cf71e3eb7153bb319e8bd24ede9a205b6 SHA256 9f3ea84c59dfbd2d2dd7f1e6f0b959540e27cc9caad4f77e6e76774ce98505a6 diff --git a/net-misc/rabbitmq-server/files/rabbitmq.service b/net-misc/rabbitmq-server/files/rabbitmq.service new file mode 100644 index 000000000000..6bb26f62f447 --- /dev/null +++ b/net-misc/rabbitmq-server/files/rabbitmq.service @@ -0,0 +1,12 @@ +[Unit] +Description=RabbitMQ daemon + +[Service] +Type=simple +ExecStart=/usr/sbin/rabbitmq-server +StandardOutput=syslog +StandardError=syslog +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/rabbitmq-server/rabbitmq-server-2.8.1-r1.ebuild b/net-misc/rabbitmq-server/rabbitmq-server-2.8.1-r1.ebuild new file mode 100644 index 000000000000..6fc8e998f80b --- /dev/null +++ b/net-misc/rabbitmq-server/rabbitmq-server-2.8.1-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/rabbitmq-server-2.8.1-r1.ebuild,v 1.1 2012/05/18 15:00:03 trapni Exp $ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit eutils python systemd + +DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang." +HOMEPAGE="http://www.rabbitmq.com/" +SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-${PV}.tar.gz" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/erlang" +DEPEND="${RDEPEND} + app-arch/zip + app-arch/unzip + app-text/docbook-xml-dtd:4.5 + app-text/xmlto + dev-libs/libxslt + dev-python/simplejson +" + +pkg_setup() { + enewgroup rabbitmq + enewuser rabbitmq -1 -1 /var/lib/rabbitmq rabbitmq + python_set_active_version 2 + python_pkg_setup +} + +src_compile() { + emake all docs_all || die "emake all failed" + gunzip docs/*.gz +} + +src_install() { + # erlang module + local targetdir="/usr/$(get_libdir)/rabbitmq" + + einfo "Setting correct RABBITMQ_HOME in scripts" + sed -e "s:^RABBITMQ_HOME=.*:RABBITMQ_HOME=\"${targetdir}\":g" \ + -i scripts/rabbitmq-env + + einfo "Installing Erlang modules to ${targetdir}" + insinto "${targetdir}" + doins -r ebin include plugins + + einfo "Installing server scripts to /usr/sbin" + for script in rabbitmq-env rabbitmq-server rabbitmqctl rabbitmq-defaults rabbitmq-plugins; do + exeinto /usr/libexec/rabbitmq + doexe scripts/${script} + newsbin "${FILESDIR}"/rabbitmq-script-wrapper ${script} + done + + # create the directory where our log file will go. + diropts -m 0770 -o rabbitmq -g rabbitmq + keepdir /var/log/rabbitmq /etc/rabbitmq + + # create the mnesia directory + diropts -m 0770 -o rabbitmq -g rabbitmq + dodir /var/lib/rabbitmq{,/mnesia} + + # install the init script + newinitd "${FILESDIR}"/rabbitmq-server.init-r3 rabbitmq + systemd_dounit "${FILESDIR}/rabbitmq.service" + + # install documentation + doman docs/*.[15] + dodoc README +} + +pkg_preinst() { + if has_version "<=net-misc/rabbitmq-server-1.8.0"; then + elog "IMPORTANT UPGRADE NOTICE:" + elog + elog "RabbitMQ is now running as an unprivileged user instead of root." + elog "Therefore you need to fix the permissions for RabbitMQs Mnesia database." + elog "Please run the following commands as root:" + elog + elog " usermod -d /var/lib/rabbitmq rabbitmq" + elog " chown rabbitmq:rabbitmq -R /var/lib/rabbitmq" + elog + fi +} |