diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-04-05 15:39:59 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-04-05 15:39:59 +0000 |
commit | 64c425a7aae8b419cb20892d53d252be40c924c8 (patch) | |
tree | 9220809df6d54bfd2a174a38037f970247ac73e4 /app-admin/modlogan | |
parent | *** empty log message *** (diff) | |
download | historical-64c425a7aae8b419cb20892d53d252be40c924c8.tar.gz historical-64c425a7aae8b419cb20892d53d252be40c924c8.tar.bz2 historical-64c425a7aae8b419cb20892d53d252be40c924c8.zip |
*** empty log message ***
Diffstat (limited to 'app-admin/modlogan')
-rw-r--r-- | app-admin/modlogan/files/digest-modlogan-0.5.7-r1 | 2 | ||||
-rw-r--r-- | app-admin/modlogan/modlogan-0.5.7-r1.ebuild | 101 |
2 files changed, 103 insertions, 0 deletions
diff --git a/app-admin/modlogan/files/digest-modlogan-0.5.7-r1 b/app-admin/modlogan/files/digest-modlogan-0.5.7-r1 new file mode 100644 index 000000000000..2e6fb5ceab3e --- /dev/null +++ b/app-admin/modlogan/files/digest-modlogan-0.5.7-r1 @@ -0,0 +1,2 @@ +MD5 dedfa640e1229c5c2bffd61102e105b5 modlogan-0.5.7.tar.gz +MD5 46768d1d4af9f3f503f7f32ac4127c7a gd-1.8.1.tar.gz diff --git a/app-admin/modlogan/modlogan-0.5.7-r1.ebuild b/app-admin/modlogan/modlogan-0.5.7-r1.ebuild new file mode 100644 index 000000000000..3f8bdb0ae4e0 --- /dev/null +++ b/app-admin/modlogan/modlogan-0.5.7-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-admin/modlogan/modlogan-0.5.7-r1.ebuild,v 1.1 2001/04/05 15:39:59 achim Exp $ + +A="${P}.tar.gz gd-1.8.1.tar.gz" +S=${WORKDIR}/${P} +DESCRIPTION="Logfile Analyzer" +SRC_URI="http://www.kneschke.de/projekte/modlogan/download/${P}.tar.gz + http://www.kneschke.de/projekte/modlogan/download/gd-1.8.1.tar.gz" + +DEPEND="virtual/glibc virtual/x11 + >=media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/libpng-1.0.7 + >=dev-libs/libpcre-3.2 + mysql? ( >=dev-db/mysql-3.23.26 ) + nls? ( sys-dxevel/gettext ) + " +DEPEND="virtual/glibc virtual/x11 + >=media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/libpng-1.0.7 + >=dev-libs/libpcre-3.2 + " + +src_compile() { + cd ${S}/../gd-1.8.1 + CFLAGS="$CFLAGS -I/usr/include/freetype" try ./configure + try make + cp .libs/libgd.so.0.0.0 libgd.so.0.0.0 + ln -s libgd.so.0.0.0 libgd.so + + local myconf + if [ "`use mysql`" ] + then + myconf="--with-mysql=/usr" + else + myconf="--without-mysql" + fi + if [ -z "`use nls`" ] + then + myconf="$myconf --disable-nls" + fi + + cd ${S} + try ./configure --host=${CHOST} --prefix=/usr \ + --sysconfdir=/etc/modlogan --enable-plugins \ + --libdir=/usr/lib/modlogan --mandir=/usr/share/man \ + --with-gd=${WORKDIR}/gd-1.8.1/ \ + --disable-check-dynamic ${myconf} + try make +} + +src_install() { + cd ${S}/../gd-1.8.1 + into /usr + dolib libgd.so.0.0.0 + cd ${S} + try make prefix=${D}/usr sysconfdir=${D}/etc/modlogan \ + libdir=${D}/usr/lib/modlogan mandir=${D}/usr/share/man install + insinto /etc/modlogan + newins ${FILESDIR}/sample.conf modlogan.conf.sample + newins ${FILESDIR}/sample.def.conf modlogan.def.conf.sample + doins doc/modlogan.searchengines + insinto /etc/httpd + newins ${FILESDIR}/modlogan.conf httpd.modlogan + dodir /usr/local/httpd/modlogan + preplib /usr + dodoc AUTHORS COPYING ChangeLog README NEWS TODO + dodoc doc/*.txt doc/*.conf doc/glosar doc/stats + docinto html + dodoc doc/*.html +} + +pkg_postinst() { + + if [ ! -a ${ROOT}etc/modlogan/modlogan.conf ] + then + cd ${ROOT}/etc/modlogan + sed -e "s:##HOST##:${HOSTNAME}:g" \ + -e "s:##HOST2##:${HOSTNAME/./\\.}:g" \ + modlogan.conf.sample > modlogan.conf + rm modlogan.conf.sample + fi + + if [ ! -a ${ROOT}etc/modlogan/modlogan.def.conf ] + then + cd ${ROOT}/etc/modlogan + sed -e "s:##HOST##:${HOSTNAME}:g" \ + -e "s:##HOST2##:${HOSTNAME/./\\.}:g" \ + modlogan.def.conf.sample > modlogan.def.conf + rm modlogan.def.conf.sample + fi + +} + + + + + |