# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ sja="sja.tar" S=${WORKDIR} DESCRIPTION="Application to automate and schedule synchronization of data between two MySQL hosts." HOMEPAGE="http://www.webyog.com/sqlyog/downsja.html" SRC_URI=${sja} LICENSE="AS-IS" SLOT="0" KEYWORDS="~x86" USE="" IUSE="" RDEPEND="dev-db/mysql" pkg_nofetch() { einfo "Please download ${sja} from:" einfo ${HOMEPAGE} einfo "and place in your distfiles directory" } src_unpack() { tar -zxvf /usr/portage/distfiles/${A} || \ die "Could not unpack tar file" } src_compile() { einfo "Binary package. Nothing to compile" } src_install( ) { dir="/opt/sja" dodir ${dir}/bin || die "dodir failed" exeinto ${dir}/bin doexe sja dodir /etc/sja || die "dodir failed" insinto /etc/sja doins sja-* insinto /etc/env.d doins ${FILESDIR}/${PV}/90sja } pkg_postinst() { einfo "" einfo "Configuration files are located in /etc/sja" einfo "sja may be ran from the command line or" einfo "executed from a cron job" einfo "" einfo "See /etc/sja/sja-schema.txt and http://www.webyog.com" einfo "for more information." einfo "" }