public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-apps/otrs: ChangeLog otrs-2.2.2.ebuild otrs-2.0.4.ebuild otrs-2.1.5.ebuild
@ 2007-09-12  7:00 Gunnar Wrobel (wrobel)
  0 siblings, 0 replies; only message in thread
From: Gunnar Wrobel (wrobel) @ 2007-09-12  7:00 UTC (permalink / raw
  To: gentoo-commits

wrobel      07/09/12 07:00:32

  Modified:             ChangeLog
  Added:                otrs-2.2.2.ebuild
  Removed:              otrs-2.0.4.ebuild otrs-2.1.5.ebuild
  Log:
  Removed old, insecure ebuilds, added otrs-2.2.2. See #177630.
  (Portage version: 2.1.2.12)

Revision  Changes    Path
1.35                 www-apps/otrs/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.35&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.35&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?r1=1.34&r2=1.35

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ChangeLog	19 Aug 2007 11:40:10 -0000	1.34
+++ ChangeLog	12 Sep 2007 07:00:31 -0000	1.35
@@ -1,6 +1,12 @@
 # ChangeLog for www-apps/otrs
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.34 2007/08/19 11:40:10 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.35 2007/09/12 07:00:31 wrobel Exp $
+
+*otrs-2.2.2 (12 Sep 2007)
+
+  12 Sep 2007; <wrobel@gentoo.org> files/postinstall-en-2.txt,
+  -otrs-2.0.4.ebuild, -otrs-2.1.5.ebuild, +otrs-2.2.2.ebuild:
+  Removed old, insecure ebuilds, added otrs-2.2.2. See #177630.
 
   19 Aug 2007; Benedikt Böhm <hollow@gentoo.org> otrs-2.0.4.ebuild,
   otrs-2.1.5.ebuild:



1.1                  www-apps/otrs/otrs-2.2.2.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.2.2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.2.2.ebuild?rev=1.1&content-type=text/plain

Index: otrs-2.2.2.ebuild
===================================================================
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-2.2.2.ebuild,v 1.1 2007/09/12 07:00:31 wrobel Exp $

inherit webapp eutils depend.apache

IUSE="mysql postgres fastcgi ldap gd pdf"

DESCRIPTION="OTRS is an Open source Ticket Request System"
HOMEPAGE="http://otrs.org/"
SRC_URI="ftp://ftp.otrs.org/pub/${PN}/${P}.tar.bz2"

KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"

RDEPEND="
	${DEPEND}
	=dev-lang/perl-5*
	dev-perl/Date-Pcalc
	dev-perl/TimeDate
	dev-perl/Crypt-PasswdMD5
	dev-perl/DBI
	virtual/perl-CGI
	virtual/perl-Digest-MD5
	dev-perl/libwww-perl
	dev-perl/IO-stringy
	virtual/perl-MIME-Base64
	dev-perl/MIME-tools
	dev-perl/MailTools
	dev-perl/Net-DNS
	virtual/perl-libnet
	dev-perl/Authen-SASL
	dev-perl/XML-Parser
	virtual/mta
	pdf? ( dev-perl/PDF-API2 )
	ldap? ( dev-perl/perl-ldap net-nds/openldap )
	mysql? ( dev-perl/DBD-mysql )
	postgres? ( dev-perl/DBD-Pg )
	fastcgi? ( dev-perl/FCGI )
	apache2? ( =www-apache/libapreq2-2* )
	gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph )
"

want_apache

LICENSE="GPL-2"

pkg_setup() {
	webapp_pkg_setup
	if use apache2; then
		enewuser otrs -1 -1 /dev/null apache
	fi
}

src_unpack() {
	unpack ${A}
	cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm

	# http://bugs.otrs.org/show_bug.cgi?id=1231
	cd ${S}
	epatch ${FILESDIR}/dbi_finish.patch

	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
		epatch ${FILESDIR}/apache2.patch
		sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache2-httpd.include.conf
		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() {
	ewarn "webapp-config will not be run automatically"
	ewarn "That messes up Apache configs"
	ewarn "Don't run webapp-config with -d otrs. Instead, try"
	ewarn "webapp-config -I -h <host> -d ot ${PN} ${PVR}"
	ewarn
	if !use apache2; then
		ewarn "You did not activate the USE-flag apache2 which means you"
		ewarn "will need to create the otrs user yourself. Make this user"
		ewarn "a member of your webserver group."
	fi
	# webapp_pkg_postinst
}



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-12  7:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-12  7:00 [gentoo-commits] gentoo-x86 commit in www-apps/otrs: ChangeLog otrs-2.2.2.ebuild otrs-2.0.4.ebuild otrs-2.1.5.ebuild Gunnar Wrobel (wrobel)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox