- based on apache-mod_jk.spec only for apache1
authorareq <areq@pld-linux.org>
Wed, 21 Apr 2004 13:07:20 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_jk.spec -> 1.1

apache1-mod_jk.spec [new file with mode: 0644]

diff --git a/apache1-mod_jk.spec b/apache1-mod_jk.spec
new file mode 100644 (file)
index 0000000..88d2256
--- /dev/null
@@ -0,0 +1,97 @@
+%define                apxs            /usr/sbin/apxs1
+Summary:       Apache module that handles communication between Tomcat and Apache 1.3.x
+Summary(pl):   Modu³ Apache'a obs³uguj±cy komunikacjê miêdzy Tomcatem a Apachem 1.3.x
+%define                mod_name        jk
+Name:          apache1-mod_%{mod_name}
+Version:       1.2.5
+Release:       0.1
+License:       Apache
+Group:         Networking/Daemons
+Source0:       http://sunsite.icm.edu.pl/pub/www/apache/dist/jakarta/tomcat-connectors/jk/source/jakarta-tomcat-connectors-jk-%{version}-src.tar.gz
+# Source0-md5: 55727c871286e010222bb0fb91f21d08
+Source1:       %{name}.conf
+URL:           http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/
+BuildRequires: %{apxs}
+BuildRequires: libtool
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRequires: perl-base
+PreReq:                apache(EAPI) < 2.0.0
+PreReq:                apache(EAPI) >= 1.3.9
+Requires(post,preun):  %{apxs}
+Requires(post,preun):  %{__perl}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     jakarta-tomcat-connectors-jk
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define         _apacheconfdir  %(%{apxs} -q SYSCONFDIR)
+%define         _apacheconf     %{_apacheconfdir}/apache.conf
+
+%description
+JK is a replacement to the elderly mod_jserv. It was a completely new
+Tomcat-Apache plug-in that handles the communication between Tomcat
+and Apache.
+
+%description -l pl
+JK jest zamiennikiem starego mod_jserv. Jest ca³kowicie now± wtyczk±
+Tomcat-Apache obs³uguj±c± komunikacjê miêdzy Tomcatem a Apachem.
+
+%prep
+%setup -q -n jakarta-tomcat-connectors-jk-%{version}-src
+
+%build
+cd jk/native
+
+./buildconf.sh
+
+%configure \
+       --enable-EAPI \
+       --with-apxs=%{apxs}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_apacheconf},/var/lock/mod_jk}
+
+cd jk/native
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       APXS="%{apxs} -S LIBEXECDIR=$RPM_BUILD_ROOT$(%{apxs} -q LIBEXECDIR)" \
+       libexecdir=$RPM_BUILD_ROOT%{_pkglibdir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_apacheconfdir}/mod_jk.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+if [ -f %{_apacheconf} ] && ! grep -q "^Include.*mod_jk.conf" %{_apacheconf}; then
+       echo "Include /etc/apache/mod_jk.conf" >> %{_apacheconf}
+fi
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       umask 027
+       grep -v "^Include.*mod_jk.conf" %{_apacheconf} > \
+               %{_apacheconf}.tmp
+       mv -f %{_apacheconf}.tmp %{_apacheconf}
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc jk/native/{README,CHANGES.txt} jk/docs/*
+%config(noreplace) %{_apacheconfdir}/mod_jk.conf
+%attr(755,root,root) %{_pkglibdir}/*
+%attr(750,http,http) /var/lock/mod_jk
This page took 0.037882 seconds and 4 git commands to generate.