2022-04-05 19:41:32 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2010-09-24 00:39:36 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-04-05 19:41:32 +02:00
|
|
|
EAPI="7"
|
2010-09-24 00:39:36 +02:00
|
|
|
|
2022-04-05 19:41:32 +02:00
|
|
|
inherit webapp
|
2010-09-24 00:39:36 +02:00
|
|
|
|
|
|
|
MY_PV=${PV/_rc/rc}
|
|
|
|
|
|
|
|
DESCRIPTION="An extremely flexible application to catalogue all sorts of things"
|
|
|
|
HOMEPAGE="http://opendb.iamvegan.net/"
|
2022-04-05 19:41:32 +02:00
|
|
|
SRC_URI="https://github.com/pellcorp/opendb/archive/refs/tags/RELEASE_1_6_2.tar.gz
|
|
|
|
linguas_de? ( http://www.ungesundes-halbwissen.de/opendb/German-1.5.b5-iso8859-1-standard.zip -> OpenDb-Lang-German-1.5.b5-iso8859-1.zip )
|
|
|
|
linguas_sk? ( https://github-wiki-see.page/m/pellcorp/opendb/wiki/Media%3ASlovak_1.0.2.zip -> OpenDb-Lang-Slovak-1.5.zip )
|
2010-09-24 00:39:36 +02:00
|
|
|
"
|
2022-04-05 19:41:32 +02:00
|
|
|
# themes? ( https://web.archive.org/web/20090814124332/http://neverdunn.net/dvd/downloads/Shadowland_v1-0.zip -> OpenDb-Theme-Shadowland-1.5.x.zip
|
|
|
|
# http://jack-frost.no-ip.info/themes/BlackIce_v1.5+.zip -> OpenDb-Theme-BlackIce-1.5.x.zip
|
|
|
|
# https://github-wiki-see.page/m/pellcorp/opendb/wiki/Media%3AJoomlike_v01-00.zip -> OpenDb-Theme-Joomlike-1.5.x-v01-00.zip )
|
2010-09-24 00:39:36 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
2022-04-05 19:41:32 +02:00
|
|
|
IUSE="linguas_de linguas_sk"
|
2010-09-24 00:39:36 +02:00
|
|
|
|
2022-04-05 19:41:32 +02:00
|
|
|
DEPEND=">=dev-lang/php-7.0
|
2010-09-24 00:39:36 +02:00
|
|
|
|| ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
S="${WORKDIR}"
|
|
|
|
|
|
|
|
need_httpd_cgi
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
webapp_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
webapp_src_preinst
|
|
|
|
|
|
|
|
dodoc docs/ChangeLog docs/LICENSE docs/README
|
|
|
|
docinto scripts
|
|
|
|
dodoc docs/scripts/*
|
|
|
|
|
|
|
|
# Shadowland Theme
|
2022-04-05 19:41:32 +02:00
|
|
|
#use themes && mv -f Shadowland theme/Shadowland
|
2010-09-24 00:39:36 +02:00
|
|
|
# Black Ice Theme
|
2022-04-05 19:41:32 +02:00
|
|
|
#use themes && mv -f BlackIce_v1.5+ theme/BlackIce
|
2010-09-24 00:39:36 +02:00
|
|
|
# Joomlike Theme
|
2022-04-05 19:41:32 +02:00
|
|
|
#use themes && mv -f Joomlike_v01-00/Joomlike theme/Joomlike
|
2010-09-24 00:39:36 +02:00
|
|
|
|
|
|
|
[ -f include/local.config.php ] || cp include/local.config.php.dist include/local.config.php
|
|
|
|
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
|
|
doins -r *.php admin functions images include scripts site help import \
|
|
|
|
itemcache lib export importcache install theme httpcache log upload
|
|
|
|
|
|
|
|
|
|
|
|
echo "order deny,allow" >${D}/${MY_HTDOCSDIR}/log/.htaccess
|
|
|
|
echo "deny from all" >>${D}/${MY_HTDOCSDIR}/log/.htaccess
|
|
|
|
|
|
|
|
echo "order deny,allow" >${D}/${MY_HTDOCSDIR}/importcache/.htaccess
|
|
|
|
echo "deny from all" >>${D}/${MY_HTDOCSDIR}/importcache/.htaccess
|
|
|
|
|
|
|
|
echo "order deny,allow" >${D}/${MY_HTDOCSDIR}/itemcache/.htaccess
|
|
|
|
echo "deny from all" >>${D}/${MY_HTDOCSDIR}/itemcache/.htaccess
|
|
|
|
|
|
|
|
echo "order deny,allow" >${D}/${MY_HTDOCSDIR}/upload/.htaccess
|
|
|
|
echo "deny from all" >>${D}/${MY_HTDOCSDIR}/upload/.htaccess
|
|
|
|
|
|
|
|
webapp_serverowned "${MY_HTDOCSDIR}"/index.php
|
|
|
|
webapp_serverowned "${MY_HTDOCSDIR}"
|
|
|
|
|
|
|
|
webapp_configfile "${MY_HTDOCSDIR}"/include/local.config.php
|
|
|
|
|
|
|
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
|
|
|
## webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
|
|
|
|
|
|
|
|
webapp_src_install
|
|
|
|
}
|
|
|
|
|
|
|
|
|