summaryrefslogtreecommitdiff
path: root/dists/gentoo/ledger-smb-1.1.1c.ebuild
blob: 488832a7729e8145569e3f93001aa17030f75ad6 (plain)
  1. # Copyright 1999-2006 The LedgerSMB Team
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. inherit depend.apache webapp eutils
  5. DESCRIPTION="LedgerSMB"
  6. HOMEPAGE="http://ledger-smb.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. #SRC_URI="http://eva.a.jjayr.com/lsmb-package/${P}.tar.gz"
  9. # don't use the gentoo mirrors yet, we're not there.
  10. RESTRICT='mirror'
  11. LICENSE="GPL-2"
  12. KEYWORDS="x86 ppc"
  13. # no use flag for now
  14. IUSE=""
  15. DEPEND=""
  16. RDEPEND="
  17. >=dev-db/postgresql-8
  18. >=dev-lang/perl-5.8
  19. dev-perl/DBI
  20. net-www/apache
  21. "
  22. S=${WORKDIR}/${PN}
  23. src_unpack() {
  24. unpack ${A}
  25. }
  26. src_install() {
  27. webapp_src_preinst
  28. webapp_server_configfile apache ${S}/dists/gentoo/ledger-smb-httpd-gentoo.conf
  29. cp -R ${S}/* ${D}/${MY_HTDOCSDIR}
  30. # LedgerSMB needs to write to the users directory
  31. webapp_serverowned -R ${MY_HTDOCSDIR}/users/
  32. webapp_serverowned -R ${MY_HTDOCSDIR}/spool/
  33. webapp_postinst_txt en ${S}/dists/gentoo/post-install.txt
  34. webapp_src_install
  35. }