summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2004-08-26 10:16:17 +0000
committerRenat Lumpau <rl03@gentoo.org>2004-08-26 10:16:17 +0000
commit3836867cb89bf297b9f34f9d5289be14b3234352 (patch)
tree7cb99d09193f0ddab7c11817c90c45d49c0027d2 /www-apps
parentNew version 0.3.5 (Manifest recommit) (diff)
downloadgentoo-2-3836867cb89bf297b9f34f9d5289be14b3234352.tar.gz
gentoo-2-3836867cb89bf297b9f34f9d5289be14b3234352.tar.bz2
gentoo-2-3836867cb89bf297b9f34f9d5289be14b3234352.zip
Initial ebuild. Closes bug #56452
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/otrs/ChangeLog10
-rw-r--r--www-apps/otrs/Manifest6
-rw-r--r--www-apps/otrs/files/digest-otrs-1.2.41
-rw-r--r--www-apps/otrs/files/postinstall-en.txt20
-rw-r--r--www-apps/otrs/files/reconfig7
-rw-r--r--www-apps/otrs/metadata.xml8
-rw-r--r--www-apps/otrs/otrs-1.2.4.ebuild103
7 files changed, 155 insertions, 0 deletions
diff --git a/www-apps/otrs/ChangeLog b/www-apps/otrs/ChangeLog
new file mode 100644
index 000000000000..85137ddc9069
--- /dev/null
+++ b/www-apps/otrs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-apps/otrs
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.1 2004/08/26 10:16:17 rl03 Exp $
+
+*otrs-1.2.4 (26 Aug 2004)
+
+ 26 Aug 2004; Renat Lumpau <rl03@gentoo.org> +metadata.xml,
+ +files/postinstall-en.txt, +files/reconfig, +otrs-1.2.4.ebuild:
+ Initial ebuild. Closes bug #56452.
+
diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest
new file mode 100644
index 000000000000..3171ad7a465c
--- /dev/null
+++ b/www-apps/otrs/Manifest
@@ -0,0 +1,6 @@
+MD5 a278fee45630624550b33cf22b1e1ff8 otrs-1.2.4.ebuild 2779
+MD5 2d92f650d8c6cde260908ac3d4e470a7 ChangeLog 306
+MD5 224c312cc23d02aa06c26a4da3cc1f90 metadata.xml 221
+MD5 0802fdb74ba58ad4bf68831073f5e437 files/postinstall-en.txt 755
+MD5 c85b5ad5614552631d0e4ac09131e6ff files/digest-otrs-1.2.4 67
+MD5 5be5bf8e60743fe9cef39d6c521fbb82 files/reconfig 171
diff --git a/www-apps/otrs/files/digest-otrs-1.2.4 b/www-apps/otrs/files/digest-otrs-1.2.4
new file mode 100644
index 000000000000..a199a0ef1f36
--- /dev/null
+++ b/www-apps/otrs/files/digest-otrs-1.2.4
@@ -0,0 +1 @@
+MD5 7c2c55a5104044635220593e0511540c otrs-1.2.4-01.tar.bz2 5201485
diff --git a/www-apps/otrs/files/postinstall-en.txt b/www-apps/otrs/files/postinstall-en.txt
new file mode 100644
index 000000000000..e1f3a205e7fc
--- /dev/null
+++ b/www-apps/otrs/files/postinstall-en.txt
@@ -0,0 +1,20 @@
+
+
+***********************************************************
+Your installation is almost complete.
+1. You now need to edit ${VHOST_ROOT}/Kernel/Config.pm and set some
+Kernel::Config options (FQDN, SystemID, TicketHook, Home, ...). Consult
+Config.pm.dist for a start.
+
+***********************************************************
+2. Configure and restart your webserver.
+Read /usr/share/doc/${P}/README.webserver.gz. Sample config files are in
+${VHOST_ROOT}/scripts
+
+***********************************************************
+3. Setup your database. Read /usr/share/doc/${P}/README.database.gz
+
+***********************************************************
+
+4. Read /usr/share/doc/${P}/INSTALL.gz to finish the installation. Cronjobs are
+in /var/otrs/cron
diff --git a/www-apps/otrs/files/reconfig b/www-apps/otrs/files/reconfig
new file mode 100644
index 000000000000..6a3319d9b2a6
--- /dev/null
+++ b/www-apps/otrs/files/reconfig
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ $1 = "start" -o $1 = "install" ]; then
+ sed -i "s|/opt/otrs|${VHOST_ROOT}|" ${VHOST_ROOT}/Kernel/Config.pm.dist ${VHOST_ROOT}/scripts/*
+else
+ echo $1
+fi
diff --git a/www-apps/otrs/metadata.xml b/www-apps/otrs/metadata.xml
new file mode 100644
index 000000000000..43819e102566
--- /dev/null
+++ b/www-apps/otrs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+<maintainer>
+ <email>rl03@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/otrs/otrs-1.2.4.ebuild b/www-apps/otrs/otrs-1.2.4.ebuild
new file mode 100644
index 000000000000..cc202e6617b6
--- /dev/null
+++ b/www-apps/otrs/otrs-1.2.4.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-1.2.4.ebuild,v 1.1 2004/08/26 10:16:17 rl03 Exp $
+
+inherit webapp
+
+S=${WORKDIR}/${PN}
+
+IUSE="mysql postgres fastcgi apache2 ldap"
+
+DESCRIPTION="OTRS is an Open source Ticket Request System"
+HOMEPAGE="http://otrs.org/"
+SRC_URI="ftp://ftp.gwdg.de/pub/misc/${PN}/${P}-01.tar.bz2
+ http://otrs.behrsolutions.com/${P}-01.tar.bz2
+ ftp://ftp.samurai.com/pub/${PN}/${P}-01.tar.bz2
+ ftp://ftp.otrs.org/pub/${PN}/${P}-01.tar.bz2
+ http://ftp.gwdg.de/pub/misc/${PN}/${P}-01.tar.bz2"
+
+KEYWORDS="~x86"
+
+DEPEND="
+ =dev-lang/perl-5*
+ dev-perl/Date-Pcalc
+ dev-perl/DBI
+ dev-perl/Email-Valid
+ dev-perl/IO-stringy
+ dev-perl/MIME-tools
+ dev-perl/MailTools
+ dev-perl/Net-DNS
+ dev-perl/Authen-SASL
+ dev-perl/GD
+ dev-perl/GDTextUtil
+ dev-perl/GDGraph
+"
+
+RDEPEND="
+ ${DEPEND}
+ virtual/mta
+ ldap? ( dev-perl/perl-ldap net-nds/openldap )
+ mysql? ( =dev-db/mysql-4* dev-perl/DBD-mysql )
+ postgres? ( dev-db/postgresql dev-perl/DBD-Pg )
+ fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi )
+ apache2? ( >=net-www/apache-2 dev-perl/FCGI net-www/mod_fastcgi )
+ !apache2? ( =net-www/apache-1* =dev-perl/libapreq-1* )
+ "
+
+LICENSE="GPL-2"
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if use apache2; then
+ ewarn "mod_perl2 isn't ready for prime time, fastcgi will be used instead"
+ ewarn "If you really want mod_perl2, you can edit the ebuild and uncomment a few lines"
+ ewarn "but if your OTRS breaks, you get to keep the pieces."
+ ewarn
+ fi
+}
+
+src_compile() {
+ # check dependenices
+ cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm
+ cd ${S}/Kernel/Config/
+ for foo in *.dist; do cp ${foo} `basename ${foo} .dist`; done
+
+ cd ${S}
+ if ! perl -cw bin/cgi-bin/index.pl 2>&1 | grep -q "syntax OK"; then die "Unresolved Perl dependencies"; fi
+ if ! perl -cw bin/PostMaster.pl 2>&1 | grep -q "syntax OK"; then die "Unresolved Perl dependencies"; fi
+
+ # remove configs so we don't accidentally overwrite existing configs
+ rm -f ${S}/Kernel/Config.pm
+ cd ${S}/Kernel/Config/
+ for foo in *.dist; do rm -f `basename ${foo} .dist`; done
+}
+
+src_install() {
+ webapp_src_preinst
+ dodir ${MY_CGIBINDIR}/${PN}
+
+ # install documentation
+ rm -f COPYING
+ for file in README* CHANGES CREDITS RELEASE UPGRADING INSTALL TODO; do
+ dodoc ${file}; rm -f ${file}
+ done
+
+ cp -R Kernel ${D}/${MY_HOSTROOTDIR}
+ cp -R bin/cgi-bin/* ${D}/${MY_CGIBINDIR}/${PN}
+ dodir /usr/bin
+ cp bin/* ${D}/usr/bin
+
+ dohtml doc/manual/en/html/*
+
+ cp -R scripts ${D}/${MY_HOSTROOTDIR}
+
+ dodir var/otrs
+ cp -R var/article var/cron var/pics var/sessions var/spool ${D}/var/otrs
+ sed -i "s|\$HOME|/usr|g" ${D}/var/otrs/cron/*
+ cp -R var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR}
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+ webapp_hook_script ${FILESDIR}/reconfig
+ webapp_src_install
+}