blob: b1b57a527e2e0cffd79ac50ce4ce6a25d4c94a6a (
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
45
46
47
48
49
50
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/serendipity/serendipity-0.7.1.ebuild,v 1.1 2004/12/03 06:20:30 shermann Exp $
inherit webapp eutils
DESCRIPTION="Serendipity (s9y) is a weblog (blog) system based on php/mysql|postgres"
HOMEPAGE="http://www.s9y.org/"
SRC_URI="mirror://sourceforge/php-blog/${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE=""
RDEPEND=">=dev-php/mod_php-4.1
|| (>=dev-db/mysql-4.0 >=dev-db/postgres-7.4)"
DEPEND="${DEPEND} ${RDEPEND} >=net-www/webapp-config-1.10-r5"
S="${WORKDIR}/${PN}"
VHOST_DEFAULT_UID="apache"
VHOST_DEFAULT_GID="apache"
VHOST_CONFIG_UID="apache"
VHOST_CONFIG_GID="apache"
VHOST_LINK_TYPE="soft"
src_install() {
local docs="INSTALL README LICENSE NEWS README TODO"
webapp_src_preinst
dodoc ${docs}
einfo "Installing main files"
cp -r * ${D}${MY_HTDOCSDIR}
einfo "Done"
# Identify the configuration files that this app uses
# User can want to make changes to these!
# webapp_serverowned ${MY_HTDOCSDIR}/*
mkdir ${D}${MY_HTDOCSDIR}/uploads
chmod 775 ${D}${MY_HTDOCSDIR}/uploads
# post-install instructions
# webapp_postinst_txt en ${FILESDIR}/1.2/postinstall-en.txt
# now strut stuff
webapp_src_install
rm -fv ${D}${MY_HTDOCSDIR}/${docs}
}
|