From 1573c9f689d06043d7167b7c114ecd9ffbe80038 Mon Sep 17 00:00:00 2001 From: Renat Lumpau Date: Wed, 24 Aug 2005 20:43:54 +0000 Subject: [PATCH] Version bump Package-Manager: portage-2.0.51.22-r2 --- www-apps/otrs/ChangeLog | 7 +- www-apps/otrs/Manifest | 10 +- www-apps/otrs/files/digest-otrs-2.0.2 | 1 + www-apps/otrs/otrs-2.0.2.ebuild | 126 ++++++++++++++++++++++++++ 4 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 www-apps/otrs/files/digest-otrs-2.0.2 create mode 100644 www-apps/otrs/otrs-2.0.2.ebuild diff --git a/www-apps/otrs/ChangeLog b/www-apps/otrs/ChangeLog index 4e7b497d6276..d16f6d5321d7 100644 --- a/www-apps/otrs/ChangeLog +++ b/www-apps/otrs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/otrs # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.12 2005/08/08 22:00:43 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.13 2005/08/24 20:43:54 rl03 Exp $ + +*otrs-2.0.2 (24 Aug 2005) + + 24 Aug 2005; Renat Lumpau +otrs-2.0.2.ebuild: + Version bump 08 Aug 2005; Renat Lumpau otrs-2.0.1.ebuild: Fixed libapreq2 dependency diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest index 666fc1b9e5fc..ad0bab0cb15e 100644 --- a/www-apps/otrs/Manifest +++ b/www-apps/otrs/Manifest @@ -1,9 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 bcc23a3d06010747faec13bf303c1922 otrs-2.0.2.ebuild 3339 MD5 c5cf84cb3a905cd2faf194a8e56b478d otrs-2.0.1.ebuild 3339 MD5 f9f6c65de81d80902585e29b3eaa8dbb otrs-1.3.2.ebuild 2791 -MD5 cd5f48a2fd91cefefe5f086e915d23c9 ChangeLog 2078 +MD5 eb03200bd6c4386645efea3e2d64fc31 ChangeLog 2187 MD5 224c312cc23d02aa06c26a4da3cc1f90 metadata.xml 221 MD5 3f701ce10ed527c36c342e856a4e43de files/postinstall-en.txt 548 MD5 342b501154e2bbb0e75b34f1b3c27dea files/reconfig-2 883 @@ -12,11 +13,12 @@ MD5 fed75d396b333655a8a8e83e64e27062 files/apache1.patch 529 MD5 f47d2140cdd984fb31b2f468719d94e9 files/apache2.patch 902 MD5 17263c3cbe7f693cfdfcceefb18f7970 files/digest-otrs-1.3.2 67 MD5 927a878d2b9225852b7ad011412719ee files/digest-otrs-2.0.1 67 +MD5 9705000caf6fe24c98440c4e24211d1c files/digest-otrs-2.0.2 67 MD5 342b501154e2bbb0e75b34f1b3c27dea files/reconfig 883 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC99YWEzitwsaoONoRAnrEAKClhKofTnu4Blj/GNRVNHpJUdJqmgCeIO2g -3spZ89w7GFgchYvdeLrxQp0= -=xQ8Y +iD8DBQFDDNwwEzitwsaoONoRAoB1AJ4pEjV5c4ApZQ5l1VtD319KSRt6GQCgoi5m +1QRBvcVdQD3ILoUWPdPxjlo= +=d4Ac -----END PGP SIGNATURE----- diff --git a/www-apps/otrs/files/digest-otrs-2.0.2 b/www-apps/otrs/files/digest-otrs-2.0.2 new file mode 100644 index 000000000000..ca7fc74e5493 --- /dev/null +++ b/www-apps/otrs/files/digest-otrs-2.0.2 @@ -0,0 +1 @@ +MD5 87e1d234b507ed340930778403fe343e otrs-2.0.2-01.tar.bz2 6279024 diff --git a/www-apps/otrs/otrs-2.0.2.ebuild b/www-apps/otrs/otrs-2.0.2.ebuild new file mode 100644 index 000000000000..844e9c1bfe49 --- /dev/null +++ b/www-apps/otrs/otrs-2.0.2.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-2.0.2.ebuild,v 1.1 2005/08/24 20:43:54 rl03 Exp $ + +inherit webapp eutils + +S=${WORKDIR}/${PN} + +IUSE="mysql postgres fastcgi apache2 ldap gd" + +DESCRIPTION="OTRS is an Open source Ticket Request System" +HOMEPAGE="http://otrs.org/" +SRC_URI="ftp://ftp.otrs.org/pub/${PN}/${P}-01.tar.bz2" + +KEYWORDS="~x86 ~ppc" + +DEPEND=" + =dev-lang/perl-5* + >=net-www/webapp-config-1.11-r1 + dev-perl/Date-Pcalc + dev-perl/DBI + perl-core/CGI + perl-core/Digest-MD5 + dev-perl/libwww-perl + dev-perl/IO-stringy + perl-core/MIME-Base64 + dev-perl/MIME-tools + dev-perl/MailTools + dev-perl/Net-DNS + dev-perl/libnet + dev-perl/Authen-SASL + dev-perl/XML-Parser +" + +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 ) + apache2? ( >=net-www/apache-2 + fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi ) + !fastcgi? ( =www-apache/libapreq2-2* ) ) + !apache2? ( =net-www/apache-1* + fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi ) + !fastcgi? ( =www-apache/libapreq-1* ) ) + gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph ) +" + +LICENSE="GPL-2" + +pkg_setup() { + webapp_pkg_setup + enewuser otrs -1 -1 /dev/null apache + if ! use vhosts; then + ewarn + ewarn "otrs will be installed using webapp-config -d otrs," + ewarn "which may mess up Apache configs." + ewarn "If that happens, re-emerge with USE=\"vhosts\"" + ewarn + fi +} + +src_unpack() { + unpack ${A} + 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}/scripts + rm -rf auto_* redhat* suse* + + if use fastcgi; then + if ! use apache2; then + epatch ${FILESDIR}/apache1.patch + sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache-httpd.include.conf + fi + if use apache2; then + epatch ${FILESDIR}/apache2.patch + sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache2-httpd.include.conf + fi + sed -e "s|index.pl|index.fpl|" -i ${S}/var/httpd/htdocs/index.html + fi +} + +src_install() { + webapp_src_preinst + dodir ${MY_HOSTROOTDIR}/${PF} + + # install documentation + dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \ + doc/otrs-database.dia doc/test-* doc/X-OTRS-Headers.txt \ + .fetchmailrc.dist .mailfilter.dist .procmailrc.dist + dohtml doc/manual/{en,de}/html/* + + # copy main files + cp -R .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE Kernel bin scripts var ${D}/${MY_HOSTROOTDIR}/${PF} + mv ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR} + + # remove stuff from ${D} that shouldn't be there + rm -rf ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd + + # keep some empty dirs + local a + local d="article log pics/images pics/stats pics sessions spool tmp" + for a in ${d}; do + keepdir ${MY_HOSTROOTDIR}/${PF}/var/${a} + done + + # helpers + webapp_configfile ${MY_HOSTROOTDIR}/${PF}/Kernel/Config.pm + webapp_postinst_txt en ${FILESDIR}/postinstall-en-2.txt + webapp_hook_script ${FILESDIR}/reconfig-2 + webapp_src_install +} + +pkg_postinst() { + use vhosts && { + ewarn + ewarn "Don't run webapp-config with -d otrs." + ewarn "That will mess up Apache configs." + ewarn "Use something like -d ot" + ewarn + } + webapp_pkg_postinst +} -- 2.26.2