Created
January 11, 2011 10:36
-
-
Save lkraav/774283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2008 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
use onlydeps || inherit webapp | |
DESCRIPTION="SQL based, powerful small business accounting system" | |
SRC_URI="http://www.sql-ledger.com/source/${P}.tar.gz" | |
HOMEPAGE="http://www.sql-ledger.com/" | |
# This ebuild exists largely to allow Gentoo to pull in all | |
# the needed dependencies. The rest of it is based on extracting | |
# the necessary steps from SQL-Ledger's setup.pl and README. | |
LICENSE="GPL" | |
KEYWORDS="x86 ppc" | |
IUSE="onlydeps" | |
RDEPEND="${DEPEND} | |
dev-perl/libwww-perl | |
>=dev-lang/perl-5 | |
>=dev-db/postgresql-server-7.1 | |
dev-perl/DBI | |
dev-perl/DBD-Pg | |
www-servers/apache | |
app-text/texlive" | |
RESTRICT=" | |
onlydeps? ( fetch )" | |
S="${WORKDIR}/sql-ledger" | |
pkg_setup() { | |
use onlydeps || webapp_pkg_setup | |
} | |
src_unpack() { | |
use onlydeps || unpack ${A} | |
} | |
src_compile() { | |
# do we want to do something with sql-ledger.conf.default? | |
echo | |
} | |
src_install() { | |
use onlydeps && return | |
webapp_src_preinst | |
# handle documentation files | |
# | |
# NOTE that doc files go into /usr/share/doc as normal; they do NOT | |
# get installed per vhost! | |
einfo "Installing docs" | |
dodoc doc/* | |
einfo "Copying main files" | |
cp sql-ledger.conf.default sql-ledger.conf | |
cp -r . ${D}/${MY_HTDOCSDIR} | |
rm -rf ${D}/${MY_HTDOCSDIR}/doc | |
einfo "Setting Server Ownership" | |
# Files which must be server owned | |
for so in `find users css templates spool`; do | |
webapp_serverowned ${MY_HTDOCSDIR}/${so} | |
done | |
einfo "Marking Config Files" | |
#Config files | |
webapp_configfile ${MY_HTDOCSDIR}/sql-ledger.conf | |
keepdir ${MY_HTDOCSDIR}/spool | |
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt | |
webapp_src_install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment