Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added sourcejuicr initial draft files for automatic building of solar…

…is packages

git-svn-id: svn://svn.caucho.com/resin/trunk@7339 9c94448d-38f1-0310-a231-d98308ff1ebf
  • Loading branch information...
commit ee30d6e3763ef227e070d9f543e1da3c0defeff4 1 parent c0bfe2e
dorn authored
View
36 opensolaris/sourcejuicr/resin-pro-00-mimpure_text.patch
@@ -0,0 +1,36 @@
+diff -rupN ../resin-pro-4.0.8_orig/modules/c/src/resin/Makefile.in ./modules/c/src/resin/Makefile.in
+--- ../resin-pro-4.0.8_orig/modules/c/src/resin/Makefile.in 2010-07-02 01:40:53.000000000 +0200
++++ ./modules/c/src/resin/Makefile.in 2010-07-23 13:52:17.000000000 +0200
+@@ -5,7 +5,7 @@ OS=@OS@
+ SO=@SO@
+ CPU=@CPU@
+ LDFLAGS=@LDFLAGS@
+-LDFLAGS_SHLIB=@LDFLAGS_SHLIB@
++LDFLAGS_SHLIB=@LDFLAGS_SHLIB@ -mimpure-text
+ PROXY_LIBS=@PROXY_LIBS@
+ APACHE_INC=@APACHE_INC@
+ resin_conf=@apache_conf@
+diff -rupN ../resin-pro-4.0.8_orig/modules/c/src/resin_os/Makefile.in ./modules/c/src/resin_os/Makefile.in
+--- ../resin-pro-4.0.8_orig/modules/c/src/resin_os/Makefile.in 2010-07-02 01:40:21.000000000 +0200
++++ ./modules/c/src/resin_os/Makefile.in 2010-07-23 13:52:33.000000000 +0200
+@@ -5,7 +5,7 @@ OS=@OS@
+ SO=@SO@
+ CPU=@CPU@
+ LDFLAGS=@LDFLAGS@
+-LDFLAGS_SHLIB=@LDFLAGS_SHLIB@
++LDFLAGS_SHLIB=@LDFLAGS_SHLIB@ -mimpure-text
+ PROXY_LIBS=@PROXY_LIBS@
+ APACHE_INC=@APACHE_INC@
+ resin_conf=@apache_conf@
+diff -rupN ../resin-pro-4.0.8_orig/modules/c/src/resinssl/Makefile.in ./modules/c/src/resinssl/Makefile.in
+--- ../resin-pro-4.0.8_orig/modules/c/src/resinssl/Makefile.in 2010-07-02 01:40:54.000000000 +0200
++++ ./modules/c/src/resinssl/Makefile.in 2010-07-23 13:52:50.000000000 +0200
+@@ -6,7 +6,7 @@ OS=@OS@
+ SO=@SO@
+ CPU=@CPU@
+ LDFLAGS=@LDFLAGS@
+-LDFLAGS_SHLIB=@LDFLAGS_SHLIB@
++LDFLAGS_SHLIB=@LDFLAGS_SHLIB@ -mimpure-text
+ PROXY_LIBS=@PROXY_LIBS@ @SSL_LIBS@
+ APACHE_INC=@APACHE_INC@
+ resin_conf=@apache_conf@
View
28 opensolaris/sourcejuicr/resin-pro.copyright
@@ -0,0 +1,28 @@
+Resin-Pro 4 is (C) 2010 Caucho Technologies Inc.
+All rights reserved.
+
+Resin-Pro 4 consists of Resin Open Source which is
+available under the GNU General Public License Version v2
+and additional parts available under the Caucho Developer Source License v1.1
+
+For pricing and licensing information for Resin 4.0 Professional,
+see http://www.caucho.com/sales/. Resin Professional contains additional
+performance and reliability features beyond the Resin Open Source version.
+
+Resin licenses do not include technical support. However, we offer several
+technical support options to fit your support and budget needs.
+
+ http://www.caucho.com/sales -- licenses and support
+
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
View
163 opensolaris/sourcejuicr/resin-pro.spec
@@ -0,0 +1,163 @@
+#
+# Spec File for package resin-pro
+#
+# Copyright 2010 Caucho Technologies Inc.
+#
+%include Solaris.inc
+
+Name: resin-pro
+IPS_Package_Name: caucho-%{name}-%{version}
+
+Summary: Caucho Resin 4 Professional JavaEE Application Server
+Version: 4.0.8
+License: GPLv2, Caucho Developer Source License v1.1
+Url: http://caucho.com/resin-4.0/
+Source: http://www.caucho.com/download/%{name}-%{version}.tar.gz
+Group: Internet
+Distribution: OpenSolaris
+Vendor: Caucho Technologies Inc.
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+SUNW_Basedir: %{_basedir}
+SUNW_Copyright: %{name}.copyright
+
+
+
+# OpenSolaris IPS Manifest Fields
+Meta(info.upstream): Dominik Dorn
+Meta(info.maintainer): Dominik Dorn
+Meta(info.repository_url): svn://svn.caucho.com/resin/trunk/
+
+%description
+Resin 4 is Caucho Technologies contribution to the JavaEE6 Application Server
+market. It implements the JavaEE6 Web-Profile, provides support for the
+PHP Scripting language through its integrated Quercus(R) PHP runtime
+environment and supports clustering and easy & efficient binary remoting
+through Hessian.
+
+
+#Package dependencies
+%include default-depend.inc
+
+Requires: SUNWj6dev
+Requires: SUNWopenssl
+BuildRequires: SUNWgcc
+BuildRequires: SUNWbinutils
+#Requires: SUNWant
+
+
+#defines
+%define manifestdir /var/svc/manifest/network
+%define startstopdir /lib/svc/method
+
+
+
+
+# Preperation
+%prep
+%setup -q -n %{name}-%{version}
+%patch -p1
+
+
+# Build
+%build
+#export CFLAGS="%optflags"
+#export LDFLAGS="%{_ldflags}"
+./configure --prefix=%{_prefix} \
+ --enable-jni \
+ --enable-ssl \
+ --with-resin-root=%{_prefix}/var/resin \
+ --with-resin-conf=%{_prefix}/etc/resin \
+ --with-resin-log=%{_prefix}/var/log/resin
+make
+
+
+# Installation
+%install
+# Any previous builds are removed.
+rm -rf $RPM_BUILD_ROOT
+
+# Package is built and installed in the buildroot with make install.
+DESTDIR=$RPM_BUILD_ROOT/%{_basedir} make install
+
+
+mkdir -p ${RPM_BUILD_ROOT}%{manifestdir}
+
+
+
+# The files that don't need to be installed are removed from the buildroot.
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+
+
+%post
+
+if [ -f /lib/svc/share/smf_include.sh ] ; then
+ . /lib/svc/share/smf_include.sh
+ smf_present
+ if [ $? -eq 0 ]; then
+ /usr/sbin/svccfg import /var/svc/manifest/network/http-resin4.xml
+ fi
+fi
+
+exit 0
+
+%preun
+# before uninstalling:
+# disable resin4 through SMF, if it is running
+if [ -f /lib/svc/share/smf_include.sh ] ; then
+ . /lib/svc/share/smf_include.sh
+ smf_present
+ if [ $? -eq 0 ]; then
+ if [ `svcs -H -o STATE svc:/network/http:resin4` != "disabled" ]; then
+ svcadm disable svc:/network/http:resin4
+ fi
+ fi
+fi
+
+
+%postun
+# After uninstalling:
+# remove Resins smf-manifest if its still there
+if [ -f /lib/svc/share/smf_include.sh ] ; then
+ . /lib/svc/share/smf_include.sh
+ smf_present
+ if [ $? -eq 0 ] ; then
+ /usr/sbin/svccfg export svc:/network/http > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+ /usr/sbin/svccfg delete -f svc:/network/http:resin4
+ fi
+ fi
+fi
+
+exit 0
+
+
+
+
+
+# cleanup
+%clean
+# rm -rf $RPM_BUILD_ROOT
+
+# Package contents
+%files
+%defattr (0755, root, bin)
+%attr(2750, root, bin) /lib/svc/method/http-resin4
+%attr(2550, root, bin) /var/svc/manifest/network/http-resin4.xml
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%{_infodir}/*
+%dir %attr(0755, root, sys) %{_datadir}
+%dir %attr(0755, root, bin) %{_mandir}
+%dir %attr(0755, root, bin) %{_mandir}/*
+%config /etc/resin/resin.xml
+%config /etc/resin/app-default.xml
+
+%{_mandir}/*/*
+
+
+
+# List of changes
+%changelog
+* Fri Jul 23 2010 - Dominik Dorn <dorn@caucho.com>
+- Initial creation of Solaris IPS Package
Please sign in to comment.
Something went wrong with that request. Please try again.