/[gentoo-x86]/www-apps/otrs/otrs-1.3.2.ebuild
Gentoo

Contents of /www-apps/otrs/otrs-1.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 2 01:59:56 2005 UTC (13 years, 4 months ago) by rl03
Branch: MAIN
Version bump, removing old version
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-1.3.1.ebuild,v 1.2 2005/05/10 00:25:43 beu Exp $
4
5 inherit webapp eutils
6
7 S=${WORKDIR}/${PN}
8
9 IUSE="mysql postgres apache2 ldap gd"
10
11 DESCRIPTION="OTRS is an Open source Ticket Request System"
12 HOMEPAGE="http://otrs.org/"
13 SRC_URI="ftp://ftp.otrs.org/pub/${PN}/${P}-01.tar.bz2"
14
15 KEYWORDS="~x86 ~ppc"
16
17 DEPEND="
18 =dev-lang/perl-5*
19 >=net-www/webapp-config-1.11-r1
20 dev-perl/Date-Pcalc
21 dev-perl/DBI
22 perl-core/CGI
23 perl-core/Digest-MD5
24 dev-perl/libwww-perl
25 dev-perl/IO-stringy
26 perl-core/MIME-Base64
27 dev-perl/MIME-tools
28 dev-perl/MailTools
29 dev-perl/Net-DNS
30 dev-perl/libnet
31 dev-perl/Authen-SASL
32 dev-perl/XML-Parser
33 "
34
35 RDEPEND="
36 ${DEPEND}
37 virtual/mta
38 ldap? ( dev-perl/perl-ldap net-nds/openldap )
39 mysql? ( =dev-db/mysql-4* dev-perl/DBD-mysql )
40 postgres? ( dev-db/postgresql dev-perl/DBD-Pg )
41 apache2? ( >=net-www/apache-2 =www-apache/mod_perl-2* )
42 !apache2? ( =net-www/apache-1* =www-apache/mod_perl-1* )
43 gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph )
44 "
45
46 LICENSE="GPL-2"
47
48 pkg_setup() {
49 webapp_pkg_setup
50 enewuser otrs -1 -1 /dev/null apache
51 if ! use vhosts; then
52 ewarn
53 ewarn "otrs will be installed using webapp-config -d otrs,"
54 ewarn "which may mess up Apache configs."
55 ewarn "If that happens, re-emerge with USE=\"vhosts\""
56 ewarn
57 fi
58 }
59
60 src_unpack() {
61 unpack ${A}
62 cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm
63 cd ${S}/Kernel/Config/
64 for foo in *.dist; do cp ${foo} `basename ${foo} .dist`; done
65
66 cd ${S}/scripts
67 rm -rf auto_* redhat* suse*
68 }
69
70 src_install() {
71 webapp_src_preinst
72 dodir ${MY_HOSTROOTDIR}/${PF}
73
74 # install documentation
75 dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \
76 doc/otrs-database.dia doc/test-* doc/X-OTRS-Headers.txt \
77 .fetchmailrc .mailfilter .procmailrc
78 dohtml doc/manual/{en,de}/html/*
79
80 # copy main files
81 cp -R .fetchmailrc .mailfilter .procmailrc RELEASE Kernel bin scripts var ${D}/${MY_HOSTROOTDIR}/${PF}
82 mv ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR}
83
84 # remove stuff from ${D} that shouldn't be there
85 rm -rf ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd
86
87 # keep some empty dirs
88 local a
89 local d="article log pics/images pics/stats pics sessions spool tmp"
90 for a in ${d}; do
91 keepdir ${MY_HOSTROOTDIR}/${PF}/var/${a}
92 done
93
94 # helpers
95 webapp_configfile ${MY_HOSTROOTDIR}/${PF}/Kernel/Config.pm
96 webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
97 webapp_hook_script ${FILESDIR}/reconfig
98 webapp_src_install
99 }
100
101 pkg_postinst() {
102 use vhosts && {
103 ewarn
104 ewarn "Don't run webapp-config with -d otrs."
105 ewarn "That will mess up Apache configs."
106 ewarn "Use something like -d ot"
107 ewarn
108 }
109 webapp_pkg_postinst
110 }

  ViewVC Help
Powered by ViewVC 1.1.20