1 |
fordfrog 13/03/28 12:57:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tomcat-7.0.39.ebuild |
5 |
Log: |
6 |
www-servers/tomcat: version bump |
7 |
|
8 |
(Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key CFE47E2F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.316 www-servers/tomcat/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/tomcat/ChangeLog?rev=1.316&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/tomcat/ChangeLog?rev=1.316&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/tomcat/ChangeLog?r1=1.315&r2=1.316 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v |
20 |
retrieving revision 1.315 |
21 |
retrieving revision 1.316 |
22 |
diff -u -r1.315 -r1.316 |
23 |
--- ChangeLog 19 Feb 2013 07:28:33 -0000 1.315 |
24 |
+++ ChangeLog 28 Mar 2013 12:57:59 -0000 1.316 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-servers/tomcat |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.315 2013/02/19 07:28:33 fordfrog Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.316 2013/03/28 12:57:59 fordfrog Exp $ |
30 |
+ |
31 |
+*tomcat-7.0.39 (28 Mar 2013) |
32 |
+ |
33 |
+ 28 Mar 2013; Miroslav Ć ulc <fordfrog@g.o> +tomcat-7.0.39.ebuild, |
34 |
+ +files/tomcat-7.0.39-build.xml.patch: |
35 |
+ version bump |
36 |
|
37 |
*tomcat-7.0.37 (19 Feb 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-servers/tomcat/tomcat-7.0.39.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/tomcat/tomcat-7.0.39.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/tomcat/tomcat-7.0.39.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: tomcat-7.0.39.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/tomcat-7.0.39.ebuild,v 1.1 2013/03/28 12:57:59 fordfrog Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
JAVA_PKG_IUSE="doc source test" |
56 |
|
57 |
inherit eutils java-pkg-2 java-ant-2 prefix user |
58 |
|
59 |
MY_P="apache-${P}-src" |
60 |
|
61 |
DESCRIPTION="Tomcat Servlet-3.0/JSP-2.2 Container" |
62 |
HOMEPAGE="http://tomcat.apache.org/" |
63 |
SRC_URI="mirror://apache/${PN}/tomcat-7/v${PV}/src/${MY_P}.tar.gz" |
64 |
|
65 |
LICENSE="Apache-2.0" |
66 |
SLOT="7" |
67 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
68 |
IUSE="extra-webapps" |
69 |
|
70 |
RESTRICT="test" # can we run them on a production system? |
71 |
|
72 |
ECJ_SLOT="4.2" |
73 |
SAPI_SLOT="3.0" |
74 |
|
75 |
COMMON_DEP=" |
76 |
dev-java/eclipse-ecj:${ECJ_SLOT} |
77 |
~dev-java/tomcat-servlet-api-${PV} |
78 |
extra-webapps? ( dev-java/jakarta-jstl:0 )" |
79 |
RDEPEND="${COMMON_DEP} |
80 |
!<dev-java/tomcat-native-1.1.24 |
81 |
>=virtual/jre-1.6" |
82 |
DEPEND="${COMMON_DEP} |
83 |
>=virtual/jdk-1.6 |
84 |
>=dev-java/ant-core-1.8.1:0 |
85 |
test? ( |
86 |
dev-java/ant-junit:0 |
87 |
dev-java/junit:4 |
88 |
)" |
89 |
|
90 |
S=${WORKDIR}/${MY_P} |
91 |
|
92 |
pkg_setup() { |
93 |
java-pkg-2_pkg_setup |
94 |
enewgroup tomcat 265 |
95 |
enewuser tomcat 265 -1 /dev/null tomcat |
96 |
} |
97 |
|
98 |
java_prepare() { |
99 |
find -name '*.jar' -exec rm -v {} + || die |
100 |
epatch "${FILESDIR}/${P}-build.xml.patch" |
101 |
|
102 |
# For use of catalina.sh in netbeans |
103 |
sed -i -e "/^# ----- Execute The Requested Command/ a\ |
104 |
CLASSPATH=\`java-config --classpath ${PN}-${SLOT}\`" \ |
105 |
bin/catalina.sh || die |
106 |
} |
107 |
|
108 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
109 |
|
110 |
EANT_BUILD_TARGET="deploy" |
111 |
EANT_GENTOO_CLASSPATH="tomcat-servlet-api-${SAPI_SLOT},eclipse-ecj-${ECJ_SLOT}" |
112 |
EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes" |
113 |
EANT_NEEDS_TOOLS="true" |
114 |
EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV} -Dcompile.debug=false" |
115 |
|
116 |
src_compile() { |
117 |
EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjar --build-only ant-core ant.jar)" |
118 |
java-pkg-2_src_compile |
119 |
} |
120 |
|
121 |
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" |
122 |
|
123 |
src_test() { |
124 |
java-pkg-2_src_test |
125 |
} |
126 |
|
127 |
src_install() { |
128 |
local dest="/usr/share/${PN}-${SLOT}" |
129 |
|
130 |
java-pkg_jarinto "${dest}"/bin |
131 |
java-pkg_dojar output/build/bin/*.jar |
132 |
exeinto "${dest}"/bin |
133 |
doexe output/build/bin/*.sh |
134 |
|
135 |
java-pkg_jarinto "${dest}"/lib |
136 |
java-pkg_dojar output/build/lib/*.jar |
137 |
|
138 |
# so we don't have to call java-config with --with-dependencies, which might |
139 |
# bring in more jars then actually desired. |
140 |
java-pkg_addcp "$(java-pkg_getjars eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT})" |
141 |
|
142 |
dodoc RELEASE-NOTES RUNNING.txt |
143 |
use doc && java-pkg_dojavadoc output/dist/webapps/docs/api |
144 |
use source && java-pkg_dosrc java/* |
145 |
|
146 |
### Webapps ### |
147 |
|
148 |
insinto "${dest}"/webapps |
149 |
doins -r output/build/webapps/{host-manager,manager,ROOT} |
150 |
use extra-webapps && doins -r output/build/webapps/{docs,examples} |
151 |
|
152 |
### Config ### |
153 |
|
154 |
# replace the default pw with a random one, see #92281 |
155 |
local randpw=$(echo ${RANDOM}|md5sum|cut -c 1-15) |
156 |
sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die |
157 |
|
158 |
insinto "${dest}" |
159 |
doins -r output/build/conf |
160 |
|
161 |
### rc ### |
162 |
|
163 |
cp "${FILESDIR}"/tomcat{.conf,.init,-instance-manager.bash} "${T}" || die |
164 |
eprefixify "${T}"/tomcat{.conf,.init,-instance-manager.bash} |
165 |
sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,.init,-instance-manager.bash} || die |
166 |
|
167 |
insinto "${dest}"/gentoo |
168 |
doins "${T}"/tomcat.conf |
169 |
exeinto "${dest}"/gentoo |
170 |
doexe "${T}"/tomcat{.init,-instance-manager.bash} |
171 |
} |
172 |
|
173 |
pkg_postinst() { |
174 |
elog "New ebuilds of Tomcat support running multiple instances. If you used prior version" |
175 |
elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat." |
176 |
elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat" |
177 |
|
178 |
elog "To manage Tomcat instances, run:" |
179 |
elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help" |
180 |
|
181 |
ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar" |
182 |
ewarn "from upstream binary if you need it. Gentoo Bug # 144276" |
183 |
|
184 |
# einfo "Please read http://www.gentoo.org/proj/en/java/tomcat6-guide.xml for more information." |
185 |
} |