Commit 7da9cc31 authored by Liguros - Gitlab CI/CD [develop]'s avatar Liguros - Gitlab CI/CD [develop]
Browse files

Adding metadata

parent 70f18960
DIST exo-1.24.0.tar.gz 4848942 BLAKE2B 20790b0e5ab26e13ec73191e50b086046869d41120536a92745b3a431ee0c335d827cf442f2fa7dfcb4cd1c695399efe69b98eab75eb1642ed5d84ea8fb9e784 SHA512 e25a5b74cb81e8d16db1267c6e17f8da6d94afe1701500b526a889d2a667b173fed76227c3adaca07f077225ab68a48c8b7ead5d8dc33597eff8a02bf579b547
DIST exo-1.26.0.tar.gz 4861283 BLAKE2B ac009382ee9d8004dd168ac610c96728b6977158b357b0f788adb28ff7d28e6ea9f458b14e4a156c5b88f58f7ea984a3e19a544ff96bad439a09fcdad9680c99 SHA512 4d2a05433749dd07298cc92449ef2ec1173034da4a3791d7c6229877e199af89eda12c4e80527f1cabfeca05d6a652adc3cac09e4d11893fe88077277d4b9519
This diff is collapsed.
This diff is collapsed.
DIST lastpass-binary-component-4.67.1.tar.bz2 1625199 BLAKE2B cd9333866516a0dc43b653106224e5ef1a228c340adac93a2541d4f337b6b865c5eed043cf914a552b390d23a471ff1f21f8439d15282b77fb69dcbd6ffa01c1 SHA512 8277082fcf4cb8ef0f67903f518eb1b55fd6525373f22be0ce7d62abedef76029ef46da7c0aa32d4df3bbc0053471232390ecd69ff0572a3836e08aefee98e48
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Binary component required by the LastPass Password Manager browser extension"
HOMEPAGE="https://helpdesk.lastpass.com/downloading-and-installing/#h5"
# sadly, upstream has no versioned distfiles
SRC_URI="https://download.cloud.lastpass.com/linux/lplinux.tar.bz2 -> ${P}.tar.bz2"
LICENSE="LastPass"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="bindist strip mirror" # We can't mirror it, but we can fetch it
LASTPASS_EXEDIR=/opt/lastpass/
QA_PREBUILT="
${LASTPASS_EXEDIR}nplastpass*
"
S="${WORKDIR}"
src_install() {
# This is based on the upstream installer script that's in the tarball
bin=nplastpass
use amd64 && bin="${bin}64"
exeinto ${LASTPASS_EXEDIR}
doexe "${S}"/${bin}
# Generate the policy file for Chrome/Chromium/Opera
cat >"${T}"/lastpass_policy.json <<-EOF || die
{
"ExtensionInstallSources": [
"https://lastpass.com/*",
"https://*.lastpass.com/*",
"https://d1jxck0p3rkj0.cloudfront.net/lastpass/*"
]
}
EOF
# Install the policy file for Chrome/Chromium/Opera
for d in /etc/chromium /etc/opt/chrome; do
insinto ${d}/policies/managed
doins "${T}"/lastpass_policy.json
done
# Generate the app manifest for Chrome/Opera
cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die
{
"name": "com.lastpass.nplastpass",
"description": "LastPass",
"path": "${LASTPASS_EXEDIR}${bin}",
"type": "stdio",
"allowed_origins": [
"chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/",
"chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/",
"chrome-extension://hnjalnkldgigidggphhmacmimbdlafdo/",
"chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/"
]
}
EOF
# Install the app manifest for Chrome/Opera
# https://developer.chrome.com/apps/nativeMessaging
# https://dev.opera.com/extensions/message-passing/
insinto /etc/opt/chrome/native-messaging-hosts
doins "${T}"/com.lastpass.nplastpass.json
# Generate the app manifest for Chromium
cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die
{
"name": "com.lastpass.nplastpass",
"description": "LastPass",
"path": "${LASTPASS_EXEDIR}${bin}",
"type": "stdio",
"allowed_origins": [
"chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/",
"chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/",
"chrome-extension://hgnkdfamjgnljokmokheijphenjjhkjc/"
]
}
EOF
# Install the app manifest for Chromium
# https://developer.chrome.com/apps/nativeMessaging
insinto /etc/chromium/native-messaging-hosts/
doins "${T}"/com.lastpass.nplastpass.json
# Generate the app manifest for Firefox
cat >"${T}"/com.lastpass.nplastpass.json <<-EOF || die
{
"name": "com.lastpass.nplastpass",
"description": "LastPass",
"path": "${LASTPASS_EXEDIR}${bin}",
"type": "stdio",
"allowed_extensions": [
"support@lastpass.com"
]
}
EOF
# Install the app manifest for both firefox and firefox-bin
# https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_manifests#Manifest_location
insinto /usr/lib/mozilla/native-messaging-hosts/
doins "${T}"/com.lastpass.nplastpass.json
insinto /usr/lib64/mozilla/native-messaging-hosts/
doins "${T}"/com.lastpass.nplastpass.json
}
pkg_postinst() {
einfo "This package only installs the components required by the browser extension."
einfo "Visit the links below for your browser to install the extension itself:"
einfo "Chrome/Chromium: https://lastpass.com/dl/inline/?full=1"
einfo "Firefox: https://lastpass.com/lastpassffx/"
einfo "Opera: https://lastpass.com/dl/"
einfo
einfo "Chrome, Chromium and Opera users need to manually enable the binary component."
einfo "For more info, visit: https://lastpass.com/support.php?cmd=showfaq&id=5576"
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gokturk@gentoo.org</email>
<name>Göktürk Yüksek</name>
</maintainer>
<maintainer type="person">
<email>robbat2@gentoo.org</email>
<name>Robin H. Johnson</name>
</maintainer>
<longdescription lang="en">
The binary features for Lastpass include faster encryption/decryption,
clipboard integration, smart card authentication and more for
<pkg>www-client/google-chrome</pkg>, <pkg>www-client/chromium</pkg>,
and <pkg>www-client/opera</pkg> web browsers. For
<pkg>www-client/firefox</pkg> this package is not required as the
extension bundles the binary components already.
</longdescription>
<origin>gentoo-staging</origin>
</pkgmetadata>
\ No newline at end of file
DIST logstash-6.8.13.tar.gz 176911221 BLAKE2B 644dc67dea638e2e2307e807bf2f08e9758db4f8b1a01deb13585b925ceeaaaafba0e573f125c095603b5c7e5329ae82677472c72f53af9d26d792de31c896ed SHA512 f253b566e8f67063bea6dd183ca495d7b53b0062566278e0937af71763fb0b3339ef90c7620edd3370719faa2c49a162e1757141fa60b7136e9d9c3d83657d32
DIST logstash-6.8.15.tar.gz 176912362 BLAKE2B 68178b2cbf0ad3ecafc83fddf4c50ef767862fbb90ba7a0dd0527de4f8d3bddc485a99a7e774c6d0efd5b3eb4bf701be042cfc58dcb546c7436db39ff4594841 SHA512 bb42b1284f6ca8d4b10cac96b57cae0f28a33047164f9f9a352ed906a960e11fea3d9c58b23cdd607e0d76eee7aa07fbb6ce8870323e3cc6cba472578d99fb01
DIST logstash-7.10.2-linux-x86_64.tar.gz 351170815 BLAKE2B 536a33de4be4bd1b6dfccf7d4cedc064b0f0b9c0569545d195244cf14f38d9c83159439d7710a76fdc4e4394b5f7d5a1919460c1c03186b4fc7f054744a46016 SHA512 34099b34a05c6b85b1b355310bd190b606aa0bcce1cad07bf5fd98959e54f61860bdd697cca8f3cdab2d2b815bbc2a788d2e14dcac4b3d85a0d5bafd72d2b170
DIST logstash-7.8.1.tar.gz 159599529 BLAKE2B c7ba03fc106add6ee0b956de1c3a1ed221c2571087aeedec178d65be3cc83a10f7a4eb35898fc441ffd1c27322668d8e95344a5509cc703b4788d76422a5a1f1 SHA512 7ad6d380e92e90fad2a058a24571b85a49d5ed81835837c12dfa2f4ae4c776483de39b099ed6852ca7f4bab833cd5aba44d28df3048557dfc4a52d4c5486e276
DIST logstash-7.9.2.tar.gz 158690951 BLAKE2B a50d959d0d032896b64f2957f299efead1ef51cda77c440f612500ba7193bc8cc81b092c59513dc70a412cf813920df4da5cadff5a494136c5d284d5b9060f34 SHA512 54ec3f58f6fea9d8dee9cbe8eaf755bb9f5d26858082f6594f6fe5f006af6e3f2ee2d5899ada71ef4ad6856d27c0c91ad7a0769aea16c09a8cf6ab234ffc939e
DIST logstash-7.9.3.tar.gz 158711139 BLAKE2B 5a5426e3ee41e3f985318e7356a3b13df1042b887a627824e9d14a73839e648ea6291333921902320b20cc3e474a15d9b1f4c76bfcfdc0b6aaa08ed098df0ae4 SHA512 f4bfc97203bcad589d3682a4dfd8f7e6172efa958775541b128f43b151cedf4065b1eab012d60a8aa5005dbb504e4c3638a26492c30fba3ba5b271ad17876f25
DIST logstash-oss-6.8.13.tar.gz 176780212 BLAKE2B 68a5f262023f75525e8b8f98d279920011a0a4cbb34c7297c51f3e45034ab12ca2e2f57b2bb22453107e24fdbca65f16f73a69776fbfd321ea87c6fd1b8d0292 SHA512 0919c8f7bbf39ac9cb41d0065267eb39ba359393e629bf360d6795a68efc9444ab99c7287c533b53efe9ec74fbe403ebe5e5e178b42c48b92d79281a3a5f2045
DIST logstash-7.12.0-linux-x86_64.tar.gz 368429061 BLAKE2B 7bf60eeeec072e99aec807c8cb64cfd5cd46270d297c717fee539531286f487ef254738a439947e40bfc039778d20fa746566aa4d0c031a8f1a22deaaab9ce74 SHA512 ba32cb97e81cc3f4369c752b860aea7a85d212921954e5829f0b63526584d01c79731dd094905d91ed35f9887ae70bfffd5324b25dc3f23e60745462493e8195
DIST logstash-oss-6.8.15.tar.gz 176782145 BLAKE2B 20cdd28d9c6e43edb3cc6d60b961155880aaf2e22d100b6641246a56194ba87aef3c41e039be2ab6bca75e646b83a3f42c935472776aa87a4baa774cca74458d SHA512 c74f189af58ca936b3d3e19970f29a78b8f041f5771163c5ed28466e84cf456f4814a9f4c5a9def2706c39daaebaca948c14e683a6aa82b2e1c1e7ee57592dc2
DIST logstash-oss-7.10.2-linux-x86_64.tar.gz 350992238 BLAKE2B f31207af62b6ff36af4be6fae9c6ede18a481317d28ba2ee6469cd095acba9b41ad4d7598756a51a078bf3d4269ae2f11750e4117842e496811a79825f284aef SHA512 5425483a7d3ec5ba186574940031a529efa683f452f5e3e38ffd9bd07771beabdd5c54a8147ed42fe761b700ea5c294018f1efb22fa6fdcf23189f2aea314b5b
DIST logstash-oss-7.8.1.tar.gz 159415077 BLAKE2B b6dd108679d813cf4ba0d0426ea8acfb460cdcfeec052359a6ce79f194fe4631349973ce1bc726fe7356264211608328204332c74e49ba0aa92e626571789142 SHA512 60d964c0b1f6afebcd41a8036e2dbbee62ca15365c840a5664406428c6b692588ea9343a600ba12d4355ff46ae60a08d42c61c5f33bb7590ce119e15fa1a32e4
DIST logstash-oss-7.9.2.tar.gz 158510234 BLAKE2B 568f5ba0ebe2baf75211af2e4c859ec5496e28149a060d7688606b56a7972924f0a163914f1c085bc2600694bfc7363fa5300785457f64f3210b97e1074c7210 SHA512 dbd83299a5b3ec76f3e4b235d0b6aff9aad2ab395412b570e3ef82c2ba761a1899a7009b117af9b13b623c00579f323751da7b54c613047efa2558394a19387d
DIST logstash-oss-7.9.3.tar.gz 158530838 BLAKE2B 0a37f05a42848e6d99ac6741f7fa92a73794d292ad72f793754805d45bdff940163875046258148f71cf953ce40be8747d201d0782de0cf60f2ed16db0136b29 SHA512 13d7a2e417d061b838c8be8a2a874f5964fd32c70cb437ab4bab7c4f8a17882b7874dabe53ba6a588250e56557e972b6d1f5be7970debbfbd893d4532705e6f2
DIST logstash-oss-7.12.0-linux-x86_64.tar.gz 368251521 BLAKE2B 0959b29335dba2728d2e7a76ee482fb713f9d504a52bea1dcde99f042cfd52d9e18067cb3fffe6ca28b2eddddfd4ded1a19de616f4ddd3b6889e373a908706a0 SHA512 5d7bd5ec3ea5907771bb7590277e54be3407cebe6bc89dd7f5d73b02e9e8907855d19500787b21c8ffcff9cdbbb68a4bbb286131d03ce5585ec89e5c2a76dc60
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
......
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
......@@ -10,8 +10,8 @@ MY_P="${MY_PN}-${PV}"
DESCRIPTION="Tool for managing events and logs"
HOMEPAGE="https://www.elastic.co/products/logstash"
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz )
!x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}.tar.gz )"
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
!x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
# source: LICENSE.txt and NOTICE.txt
LICENSE="Apache-2.0 MIT x-pack? ( Elastic )"
......@@ -31,17 +31,16 @@ S="${WORKDIR}/${MY_P}"
src_prepare() {
default
rm vendor/jruby/lib/jni/aarch64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/i386-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/mips64el-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64le-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-DragonFlyBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-FreeBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-SunOS/libjffi-1.2.so || die
local d
for d in aarch64-Linux arm-Linux Darwin i386-Linux i386-SunOS \
i386-Windows mips64el-Linux ppc64-AIX ppc64le-Linux ppc64-Linux \
ppc-AIX sparcv9-Linux sparcv9-SunOS x86_64-DragonFlyBSD \
x86_64-FreeBSD x86_64-OpenBSD x86_64-SunOS x86_64-Windows; do
rm -r vendor/jruby/lib/jni/$d || die
done
# remove bundled java
rm -r jdk || die
}
src_install() {
......
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2
MY_PN="${PN%-bin}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Tool for managing events and logs"
HOMEPAGE="https://www.elastic.co/products/logstash"
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz )
!x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}.tar.gz )"
# source: LICENSE.txt and NOTICE.txt
LICENSE="Apache-2.0 MIT x-pack? ( Elastic )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="x-pack"
RESTRICT="strip"
QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
RDEPEND="acct-group/logstash
acct-user/logstash
virtual/jre"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
rm vendor/jruby/lib/jni/aarch64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/i386-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/mips64el-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64le-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-DragonFlyBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-FreeBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-SunOS/libjffi-1.2.so || die
}
src_install() {
keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
keepdir "/var/log/${MY_PN}"
insinto "/usr/share/${MY_PN}"
newins "${FILESDIR}/agent.conf.sample" agent.conf
rm -v config/{pipelines.yml,startup.options} || die
insinto /etc/${MY_PN}
doins -r config/.
doins "${FILESDIR}/pipelines.yml"
rm -rv config data || die
insinto "/opt/${MY_PN}"
doins -r .
fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}"
newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}"
insinto /usr/share/eselect/modules
doins "${FILESDIR}"/logstash-plugin.eselect
}
pkg_postinst() {
ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
ewarn "Install the plugins via eselect module that will automatically re-install"
ewarn "all self installed plugins after Logstash upgrades."
elog
elog "Installing plugins:"
elog "eselect logstash-plugin install logstash-output-gelf"
elog
elog "Reinstalling self installed plugins (installed via eselect module):"
eselect logstash-plugin reinstall
elog
elog "Sample configuration:"
elog "${EROOT}/usr/share/${MY_PN}"
elog
elog "The default pipeline configuration expects the configuration(s) to be found in:"
elog "${EROOT}/etc/logstash/conf.d/*.conf"
}
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2
MY_PN="${PN%-bin}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Tool for managing events and logs"
HOMEPAGE="https://www.elastic.co/products/logstash"
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}.tar.gz )
!x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}.tar.gz )"
# source: LICENSE.txt and NOTICE.txt
LICENSE="Apache-2.0 MIT x-pack? ( Elastic )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="x-pack"
RESTRICT="strip"
QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
RDEPEND="acct-group/logstash
acct-user/logstash
virtual/jre"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
rm vendor/jruby/lib/jni/aarch64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/i386-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/mips64el-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/ppc64le-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-Linux/libjffi-1.2.so \
vendor/jruby/lib/jni/sparcv9-SunOS/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-DragonFlyBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-FreeBSD/libjffi-1.2.so \
vendor/jruby/lib/jni/x86_64-SunOS/libjffi-1.2.so || die
}
src_install() {
keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
keepdir "/var/log/${MY_PN}"
insinto "/usr/share/${MY_PN}"
newins "${FILESDIR}/agent.conf.sample" agent.conf
rm -v config/{pipelines.yml,startup.options} || die
insinto /etc/${MY_PN}
doins -r config/.
doins "${FILESDIR}/pipelines.yml"
rm -rv config data || die
insinto "/opt/${MY_PN}"
doins -r .
fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}"
newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}"
insinto /usr/share/eselect/modules
doins "${FILESDIR}"/logstash-plugin.eselect
}
pkg_postinst() {
ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
ewarn "Install the plugins via eselect module that will automatically re-install"
ewarn "all self installed plugins after Logstash upgrades."
elog
elog "Installing plugins:"
elog "eselect logstash-plugin install logstash-output-gelf"
elog
elog "Reinstalling self installed plugins (installed via eselect module):"
eselect logstash-plugin reinstall
elog
elog "Sample configuration:"
elog "${EROOT}/usr/share/${MY_PN}"
elog
elog "The default pipeline configuration expects the configuration(s) to be found in:"
elog "${EROOT}/etc/logstash/conf.d/*.conf"
}
DIST monit-5.27.1.tar.gz 1459360 BLAKE2B ef8030112c401ab08653692c702f2ec6d34c11605c2f6fbb5310f8e08d7fb238cf1b2d0271358b7160e05ad8dae3931d458329c422ae826681c11fe46fac01b4 SHA512 1e71a529a920a37576242a99fe8067d9b88f64136b111c152527aca4aa5d3cac3c32c1f58a793a56361b8e286f025bfb1f063f4c38d25ebafc7927fbf9170673
DIST monit-5.27.2.tar.gz 1463790 BLAKE2B f00733261fd941f47ec04e63ed9e3617991cd8a069a14e59941e85d3a342537892019864d4716f821428adb57979aa270fcba9d57f573d49e897dfcd77cc133a SHA512 a45cbbf0905b165767e21d66103b460ea48948824d043881aba3de752e34a67bfb3b97f75153e3672d87a34a702d66ceee28160110654aa52fb82c668aa135b9
DIST monit-5.28.0.tar.gz 1480041 BLAKE2B 3ac9930efc89de8b4f65dd197c4f4289b3410afac38950c83b459436720d2c786e89d8bad22e4a7688af9c6111021500b9f3c6f0a8e8cee3a6b0e2f5058ec148 SHA512 3805a8cd5ad2ef9c94832a7fe3a09cf508eb857c92cda129d914db8656613e26eac5fefdaa4530b3403b4f6eb0c4cccdc620c12461dbebcda738ba9535ffa885
From a737d3e3bac5bd0378f645eb675a7e4c248e2216 Mon Sep 17 00:00:00 2001
From: tildeslash <info@tildeslash.com>
Date: Tue, 27 Oct 2020 19:53:56 +0100
Subject: [PATCH] Fixed: Issue #931: The "if oes exist" file test with
unmonitor or stop action didn't work properly.
---
CHANGES | 9 +++++++--
configure.ac | 2 +-
src/validate.c | 3 +++
system/packages/redhat/monit.spec | 5 ++++-
4 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/validate.c b/src/validate.c
index 2bf818a..36aa7ef 100644
--- a/src/validate.c
+++ b/src/validate.c
@@ -1686,6 +1686,9 @@ State_Type check_file(Service_T s) {
Event_post(s, Event_Exist, State_Failed, l->action, "file exists");
}
}
+ // Double-check the monitoring state: the "if does exist" may call unmonitor/stop, which resets the service object
+ if (s->monitor == Monitor_Not)
+ return rv;
if (! S_ISREG(s->inf.file->mode) && ! S_ISSOCK(s->inf.file->mode)) {
Event_post(s, Event_Invalid, State_Failed, s->action_INVALID, "is neither a regular file nor a socket");
return State_Failed;
......@@ -14,7 +14,7 @@ depend() {
configtest() {
${command} -t 1>/dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then
if [ ${ret} -ne 0 ] ; then
eerror "${SVCNAME} has detected an error in your setup:"
${command} -t
fi
......
......@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bash-completion-r1 pam systemd eutils
inherit bash-completion-r1 pam systemd
DESCRIPTION="Monitoring and managing daemons or similar programs running on a Unix system"
HOMEPAGE="http://mmonit.com/monit/"
......
......@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bash-completion-r1 pam systemd eutils
inherit bash-completion-r1 pam systemd
DESCRIPTION="Monitoring and managing daemons or similar programs running on a Unix system"
HOMEPAGE="http://mmonit.com/monit/"
......@@ -25,8 +25,6 @@ BDEPEND="
sys-devel/bison
"
PATCHES=( "${FILESDIR}/monit-fix-unmonitor.patch" )
src_prepare() {
default
sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die
......
#!/bin/bash
action="$1"
case $action in
add)
rc-update -q add vmware-workstation-server default
rc-service vmware-workstation-server start
;;
remove)
rc-update -q del vmware-workstation-server default
rc-service vmware-workstation-server stop
;;
status)
rc-service -q vmware-workstation-server status
;;
*)
exit 1
;;
esac
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
......@@ -159,8 +159,7 @@ src_prepare() {
'env-update && source /etc/profile'\n
Before you can use ${PN}, you must configure a default network setup.
You can do this by running 'emerge --config ${PN}'.\n
To be able to run ${PN} your user must be in the vmware group.\n
"
To be able to run ${PN} your user must be in the vmware group."
}
src_install() {
......@@ -177,6 +176,13 @@ src_install() {
dobin */bin/*
dosbin */sbin/*
rm "${ED}${VM_INSTALL_DIR}"/bin/configure-initscript.sh
mv "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher.bin
cat > "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher <<-EOF
#!/usr/bin/env bash
export LD_LIBRARY_PATH="/opt/vmware/lib/vmware/lib/libssl.so.1.0.2:/opt/vmware/lib/vmware/lib/libcrypto.so.1.0.2"
"${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher.bin "\$@"
EOF
chmod 755 "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher
# install the libraries
insinto "${VM_INSTALL_DIR}"/lib/vmware
......@@ -232,10 +238,6 @@ src_install() {
# install vmware workstation server
cd "${S}"/vmware-workstation-server
# install binaries
into "${VM_INSTALL_DIR}"/lib/vmware
dobin "${FILESDIR}"/configure-hostd.sh
# install the libraries
insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
doins -r lib/*
......@@ -297,7 +299,8 @@ src_install() {
doins -r *
chmod 0755 "${ED}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
dosym ../../lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
sed -i 's/readlink/readlink -f/' "${ED}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool
dosym ../lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
cd - >/dev/null
fi
......@@ -329,11 +332,11 @@ src_install() {
# create the environment
local envd="${T}/90vmware"
cat > "${envd}" <<-EOF
PATH='${VM_INSTALL_DIR}/bin'
PATH='${VM_INSTALL_DIR}/bin:${VM_INSTALL_DIR}/sbin'
ROOTPATH='${VM_INSTALL_DIR}/bin'
CONFIG_PROTECT_MASK='/etc/vmware-installer'
VMWARE_USE_SHIPPED_LIBS=1
EOF
echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}"
doenvd "${envd}"
......@@ -537,7 +540,7 @@ pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
readme.gentoo_print_elog
elog "${DOC_CONTENTS}"
}
pkg_postrm() {
......
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
......@@ -154,8 +154,7 @@ src_prepare() {
'env-update && source /etc/profile'\n
Before you can use ${PN}, you must configure a default network setup.
You can do this by running 'emerge --config ${PN}'.\n
To be able to run ${PN} your user must be in the vmware group.\n
"
To be able to run ${PN} your user must be in the 'vmware' group."
}
src_install() {
......@@ -172,6 +171,13 @@ src_install() {
dobin */bin/*
dosbin */sbin/*
rm "${ED}${VM_INSTALL_DIR}"/bin/configure-initscript.sh || die
mv "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher.bin
cat > "${ED}${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher <<-EOF
#!/usr/bin/env bash
export LD_LIBRARY_PATH="/opt/vmware/lib/vmware/lib/libssl.so.1.0.2:/opt/vmware/lib/vmware/lib/libcrypto.so.1.0.2"
"${VM_INSTALL_DIR}"/sbin/vmware-authdlauncher.bin "\$@"
EOF