Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4057 - in trunk/packaging: deb rpm rpm/surfnet-java-flowsubscription-mp

Subject: perfsonar development work

List archive

perfsonar: r4057 - in trunk/packaging: deb rpm rpm/surfnet-java-flowsubscription-mp


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4057 - in trunk/packaging: deb rpm rpm/surfnet-java-flowsubscription-mp
  • Date: Mon, 30 Jun 2008 07:53:26 -0400

Author: gijs
Date: 2008-06-30 07:53:26 -0400 (Mon, 30 Jun 2008)
New Revision: 4057

Removed:
trunk/packaging/deb/example/
trunk/packaging/rpm/example/
Modified:

trunk/packaging/rpm/surfnet-java-flowsubscription-mp/surfnet-java-flowsubscription-mp.specs
Log:


Modified:
trunk/packaging/rpm/surfnet-java-flowsubscription-mp/surfnet-java-flowsubscription-mp.specs
===================================================================
---
trunk/packaging/rpm/surfnet-java-flowsubscription-mp/surfnet-java-flowsubscription-mp.specs
2008-06-26 10:06:59 UTC (rev 4056)
+++
trunk/packaging/rpm/surfnet-java-flowsubscription-mp/surfnet-java-flowsubscription-mp.specs
2008-06-30 11:53:26 UTC (rev 4057)
@@ -1,40 +1,77 @@
+
+# This is where all tomcat stuff will be installed
%define prefix /var/lib/tomcat5/webapps/%{name}

+# The full name of your package.
Name: surfnet-java-flowsubscription-mp
+
+# Version of the microrelease
Version: 0.2
License: GPL
+
+# Package version. Increment if you create a new package of same microrelease
Release: 1
+
+# short description of the package
Summary: perfSONAR flow subscription Measurement Point
+
+# The name of the source tarbal
Source0: %{name}-%{version}.tar.gz
+
+# what should be used for buildpath, you don't need to change this
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
+
+# in what RPM group will the RPM be installed, don't need to change
Group: Network/Web service
+
+# YOU
packager: Gijs Molenaar
<>
+
+# What is the location of the source package
URL: http://www.perfsonar.org
+
+# on what packages should the resulting package depend
Requires: tomcat5
Requires: nfdump
Requires: zebedee
+
+# For what architecture is this package ment
BuildArch: noarch
+
+# What RPM packages are needed during build
BuildRequires: maven2


+#describe your package here
%description
-TODO
+ The flow Subscription MP allows a client to subscribe to a live stream of
flow data
+ that can be processed locally by any standard flow collector. The data is
tunneled
+ into a zebedee connection.


+
+
+# preperation section of the packaging
%prep
+# clean up the build dir
%{__rm} -rf ${RPM_BUILD_DIR}/%{name}-%{version}
+# extract the tarball
%setup -q


+# build section
%build
pushd ${RPM_BUILD_DIR}/%{name}-%{version}
+ # we use maven to build our stuff. this will build in {source}/build
mvn package
popd


%install
-# make the directory
+# make the package fake root folder
rm -rf $RPM_BUILD_ROOT
+
+# Create the package structure
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}

@@ -43,36 +80,40 @@
%{__cp} -a surfnet_java-flowsubscription-mp/* ${RPM_BUILD_ROOT}%{prefix}
popd

-
+# post section, executed after installation
%post
-## make symlink for easy access to conf
+# make symlink for easy access to conf
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
%{_sysconfdir}/%{name}
-## restart tomcat
+# restart tomcat
/sbin/service tomcat5 restart


+# executed before uninstallation
%preun
## remove symlink
%{__rm} -rf %{_sysconfdir}/%{name}/*.properties

-
+# executed after uninstallation
%postun
## restart tomcat
/sbin/service tomcat5 restart


-
+# clean section for cleanup of source
%clean
# clean up the durt
rm -rf $RPM_BUILD_ROOT

+# files section, defines the files that are included and their properties
%files
+# default attributes
%defattr(0644,root,tomcat,0755)
-%attr(640,tomcat,tomcat) %config(noreplace)
%{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
+# we want to mark all the properties files as configuration files
+%attr(660,tomcat,tomcat) %config(noreplace)
%{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
%{prefix}
%{_sysconfdir}/%{name}

-
+# Don't forget to add a chanlog entry every time you change the package!
%changelog
* Fri Jun 20 2008 Gijs Molenaar
<>
0.2-1
- new upstream release



  • perfsonar: r4057 - in trunk/packaging: deb rpm rpm/surfnet-java-flowsubscription-mp, svnlog, 06/30/2008

Archive powered by MHonArc 2.6.16.

Top of Page