summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2006-08-25 13:07:29 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2006-08-25 13:07:29 +0000
commit1c54a45dc8389670de2cc8ec189983545a0c4b99 (patch)
tree217a0b9f2a5a99efc3fcbe32ee64008bbb8f7120 /sys-cluster/csync2
parentManifest fix, bug #145038 (diff)
downloadgentoo-2-1c54a45dc8389670de2cc8ec189983545a0c4b99.tar.gz
gentoo-2-1c54a45dc8389670de2cc8ec189983545a0c4b99.tar.bz2
gentoo-2-1c54a45dc8389670de2cc8ec189983545a0c4b99.zip
Version bump.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-cluster/csync2')
-rw-r--r--sys-cluster/csync2/ChangeLog7
-rw-r--r--sys-cluster/csync2/csync2-1.33.ebuild91
-rw-r--r--sys-cluster/csync2/files/digest-csync2-1.333
3 files changed, 100 insertions, 1 deletions
diff --git a/sys-cluster/csync2/ChangeLog b/sys-cluster/csync2/ChangeLog
index 7ee2c8beb778..9ed319799116 100644
--- a/sys-cluster/csync2/ChangeLog
+++ b/sys-cluster/csync2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-cluster/csync2
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/ChangeLog,v 1.17 2006/06/12 19:05:12 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/ChangeLog,v 1.18 2006/08/25 13:07:29 xmerlin Exp $
+
+*csync2-1.33 (25 Aug 2006)
+
+ 25 Aug 2006; Christian Zoffoli <xmerlin@gentoo.org> +csync2-1.33.ebuild:
+ Version bump.
12 Jun 2006; Christian Zoffoli <xmerlin@gentoo.org> csync2-1.32.ebuild:
Fixed bug # 131458, thanks to Aaron Randall <aaron.randall@visionoss.com and
diff --git a/sys-cluster/csync2/csync2-1.33.ebuild b/sys-cluster/csync2/csync2-1.33.ebuild
new file mode 100644
index 000000000000..1bcd6e55e072
--- /dev/null
+++ b/sys-cluster/csync2/csync2-1.33.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/csync2-1.33.ebuild,v 1.1 2006/08/25 13:07:29 xmerlin Exp $
+
+DESCRIPTION="Cluster synchronization tool."
+SRC_URI="http://oss.linbit.com/csync2/${P}.tar.gz"
+HOMEPAGE="http://oss.linbit.com/csync2/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND=">=net-libs/librsync-0.9.5
+ =dev-db/sqlite-2.8*
+ >=net-libs/gnutls-1.0.0
+ "
+
+RDEPEND="${DEPEND}"
+
+SLOT="0"
+
+src_compile() {
+ econf \
+ --localstatedir=/var \
+ --sysconfdir=/etc/csync2 \
+ || die
+
+ emake || die
+}
+
+src_install() {
+
+ make DESTDIR=${D} \
+ localstatedir=/var \
+ sysconfdir=/etc/csync2 \
+ install || die "install problem"
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/${PN}.xinetd ${PN} || die
+
+ dodir /var/lib/csync2/ || die
+ keepdir /var/lib/csync2/
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO csync2_locheck.sh
+}
+
+pkg_postinst() {
+ 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"
+ echo
+ einfo "To add ${PN} to your services file just run"
+ einfo "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
+}
+
+pkg_config() {
+ einfo "Updating /etc/services"
+ { grep -v ^${PN} /etc/services;
+ echo "csync2 30865/tcp"
+ } > /etc/services.new
+ mv -f /etc/services.new /etc/services
+
+ if [ ! -f /etc/${PN}/csync2_ssl_key.pem ]; then
+ einfo "Creating default certificate in /etc/${PN}"
+
+ openssl genrsa -out /etc/${PN}/csync2_ssl_key.pem 1024 &> /dev/null
+
+ yes '' | \
+ openssl req -new \
+ -key /etc/${PN}/csync2_ssl_key.pem \
+ -out /etc/${PN}/csync2_ssl_cert.csr \
+ &> /dev/null
+
+ openssl x509 -req -days 600 \
+ -in /etc/${PN}/csync2_ssl_cert.csr \
+ -signkey /etc/${PN}/csync2_ssl_key.pem \
+ -out /etc/${PN}/csync2_ssl_cert.pem \
+ &> /dev/null
+
+ rm /etc/${PN}/csync2_ssl_cert.csr
+ chmod 400 /etc/${PN}/csync2_ssl_key.pem /etc/${PN}/csync2_ssl_cert.pem
+ fi
+}
diff --git a/sys-cluster/csync2/files/digest-csync2-1.33 b/sys-cluster/csync2/files/digest-csync2-1.33
new file mode 100644
index 000000000000..9dbbdbce4b44
--- /dev/null
+++ b/sys-cluster/csync2/files/digest-csync2-1.33
@@ -0,0 +1,3 @@
+MD5 e16e3c0f4285439cef09a6b63319a0b0 csync2-1.33.tar.gz 218065
+RMD160 3c06cff1adb6df03108670eccce4889e3913cfba csync2-1.33.tar.gz 218065
+SHA256 2214adb04358b5d351cac7e13055e1c90f7897b7c0600b922de02ca6b0820651 csync2-1.33.tar.gz 218065