# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/dmraid-1.0.0_rc14.ebuild,v 1.3 2008/02/25 23:39:55 wolf31o2 Exp $ EAPI="1" RESTRICT="mirror test" inherit eutils rpm MY_PV=${PV/_p/-} MY_P=${PN}-${MY_PV} DESCRIPTION="Simply Accounting Connection Manager for Linux (Canada)" HOMEPAGE="http://http://www.simplyaccounting.com/install/default.asp" SRC_URI="http://simplydownload.accpac.com/downloads/simplyaccounting/install/${MY_P}.i386.rpm" LICENSE="SAGE_SA_License_Ref" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="net-fs/samba =dev-db/myodbc-3.51* >=dev-lang/mono-2.0" S="${WORKDIR}" pkg_setup() { enewgroup simplyconnmgr enewuser simplyconnmgr -1 -1 -1 "simplyconnmgr" } src_unpack() { rpm_src_unpack ${A} cd "${S}" } src_install() { dodir /usr/local || die cp -dpR "${S}/usr/local/bin" "${D}/usr/local" || die "cp failed on SimplyConnMgr binaries" cp -dpR "${S}/usr/local/etc" "${D}/usr/local" || die "cp failed on SimplyConnMgr config files" dodir /etc || die dosym "../usr/local/etc/Sage Software/Simply Accounting/ConnectionManager" /etc/simplyconnmgr || die newinitd "${FILESDIR}/${PN}.initd" "${PN}" || die newenvd "${FILESDIR}/${PN}.envd" "99${PN}" || die elog "========================================================" elog "Simply Accounting Connection Manager for Linux" elog "Copyright (c) 2008 Sage Software Canada, Ltd." elog "All rights reserved." elog "" elog "This package is subject to the Sage License Agreement" elog "enclosed in the Simply Accounting 2008 software package." elog "" elog "The Connection Manager for Linux is available" elog "free-of-charge to all customers running Simply Accounting" elog "2009." elog "========================================================" elog "" elog "For more information please ta a look at the README file, available at:" elog "http://simplydownload.accpac.com/downloads/simplyaccounting/install/LinuxConnectionManager_Readme.txt" }