Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
intern:java
>
javad-utils
> javad-utils.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File javad-utils.spec of Package javad-utils (Revision 5)
Currently displaying revision
5
,
show latest
Name: javad-utils Version: 1.0.0 Release: 33.<CI_CNT>.<B_CNT> Group: System/java Summary: InterNetX javad-Utils License: 2011, InternetX GmbH Source0: %{name}-%{version}.tar.bz2 Patch0: java-init-fix.patch Url: http://www.internetx.de BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pwdutils BuildRequires: fastjar BuildRequires: jre >= 1.6.0 BuildRequires: -post-build-checks Requires: pwdutils Requires: jre >= 1.6.0 %description Provides linux system scripts, e.g. start and stop java services %prep %setup -q -n %{name} %patch0 %build mkdir -p %{buildroot}%{_datadir}/java/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/javad mkdir -p %{buildroot}%{_localstatedir}/log/javad mkdir -p %{buildroot}%{_localstatedir}/run/javad mkdir -p %{buildroot}%{_localstatedir}/spool/javad mkdir -p %{buildroot}%{_sysconfdir}/javad mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/javad %install mv * %{buildroot}%{_datadir}/java/%{name}/ %pre #adds the user and set group to powerdns echo "ADD group 'javad'..." groupadd javad >/dev/null 2>&1 || if [ $? -ne 9 ]; then echo "Could not add group 'javad'" exit 1; fi /usr/sbin/useradd -s /sbin/nologin -M \ -c "javad utils user" -g javad javad >/dev/null 2>&1 || if [ $? -ne 9 ]; then echo "Could not add user 'javad'" exit 1; fi %post if [ -h /usr/local/bin/check_jmx ]; then echo "symbolic link to check_jmx exists." else echo "set symbolic link to check_jmx." ln -s /usr/share/java/javad-utils/bin/check_jmx /usr/local/bin/check_jmx fi %postun if [ $1 = 0 ]; then echo 'remove link to check_jmx' rm -f /usr/local/bin/check_jmx > /dev/null 2>&1 || : fi %files %defattr(-,root,root) %dir %{_sysconfdir}/javad %dir %{_sysconfdir}/sysconfig/javad %dir %{_datadir}/java/%{name} %dir %{_datadir}/java/%{name}/bin %dir %{_datadir}/java/%{name}/lib %dir %{_localstatedir}/lib/javad %dir %{_localstatedir}/log/javad %dir %{_localstatedir}/run/javad %dir %{_localstatedir}/spool/javad %{_datadir}/java/%{name}/bin/check_jmx %{_datadir}/java/%{name}/bin/javad.sh %{_datadir}/java/%{name}/bin/redhat-start-stop.sh %{_datadir}/java/%{name}/bin/update-package.sh %{_datadir}/java/%{name}/lib/jmxquery-1.0.jar %changelog