diff options
author | Zac Medico <zmedico@gentoo.org> | 2023-10-19 17:49:13 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2023-10-19 17:49:23 -0700 |
commit | 8e796be5df2187467fe4e1bff71f6f085adf8f9b (patch) | |
tree | 8bbca37d90d4b5af60fd73aa81e733486180c3a0 /dev-db/etcd | |
parent | sys-kernel/gentoo-sources: add 6.5.8,gcc 14 rn func and tar override patch (diff) | |
download | gentoo-8e796be5df2187467fe4e1bff71f6f085adf8f9b.tar.gz gentoo-8e796be5df2187467fe4e1bff71f6f085adf8f9b.tar.bz2 gentoo-8e796be5df2187467fe4e1bff71f6f085adf8f9b.zip |
dev-db/etcd: drop vulnerable 3.4.16-r1
Bug: https://bugs.gentoo.org/906656
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-db/etcd')
-rw-r--r-- | dev-db/etcd/Manifest | 2 | ||||
-rw-r--r-- | dev-db/etcd/etcd-3.4.16-r1.ebuild | 79 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.confd | 7 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.initd | 36 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.service | 17 |
5 files changed, 0 insertions, 141 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest index fa35b2130c23..ef54e978af04 100644 --- a/dev-db/etcd/Manifest +++ b/dev-db/etcd/Manifest @@ -1,4 +1,2 @@ -DIST etcd-3.4.16-deps.tar.xz 36600528 BLAKE2B 3c8cbaef04b673962858cde9846a6a118eec785c0fc76b6e600b1686fd6e684f4b73af4aedb5886dfca51434e5738fb9bd0a39cdb81eda922e374c7668f0c0d0 SHA512 9119e09fc50bb916c3e436b9a4eea4b041184384865955f9b1a0f12e1334d9a143d49cc241ee51229e04fdfaedbbce24a66159107f52519b88a1e95cd64222df -DIST etcd-3.4.16.tar.gz 8853228 BLAKE2B 576d3f038f6e9e3eadaa9ba3935f8372271e9fd2cfb8ab193ce16ee57a55419daad4d8496f6ad27dcb833566e6eb077052422e1c86053d176a86b4305c8cc525 SHA512 3f413debe8bd723a00a3e39db05f6dbf414b7dc02f40f07d3037445c63b31c7bd8adaf77152ae01aa6aae3966f65393c5c8e352bbc2b86d01e5e2dd979c1c2e1 DIST etcd-3.4.26-deps.tar.xz 39352316 BLAKE2B 8b1a30d645b1ea756ac944d2d3f7e0c5b9491bab54d4d74c6525c519e5297a1e8e2a97f70a50a5681cf8941d2e4978d5c3717fccb552042bcd42e7c4bd2b29a8 SHA512 eb3af2910030a165699158a3dfe7e1267f29c0720865026da2a95941c7e1e19db793e177e9ca5a9f3b134c1a9a83b4a0613a32a30282b68fe3aef75b8dacae59 DIST etcd-3.4.26.tar.gz 6043999 BLAKE2B 03f3bd0388e59dea9300b9a811b426ce03f1001750259dcd8386566efaa64783746f0353f83c1d01960004a77cea08a194aba394d91808aad15b5d4bb8f151cf SHA512 b2048070adb1df6e98c06e0e951f7940815dab238fe4ba49c36681a638f39eb7e40fed691baf70410d01467965094d70f008d0046b1b550b2ac1ed19ac89ca47 diff --git a/dev-db/etcd/etcd-3.4.16-r1.ebuild b/dev-db/etcd/etcd-3.4.16-r1.ebuild deleted file mode 100644 index 17e8c25e01fe..000000000000 --- a/dev-db/etcd/etcd-3.4.16-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit go-module systemd tmpfiles -GIT_COMMIT=cf54fab42 - -DESCRIPTION="Highly-available key value store for shared configuration and service discovery" -HOMEPAGE="https://github.com/etcd-io/etcd" -SRC_URI="https://github.com/etcd-io/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" - -LICENSE="Apache-2.0 BSD BSD-2 MIT" -SLOT="0" -KEYWORDS="amd64 ~riscv" -IUSE="doc +server" - -COMMON_DEPEND="server? ( - acct-group/etcd - acct-user/etcd - )" -DEPEND="${COMMON_DEPEND}" -RDEPEND="${COMMON_DEPEND}" - -# Tests fail with this error: -# fatal error: checkptr: unsafe pointer conversion -RESTRICT="test" - -src_prepare() { - export GO_BUILD_FLAGS="-v -x" - default - sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|"\ - -i "${S}"/build || die - sed -e 's:\(for p in \)shellcheck :\1 :' \ - -e 's:^ gofmt \\$:\\:' \ - -e 's:^ govet \\$:\\:' \ - -e 's:^ govet_shadow \\$:\\:' \ - -i "${S}"/test || die - - sed -e "s|GO_BUILD_FLAGS=\"[^\"]*\"|GO_BUILD_FLAGS=\"${GO_BUILD_FLAGS}\"|" \ - -e "s|go test |go test ${GO_BUILD_FLAGS} |" \ - -i ./test || die -} - -src_compile() { - ./build || die -} - -src_test() { - ./test || die -} - -src_install() { - dobin bin/etcdctl - use doc && dodoc -r Documentation - if use server; then - insinto /etc/${PN} - sed -e 's|^data-dir:|\0 /var/lib/etcd|' -i etcd.conf.yml.sample || die - newins etcd.conf.yml.sample etcd.conf.yml - dobin bin/etcd - dodoc README.md - systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" - newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN} - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotated" "${PN}" - keepdir /var/lib/${PN} /var/log/${PN} - fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN} - fperms 0700 /var/lib/${PN} - fperms 0755 /var/log/${PN} - fi -} - -pkg_postinst() { - if use server; then - tmpfiles_process ${PN}.conf - fi -} diff --git a/dev-db/etcd/files/etcd.confd b/dev-db/etcd/files/etcd.confd deleted file mode 100644 index 4592dac08d56..000000000000 --- a/dev-db/etcd/files/etcd.confd +++ /dev/null @@ -1,7 +0,0 @@ -# Name of this node in the etcd cluster. -ETCD_NAME=etcd - -# Path to the data directory. -ETCD_DATA_DIR=/var/lib/etcd - -ETCD_OPTS="" diff --git a/dev-db/etcd/files/etcd.initd b/dev-db/etcd/files/etcd.initd deleted file mode 100644 index a2c67d0723da..000000000000 --- a/dev-db/etcd/files/etcd.initd +++ /dev/null @@ -1,36 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -pidfile=/run/${RC_SVCNAME}.pid -LOGPATH=/var/log/${RC_SVCNAME} -DATADIR=/var/lib/${RC_SVCNAME} -command_user=${RC_SVCNAME} -command=/usr/bin/etcd -command_args=" - -name=${ETCD_NAME} - -data-dir=${ETCD_DATA_DIR} - ${ETCD_OPTS}" -command_background=true -start_stop_daemon_args=" - --chdir ${ETCD_DATA_DIR} - -1 ${LOGPATH}/${RC_SVCNAME}.log - -2 ${LOGPATH}/${RC_SVCNAME}.err" - -depend() { - need net - need localmount - after bootmisc -} - -start() { - if [ ! -d "${LOGPATH}" ] ; then - mkdir -p "${LOGPATH}" - chown "${command_user}:${command_user}" "${LOGPATH}" - fi - if [ ! -d "${ETCD_DATA_DIR}" ] ; then - mkdir -p "${ETCD_DATA_DIR}" - chown "${command_user}:${command_user}" "${ETCD_DATA_DIR}" - fi - default_start -} diff --git a/dev-db/etcd/files/etcd.service b/dev-db/etcd/files/etcd.service deleted file mode 100644 index 6823777066d6..000000000000 --- a/dev-db/etcd/files/etcd.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Etcd Server -After=network.target - -[Service] -Type=notify -PermissionsStartOnly=true -Environment=ETCD_DATA_DIR=/var/lib/etcd -Environment=ETCD_NAME=%m -WorkingDirectory=/var/lib/etcd/ -User=etcd -ExecStart=/usr/bin/etcd -Restart=on-failure -LimitNOFILE=65536 - -[Install] -WantedBy=default.target |