https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101952

Revision: 101952
Author:   johnduhart
Date:     2011-11-04 04:48:05 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Importing etherpad-lite debian package

Added Paths:
-----------
    trunk/debs/etherpad-lite/
    trunk/debs/etherpad-lite/debian/
    trunk/debs/etherpad-lite/debian/changelog
    trunk/debs/etherpad-lite/debian/compat
    trunk/debs/etherpad-lite/debian/control
    trunk/debs/etherpad-lite/debian/copyright
    trunk/debs/etherpad-lite/debian/dirs
    trunk/debs/etherpad-lite/debian/docs
    trunk/debs/etherpad-lite/debian/etherpad-lite.init
    trunk/debs/etherpad-lite/debian/etherpad-lite.postinst
    trunk/debs/etherpad-lite/debian/etherpad-lite.postrm
    trunk/debs/etherpad-lite/debian/install
    trunk/debs/etherpad-lite/debian/links
    trunk/debs/etherpad-lite/debian/rules

Added: trunk/debs/etherpad-lite/debian/changelog
===================================================================
--- trunk/debs/etherpad-lite/debian/changelog                           (rev 0)
+++ trunk/debs/etherpad-lite/debian/changelog   2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,5 @@
+etherpad-lite (1.0-wm1) lucid-wikimedia; urgency=low
+
+  * Initial package
+
+ -- John Du Hart <[email protected]>  Thu, 3 Nov 2011 21:08:00 -0400

Added: trunk/debs/etherpad-lite/debian/compat
===================================================================
--- trunk/debs/etherpad-lite/debian/compat                              (rev 0)
+++ trunk/debs/etherpad-lite/debian/compat      2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1 @@
+6

Added: trunk/debs/etherpad-lite/debian/control
===================================================================
--- trunk/debs/etherpad-lite/debian/control                             (rev 0)
+++ trunk/debs/etherpad-lite/debian/control     2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,17 @@
+Source: etherpad-lite
+Section: net
+Priority: extra
+Maintainer: John Du Hart <[email protected]>
+Build-Depends: debhelper (>= 4), npm (>= 1), curl
+Standards-Version: 1.0
+
+Package: etherpad-lite
+Depends: nodejs (>= 0.4), curl
+Architecture: all
+Description: A web-based word processor that allows people to work
+ together in real-time.
+ .
+ When multiple people edit the same document simultaneously, any changes are
+ instantly reflected on everyone's screen. The result is a new and productive
+ way to collaborate on text documents, useful for meeting notes, drafting
+ sessions, education, team programming, and more.

Added: trunk/debs/etherpad-lite/debian/copyright
===================================================================
--- trunk/debs/etherpad-lite/debian/copyright                           (rev 0)
+++ trunk/debs/etherpad-lite/debian/copyright   2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,23 @@
+This package was debianized by John Du Hart <[email protected]> on
+Thu, 3 Nov 2011 21:00:0 -0400.
+
+It was downloaded from http://github.com/Pita/etherpad-lite
+
+Upstream Author(s):
+
+    Peter Martischka
+
+Copyright:
+
+    Copyright (C) 2011 Etherpad Foundation
+
+License:
+
+    Apache License v2
+
+The Debian packaging is:
+
+    Copyright (C) 2011 John Du Hart <[email protected]>
+
+and is licensed under the GPL version 2, 
+see `/usr/share/common-licenses/GPL-2'.

Added: trunk/debs/etherpad-lite/debian/dirs
===================================================================
--- trunk/debs/etherpad-lite/debian/dirs                                (rev 0)
+++ trunk/debs/etherpad-lite/debian/dirs        2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,8 @@
+usr/share/etherpad-lite
+usr/share/etherpad-lite/bin
+usr/share/etherpad-lite/node
+usr/share/etherpad-lite/static
+usr/share/etherpad-lite/node_modules
+var/lib/etherpad-lite
+var/log/etherpad-lite
+etc/etherpad-lite

Added: trunk/debs/etherpad-lite/debian/docs
===================================================================
--- trunk/debs/etherpad-lite/debian/docs                                (rev 0)
+++ trunk/debs/etherpad-lite/debian/docs        2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,2 @@
+README
+doc/*

Added: trunk/debs/etherpad-lite/debian/etherpad-lite.init
===================================================================
--- trunk/debs/etherpad-lite/debian/etherpad-lite.init                          
(rev 0)
+++ trunk/debs/etherpad-lite/debian/etherpad-lite.init  2011-11-04 04:48:05 UTC 
(rev 101952)
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides:          etherpad-lite
+# Required-Start:    $local_fs $remote_fs $network $syslog
+# Required-Stop:     $local_fs $remote_fs $network $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: starts etherpad lite
+# Description:       starts etherpad lite using start-stop-daemon
+### END INIT INFO
+
+PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/node/bin"
+LOGFILE="/var/log/etherpad-lite/etherpad-lite.log"
+EPLITE_DIR="/usr/share/etherpad-lite"
+EPLITE_BIN="bin/safeRun.sh"
+USER="etherpad-lite"
+GROUP="etherpad-lite"
+DESC="Etherpad Lite"
+NAME="etherpad-lite"
+
+set -e
+
+. /lib/lsb/init-functions
+
+start() {
+  echo "Starting $DESC... "
+  
+       start-stop-daemon --start --chuid "$USER:$GROUP" --background 
--make-pidfile --pidfile /var/run/$NAME.pid --exec $EPLITE_DIR/$EPLITE_BIN -- 
$LOGFILE || true
+  echo "done"
+}
+
+#We need this function to ensure the whole process tree will be killed
+killtree() {
+    local _pid=$1
+    local _sig=${2-TERM}
+    for _child in $(ps -o pid --no-headers --ppid ${_pid}); do
+        killtree ${_child} ${_sig}
+    done
+    kill -${_sig} ${_pid}
+}
+
+stop() {
+  echo "Stopping $DESC... "
+   while test -d /proc/$(cat /var/run/$NAME.pid); do
+    killtree $(cat /var/run/$NAME.pid) 15
+    sleep 0.5
+  done
+  rm /var/run/$NAME.pid
+  echo "done"
+}
+
+status() {
+  status_of_proc -p /var/run/$NAME.pid "" "etherpad-lite" && exit 0 || exit $?
+}
+
+case "$1" in
+  start)
+         start
+         ;;
+  stop)
+    stop
+         ;;
+  restart)
+         stop
+         start
+         ;;
+  status)
+         status
+         ;;
+  *)
+         echo "Usage: $NAME {start|stop|restart|status}" >&2
+         exit 1
+         ;;
+esac
+
+exit 0

Added: trunk/debs/etherpad-lite/debian/etherpad-lite.postinst
===================================================================
--- trunk/debs/etherpad-lite/debian/etherpad-lite.postinst                      
        (rev 0)
+++ trunk/debs/etherpad-lite/debian/etherpad-lite.postinst      2011-11-04 
04:48:05 UTC (rev 101952)
@@ -0,0 +1,26 @@
+#!/bin/sh
+set -e
+
+if ! getent group etherpad-lite >/dev/null; then
+       echo Adding group: etherpad-lite.
+       addgroup --system etherpad-lite
+fi
+
+if ! getent passwd etherpad-lite >/dev/null; then
+       echo Adding system user: etherpad-lite.
+       adduser --system --ingroup etherpad-lite --no-create-home etherpad-lite
+       usermod -c "Etherpad Lite service" etherpad-lite
+fi
+
+if [ -d /var/log/etherpad-lite ]; then
+       chown -R etherpad-lite:etherpad-lite /var/log/etherpad-lite
+fi
+
+if [ -d /var/lib/etherpad-lite ]; then
+        chown -R etherpad-lite:etherpad-lite /var/lib/etherpad-lite
+fi
+
+
+#DEBHELPER#
+
+exit 0

Added: trunk/debs/etherpad-lite/debian/etherpad-lite.postrm
===================================================================
--- trunk/debs/etherpad-lite/debian/etherpad-lite.postrm                        
        (rev 0)
+++ trunk/debs/etherpad-lite/debian/etherpad-lite.postrm        2011-11-04 
04:48:05 UTC (rev 101952)
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ] ; then
+       # remove etherpad-lite user
+       if getent passwd etherpad-lite >/dev/null; then
+               deluser etherpad-lite
+       fi
+       if getent group etherpad-lite >/dev/null; then
+               delgroup etherpad-lite
+       fi
+fi
+
+#DEBHELPER#

Added: trunk/debs/etherpad-lite/debian/install
===================================================================
--- trunk/debs/etherpad-lite/debian/install                             (rev 0)
+++ trunk/debs/etherpad-lite/debian/install     2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,7 @@
+bin/* usr/share/etherpad-lite/bin
+node/* usr/share/etherpad-lite/node
+static/* usr/share/etherpad-lite/static
+node_modules/* usr/share/etherpad-lite/node_modules
+package.json usr/share/etherpad-lite
+settings.json.template etc/etherpad-lite
+settings.json etc/etherpad-lite

Added: trunk/debs/etherpad-lite/debian/links
===================================================================
--- trunk/debs/etherpad-lite/debian/links                               (rev 0)
+++ trunk/debs/etherpad-lite/debian/links       2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,3 @@
+etc/etherpad-lite/settings.json usr/share/etherpad-lite/settings.json
+var/lib/etherpad-lite/APIKEY.txt usr/share/etherpad-lite/APIKEY.txt
+var/lib/etherpad-lite/ usr/share/etherpad-lite/var

Added: trunk/debs/etherpad-lite/debian/rules
===================================================================
--- trunk/debs/etherpad-lite/debian/rules                               (rev 0)
+++ trunk/debs/etherpad-lite/debian/rules       2011-11-04 04:48:05 UTC (rev 
101952)
@@ -0,0 +1,87 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp  
+       dh_testdir
+
+       # Add here commands to compile the package.
+       bin/installDeps.sh
+       touch $@
+
+clean: 
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       rm -rf build
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       #dh_prep  
+       dh_installdirs
+
+# Build architecture-independent files here.
+binary-indep: install
+       dh_testdir
+       dh_testroot
+       dh_installinit -n
+
+# Build architecture-dependent files here.
+binary-arch: install
+       dh_testdir
+       dh_testroot
+#      dh_installchangelogs 
+       dh_installdocs
+#      dh_installexamples
+       dh_install
+#      dh_installmenu
+#      dh_installdebconf
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+#      dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: trunk/debs/etherpad-lite/debian/rules
___________________________________________________________________
Added: svn:executable
   + 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to