summaryrefslogtreecommitdiff
blob: d469014ab94f19cdd07650747f2b63119efe4cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/gnopaste/gnopaste-0.5.5.ebuild,v 1.3 2007/07/29 17:27:15 phreak Exp $

inherit webapp

DESCRIPTION="It presents a free nopaste system like http://nopaste.info"
HOMEPAGE="http://gnopaste.sf.net/"
LICENSE="GPL-2"

SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"

WEBAPP_MANUAL_SLOT="yes"
SLOT="0"

KEYWORDS="~x86 ~amd64"
IUSE=""

RDEPEND="virtual/mysql
	www-servers/apache
	dev-lang/php"

src_install() {
	# call the eclass, to initialise the image directory for us
	webapp_src_preinst

	# copy the app's main files
	elog "Installing main files"
	cp -r . "${D}/${MY_HTDOCSDIR}"

	# identify the configuration files that this app uses
	webapp_configfile "${MY_HTDOCSDIR}/config.php"

	# identify any files and directories that need to be owned
	# by the user that the server runs under
	webapp_serverowned "${MY_HTDOCSDIR}/config.php"
	webapp_serverowned "${MY_HTDOCSDIR}/install.php"

	# add the post-installation instructions
	webapp_postinst_txt en "${FILESDIR}/postinstall-en-${PV}.txt"

	# all done
	webapp_src_install
}