summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa M. Seelye <lisa@gentoo.org>2006-05-10 14:26:48 +0000
committerLisa M. Seelye <lisa@gentoo.org>2006-05-10 14:26:48 +0000
commit101a73f93ef2ac2eae91bdfcc78b61ea20ab1d21 (patch)
treee8bc21ec0335e989d7c5ddca4af666d5c5731bbd /app-backup/afbackup-server
parentInitial import of ebuild. Ebuild imported from gentoo.de (diff)
downloadgentoo-2-101a73f93ef2ac2eae91bdfcc78b61ea20ab1d21.tar.gz
gentoo-2-101a73f93ef2ac2eae91bdfcc78b61ea20ab1d21.tar.bz2
gentoo-2-101a73f93ef2ac2eae91bdfcc78b61ea20ab1d21.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-server')
-rw-r--r--app-backup/afbackup-server/ChangeLog10
-rw-r--r--app-backup/afbackup-server/Manifest16
-rw-r--r--app-backup/afbackup-server/afbackup-server-3.3.8.1.ebuild114
-rw-r--r--app-backup/afbackup-server/files/digest-afbackup-server-3.3.8.13
-rw-r--r--app-backup/afbackup-server/metadata.xml10
5 files changed, 153 insertions, 0 deletions
diff --git a/app-backup/afbackup-server/ChangeLog b/app-backup/afbackup-server/ChangeLog
new file mode 100644
index 000000000000..5bda931f2fcd
--- /dev/null
+++ b/app-backup/afbackup-server/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-backup/afbackup-server
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/afbackup-server/ChangeLog,v 1.1 2006/05/10 14:26:48 lisa Exp $
+
+*afbackup-server-3.3.8.1 (10 May 2006)
+
+ 10 May 2006; Lisa Seelye <lisa@gentoo.org>
+ +afbackup-server-3.3.8.1.ebuild:
+ New Package submitted by Kevin Mescher kmescher@vt.edu. This closes bug 33865
+
diff --git a/app-backup/afbackup-server/Manifest b/app-backup/afbackup-server/Manifest
new file mode 100644
index 000000000000..80d089c3241b
--- /dev/null
+++ b/app-backup/afbackup-server/Manifest
@@ -0,0 +1,16 @@
+DIST afbackup-3.3.8.1.tar.gz 970885 RMD160 ac3b17f97ddd5b0c020eddf48c0aff8b98e155a6 SHA256 810f5dab07d07767d7286b907e8611a585a002ea7c8285298a548a7cc3a14f1f size 970885
+EBUILD afbackup-server-3.3.8.1.ebuild 3054 RMD160 8ebe238ac20c50430f29af1e236bf5fbc6ba3d90 SHA1 398091cc531322dd325dec7f514ed9e2e0e2362d SHA256 95112616ebeec351f6d6ed825992fd90df174cd0e1ba58cf4e3a25ff98726f4c size 3054
+MD5 22d77c4bf2c778ddc3796ccd6b9efd91 afbackup-server-3.3.8.1.ebuild 3054
+RMD160 8ebe238ac20c50430f29af1e236bf5fbc6ba3d90 afbackup-server-3.3.8.1.ebuild 3054
+SHA256 95112616ebeec351f6d6ed825992fd90df174cd0e1ba58cf4e3a25ff98726f4c afbackup-server-3.3.8.1.ebuild 3054
+MISC ChangeLog 328 RMD160 972b06fab501b6f2d40c4878b1de2001202544b0 SHA1 01b76d893549e88106261a0b46ae56da7096284c SHA256 8a8d131efc9e26389c4effb0da59df76f0f214d05e52fef98bf4d42213afabb2 size 328
+MD5 90b77093a3004799c033f6af917a9cb3 ChangeLog 328
+RMD160 972b06fab501b6f2d40c4878b1de2001202544b0 ChangeLog 328
+SHA256 8a8d131efc9e26389c4effb0da59df76f0f214d05e52fef98bf4d42213afabb2 ChangeLog 328
+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-server-3.3.8.1 250
+RMD160 c35a22c4d93dc0795f21a89bc77e7c3ffb1aefea files/digest-afbackup-server-3.3.8.1 250
+SHA256 e09b1121d86affab1069996031334308976e2b8ebb0557a6d72396647125bcf5 files/digest-afbackup-server-3.3.8.1 250
diff --git a/app-backup/afbackup-server/afbackup-server-3.3.8.1.ebuild b/app-backup/afbackup-server/afbackup-server-3.3.8.1.ebuild
new file mode 100644
index 000000000000..855d6491e464
--- /dev/null
+++ b/app-backup/afbackup-server/afbackup-server-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-server/afbackup-server-3.3.8.1.ebuild,v 1.1 2006/05/10 14:26:48 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-server/files/digest-afbackup-server-3.3.8.1 b/app-backup/afbackup-server/files/digest-afbackup-server-3.3.8.1
new file mode 100644
index 000000000000..d12a9b5c1c43
--- /dev/null
+++ b/app-backup/afbackup-server/files/digest-afbackup-server-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-server/metadata.xml b/app-backup/afbackup-server/metadata.xml
new file mode 100644
index 000000000000..8371af6c5b46
--- /dev/null
+++ b/app-backup/afbackup-server/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>