summaryrefslogtreecommitdiff
path: root/sys-cluster/csync2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-15 13:42:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-15 13:42:19 +0100
commitbd8ca999980e9c0c9ae40a11789c858bb58769e3 (patch)
tree355d68a84921e04a81231e74fc062f229f76a733 /sys-cluster/csync2
parentb3f2504c1d05b5999b74b2135860fc721e3adf68 (diff)
gentoo auto-resync : 15:07:2022 - 13:42:19
Diffstat (limited to 'sys-cluster/csync2')
-rw-r--r--sys-cluster/csync2/Manifest5
-rw-r--r--sys-cluster/csync2/csync2-2.0-r2.ebuild113
-rw-r--r--sys-cluster/csync2/files/csync2.initd25
-rw-r--r--sys-cluster/csync2/files/csync2.xinetd15
-rw-r--r--sys-cluster/csync2/metadata.xml8
5 files changed, 0 insertions, 166 deletions
diff --git a/sys-cluster/csync2/Manifest b/sys-cluster/csync2/Manifest
deleted file mode 100644
index df018e6ea18d..000000000000
--- a/sys-cluster/csync2/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-AUX csync2.initd 492 BLAKE2B 99058d692e34d5a9b59cb33726a06b8257ba8644f44ee299fbcb71364331ec213bc229fc89f8c2d3ecd92dc4c58c2ff8a57d28f5fe04daa42ea495abeb218438 SHA512 a189bdc921efb51734e66f8df808289850c6ce5c60c797c85abb7b3063a45630261a32edced1efd23fe367e8e91e4fe69c3d5e44a10d5b95112ae990e26fa916
-AUX csync2.xinetd 388 BLAKE2B ef926697fc0ebbfa15bc764372f88f279e02e6d6f05873d43c541fd057cd659b368486147f45c8d657eec0457d41c7b2af40e580b8ccbfd94f896379031cc08c SHA512 538bb8fc5b6b667a8afd708fbb35c9b1e98967cf0c1e5b139cdd15a19305000fd7fb7eab564131eb7cf3f562ba9189b08a06061aa31ef64e8e85ca13d6f3d583
-DIST csync2-2.0-github.tar.gz 108299 BLAKE2B ec06cf1284adfe63abd6c329deb4e53474d8f97998e4e6f7f6404321a6970f783d38e9feb46c02925c947834227516d40c928a457d2b43bd2b353ab3385fd150 SHA512 7555e2d958d6213e29cfa8b3b7415eea9a9868036865c519d724ae404006d913fba4aeeb61a916d3fc95669a6ca12160d4f52dc7d15bd59403e8a7de50ee8094
-EBUILD csync2-2.0-r2.ebuild 2814 BLAKE2B 8d7ec3b7ec6d2d760b0c3d65ab11f156a9f88b4238a5bbe26a60ef2b53b29865752ac1e6c97c8da1f3346ad136ce5c9acbba5ece61c230cbadb9d9a2c547c2e5 SHA512 2785f85d2eb19f06755e07360eef2a06ebda0acd7afec0e21211b689bff6a1bd24162b1959876576188f85f2eeacccf3ac509bc991ecef2fba2ab75786d4c093
-MISC metadata.xml 258 BLAKE2B b832ddd16b2a0a4c37b2384ee33e5270040e0221200f92a78c56dd23acf25a7aec5fbf4ccfca8b82eeb669629681684c19b23bf535bc8b05a4f0bd4fb3fcb53e SHA512 0b1852169d6b1f525065559dee560e10c3fd818f197536da258fd1e4486622ac962f5fdb82a514592d8f70c98f6ea1a3fc48bd1349b31bf186b729a0e53f9037
diff --git a/sys-cluster/csync2/csync2-2.0-r2.ebuild b/sys-cluster/csync2/csync2-2.0-r2.ebuild
deleted file mode 100644
index 6f71f731e737..000000000000
--- a/sys-cluster/csync2/csync2-2.0-r2.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools
-
-DESCRIPTION="Cluster synchronization tool"
-HOMEPAGE="https://github.com/LINBIT/csync2"
-SRC_URI="https://github.com/LINBIT/${PN}/archive/${P}.tar.gz -> ${P}-github.tar.gz"
-
-LICENSE="GPL-2"
-KEYWORDS="amd64 ~arm x86"
-
-IUSE="mysql postgres sqlite ssl xinetd"
-
-RDEPEND=">=net-libs/librsync-0.9.5
- mysql? ( dev-db/mysql-connector-c:0= )
- postgres? ( dev-db/postgresql:= )
- sqlite? ( >=dev-db/sqlite-3.0 )
- ssl? ( >=net-libs/gnutls-2.7.3 )
- xinetd? ( sys-apps/xinetd )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-REQUIRED_USE="|| ( mysql postgres sqlite )"
-SLOT="0"
-
-S="${WORKDIR}/${PN}-${P}"
-
-src_prepare() {
- default
- eautoreconf
-}
-
-src_configure() {
- econf \
- --localstatedir=/var \
- --sysconfdir=/etc/csync2 \
- $(use_enable mysql) \
- $(use_enable postgres) \
- $(use_enable sqlite sqlite3) \
- $(use_enable ssl gnutls)
-}
-
-src_install() {
- # Parallel install fails, bug #561382
- emake -j1 DESTDIR="${D}" install
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/${PN}.xinetd ${PN}
- fi
-
- keepdir /var/lib/csync2
-
- newinitd "${FILESDIR}"/${PN}.initd ${PN}
-}
-
-pkg_postinst() {
- if use xinetd; then
- echo
- einfo "After you setup your conf file, edit the xinetd"
- einfo "entry in /etc/xinetd.d/${PN} to enable, then"
- einfo "start xinetd: /etc/init.d/xinetd start"
- fi
- echo
- einfo "To add ${PN} to your services file"
- if use ssl; then
- einfo "and to generate the SSL certificates,"
- fi
- einfo "just run this command after you install:"
- echo
- einfo "emerge --config =${PF}"
- echo
- einfo "Now you can find csync2.cfg under /etc/${PN}"
- einfo "Please move you old config to the right location"
- echo
- einfo "To start csync2 as a standalone daemon, simply run:"
- einfo "/etc/init.d/csync2 start"
- echo
-}
-
-pkg_config() {
- einfo "Updating ${ROOT}/etc/services"
- { grep -v ^${PN} "${ROOT}"/etc/services;
- echo "csync2 30865/tcp"
- } > "${ROOT}"/etc/services.new
- mv -f "${ROOT}"/etc/services.new "${ROOT}"/etc/services
-
- if use ssl; then
- if [ ! -f "${ROOT}"/etc/${PN}/csync2_ssl_key.pem ]; then
- einfo "Creating default certificate in ${ROOT}/etc/${PN}"
-
- openssl genrsa -out "${ROOT}"/etc/${PN}/csync2_ssl_key.pem 1024 &> /dev/null
-
- yes '' | \
- openssl req -new \
- -key "${ROOT}"/etc/${PN}/csync2_ssl_key.pem \
- -out "${ROOT}"/etc/${PN}/csync2_ssl_cert.csr \
- &> "${ROOT}"/dev/null
-
- openssl x509 -req -days 600 \
- -in "${ROOT}"/etc/${PN}/csync2_ssl_cert.csr \
- -signkey "${ROOT}"/etc/${PN}/csync2_ssl_key.pem \
- -out "${ROOT}"/etc/${PN}/csync2_ssl_cert.pem \
- &> "${ROOT}"/dev/null
-
- rm "${ROOT}"/etc/${PN}/csync2_ssl_cert.csr
- chmod 400 "${ROOT}"/etc/${PN}/csync2_ssl_key.pem "${ROOT}"/etc/${PN}/csync2_ssl_cert.pem
- fi
- fi
-}
diff --git a/sys-cluster/csync2/files/csync2.initd b/sys-cluster/csync2/files/csync2.initd
deleted file mode 100644
index d718a4990921..000000000000
--- a/sys-cluster/csync2/files/csync2.initd
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE=/var/run/csync2.pid
-BINARY=/usr/sbin/csync2
-
-start() {
- ebegin "Starting csync2"
- start-stop-daemon --start --pidfile "${PIDFILE}" -m -x ${BINARY} -b -- -ii
- eend $?
-}
-
-stop() {
- ebegin "Stopping csync2"
- start-stop-daemon --stop --pidfile "${PIDFILE}"
- eend $?
-}
-
-restart() {
- ebegin "Restarting csync2"
- svc_stop
- svc_start
- eend $?
-}
diff --git a/sys-cluster/csync2/files/csync2.xinetd b/sys-cluster/csync2/files/csync2.xinetd
deleted file mode 100644
index d2a7adb8f5b9..000000000000
--- a/sys-cluster/csync2/files/csync2.xinetd
+++ /dev/null
@@ -1,15 +0,0 @@
-# default: on
-# description: csync2
-service csync2
-{
- flags = REUSE
- socket_type = stream
- wait = no
- user = root
- group = root
- server = /usr/sbin/csync2
- server_args = -i
- #log_on_failure += USERID
- disable = yes
- only_from = 192.168.199.3 192.168.199.4
-}
diff --git a/sys-cluster/csync2/metadata.xml b/sys-cluster/csync2/metadata.xml
deleted file mode 100644
index f5fb83321f9e..000000000000
--- a/sys-cluster/csync2/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>cluster@gentoo.org</email>
- <name>Gentoo Cluster Project</name>
- </maintainer>
-</pkgmetadata>