ChangeLog

# ChangeLog for app-backup/backuppc
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/ChangeLog,v 1.6 2007/12/25 14:43:46 phreak Exp $

25 Dec 2007; Christian Heim metadata.xml:
Removing seemant from metadata.xml as per #202469.

10 Oct 2006; Seemant Kulleen -backuppc-2.1.2.ebuild,
backuppc-2.1.2-r1.ebuild:
removed cruft ebuild, and added a postinst to close bug #147063 by Hendrik
Friedel

*backuppc-2.1.2-r1 (28 Sep 2006)

28 Sep 2006; Seemant Kulleen
+files/BackupPC-2.1.2pl2.diff, +backuppc-2.1.2-r1.ebuild:
Patch to make this work with more recent versions of rsync. Closes bug
#148935 by David Relson

02 Oct 2005; Diego Pettenò backuppc-2.1.2.ebuild:
Don't use /bin/false as shell for backuppc user. Use -1 instead.

*backuppc-2.1.2 (30 Sep 2005)

30 Sep 2005; Seemant Kulleen
+files/postinstall-en.txt, +metadata.xml, +backuppc-2.1.2.ebuild:
New package which makes it easy to backup windows and *nix computers. I
useit at work, and klieber and tigger^ both want to try it. Furthermore,
it's in high demand on the forums and submitted in bug #80818 by chewi
(James LeCuirot). Metadata needed adjusting

Manifest

AUX BackupPC-2.1.2pl2.diff 7732 RMD160 58c263f7b7b0339a2fa4cdbd4b638f9f2e7b7284 SHA1 ab77f93ce473bf27cf39017736eba471d0203553 SHA256 f7f221d0403f2429adcf065ac383f98becc17be59cd3d93d329d92e227156462
AUX postinstall-en.txt 69 RMD160 5ba199181c43a2aa7b94ac077bfeb17fb01641da SHA1 0e1bd8308329a45621625e857373c94c8dcd1e72 SHA256 86a0aaa4567e89fdbdf67b2cd3bbfd6609313ad51bb55ea66f1bea21d2e8583f
DIST BackupPC-2.1.2.tar.gz 354599 RMD160 4708ea10f1471d266bb7c77f86cfecb919348d13 SHA1 9f99e201fbf6bbd016c19007e5fb4072d77312c7 SHA256 5ed4afb044611eb00ef6910d56c3cb9fab34dd29a67600e4a727c0beed27a383
DIST backuppc-2.1.2-gentoo-0.1.tar.bz2 17219 RMD160 ae172882e58707bbe0c9d659ca300e490bc375b2 SHA1 c701e8456ff67ca112d5128ded415a50a963016f SHA256 3f171d145cb0bae0f28b2f3861e039b4b43686b3fd25aa66d8a8262f54b50862
EBUILD backuppc-2.1.2-r1.ebuild 3305 RMD160 019f28b61200bd8e14d455ea34ca8696d3f37f1c SHA1 9688636b4142d9b05ffa868558a96cfa99de5911 SHA256 986a41f8bc88bdff744e98d710a95ced7522801c720c78104d5234f47125cbe4
MISC ChangeLog 1332 RMD160 0849044153918dce86264d57ee3fbe8f0edd9ab9 SHA1 6f8126782d625bf8559ce39b82eb278e91dd5fa0 SHA256 62354212b707b6e5bd2dfb8a3231404bbb68d3995e1c1f7c865a18ff8b836603
MISC metadata.xml 164 RMD160 e6573ad7f4c4d67f7e1edfd78439d76e66274f45 SHA1 70050deeb0c812c4e9e4cc6c23061672789b22dd SHA256 b0fea5e447be19e26ea0f92281dc383cda185437030a56b2733003aadda4e7b4

backuppc-2.1.2-r1.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/backuppc-2.1.2-r1.ebuild,v 1.2 2006/10/10 14:45:52 seemant Exp $

inherit eutils webapp

IUSE="samba doc"

MY_P=BackupPC-${PV}
PATCH_VER=0.1
S=${WORKDIR}/${MY_P}
DESCRIPTION="A high performance, enterprise grade backup system for backing up
Linux, Windows, Mac OS X desktops and laptops to a server's disk. No client
side software needed."
HOMEPAGE="http://backuppc.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
mirror://gentoo/${P}-gentoo-${PATCH_VER}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"

DEPEND="dev-lang/perl"
RDEPEND="dev-perl/File-RsyncP
app-arch/par2cmdline
app-arch/gzip
app-arch/bzip2
app-arch/unzip
dev-perl/Archive-Zip
virtual/mta
samba? ( net-fs/samba )"

PATCHDIR=${WORKDIR}/gentoo/prepatch

pkg_setup() {
enewgroup backuppc
enewuser backuppc -1 -1 /dev/null backuppc

webapp_pkg_setup
}

src_unpack() {
unpack ${A}; cd ${S}
epatch ${FILESDIR}/${MY_P}pl2.diff

EPATCH_SUFFIX="diff" epatch ${PATCHDIR}
}

src_compile() {
find ./ -name 'CVS' -type d | xargs rm -rf
}

src_test() {
einfo "Can not test"
}

src_install() {
local myconf
if use samba ; then
myconf="--bin-path smbclient=$(type -p smbclient)"
myconf="--bin-path nmblookup=$(type -p nmblookup)"
fi

webapp_src_preinst

dodir ${MY_HTDOCSDIR}/${PN}

./configure.pl \
--batch \
--bin-path perl=$(type -p perl) \
--bin-path ptar=$(type -p tar) \
--bin-path rsync=$(type -p rsync) \
--bin-path ping=$(type -p ping) \
--bin-path df=$(type -p df) \
--bin-path ssh=$(type -p ssh) \
--bin-path sendmail=$(type -p sendmail) \
--bin-path hostname=$(type -p hostname) \
--bin-path gzip=$(type -p gzip) \
--bin-path bzip2=$(type -p bzip2) \
--bin-path hostname=$(type -p hostname) \
--hostname XXXXXX \
--uid-ignore \
--install-dir=/usr \
--dest-dir ${D} \
--html-dir ${MY_HTDOCSDIR}/image \
--html-dir-url /backuppc/image \
--cgi-dir ${MY_CGIBINDIR}/ \
--data-dir /var/lib/backuppc \
${myconf} || die "failed the configure.pl script"

pod2man \
--section=8 \
--center="BackupPC manual" \
${S}/doc/BackupPC.pod backuppc.8 || die "failed to generate man page"

doman backuppc.8

diropts -m 750
keepdir /var/lib/backuppc/{trash,pool,pc,log,cpool}

diropts -m 755
dodir /etc/backuppc
mv ${D}/var/lib/backuppc/conf/* ${D}/etc/backuppc
rmdir ${D}/var/lib/backuppc/conf

fperms 644 /etc/backuppc/config.pl
fperms 644 /etc/backuppc/hosts

newinitd ${S}/init.d/gentoo-backuppc backuppc
newconfd ${S}/init.d/gentoo-backuppc.conf backuppc

webapp_postinst_txt \
en ${FILESDIR}/postinstall-en.txt || die "webapp_postinst_txt"

webapp_src_install || die "webapp_src_install"

cd ${D}/etc/backuppc
ebegin "Patching config.pl for sane defaults"
patch -p0 < ${WORKDIR}/gentoo/postpatch/config.pl.diff
eend $?

chown -R backuppc:backuppc "${D}/var/lib/backuppc"
}

pkg_postinst() {
webapp_pkg_postinst

ebegin "Adjusting ownership of /var/lib/backuppc"
chown -R backuppc:backuppc "${ROOT}/var/lib/backuppc"
eend $?

elog "Please read the documentation"
elog "It is important to know that the webserver and the backuppc user"
elog "*must* be one and the same"

}

files

metadata.xml




app-backup