# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Built: Thomas Preissler # $Header:$ # This ebuild was generated by Ebuilder v0.4. S="${WORKDIR}/${P}" DESCRIPTION="dbackup is a disk-based client-server backup system for Linux or other UNIX systems" SRC_URI="http://www.dparrish.com/dbackup/${P}.tar.gz" HOMEPAGE="http://www.dparrish.com/dbackup.html" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="" RDEPEND="dev-lang/perl app-arch/tar" src_compile() { einfo "Nothing to compile for ${P}." } src_install () { dodir /usr/sbin exeinto /usr/sbin doexe dbackup_archive dbackup_client dbackup_report dbackup_restore dbackup_server dbackup_verify insinto /etc newins dbackup_config dbackup_config.sample insinto /etc/xinetd.d newins ${FILESDIR}/dbackup.xinetd dbackup # Install documentation. dodoc Changes INSTALL LICENSE } pkg_postinst () { if [ -z "$(getent services 38771)" ] ; then einfo "Adding \"dbackup 38771/tcp\" to /etc/services..." echo "dbackup 38771/tcp" >> /etc/services fi if [ -e /etc/inetd.conf -a -z "$(egrep ^38771 /etc/inetd.conf)" ] ; then einfo "Adding \"38771 stream tcp nowait root /usr/sbin/dbackup_server\" to /etc/inetd.conf..." echo "38771 stream tcp nowait root /usr/sbin/dbackup_server" >> /etc/inetd.conf fi ewarn "Please modify in /usr/sbin/dbackup_client \$backup_servers for addressing your backupserver!" }