From ffebc4fe1dd1e62482fc94f42caba6c38436aa7f Mon Sep 17 00:00:00 2001 From: Ole Markus With Date: Sat, 21 May 2011 15:40:11 +0000 Subject: net-analyzer/base removed (bug 362063) --- net-analyzer/base/ChangeLog | 112 ----------------- net-analyzer/base/Manifest | 22 ---- net-analyzer/base/base-1.4.0.ebuild | 218 -------------------------------- net-analyzer/base/base-1.4.1-r1.ebuild | 213 ------------------------------- net-analyzer/base/base-1.4.1.ebuild | 221 --------------------------------- net-analyzer/base/metadata.xml | 9 -- 6 files changed, 795 deletions(-) delete mode 100644 net-analyzer/base/ChangeLog delete mode 100644 net-analyzer/base/Manifest delete mode 100644 net-analyzer/base/base-1.4.0.ebuild delete mode 100644 net-analyzer/base/base-1.4.1-r1.ebuild delete mode 100644 net-analyzer/base/base-1.4.1.ebuild delete mode 100644 net-analyzer/base/metadata.xml (limited to 'net-analyzer') diff --git a/net-analyzer/base/ChangeLog b/net-analyzer/base/ChangeLog deleted file mode 100644 index 18a537497914..000000000000 --- a/net-analyzer/base/ChangeLog +++ /dev/null @@ -1,112 +0,0 @@ -# ChangeLog for net-analyzer/base -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/base/ChangeLog,v 1.22 2010/09/16 11:21:06 mabi Exp $ - - 16 Sep 2010; Matti Bickel base-1.4.1-r1.ebuild: - fix php/gd dependency (bug #337034) - -*base-1.4.1-r1 (11 Sep 2010) - - 11 Sep 2010; Matti Bickel +base-1.4.1-r1.ebuild: - eapi bump, use EAPI2 features instead of built_with_use checks - - 26 May 2009; Arfrever Frehtes Taifersar Arahesis - base-1.4.0.ebuild, base-1.4.1.ebuild: - Call depend.apache_pkg_setup() in pkg_setup() (bug #268371). - - 21 Nov 2008; Peter Volkov base-1.4.1.ebuild: - Added dependencies on PEAR-Mail{,_Mime}, bug #247611, thank Dan Coats for - report. - - 19 Nov 2008; Jeroen Roovers base-1.4.1.ebuild: - Fix quoting of WORKDIR. - - 18 Nov 2008; Peter Volkov base-1.4.1.ebuild: - Fixed wrong $S, bug #247162, thank Toralf Förster for report. - -*base-1.4.1 (16 Nov 2008) - - 16 Nov 2008; Peter Volkov +base-1.4.1.ebuild: - Version bump, bug #246181 thank Nico Schlömer for report. Dropped jpgraph - dependency, bug #207865, thank Toralf Förster for report. - - 04 Aug 2008; Jeroen Roovers metadata.xml: - Describe local USE flags for GLEP 56. - -*base-1.4.0 (06 Jul 2008) - - 06 Jul 2008; Robert Buchholz -base-1.3.6.ebuild, - -base-1.3.8.ebuild, +base-1.4.0.ebuild: - Version bump, Fixes: XSS Security bug #202750 and undefined function - base_header() #201643 - -*base-1.3.8 (22 Oct 2007) - - 22 Oct 2007; Markus Ullmann +base-1.3.8.ebuild: - Import from php overlay - - 09 Oct 2007; Jakub Moc +base-1.3.8.ebuild: - Version bump, require PHP5 as PHP4 is going to be masked. Fix adodb path - (see Bug 194166) and jpgraph dependency accordingly. Make pkg_setup check - all PHP use flags at once, remove reference to non-existant USE=apache, - remove implicit system dependencies. Remove bogus media-libs/gd dependency. - Fix truncated elog instructions. - - 06 Sep 2007; Markus Ullmann -base-1.2.7-r2.ebuild: - Cleanup - -*base-1.3.6 (23 May 2007) - - 23 May 2007; Markus Ullmann +base-1.3.6.ebuild: - Version bump wrt bug #178477 - - 01 May 2007; Marius Mauch base-1.2.7-r2.ebuild: - Replacing einfo with elog - - 01 Feb 2007; Markus Ullmann base-1.2.7-r2.ebuild: - typo fun - -*base-1.2.7-r2 (01 Feb 2007) - - 01 Feb 2007; Markus Ullmann -base-1.2.7-r1.ebuild, - +base-1.2.7-r2.ebuild: - Add signatures useflag - -*base-1.2.7-r1 (01 Feb 2007) - - 01 Feb 2007; Markus Ullmann -base-1.2.4.ebuild, - -base-1.2.7.ebuild, +base-1.2.7-r1.ebuild: - Fixing dependencies wrt bug #159781 - -*base-1.2.7 (02 Dec 2006) - - 02 Dec 2006; Marcelo Goes -base-1.2.2.ebuild, - -base-1.2.2-r1.ebuild, +base-1.2.7.ebuild: - 1.2.7 version bump for bug 142528. Thanks to Toralf Forster . Removing old ebuilds. - - 23 Nov 2006; Francesco Riosa base-1.2.2.ebuild, - base-1.2.2-r1.ebuild, base-1.2.4.ebuild: - dev-db/mysql => virtual/mysql - - 21 Jun 2006; base-1.2.4.ebuild: - Added ~ppc wrt bug #134568 - -*base-1.2.4 (27 Mar 2006) - - 27 Mar 2006; Markus Ullmann +base-1.2.4.ebuild: - Version bump wrt bug #126877 - -*base-1.2.2-r1 (08 Feb 2006) - - 08 Feb 2006; Marcelo Goes +base-1.2.2-r1.ebuild: - Add fixes from bug 122063, most notably php5 support. Thanks to Travis Post - and Jakub Moc . - -*base-1.2.2 (28 Jan 2006) - - 28 Jan 2006; Marcelo Goes +metadata.xml, - +base-1.2.2.ebuild: - Initial commit for bug 119623. Thanks to Travis Post . Added netmon as a herd. - diff --git a/net-analyzer/base/Manifest b/net-analyzer/base/Manifest deleted file mode 100644 index fb42b518a9fd..000000000000 --- a/net-analyzer/base/Manifest +++ /dev/null @@ -1,22 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -DIST base-1.4.0.tar.gz 921006 RMD160 61635079cbd90ca58761bbc5becb783b90aba76f SHA1 461edc4d7ce86df30da7754c444de907f025d9dd SHA256 6438d020eec493ae4b1c264bc16694cf86a69ba58479ec531ba92f3a76bb3d05 -DIST base-1.4.1.tar.gz 954823 RMD160 dec378e107843baba75545d161607f8506740b2a SHA1 cc779ac3fea50d9b5bbb806cd7f6aa5a09b39b9a SHA256 3d5ac560d62610f71fa9978a81ee391e6c4dcd33b5c15316e0eb1b4449a49b54 -DIST snortrules-pr-2.4.tar.gz 789097 RMD160 dd2179b3ce8a55699d2e1b857426e5489191a121 SHA1 b8b59754ccb59b1dcf324d2faa399326117a60e9 SHA256 19d2545a2a150dff8b4dbcbd0def389b6865c4c70f5084172d08a7b151e1a504 -EBUILD base-1.4.0.ebuild 7184 RMD160 ff4d54250db64db14c489b3e102110953e883338 SHA1 96f53bfc1e15482e88df5929f9b13dfeddc520f2 SHA256 6fc4d1e58d0a75d10cf547fa53135f7a94d267ee74a87be00e8181ca3eb7fd4a -EBUILD base-1.4.1-r1.ebuild 6844 RMD160 d2ffb1dd17e54c5ab8388e73289e06a858fb0335 SHA1 bd5a7b889fa973c5a3830b180fab7650ae53a05e SHA256 57a5b9ae549d5771ce008dba041e9268a2c266a7266983ad788931225a298111 -EBUILD base-1.4.1.ebuild 7224 RMD160 ef16166f008db247101497e72172b5fc78f7559a SHA1 5ba1551b405178c55a1ad7f4b33d45b087daa4d2 SHA256 36e1fabcefe4424a854b094e0b1114ad0afd90b10ca9e0eeb8b8823551079d1d -MISC ChangeLog 3963 RMD160 0a5a01387901c25a6fc5b0e6deb74ee1540fd3a4 SHA1 6e39865fa83d9f5bd1d03183abd23c86fb0bd7ab SHA256 105e9dd83e7af8c82f27a015c58079df9e31c43edb87a406eba48f7ee4dd8013 -MISC metadata.xml 267 RMD160 c913a59512630e220806726ec79210152b7f8121 SHA1 51cec405577f36038414fc3824a31361c9b4aa4e SHA256 2b41d49c3358e9cd93369ec863bae1056a515f613d9555617e501930b05b07ba ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) - -iQEcBAEBAgAGBQJNoLIZAAoJEGurSuXEqSv1iDsH/1glky+mdpzdImJgH6f0Ntp8 -OYlM9q9viXhB+L6VHnCbIMQqB19DQhKGiYfXCEmo+dhntYouzIxAUBcqkA/U9lS4 -DeKENMaWdW+m3W938yc11L33FbjqQwAj0H7Qdh3gdIK9ApdBdSK+diGo/EYpK/CT -7/0rbdnkvIHTIT15QHaeted+l2QswKXdoas57pEmtTqWJCLakqMfCKS/FcGvSfdB -lUgonZmgJP3utgzeOhZqik8iUG0JrQ7IiUqNSWtHgFa3fia3lAR2z67JQzWhwMll -Pc+AhvVPUNZvIjx//sowD5D3EhUmq3avNJ8dn9llDcnN2y38hmrAJ9LnVeQfMoY= -=i4Tl ------END PGP SIGNATURE----- diff --git a/net-analyzer/base/base-1.4.0.ebuild b/net-analyzer/base/base-1.4.0.ebuild deleted file mode 100644 index 87d203b965ae..000000000000 --- a/net-analyzer/base/base-1.4.0.ebuild +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/base/base-1.4.0.ebuild,v 1.3 2011/04/09 19:23:00 olemarkus Exp $ - -inherit webapp versionator eutils depend.apache depend.php - -CONF_DIR="/etc/${PN}" -CONF_OLD="base_conf.php.dist" -CONF_NEW="base_conf.php" -MIDDLEMAN="base_path.php" -DBTYPES="mssql mysql oracle postgres" - -DESCRIPTION="A web-based front-end to the Snort IDS." -HOMEPAGE="http://base.secureideas.net" -SRC_URI="mirror://sourceforge/secureideas/${P}.tar.gz - signatures? ( http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz )" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -# SLOT is intentionally omitted because this package uses webapp-config -IUSE="gd signatures ${DBTYPES}" - -# BASE *should* work with any php-driven web server, so only require Apache -# when the user has an apache use-flag set. -want_apache - -DEPEND=">=sys-libs/zlib-1.2.1-r3" -RDEPEND="${DEPEND} - dev-php/adodb - gd? ( >=dev-php/jpgraph-2.0_beta - >=dev-php/PEAR-PEAR-1.3.6-r1 - >=dev-php/PEAR-Image_Color-1.0.2 - >=dev-php/PEAR-Log-1.9.3 - >=dev-php/PEAR-Numbers_Roman-0.2.0 - >=dev-php/PEAR-Numbers_Words-0.14.0 - >=dev-php/PEAR-Image_Canvas-0.2.4 - >=dev-php/PEAR-Image_Graph-0.7.1 )" - # A local database isn't necessary, so only require one when the user - # has use-flags set for one of the supported DBs. - # Snort can also be installed on a remote system, so don't require it. - -# Require PHP. -need_php5 - -pkg_setup() { - depend.apache_pkg_setup - webapp_pkg_setup - - # Set the group ownership for /etc/base/base_conf.php so it can be read by - # the user's web server. - if use apache2 ; then - HTTPD_GROUP="apache" - else - # Set a safe default group. - HTTPD_GROUP="root" - fi - - # Check and setup selected DB type - dbtypecnt=0 - for db in ${DBTYPES}; do - if use ${db}; then - if [ ${dbtypecnt} -eq 0 ]; then - BASE_DBTYPE=${db} - let dbtypecnt++ - elif [ ${dbtypecnt} -ge 1 ]; then - ewarn "You set multiple database types in your USE flags." - ewarn "You will have to setup DBtype configuration manually." - fi - fi - done - - if [ ${dbtypecnt} -eq 0 ]; then - ewarn "No database type selected in your USE flags." - ewarn "You will have to setup DBtype manually." - fi - - # Make sure php was built with the necessary USE flags. - local flags=session - for f in mssql mysql postgres ; do - use ${f} && flags="${flags} ${f}" - done - - if use oracle && ! built_with_use virtual/php oci8-instant-client ; then - ewarn "PHP with oci8-instant-client support not found!" - ewarn "It is your responsibility to ensure that PHP will work" - ewarn "with commercial Oracle implementation." - fi - - if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ - ( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then - eerror "Re-emerge ${PHP_PKG} with ${flags} USE flags enabled" - use gd && eerror "as well as with either gd or gd-external USE flag enabled." - die "Re-emerge ${PHP_PKG} with the above USE flags." - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Help the user configure /etc/base/base_conf.php so BASE works out of the - # box in most environments. The user will still be warned to edit the - # file manually at the pkg_postinst() stage. - sed -i -e 's:$BASE_urlpath.*:$BASE_urlpath = "/base";:g' \ - ${CONF_OLD} - - sed -i -e 's:$DBlib_path.*:$DBlib_path = "/usr/share/php5/adodb";:g' \ - ${CONF_OLD} - - if [[ "${BASE_DBTYPE}" == "postgres" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "postgres";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "mssql" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "mssql";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "oracle" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "oci8";:g' \ - ${CONF_OLD} - fi - - # Install the configuration files in the usual /etc/${PN} location so that - # etc-update functions properly (it also improves security somewhat, since - # the config file contains plain-text passwords and should not be located - # inside the web-root). This requires changing the BASE source a tad to - # recognize the new location for base_conf.php. - for PHP in *.php */*.php; do - sed -i -e "s:${CONF_NEW}:${MIDDLEMAN}:g" \ - ${CONF_OLD} "${PHP}" - done - - # Create the file ${MIDDLEMAN} to determine the web-root and to change - # the location of "include" to /etc/base/base_conf.php. - echo " ${MIDDLEMAN} - echo ' $BASE_path = dirname(__FILE__);' >> ${MIDDLEMAN} - echo " include(\"${CONF_DIR}/${CONF_NEW}\");" >> ${MIDDLEMAN} - echo "?>" >> ${MIDDLEMAN} - - # Delete the $BASE_path variable from the config file because we - # now handle it with ${MIDDLEMAN} created above. - sed -i -e 's:$BASE_path =.*::g' ${CONF_OLD} - - # Modify the HTML headers so search engines don't index BASE. - sed -i -e \ - 's::\n :g' \ - index.php - sed -i -e \ - 's::\n :g' \ - base_main.php -} - -src_install() { - webapp_src_preinst - - # Install the docs once in the standard /usr/share/doc/${PF}/DOCDESTREE - # location instead of installing them in every virtual host directory. - cd docs - dodoc * - if use signatures ; then - cd "${WORKDIR}" - insinto ${MY_HTDOCSDIR}/signatures - doins doc/signatures/* - fi - cd "${S}" - rm -rf docs - - # Install the config files in the normal location (/etc/${PN}). - insinto ${CONF_DIR} || die "Unable to insinto ${CONF_DIR}" - doins ${CONF_OLD} || die "Unable to doins ${CONF_OLD}" - newins ${CONF_OLD} ${CONF_NEW} || die "Unable to create ${CONF_NEW}" - - # Install BASE for webapp-config - insinto ${MY_HTDOCSDIR} || die "Unable to insinto ${MY_HTDOCSDIR}" - doins -r * - - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - # Set the proper permissions on /etc/base/base_conf.php - chmod 640 ${CONF_DIR}/${CONF_NEW} || FPERMS="FALSE" - chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW} || FOWNERS="FALSE" - - # Notify the user of any problems at the very end. - if [ "${HTTPD_GROUP}" == "root" ]; then - ewarn "" - ewarn "It looks like you are not using Apache" - ewarn "as your web server. For BASE to work properly, you will" - ewarn "need to change the ownership of ${CONF_DIR}/${CONF_NEW} to" - ewarn "root:[www user] To use Apache, add \"apache2\" to" - ewarn "your USE flags and re-emerge BASE." - fi - if [ "${FPERMS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the permissions on ${CONF_DIR}/${CONF_NEW}". - ewarn "Please change them manually by issuing:" - ewarn "chmod 640 ${CONF_DIR}/${CONF_NEW}" - fi - if [ "${FOWNERS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the group ownership of the file:" - ewarn "${CONF_DIR}/${CONF_NEW}" - ewarn "Please change this manually by issuing:" - ewarn "chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW}" - fi - - elog "" - elog "You should edit \"${CONF_DIR}/${CONF_NEW}\" before using BASE." - elog "" - elog "To setup your initial database, direct your web browser to the" - elog "location you installed BASE/base_db_setup.php" - elog "You can find instructions in /usr/share/doc/${PF}/README" - elog "There is a guide at http://gentoo-wiki.com/HOWTO_Apache2_with_BASE" - elog "" -} diff --git a/net-analyzer/base/base-1.4.1-r1.ebuild b/net-analyzer/base/base-1.4.1-r1.ebuild deleted file mode 100644 index ae1714f8daca..000000000000 --- a/net-analyzer/base/base-1.4.1-r1.ebuild +++ /dev/null @@ -1,213 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/base/base-1.4.1-r1.ebuild,v 1.2 2010/09/16 11:21:06 mabi Exp $ - -EAPI="2" - -inherit webapp versionator eutils depend.apache depend.php - -CONF_DIR="/etc/${PN}" -CONF_OLD="base_conf.php.dist" -CONF_NEW="base_conf.php" -MIDDLEMAN="base_path.php" -DBTYPES="mssql mysql oracle postgres" - -DESCRIPTION="A web-based front-end to the Snort IDS." -HOMEPAGE="http://base.secureideas.net" -SRC_URI="mirror://sourceforge/secureideas/${P}.tar.gz - signatures? ( http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz )" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -# SLOT is intentionally omitted because this package uses webapp-config -IUSE="gd signatures ${DBTYPES}" - -# BASE *should* work with any php-driven web server, so only require Apache -# when the user has an apache use-flag set. -want_apache - -DEPEND=">=sys-libs/zlib-1.2.1-r3" -RDEPEND="${DEPEND} - dev-lang/php:5[session,mssql?,mysql?,postgres?] - gd? ( || ( dev-lang/php[gd] dev-lang/php[gd-external] ) ) - dev-lang/php - dev-php/adodb - dev-php/PEAR-Mail - dev-php/PEAR-Mail_Mime - gd? ( >=dev-php/PEAR-PEAR-1.3.6-r1 - >=dev-php/PEAR-Image_Color-1.0.2 - >=dev-php/PEAR-Log-1.9.3 - >=dev-php/PEAR-Numbers_Roman-0.2.0 - >=dev-php/PEAR-Numbers_Words-0.14.0 - >=dev-php/PEAR-Image_Canvas-0.2.4 - >=dev-php/PEAR-Image_Graph-0.7.1 )" - # A local database isn't necessary, so only require one when the user - # has use-flags set for one of the supported DBs. - # Snort can also be installed on a remote system, so don't require it. - -# Require PHP. -need_php5 - -S="${WORKDIR}/${PN}-php4" - -pkg_setup() { - depend.apache_pkg_setup - webapp_pkg_setup - - # Set the group ownership for /etc/base/base_conf.php so it can be read by - # the user's web server. - if use apache2 ; then - HTTPD_GROUP="apache" - else - # Set a safe default group. - HTTPD_GROUP="root" - fi - - # Check and setup selected DB type - dbtypecnt=0 - for db in ${DBTYPES}; do - if use ${db}; then - if [ ${dbtypecnt} -eq 0 ]; then - BASE_DBTYPE=${db} - let dbtypecnt++ - elif [ ${dbtypecnt} -ge 1 ]; then - ewarn "You set multiple database types in your USE flags." - ewarn "You will have to setup DBtype configuration manually." - fi - fi - done - - if [ ${dbtypecnt} -eq 0 ]; then - ewarn "No database type selected in your USE flags." - ewarn "You will have to setup DBtype manually." - fi - - if use oracle && ! has_version dev-lang/php[oci8-instant-client] ; then - ewarn "PHP with oci8-instant-client support not found!" - ewarn "It is your responsibility to ensure that PHP will work" - ewarn "with commercial Oracle implementation." - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Help the user configure /etc/base/base_conf.php so BASE works out of the - # box in most environments. The user will still be warned to edit the - # file manually at the pkg_postinst() stage. - sed -i -e 's:$BASE_urlpath.*:$BASE_urlpath = "/base";:g' \ - ${CONF_OLD} - - sed -i -e 's:$DBlib_path.*:$DBlib_path = "/usr/share/php5/adodb";:g' \ - ${CONF_OLD} - - if [[ "${BASE_DBTYPE}" == "postgres" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "postgres";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "mssql" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "mssql";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "oracle" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "oci8";:g' \ - ${CONF_OLD} - fi - - # Install the configuration files in the usual /etc/${PN} location so that - # etc-update functions properly (it also improves security somewhat, since - # the config file contains plain-text passwords and should not be located - # inside the web-root). This requires changing the BASE source a tad to - # recognize the new location for base_conf.php. - for PHP in *.php */*.php; do - sed -i -e "s:${CONF_NEW}:${MIDDLEMAN}:g" \ - ${CONF_OLD} "${PHP}" - done - - # Create the file ${MIDDLEMAN} to determine the web-root and to change - # the location of "include" to /etc/base/base_conf.php. - echo " ${MIDDLEMAN} - echo ' $BASE_path = dirname(__FILE__);' >> ${MIDDLEMAN} - echo " include(\"${CONF_DIR}/${CONF_NEW}\");" >> ${MIDDLEMAN} - echo "?>" >> ${MIDDLEMAN} - - # Delete the $BASE_path variable from the config file because we - # now handle it with ${MIDDLEMAN} created above. - sed -i -e 's:$BASE_path =.*::g' ${CONF_OLD} - - # Modify the HTML headers so search engines don't index BASE. - sed -i -e \ - 's::\n :g' \ - index.php - sed -i -e \ - 's::\n :g' \ - base_main.php -} - -src_install() { - webapp_src_preinst - - # Install the docs once in the standard /usr/share/doc/${PF}/DOCDESTREE - # location instead of installing them in every virtual host directory. - cd docs - dodoc * - if use signatures ; then - cd "${WORKDIR}" - insinto ${MY_HTDOCSDIR}/signatures - doins doc/signatures/* - fi - cd "${S}" - rm -rf docs - - # Install the config files in the normal location (/etc/${PN}). - insinto ${CONF_DIR} || die "Unable to insinto ${CONF_DIR}" - doins ${CONF_OLD} || die "Unable to doins ${CONF_OLD}" - newins ${CONF_OLD} ${CONF_NEW} || die "Unable to create ${CONF_NEW}" - - # Install BASE for webapp-config - insinto ${MY_HTDOCSDIR} || die "Unable to insinto ${MY_HTDOCSDIR}" - doins -r * - - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - # Set the proper permissions on /etc/base/base_conf.php - chmod 640 ${CONF_DIR}/${CONF_NEW} || FPERMS="FALSE" - chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW} || FOWNERS="FALSE" - - # Notify the user of any problems at the very end. - if [ "${HTTPD_GROUP}" == "root" ]; then - ewarn "" - ewarn "It looks like you are not using Apache" - ewarn "as your web server. For BASE to work properly, you will" - ewarn "need to change the ownership of ${CONF_DIR}/${CONF_NEW} to" - ewarn "root:[www user] To use Apache, add \"apache2\" to" - ewarn "your USE flags and re-emerge BASE." - fi - if [ "${FPERMS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the permissions on ${CONF_DIR}/${CONF_NEW}". - ewarn "Please change them manually by issuing:" - ewarn "chmod 640 ${CONF_DIR}/${CONF_NEW}" - fi - if [ "${FOWNERS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the group ownership of the file:" - ewarn "${CONF_DIR}/${CONF_NEW}" - ewarn "Please change this manually by issuing:" - ewarn "chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW}" - fi - - elog "" - elog "You should edit \"${CONF_DIR}/${CONF_NEW}\" before using BASE." - elog "" - elog "To setup your initial database, direct your web browser to the" - elog "location you installed BASE/base_db_setup.php" - elog "You can find instructions in /usr/share/doc/${PF}/README" - elog "There is a guide at http://gentoo-wiki.com/HOWTO_Apache2_with_BASE" - elog "" -} diff --git a/net-analyzer/base/base-1.4.1.ebuild b/net-analyzer/base/base-1.4.1.ebuild deleted file mode 100644 index 38810cfe1898..000000000000 --- a/net-analyzer/base/base-1.4.1.ebuild +++ /dev/null @@ -1,221 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/base/base-1.4.1.ebuild,v 1.5 2009/05/26 17:03:47 arfrever Exp $ - -inherit webapp versionator eutils depend.apache depend.php - -CONF_DIR="/etc/${PN}" -CONF_OLD="base_conf.php.dist" -CONF_NEW="base_conf.php" -MIDDLEMAN="base_path.php" -DBTYPES="mssql mysql oracle postgres" - -DESCRIPTION="A web-based front-end to the Snort IDS." -HOMEPAGE="http://base.secureideas.net" -SRC_URI="mirror://sourceforge/secureideas/${P}.tar.gz - signatures? ( http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz )" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -# SLOT is intentionally omitted because this package uses webapp-config -IUSE="gd signatures ${DBTYPES}" - -# BASE *should* work with any php-driven web server, so only require Apache -# when the user has an apache use-flag set. -want_apache - -DEPEND=">=sys-libs/zlib-1.2.1-r3" -RDEPEND="${DEPEND} - dev-php/adodb - dev-php/PEAR-Mail - dev-php/PEAR-Mail_Mime - gd? ( >=dev-php/PEAR-PEAR-1.3.6-r1 - >=dev-php/PEAR-Image_Color-1.0.2 - >=dev-php/PEAR-Log-1.9.3 - >=dev-php/PEAR-Numbers_Roman-0.2.0 - >=dev-php/PEAR-Numbers_Words-0.14.0 - >=dev-php/PEAR-Image_Canvas-0.2.4 - >=dev-php/PEAR-Image_Graph-0.7.1 )" - # A local database isn't necessary, so only require one when the user - # has use-flags set for one of the supported DBs. - # Snort can also be installed on a remote system, so don't require it. - -# Require PHP. -need_php5 - -S="${WORKDIR}/${PN}-php4" - -pkg_setup() { - depend.apache_pkg_setup - webapp_pkg_setup - - # Set the group ownership for /etc/base/base_conf.php so it can be read by - # the user's web server. - if use apache2 ; then - HTTPD_GROUP="apache" - else - # Set a safe default group. - HTTPD_GROUP="root" - fi - - # Check and setup selected DB type - dbtypecnt=0 - for db in ${DBTYPES}; do - if use ${db}; then - if [ ${dbtypecnt} -eq 0 ]; then - BASE_DBTYPE=${db} - let dbtypecnt++ - elif [ ${dbtypecnt} -ge 1 ]; then - ewarn "You set multiple database types in your USE flags." - ewarn "You will have to setup DBtype configuration manually." - fi - fi - done - - if [ ${dbtypecnt} -eq 0 ]; then - ewarn "No database type selected in your USE flags." - ewarn "You will have to setup DBtype manually." - fi - - # Make sure php was built with the necessary USE flags. - local flags=session - for f in mssql mysql postgres ; do - use ${f} && flags="${flags} ${f}" - done - - if use oracle && ! built_with_use virtual/php oci8-instant-client ; then - ewarn "PHP with oci8-instant-client support not found!" - ewarn "It is your responsibility to ensure that PHP will work" - ewarn "with commercial Oracle implementation." - fi - - if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ - ( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then - eerror "Re-emerge ${PHP_PKG} with ${flags} USE flags enabled" - use gd && eerror "as well as with either gd or gd-external USE flag enabled." - die "Re-emerge ${PHP_PKG} with the above USE flags." - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Help the user configure /etc/base/base_conf.php so BASE works out of the - # box in most environments. The user will still be warned to edit the - # file manually at the pkg_postinst() stage. - sed -i -e 's:$BASE_urlpath.*:$BASE_urlpath = "/base";:g' \ - ${CONF_OLD} - - sed -i -e 's:$DBlib_path.*:$DBlib_path = "/usr/share/php5/adodb";:g' \ - ${CONF_OLD} - - if [[ "${BASE_DBTYPE}" == "postgres" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "postgres";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "mssql" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "mssql";:g' \ - ${CONF_OLD} - fi - if [[ "${BASE_DBTYPE}" == "oracle" ]]; then - sed -i -e 's:$DBtype.*:$DBtype = "oci8";:g' \ - ${CONF_OLD} - fi - - # Install the configuration files in the usual /etc/${PN} location so that - # etc-update functions properly (it also improves security somewhat, since - # the config file contains plain-text passwords and should not be located - # inside the web-root). This requires changing the BASE source a tad to - # recognize the new location for base_conf.php. - for PHP in *.php */*.php; do - sed -i -e "s:${CONF_NEW}:${MIDDLEMAN}:g" \ - ${CONF_OLD} "${PHP}" - done - - # Create the file ${MIDDLEMAN} to determine the web-root and to change - # the location of "include" to /etc/base/base_conf.php. - echo " ${MIDDLEMAN} - echo ' $BASE_path = dirname(__FILE__);' >> ${MIDDLEMAN} - echo " include(\"${CONF_DIR}/${CONF_NEW}\");" >> ${MIDDLEMAN} - echo "?>" >> ${MIDDLEMAN} - - # Delete the $BASE_path variable from the config file because we - # now handle it with ${MIDDLEMAN} created above. - sed -i -e 's:$BASE_path =.*::g' ${CONF_OLD} - - # Modify the HTML headers so search engines don't index BASE. - sed -i -e \ - 's::\n :g' \ - index.php - sed -i -e \ - 's::\n :g' \ - base_main.php -} - -src_install() { - webapp_src_preinst - - # Install the docs once in the standard /usr/share/doc/${PF}/DOCDESTREE - # location instead of installing them in every virtual host directory. - cd docs - dodoc * - if use signatures ; then - cd "${WORKDIR}" - insinto ${MY_HTDOCSDIR}/signatures - doins doc/signatures/* - fi - cd "${S}" - rm -rf docs - - # Install the config files in the normal location (/etc/${PN}). - insinto ${CONF_DIR} || die "Unable to insinto ${CONF_DIR}" - doins ${CONF_OLD} || die "Unable to doins ${CONF_OLD}" - newins ${CONF_OLD} ${CONF_NEW} || die "Unable to create ${CONF_NEW}" - - # Install BASE for webapp-config - insinto ${MY_HTDOCSDIR} || die "Unable to insinto ${MY_HTDOCSDIR}" - doins -r * - - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - # Set the proper permissions on /etc/base/base_conf.php - chmod 640 ${CONF_DIR}/${CONF_NEW} || FPERMS="FALSE" - chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW} || FOWNERS="FALSE" - - # Notify the user of any problems at the very end. - if [ "${HTTPD_GROUP}" == "root" ]; then - ewarn "" - ewarn "It looks like you are not using Apache" - ewarn "as your web server. For BASE to work properly, you will" - ewarn "need to change the ownership of ${CONF_DIR}/${CONF_NEW} to" - ewarn "root:[www user] To use Apache, add \"apache2\" to" - ewarn "your USE flags and re-emerge BASE." - fi - if [ "${FPERMS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the permissions on ${CONF_DIR}/${CONF_NEW}". - ewarn "Please change them manually by issuing:" - ewarn "chmod 640 ${CONF_DIR}/${CONF_NEW}" - fi - if [ "${FOWNERS}" == "FALSE" ]; then - ewarn "" - ewarn "Unable to change the group ownership of the file:" - ewarn "${CONF_DIR}/${CONF_NEW}" - ewarn "Please change this manually by issuing:" - ewarn "chown root:${HTTPD_GROUP} ${CONF_DIR}/${CONF_NEW}" - fi - - elog "" - elog "You should edit \"${CONF_DIR}/${CONF_NEW}\" before using BASE." - elog "" - elog "To setup your initial database, direct your web browser to the" - elog "location you installed BASE/base_db_setup.php" - elog "You can find instructions in /usr/share/doc/${PF}/README" - elog "There is a guide at http://gentoo-wiki.com/HOWTO_Apache2_with_BASE" - elog "" -} diff --git a/net-analyzer/base/metadata.xml b/net-analyzer/base/metadata.xml deleted file mode 100644 index 1c5c55625895..000000000000 --- a/net-analyzer/base/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - -netmon - -Install community signatures from -net-analyzer/snort - - -- cgit v1.2.3-65-gdbad