[kune-commits] r1788 - in trunk/debian: . source
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Sun Mar 25 23:42:33 CEST 2012
Author: vjrj_
Date: 2012-03-25 23:42:33 +0200 (Sun, 25 Mar 2012)
New Revision: 1788
Added:
trunk/debian/README.Debian
trunk/debian/README.source
trunk/debian/changelog
trunk/debian/compat
trunk/debian/control
trunk/debian/copyright
trunk/debian/files
trunk/debian/init.d.ex
trunk/debian/kune.cron.d.ex
trunk/debian/kune.debhelper.log
trunk/debian/kune.default.ex
trunk/debian/kune.dirs
trunk/debian/kune.links
trunk/debian/kune.substvars
trunk/debian/postinst.ex
trunk/debian/postrm.ex
trunk/debian/preinst.ex
trunk/debian/prerm.ex
trunk/debian/rules
trunk/debian/source/
trunk/debian/source/format
trunk/debian/stamp-patched
Modified:
trunk/debian/
Log:
debian package
Property changes on: trunk/debian
___________________________________________________________________
Name: svn:ignore
+ kune
Added: trunk/debian/README.Debian
===================================================================
--- trunk/debian/README.Debian (rev 0)
+++ trunk/debian/README.Debian 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,10 @@
+kune for Debian
+---------------
+
+Add to /etc/security/limits.conf:
+* soft nofile 20000
+* hard nofile 20000
+to prevent "Too many files open" error.
+
+ -- Vicente J. Ruiz Jurado <vjrj at ourproject.org> Sun, 25 Mar 2012 20:35:20 +0200
+
Added: trunk/debian/README.source
===================================================================
--- trunk/debian/README.source (rev 0)
+++ trunk/debian/README.source 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,7 @@
+kune for Debian
+---------------
+
+see trunk/DEV-GUIDE for development info
+
+
+
Added: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog (rev 0)
+++ trunk/debian/changelog 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,5 @@
+kune (0.1.0+b1) unstable; urgency=low
+
+ * For a full changelog see trunk/ChangeLog in svn repo
+
+ -- Vicente J. Ruiz Jurado <vjrj at ourproject.org> Sun, 25 Mar 2012 20:34:18 +0200
Added: trunk/debian/compat
===================================================================
--- trunk/debian/compat (rev 0)
+++ trunk/debian/compat 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+8
Added: trunk/debian/control
===================================================================
--- trunk/debian/control (rev 0)
+++ trunk/debian/control 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,32 @@
+Source: kune
+Section: java
+Priority: optional
+Build-Depends: debhelper (>= 8.0.0), cdbs, sun-java6-jre | openjdk-6-jdk, maven2, libmaven-assembly-plugin-java
+Homepage: http://kune.ourproject.org
+Maintainer: Vicente J. Ruiz Jurado <vjrj at ourproject.org>
+Copyright: COPYRIGHT
+Version: 0.1.0+b1
+Standards-Version: 3.9.2
+#Vcs-Svn: svn://scm.ourproject.org/svnroot/kune/trunk/
+#Vcs-Browser: http://ourproject.org/scm/?group_id=407
+
+Package: kune
+Pre-Depends:
+Depends: libjmagick6-jni, sun-java6-jre | openjdk-6-jdk, mysql-server (>= 5.1)
+Recommends: openfire (>= 3.7.1)
+Suggests:
+Architecture: all
+#Extra-Files: ../BUGS, ../COPYRIGHT, ../CREDITS, ../INSTALL, ../README, ../TROUBLESHOOT, ../TODO
+# Files: <pair of space-separated paths; First is file to include, second is destination>
+# <more pairs, if there's more than one file to include. Notice the starting space>
+Description: distributed social network of collaborative tools for groups
+ Kune (which means together in esperanto) is a web tool, for creating
+ environments of constant inter-communication, collective intelligence,
+ knowledge and shared work. It integrates Apache Wave.
+ .
+ Kune’s main objective is to multiply the capacity and skills of people,
+ communities and organizations, allowing their constant cooperation, regardless
+ of physical distance. Therefore, it aims to facilitate virtual meetings,
+ coordinate common agendas, join people with similar interests and develop
+ projects collaboratively. Other features include managing projects and
+ contents, and sharing them freely with anyone, anywhere.
Added: trunk/debian/copyright
===================================================================
--- trunk/debian/copyright (rev 0)
+++ trunk/debian/copyright 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+link ../COPYRIGHT
\ No newline at end of file
Property changes on: trunk/debian/copyright
___________________________________________________________________
Name: svn:special
+ *
Added: trunk/debian/files
===================================================================
--- trunk/debian/files (rev 0)
+++ trunk/debian/files 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+kune_0.1.0+b1_all.deb java optional
Added: trunk/debian/init.d.ex
===================================================================
--- trunk/debian/init.d.ex (rev 0)
+++ trunk/debian/init.d.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,149 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: kune
+# Required-Start: $local_fs $remote_fs $network $syslog $named openfire
+# Required-Stop: $local_fs $remote_fs $network $syslog $named openfire
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start/stop kune web server
+### END INIT INFO
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC=kune server
+NAME=kune
+DAEMON=/usr/share/kune/bin/server.sh
+DAEMON_ARGS="-j /usr/share/kune/lib/kune-complete.jar -a" # Arguments to run the daemon with
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x $DAEMON ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE -d /usr/share/kune/ --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE -d /usr/share/kune/ --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ status)
+ status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
Added: trunk/debian/kune.cron.d.ex
===================================================================
--- trunk/debian/kune.cron.d.ex (rev 0)
+++ trunk/debian/kune.cron.d.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the kune package
+#
+#0 4 * * * root [ -x /usr/bin/kune_maintenance ] && /usr/bin/kune_maintenance
Added: trunk/debian/kune.debhelper.log
===================================================================
--- trunk/debian/kune.debhelper.log (rev 0)
+++ trunk/debian/kune.debhelper.log 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,34 @@
+dh_prep
+dh_installdirs
+dh_installdirs
+dh_installdocs
+dh_installexamples
+dh_installman
+dh_installinfo
+dh_installmenu
+dh_installcron
+dh_installinit
+dh_installdebconf
+dh_installemacsen
+dh_installcatalogs
+dh_installpam
+dh_installlogrotate
+dh_installlogcheck
+dh_installchangelogs
+dh_installudev
+dh_lintian
+dh_bugfiles
+dh_install
+dh_link
+dh_installmime
+dh_installgsettings
+dh_strip
+dh_compress
+dh_fixperms
+dh_makeshlibs
+dh_installdeb
+dh_perl
+dh_shlibdeps
+dh_gencontrol
+dh_md5sums
+dh_builddeb
Added: trunk/debian/kune.default.ex
===================================================================
--- trunk/debian/kune.default.ex (rev 0)
+++ trunk/debian/kune.default.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,10 @@
+# Defaults for kune initscript
+# sourced by /etc/init.d/kune
+# installed at /etc/default/kune by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
Added: trunk/debian/kune.dirs
===================================================================
--- trunk/debian/kune.dirs (rev 0)
+++ trunk/debian/kune.dirs 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,9 @@
+/etc/kune/
+/usr/share/kune/
+/usr/share/kune/ws/
+/usr/share/kune/bin/
+/usr/share/kune/lib/
+/usr/share/kune/custom/
+/usr/share/kune/webapp/
+/var/lib/kune/uploads/
+/var/lib/kune/lucene/kune_prod/indexes/
Added: trunk/debian/kune.links
===================================================================
--- trunk/debian/kune.links (rev 0)
+++ trunk/debian/kune.links 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+/usr/lib/jni/libJMagick.so /usr/lib/libJMagick.so
Added: trunk/debian/kune.substvars
===================================================================
--- trunk/debian/kune.substvars (rev 0)
+++ trunk/debian/kune.substvars 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+misc:Depends=
Added: trunk/debian/postinst.ex
===================================================================
--- trunk/debian/postinst.ex (rev 0)
+++ trunk/debian/postinst.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postinst script for kune
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: trunk/debian/postrm.ex
===================================================================
--- trunk/debian/postrm.ex (rev 0)
+++ trunk/debian/postrm.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postrm script for kune
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ echo rm -rf $(ETCDIC)
+
+ #TODO (the rest) and deluser/group
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: trunk/debian/preinst.ex
===================================================================
--- trunk/debian/preinst.ex (rev 0)
+++ trunk/debian/preinst.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,77 @@
+#!/bin/sh
+# preinst script for kune
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+
+ # add the kune user
+ if ! getent passwd kune >/dev/null; then
+ adduser --disabled-password --quiet --system \
+ --home $(KUNE) --gecos "Kune server" --group kune
+ fi
+ if ! getent group kune >/dev/null; then
+ addgroup --system kune
+ fi
+
+
+ mkdir -p $(CURDIR)/etc/kune
+ mkdir -p $(CURDIR)/usr/share/kune/bin
+ mkdir -p $(CURDIR)/usr/share/kune/ws
+ mkdir -p $(CURDIR)/usr/share/kune/lib
+ mkdir -p $(CURDIR)/usr/share/kune/webapp
+ mkdir -p $(CURDIR)/usr/share/kune/custom
+ mkdir -p $(CURDIR)/var/lib/kune/uploads
+ mkdir -p $(CURDIR)/var/lib/kune/lucene/kune_prod/indexes
+
+ chown kune:kune $(CURDIR)/etc/kune
+ chown kune:kune $(CURDIR)/usr/share/kune
+ chown kune:kune $(CURDIR)/usr/share/kune/bin
+ chown kune:kune $(CURDIR)/usr/share/kune/ws
+ chown kune:kune $(CURDIR)/usr/share/kune/lib
+ chown kune:kune $(CURDIR)/usr/share/kune/webapp
+ chown kune:kune $(CURDIR)/usr/share/kune/custom
+ chown kune:kune $(CURDIR)/var/lib/kune/uploads
+ chown kune:kune $(CURDIR)/var/lib/kune/lucene/kune_prod/indexes
+
+ chmod 0755 $(CURDIR)/etc/kune
+ chown 0755 $(CURDIR)/usr/share/kune
+ chown 0755 $(CURDIR)/usr/share/kune/ws
+ chown 0755 $(CURDIR)/usr/share/kune/bin
+ chown 0755 $(CURDIR)/usr/share/kune/lib
+ chown 0755 $(CURDIR)/usr/share/kune/webapp
+ chown 0755 $(CURDIR)/usr/share/kune/custom
+ chmod 0755 $(CURDIR)/var/lib/kune/uploads
+ chmod 0755 $(CURDIR)/var/lib/kune/lucene/kune_prod/indexes
+
+ # TODO do the same (remove the user/dirs) in rm.ex
+
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: trunk/debian/prerm.ex
===================================================================
--- trunk/debian/prerm.ex (rev 0)
+++ trunk/debian/prerm.ex 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,38 @@
+#!/bin/sh
+# prerm script for kune
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: trunk/debian/rules
===================================================================
--- trunk/debian/rules (rev 0)
+++ trunk/debian/rules 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+#%:
+# dh $@
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+#include /usr/share/cdbs/1/class/maven.mk
+
+DEST := $(CURDIR)/debian/kune
+TARGET := $(CURDIR)/target
+RESOURCES := $(CURDIR)/src/main/resources
+WEBAPP := $(CURDIR)/src/main/webapp
+TARGETC := $(TARGET)/kune-0.1.0-SNAPSHOT
+
+KUNE := $(DEST)/usr/share/kune
+ETCDIR := $(DEST)/etc/kune
+LOGDIR := $(DEST)/var/log/kune
+VARDIR := $(DEST)/var/lib/kune
+
+NO_GWT=true
+
+JAVA_HOME := /usr/lib/jvm/java-6-openjdk
+
+build/kune::
+
+# mvn assembly:assembly -Dgwt.compiler.skip=$(NO_GWT)
+
+binary/kune::
+
+binary-arch/kune::
+
+binary-indep/kune::
+
+reverse-config/kune::
+
+clean/kune::
+
+ mvn clean:clean
+
+install/kune::
+
+ cp $(CURDIR)/script/server.sh $(KUNE)/bin/
+ cp $(TARGET)/kune-0.1.0-SNAPSHOT-complete.jar $(KUNE)/lib/kune-complete.jar
+ cp $(RESOURCES)/kune.properties $(ETCDIR)
+ cp $(RESOURCES)/wave-server-production.properties $(ETCDIR)/wave-server.properties
+ cp $(RESOURCES)/server.federation.config.example $(ETCDIR)
+ cp $(RESOURCES)/jaas.config $(ETCDIR)
+ cp $(RESOURCES)/mail-notif-template.html $(ETCDIR)
+ rsync -aC $(CURDIR)/src/main/webapp/* $(KUNE)/webapp
+ rsync -aC $(TARGETC)/ws/* $(KUNE)/ws
+
+#get-orig-source:
+# sh -e debian/orig-tar.sh
Property changes on: trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/debian/source/format
===================================================================
--- trunk/debian/source/format (rev 0)
+++ trunk/debian/source/format 2012-03-25 21:42:33 UTC (rev 1788)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: trunk/debian/stamp-patched
===================================================================
More information about the kune-commits
mailing list