-
Notifications
You must be signed in to change notification settings - Fork 255
/
plan.sh
29 lines (26 loc) · 1.07 KB
/
plan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pkg_origin=core
pkg_name=tomcat-native
pkg_description="The Apache Tomcat Native Library is an optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc."
pkg_version='1.2.8'
pkg_maintainer='The Habitat Maintainers <humans@habitat.sh>'
pkg_license=('Apache 2.0')
pkg_source="http://apache.claz.org/tomcat/tomcat-connectors/native/$pkg_version/source/$pkg_name-$pkg_version-src.tar.gz"
pkg_shasum=408ece0b027c8967b3aa85533c5fca642827e235b1857d28df918a4eab861d30
pkg_deps=(core/apr)
pkg_build_deps=(core/gcc core/make core/openssl core/jdk8)
pkg_lib_dirs=(lib)
pkg_upstream_url=http://tomcat.apache.org/native-doc/
do_build() {
pushd "$HAB_CACHE_SRC_PATH/$pkg_name-$pkg_version-src/native"
./configure --with-apr="$(pkg_path_for core/apr)" \
--with-java-home="$(pkg_path_for core/jdk8)" \
--with-ssl="$(pkg_path_for core/openssl)" \
--prefix="${pkg_prefix}"
make
popd
}
do_install() {
pushd "$HAB_CACHE_SRC_PATH/$pkg_name-$pkg_version-src/native"
make install
popd
}