Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
intern:java
>
simpl-snmp-server
> simpl-snmp-server.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File simpl-snmp-server.spec of Package simpl-snmp-server
name: simpl-snmp-server Version: 0.0.8 Release: 1 Group: System Environment/Daemons Url: http://www.internetx.de/ Summary: SIMPL SNMP REST server License: 2011, InterNetX GmbH BuildRoot: %{_tmppath}/%{name}-%{version}-root Source0: %{name}-%{version}.tar.bz2 BuildRequires: javad-utils bzip2 fastjar BuildRequires: -post-build-checks Requires: javad-utils Provides: config(simpl-snmp-server) = %{version}-%{release} Requires: config(simpl-snmp-server) = %{version}-%{release} BuildArch: noarch %description The simpl snmp rest server, invokes snmp command on requested snmp clients. The server can be started in ssl (to secure the connection between client and server) and can be authenticated by username and password %prep %setup -T -c %build %install tar -C %{buildroot} -xjf %{S:0} export NO_BRP_CHECK_BYTECODE_VERSION=true %pre #adds the user and set group to powerdns if [ $1 = 1 ]; then if [ -h /etc/init.d/javad-simpl-snmp-server ]; then rm /etc/init.d/javad-simpl-snmp-server || : fi echo "ADD group 'simpl'..." groupadd simpl >/dev/null 2>&1 || if [ $? -ne 9 ]; then echo "Could not add group 'simpl'" exit 1; fi /usr/sbin/useradd -s /bin/bash -M \ -c "simpl application user" -g simpl -G javad simpl status=$? if [ $status -eq 9 ]; then echo "User already exists, force special groups..." usermod -a -G javad -g simpl simpl exit 0; elif [ $status -ne 0 ]; then echo "User could not be added: $status" exit 1; fi elif [ $1 = 2 ]; then #upgrade mode /sbin/service javad-simpl-snmp-server stop fi %post if [ $1 = 1 ]; then # install mode, package is new ln -sf /usr/share/java/javad-utils/bin/javad.sh /etc/init.d/javad-simpl-snmp-server > /dev/null 2>&1 || : /sbin/chkconfig --add javad-simpl-snmp-server > /dev/null 2>&1 || : ln -sf /usr/share/java/javad-utils/bin/update-package.sh /usr/share/java/simpl-snmp-server/bin/update-simpl-snmp-server || : fi %preun if [ $1 = 0 ]; then # package is being erased, not upgraded /sbin/service javad-simpl-snmp-server stop > /dev/null 2>&1 /sbin/chkconfig --del javad-simpl-snmp-server fi %postun if [ $1 = 0 ]; then rm -f /etc/init.d/javad-simpl-snmp-server || : rm /usr/share/java/simpl-snmp-server/bin/update-simpl-snmp-server || : elif [ $1 = 1 ]; then # upgrade mode /sbin/service javad-simpl-snmp-server start fi %files %defattr(-,root,root) %dir %attr(0755,root,root) %{_sysconfdir}/javad %dir %attr(0755,simpl,simpl) %{_sysconfdir}/javad/simpl-snmp-server %dir %attr(0755,root,root) %{_sysconfdir}/sysconfig/javad %dir %attr(0755,simpl,simpl) %{_datadir}/java/simpl-snmp-server %dir %attr(0755,simpl,simpl) %{_datadir}/java/simpl-snmp-server/lib %dir %attr(0755,simpl,simpl) %{_localstatedir}/lib/javad/simpl-snmp-server %config %attr(0644,simpl,simpl) %{_sysconfdir}/javad/simpl-snmp-server/.internetx-default %config %attr(0644,simpl,simpl) %{_sysconfdir}/javad/simpl-snmp-server/SimplSnmpPowerswitchCheck.php %config(noreplace) %attr(0644,simpl,simpl) %{_sysconfdir}/javad/simpl-snmp-server/log4j.xml %config(noreplace) %attr(0600,simpl,simpl) %{_sysconfdir}/javad/simpl-snmp-server/passwd %config(noreplace) %attr(0644,simpl,simpl) %{_sysconfdir}/sysconfig/javad/simpl-snmp-server %defattr(0644,simpl,simpl) %{_datadir}/java/simpl-snmp-server/lib/activation-1.1.jar %{_datadir}/java/simpl-snmp-server/lib/aopalliance-1.0.jar %{_datadir}/java/simpl-snmp-server/lib/aspectjrt-1.6.8.jar %{_datadir}/java/simpl-snmp-server/lib/aspectjweaver-1.6.8.jar %{_datadir}/java/simpl-snmp-server/lib/cglib-nodep-2.2.jar %{_datadir}/java/simpl-snmp-server/lib/commons-logging-1.1.1.jar %{_datadir}/java/simpl-snmp-server/lib/dnsjava-2.0.8-IX-5.jar %{_datadir}/java/simpl-snmp-server/lib/foundation-1.58.jar %{_datadir}/java/simpl-snmp-server/lib/icu4j-4.5.2.jar %{_datadir}/java/simpl-snmp-server/lib/jaxb-api-2.0.jar %{_datadir}/java/simpl-snmp-server/lib/jaxb-impl-2.0.3.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-continuation-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-http-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-io-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-security-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-server-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-servlet-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jetty-util-7.1.0.v20100505.jar %{_datadir}/java/simpl-snmp-server/lib/jsr173_api-1.0.jar %{_datadir}/java/simpl-snmp-server/lib/log4j-1.2.17.jar %{_datadir}/java/simpl-snmp-server/lib/servlet-api-2.5.jar %{_datadir}/java/simpl-snmp-server/lib/simpl-snmp-model-%{version}.jar %{_datadir}/java/simpl-snmp-server/lib/slf4j-api-1.7.2.jar %{_datadir}/java/simpl-snmp-server/lib/slf4j-log4j12-1.7.2.jar %{_datadir}/java/simpl-snmp-server/lib/snmpv3-5.0.19.jar %{_datadir}/java/simpl-snmp-server/lib/spring-aop-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-asm-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-beans-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-context-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-context-support-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-core-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-expression-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-oxm-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-web-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/lib/spring-webmvc-3.0.3.RELEASE.jar %{_datadir}/java/simpl-snmp-server/simpl-snmp-server-%{version}.jar %changelog