diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2007-09-20 08:49:25 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2007-09-20 08:49:25 +0000 |
commit | 029df197e69bf0a44dc4978268d087c9933076a1 (patch) | |
tree | 9d68cf870e8a0ff145ed7a2f89669872a8b6a7fe /sys-cluster | |
parent | Version bump. (diff) | |
download | gentoo-2-029df197e69bf0a44dc4978268d087c9933076a1.tar.gz gentoo-2-029df197e69bf0a44dc4978268d087c9933076a1.tar.bz2 gentoo-2-029df197e69bf0a44dc4978268d087c9933076a1.zip |
Version bump.
(Portage version: 2.1.2.2)
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/csync2/ChangeLog | 7 | ||||
-rw-r--r-- | sys-cluster/csync2/csync2-1.34.ebuild | 91 | ||||
-rw-r--r-- | sys-cluster/csync2/files/digest-csync2-1.34 | 3 |
3 files changed, 100 insertions, 1 deletions
diff --git a/sys-cluster/csync2/ChangeLog b/sys-cluster/csync2/ChangeLog index f59d7d1941ca..fc7bf6710c2d 100644 --- a/sys-cluster/csync2/ChangeLog +++ b/sys-cluster/csync2/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-cluster/csync2 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/ChangeLog,v 1.21 2007/04/26 06:29:43 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/ChangeLog,v 1.22 2007/09/20 08:49:25 xmerlin Exp $ + +*csync2-1.34 (20 Sep 2007) + + 20 Sep 2007; Christian Zoffoli <xmerlin@gentoo.org> +csync2-1.34.ebuild: + Version Bump 26 Apr 2007; Donnie Berkholz <dberkholz@gentoo.org>; metadata.xml: Update for cluster herd split to hp-cluster and ha-cluster. diff --git a/sys-cluster/csync2/csync2-1.34.ebuild b/sys-cluster/csync2/csync2-1.34.ebuild new file mode 100644 index 000000000000..a1c11c96a5b6 --- /dev/null +++ b/sys-cluster/csync2/csync2-1.34.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/csync2/csync2-1.34.ebuild,v 1.1 2007/09/20 08:49:25 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.34 b/sys-cluster/csync2/files/digest-csync2-1.34 new file mode 100644 index 000000000000..631400233043 --- /dev/null +++ b/sys-cluster/csync2/files/digest-csync2-1.34 @@ -0,0 +1,3 @@ +MD5 efc8a3548996b79cef2ad76af5e93cd8 csync2-1.34.tar.gz 222765 +RMD160 d79ddf0e608934d40f0095dde8aa5785c6094d84 csync2-1.34.tar.gz 222765 +SHA256 32b250dd4a0353f71015c5c3961174b975dd5e799e4a084e8f6d00792bd8c833 csync2-1.34.tar.gz 222765 |