diff options
author | Lisa M. Seelye <lisa@gentoo.org> | 2006-05-10 14:27:30 +0000 |
---|---|---|
committer | Lisa M. Seelye <lisa@gentoo.org> | 2006-05-10 14:27:30 +0000 |
commit | 5775a5b4e325e5eedbe5e251dc2607e90a4d6e94 (patch) | |
tree | 522fb4133746ad21cc46f56c32f538b7aed6e33a /app-backup/afbackup-client | |
parent | New package. Submitted by Kevin Mescher, kmescher@vt.edu in bug 33865 (diff) | |
download | gentoo-2-5775a5b4e325e5eedbe5e251dc2607e90a4d6e94.tar.gz gentoo-2-5775a5b4e325e5eedbe5e251dc2607e90a4d6e94.tar.bz2 gentoo-2-5775a5b4e325e5eedbe5e251dc2607e90a4d6e94.zip |
New package. Submitted by Kevin Mescher, kmescher@vt.edu in bug 33865
(Portage version: 2.1_pre10-r3)
Diffstat (limited to 'app-backup/afbackup-client')
-rw-r--r-- | app-backup/afbackup-client/ChangeLog | 10 | ||||
-rw-r--r-- | app-backup/afbackup-client/Manifest | 16 | ||||
-rw-r--r-- | app-backup/afbackup-client/afbackup-client-3.3.8.1.ebuild | 114 | ||||
-rw-r--r-- | app-backup/afbackup-client/files/digest-afbackup-client-3.3.8.1 | 3 | ||||
-rw-r--r-- | app-backup/afbackup-client/metadata.xml | 10 |
5 files changed, 153 insertions, 0 deletions
diff --git a/app-backup/afbackup-client/ChangeLog b/app-backup/afbackup-client/ChangeLog new file mode 100644 index 000000000000..7a6330b5e389 --- /dev/null +++ b/app-backup/afbackup-client/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-backup/afbackup-client +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/afbackup-client/ChangeLog,v 1.1 2006/05/10 14:27:30 lisa Exp $ + +*afbackup-client-3.3.8.1 (10 May 2006) + + 10 May 2006; Lisa Seelye <lisa@gentoo.org> +metadata.xml, + +afbackup-client-3.3.8.1.ebuild: + New Package submitted by Kevin Mescher kmescher@vt.edu. This closes bug 33865 + diff --git a/app-backup/afbackup-client/Manifest b/app-backup/afbackup-client/Manifest new file mode 100644 index 000000000000..686a2949ba06 --- /dev/null +++ b/app-backup/afbackup-client/Manifest @@ -0,0 +1,16 @@ +DIST afbackup-3.3.8.1.tar.gz 970885 RMD160 ac3b17f97ddd5b0c020eddf48c0aff8b98e155a6 SHA256 810f5dab07d07767d7286b907e8611a585a002ea7c8285298a548a7cc3a14f1f size 970885 +EBUILD afbackup-client-3.3.8.1.ebuild 3054 RMD160 8ebe238ac20c50430f29af1e236bf5fbc6ba3d90 SHA1 398091cc531322dd325dec7f514ed9e2e0e2362d SHA256 95112616ebeec351f6d6ed825992fd90df174cd0e1ba58cf4e3a25ff98726f4c size 3054 +MD5 22d77c4bf2c778ddc3796ccd6b9efd91 afbackup-client-3.3.8.1.ebuild 3054 +RMD160 8ebe238ac20c50430f29af1e236bf5fbc6ba3d90 afbackup-client-3.3.8.1.ebuild 3054 +SHA256 95112616ebeec351f6d6ed825992fd90df174cd0e1ba58cf4e3a25ff98726f4c afbackup-client-3.3.8.1.ebuild 3054 +MISC ChangeLog 343 RMD160 0be0326ef5edbeb32e96f78a698209197f720c50 SHA1 dde86f5480895926ca10b40288da206edf62429a SHA256 73d49f970fe90a163605365e8b7cd4a6192143763c588fc91caa471369f6a9e3 size 343 +MD5 97d737b7852ef4af4a764b446ffe0fdf ChangeLog 343 +RMD160 0be0326ef5edbeb32e96f78a698209197f720c50 ChangeLog 343 +SHA256 73d49f970fe90a163605365e8b7cd4a6192143763c588fc91caa471369f6a9e3 ChangeLog 343 +MISC metadata.xml 376 RMD160 97b419d4e4eb8b07c255cd19a5c63f74a12da774 SHA1 a04827dc96866f9a5702d4fbf201a1eac0c41487 SHA256 168b224a6a135d0f5ae10a3aefc6033222bdc4b5f6b027b3da570ac34fc685a8 size 376 +MD5 a4c51ce2411e56aec0afc473bc5ce753 metadata.xml 376 +RMD160 97b419d4e4eb8b07c255cd19a5c63f74a12da774 metadata.xml 376 +SHA256 168b224a6a135d0f5ae10a3aefc6033222bdc4b5f6b027b3da570ac34fc685a8 metadata.xml 376 +MD5 ac8231c2d73cdde4287edd12633cea2b files/digest-afbackup-client-3.3.8.1 250 +RMD160 c35a22c4d93dc0795f21a89bc77e7c3ffb1aefea files/digest-afbackup-client-3.3.8.1 250 +SHA256 e09b1121d86affab1069996031334308976e2b8ebb0557a6d72396647125bcf5 files/digest-afbackup-client-3.3.8.1 250 diff --git a/app-backup/afbackup-client/afbackup-client-3.3.8.1.ebuild b/app-backup/afbackup-client/afbackup-client-3.3.8.1.ebuild new file mode 100644 index 000000000000..67dfa606b2f2 --- /dev/null +++ b/app-backup/afbackup-client/afbackup-client-3.3.8.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/afbackup-client/afbackup-client-3.3.8.1.ebuild,v 1.1 2006/05/10 14:27:30 lisa Exp $ + +inherit eutils + +# is this the server ebuild, otherwise client +if [ "${PN/afbackup-/}" = "server" ];then +MY_PN=${PN/-server/} +MY_MODE=server +else +MY_PN=${PN/-client/} +MY_MODE=client +fi +MY_P=${MY_PN}-${PV} + +DESCRIPTION="AFBackup is a client/server backup tool" +HOMEPAGE="http://afbackup.sourceforge.net/" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="zlib" + +DEPEND="zlib? ( sys-libs/zlib )" +RDEPEND="zlib? ( sys-libs/zlib )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i -e 's:subdir="/backup":subdir="/afbackup":' configure + + # Setting up authentication key + einfo "Searching for your afbackup.key..." + if [ -f /etc/afbackup/afbackup.key ]; then + AFBACKUPKEY=`echo /etc/afbackup/afbackup.key` + einfo "...found." + fi + + # if none, generate a random key + if [ "x${AFBACKUPKEY}" = "x" ]; then + ewarn "AFBACKUPKEY environment variable not set, generating new key..." + AFBACKUPKEY=`head -c4 /dev/urandom | od -N4 -tu4 | sed -ne '1s/.* //p'` + fi + + einfo "Using ${AFBACKUPKEY} as your backup key." + sed -i -e "s:k=\" \":k=\"${AFBACKUPKEY}\":" ask_for_key + echo ${AFBACKUPKEY} > ${S}/afbackup.key +} + +src_compile() { + local myconf="" + use zlib && myconf="${myconf} --with-zlib" + ./configure \ + --host=${CHOST} \ + --prefix=/opt \ + --with-serverconfdir=/etc/afbackup \ + --with-serverconf=server.conf \ + --with-servermandir=/usr/share/man \ + --with-clientconfdir=/etc/afbackup \ + --with-clientconf=client.conf \ + --with-clientmandir=/usr/share/man \ + --mandir=/usr/share/man \ + ${myconf} || die "./configure failed" + + einfo "Building: afbackup-${MY_MODE}" + emake ${MY_MODE} || die "emake failed" +} + +src_install() { + local myconf="" + use zlib && myconf="${myconf} --with-zlib" + einfo "Reconfiguring ${MY_MODE} installation path..." + ./configure \ + --host=${CHOST} \ + --prefix=${D}/opt \ + --with-serverconfdir=${D}/etc/afbackup \ + --with-serverconf=server.conf \ + --with-servermandir=${D}/usr/share/man \ + --with-clientconfdir=${D}/etc/afbackup \ + --with-clientconf=client.conf \ + --with-clientmandir=${D}/usr/share/man \ + --mandir=${D}/usr/share/man \ + ${myconf} || die "./configure failed" + + einfo "Installing: afbackup-${MY_MODE}" + make DESTDIR=${D} install.${MY_MODE} || die + + # fix path in config files + einfo "Fixing paths in ${MY_MODE}.conf" + if [ "x${MY_MODE}" = "xserver" ]; then + sed -i -e "s:${D}::g" ${D}/etc/afbackup/server.conf + fi + if [ "x${MY_MODE}" = "xclient" ]; then + sed -i -e "s:${D}::g" ${D}/etc/afbackup/client.conf + fi + + # if new, install key and set permissions + if [ ! -f /etc/afbackup/afbackup.key ]; then + einfo "Installing backup key..." + insinto /etc/afbackup + doins afbackup.key + einfo "Restricting permissions on keyfile..." + fperms 600 /etc/afbackup/afbackup.key + fi +} + +pkg_postinst() { + ewarn "The key of afbackup server and client have to match." + einfo "Be sure to use the same environment variable or keyfile." +} diff --git a/app-backup/afbackup-client/files/digest-afbackup-client-3.3.8.1 b/app-backup/afbackup-client/files/digest-afbackup-client-3.3.8.1 new file mode 100644 index 000000000000..d12a9b5c1c43 --- /dev/null +++ b/app-backup/afbackup-client/files/digest-afbackup-client-3.3.8.1 @@ -0,0 +1,3 @@ +MD5 ed5c0c8773c486c90e8109e307a4a515 afbackup-3.3.8.1.tar.gz 970885 +RMD160 ac3b17f97ddd5b0c020eddf48c0aff8b98e155a6 afbackup-3.3.8.1.tar.gz 970885 +SHA256 810f5dab07d07767d7286b907e8611a585a002ea7c8285298a548a7cc3a14f1f afbackup-3.3.8.1.tar.gz 970885 diff --git a/app-backup/afbackup-client/metadata.xml b/app-backup/afbackup-client/metadata.xml new file mode 100644 index 000000000000..8371af6c5b46 --- /dev/null +++ b/app-backup/afbackup-client/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>app-backup</herd> +<maintainer> + <email>app-backup@gentoo.org</email> +<!-- <description>Description of the maintainership</description> --> +</maintainer> +<!-- <longdescription>Long description of the package</longdescription> --> +</pkgmetadata> |