|
Lines 11-24
Link Here
|
| 11 |
|
11 |
|
| 12 |
DESCRIPTION="A web-based front-end to the Snort IDS." |
12 |
DESCRIPTION="A web-based front-end to the Snort IDS." |
| 13 |
HOMEPAGE="http://base.secureideas.net" |
13 |
HOMEPAGE="http://base.secureideas.net" |
| 14 |
SRC_URI="mirror://sourceforge/secureideas/${P}.tar.gz" |
14 |
DBTYPES="mssql mysql oracle postgres" |
|
|
15 |
IUSE="doc gd minimal ${DBTYPES}" |
| 16 |
|
| 17 |
SRC_URI="mirror://sourceforge/secureideas/${P}.tar.gz |
| 18 |
doc? ( !minimal? ( |
| 19 |
http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz |
| 20 |
) )" |
| 21 |
|
| 15 |
LICENSE="GPL-2" |
22 |
LICENSE="GPL-2" |
| 16 |
KEYWORDS="~amd64 ~ppc ~x86" |
23 |
KEYWORDS="~amd64 ~ppc ~x86" |
| 17 |
# SLOT is intentionally omitted because this package uses webapp-config |
24 |
# SLOT is intentionally omitted because this package uses webapp-config |
| 18 |
|
25 |
|
| 19 |
DBTYPES="mssql mysql oracle postgres" |
|
|
| 20 |
IUSE="gd ${DBTYPES}" |
| 21 |
|
| 22 |
# BASE *should* work with any php-driven web server, so only require Apache |
26 |
# BASE *should* work with any php-driven web server, so only require Apache |
| 23 |
# when the user has an apache use-flag set. |
27 |
# when the user has an apache use-flag set. |
| 24 |
want_apache |
28 |
want_apache |
|
Lines 152-163
Link Here
|
| 152 |
src_install() { |
156 |
src_install() { |
| 153 |
webapp_src_preinst |
157 |
webapp_src_preinst |
| 154 |
|
158 |
|
| 155 |
# Install the docs once in the standard /usr/share/doc/${PF}/DOCDESTREE |
159 |
if use doc; then |
| 156 |
# location instead of installing them in every virtual host directory. |
160 |
if ! use minimal; then |
| 157 |
cd docs |
161 |
# Install the signature documentation |
| 158 |
dodoc * |
162 |
dodir ${MY_HTDOCSDIR}/signatures |
|
|
163 |
insinto ${MY_HTDOCSDIR}/signatures |
| 164 |
for TXT in ${WORKDIR}/doc/signatures/*; do |
| 165 |
doins "${TXT}" |
| 166 |
done |
| 167 |
fi |
| 168 |
|
| 169 |
# Install the docs once in the standard /usr/share/doc/${PF}/DOCDESTREE |
| 170 |
# location instead of installing them in every virtual host directory. |
| 171 |
cd docs |
| 172 |
dodoc * |
| 173 |
fi |
| 174 |
|
| 159 |
cd "${S}" |
175 |
cd "${S}" |
| 160 |
rm -rf docs |
176 |
for JUNK in docs doc rules; do |
|
|
177 |
rm -rf "${JUNK}" |
| 178 |
done |
| 161 |
|
179 |
|
| 162 |
# Install the config files in the normal location (/etc/${PN}). |
180 |
# Install the config files in the normal location (/etc/${PN}). |
| 163 |
insinto ${CONF_DIR} || die "Unable to insinto ${CONF_DIR}" |
181 |
insinto ${CONF_DIR} || die "Unable to insinto ${CONF_DIR}" |
|
Lines 181-191
Link Here
|
| 181 |
# Notify the user of any problems at the very end. |
199 |
# Notify the user of any problems at the very end. |
| 182 |
if [ "${HTTPD_GROUP}" == "root" ]; then |
200 |
if [ "${HTTPD_GROUP}" == "root" ]; then |
| 183 |
ewarn "" |
201 |
ewarn "" |
| 184 |
ewarn "It looks like you are not using Apache or Cherokee" |
202 |
ewarn "It looks like you are not using Apache" |
| 185 |
ewarn "as your web server. For BASE to work properly, you will" |
203 |
ewarn "as your web server. For BASE to work properly, you will" |
| 186 |
ewarn "need to change the ownership of ${CONF_DIR}/${CONF_NEW} to" |
204 |
ewarn "need to change the ownership of ${CONF_DIR}/${CONF_NEW} to" |
| 187 |
ewarn "root:[www user] To use Apache, add \"apache\" or" |
|
|
| 188 |
ewarn "\"apache2\" to your USE flags and re-emerge BASE." |
| 189 |
fi |
205 |
fi |
| 190 |
if [ "${FPERMS}" == "FALSE" ]; then |
206 |
if [ "${FPERMS}" == "FALSE" ]; then |
| 191 |
ewarn "" |
207 |
ewarn "" |