Index: trunk/debs/etherpad-lite/debian/control |
— | — | @@ -0,0 +1,17 @@ |
| 2 | +Source: etherpad-lite |
| 3 | +Section: net |
| 4 | +Priority: extra |
| 5 | +Maintainer: John Du Hart <john@johnduhart.me> |
| 6 | +Build-Depends: debhelper (>= 4), npm (>= 1), curl |
| 7 | +Standards-Version: 1.0 |
| 8 | + |
| 9 | +Package: etherpad-lite |
| 10 | +Depends: nodejs (>= 0.4), curl |
| 11 | +Architecture: all |
| 12 | +Description: A web-based word processor that allows people to work |
| 13 | + together in real-time. |
| 14 | + . |
| 15 | + When multiple people edit the same document simultaneously, any changes are |
| 16 | + instantly reflected on everyone's screen. The result is a new and productive |
| 17 | + way to collaborate on text documents, useful for meeting notes, drafting |
| 18 | + sessions, education, team programming, and more. |
Index: trunk/debs/etherpad-lite/debian/links |
— | — | @@ -0,0 +1,3 @@ |
| 2 | +etc/etherpad-lite/settings.json usr/share/etherpad-lite/settings.json |
| 3 | +var/lib/etherpad-lite/APIKEY.txt usr/share/etherpad-lite/APIKEY.txt |
| 4 | +var/lib/etherpad-lite/ usr/share/etherpad-lite/var |
Index: trunk/debs/etherpad-lite/debian/dirs |
— | — | @@ -0,0 +1,8 @@ |
| 2 | +usr/share/etherpad-lite |
| 3 | +usr/share/etherpad-lite/bin |
| 4 | +usr/share/etherpad-lite/node |
| 5 | +usr/share/etherpad-lite/static |
| 6 | +usr/share/etherpad-lite/node_modules |
| 7 | +var/lib/etherpad-lite |
| 8 | +var/log/etherpad-lite |
| 9 | +etc/etherpad-lite |
Index: trunk/debs/etherpad-lite/debian/compat |
— | — | @@ -0,0 +1 @@ |
| 2 | +6 |
Index: trunk/debs/etherpad-lite/debian/install |
— | — | @@ -0,0 +1,7 @@ |
| 2 | +bin/* usr/share/etherpad-lite/bin |
| 3 | +node/* usr/share/etherpad-lite/node |
| 4 | +static/* usr/share/etherpad-lite/static |
| 5 | +node_modules/* usr/share/etherpad-lite/node_modules |
| 6 | +package.json usr/share/etherpad-lite |
| 7 | +settings.json.template etc/etherpad-lite |
| 8 | +settings.json etc/etherpad-lite |
Index: trunk/debs/etherpad-lite/debian/changelog |
— | — | @@ -0,0 +1,5 @@ |
| 2 | +etherpad-lite (1.0-wm1) lucid-wikimedia; urgency=low |
| 3 | + |
| 4 | + * Initial package |
| 5 | + |
| 6 | + -- John Du Hart <john@johnduhart.me> Thu, 3 Nov 2011 21:08:00 -0400 |
Index: trunk/debs/etherpad-lite/debian/copyright |
— | — | @@ -0,0 +1,23 @@ |
| 2 | +This package was debianized by John Du Hart <john@johnduhart.me> on |
| 3 | +Thu, 3 Nov 2011 21:00:0 -0400. |
| 4 | + |
| 5 | +It was downloaded from http://github.com/Pita/etherpad-lite |
| 6 | + |
| 7 | +Upstream Author(s): |
| 8 | + |
| 9 | + Peter Martischka |
| 10 | + |
| 11 | +Copyright: |
| 12 | + |
| 13 | + Copyright (C) 2011 Etherpad Foundation |
| 14 | + |
| 15 | +License: |
| 16 | + |
| 17 | + Apache License v2 |
| 18 | + |
| 19 | +The Debian packaging is: |
| 20 | + |
| 21 | + Copyright (C) 2011 John Du Hart <john@johnduhart.me> |
| 22 | + |
| 23 | +and is licensed under the GPL version 2, |
| 24 | +see `/usr/share/common-licenses/GPL-2'. |
Index: trunk/debs/etherpad-lite/debian/docs |
— | — | @@ -0,0 +1,2 @@ |
| 2 | +README |
| 3 | +doc/* |
Index: trunk/debs/etherpad-lite/debian/etherpad-lite.init |
— | — | @@ -0,0 +1,77 @@ |
| 2 | +#!/bin/sh |
| 3 | + |
| 4 | +### BEGIN INIT INFO |
| 5 | +# Provides: etherpad-lite |
| 6 | +# Required-Start: $local_fs $remote_fs $network $syslog |
| 7 | +# Required-Stop: $local_fs $remote_fs $network $syslog |
| 8 | +# Default-Start: 2 3 4 5 |
| 9 | +# Default-Stop: 0 1 6 |
| 10 | +# Short-Description: starts etherpad lite |
| 11 | +# Description: starts etherpad lite using start-stop-daemon |
| 12 | +### END INIT INFO |
| 13 | + |
| 14 | +PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/node/bin" |
| 15 | +LOGFILE="/var/log/etherpad-lite/etherpad-lite.log" |
| 16 | +EPLITE_DIR="/usr/share/etherpad-lite" |
| 17 | +EPLITE_BIN="bin/safeRun.sh" |
| 18 | +USER="etherpad-lite" |
| 19 | +GROUP="etherpad-lite" |
| 20 | +DESC="Etherpad Lite" |
| 21 | +NAME="etherpad-lite" |
| 22 | + |
| 23 | +set -e |
| 24 | + |
| 25 | +. /lib/lsb/init-functions |
| 26 | + |
| 27 | +start() { |
| 28 | + echo "Starting $DESC... " |
| 29 | + |
| 30 | + start-stop-daemon --start --chuid "$USER:$GROUP" --background --make-pidfile --pidfile /var/run/$NAME.pid --exec $EPLITE_DIR/$EPLITE_BIN -- $LOGFILE || true |
| 31 | + echo "done" |
| 32 | +} |
| 33 | + |
| 34 | +#We need this function to ensure the whole process tree will be killed |
| 35 | +killtree() { |
| 36 | + local _pid=$1 |
| 37 | + local _sig=${2-TERM} |
| 38 | + for _child in $(ps -o pid --no-headers --ppid ${_pid}); do |
| 39 | + killtree ${_child} ${_sig} |
| 40 | + done |
| 41 | + kill -${_sig} ${_pid} |
| 42 | +} |
| 43 | + |
| 44 | +stop() { |
| 45 | + echo "Stopping $DESC... " |
| 46 | + while test -d /proc/$(cat /var/run/$NAME.pid); do |
| 47 | + killtree $(cat /var/run/$NAME.pid) 15 |
| 48 | + sleep 0.5 |
| 49 | + done |
| 50 | + rm /var/run/$NAME.pid |
| 51 | + echo "done" |
| 52 | +} |
| 53 | + |
| 54 | +status() { |
| 55 | + status_of_proc -p /var/run/$NAME.pid "" "etherpad-lite" && exit 0 || exit $? |
| 56 | +} |
| 57 | + |
| 58 | +case "$1" in |
| 59 | + start) |
| 60 | + start |
| 61 | + ;; |
| 62 | + stop) |
| 63 | + stop |
| 64 | + ;; |
| 65 | + restart) |
| 66 | + stop |
| 67 | + start |
| 68 | + ;; |
| 69 | + status) |
| 70 | + status |
| 71 | + ;; |
| 72 | + *) |
| 73 | + echo "Usage: $NAME {start|stop|restart|status}" >&2 |
| 74 | + exit 1 |
| 75 | + ;; |
| 76 | +esac |
| 77 | + |
| 78 | +exit 0 |
Index: trunk/debs/etherpad-lite/debian/etherpad-lite.postinst |
— | — | @@ -0,0 +1,26 @@ |
| 2 | +#!/bin/sh |
| 3 | +set -e |
| 4 | + |
| 5 | +if ! getent group etherpad-lite >/dev/null; then |
| 6 | + echo Adding group: etherpad-lite. |
| 7 | + addgroup --system etherpad-lite |
| 8 | +fi |
| 9 | + |
| 10 | +if ! getent passwd etherpad-lite >/dev/null; then |
| 11 | + echo Adding system user: etherpad-lite. |
| 12 | + adduser --system --ingroup etherpad-lite --no-create-home etherpad-lite |
| 13 | + usermod -c "Etherpad Lite service" etherpad-lite |
| 14 | +fi |
| 15 | + |
| 16 | +if [ -d /var/log/etherpad-lite ]; then |
| 17 | + chown -R etherpad-lite:etherpad-lite /var/log/etherpad-lite |
| 18 | +fi |
| 19 | + |
| 20 | +if [ -d /var/lib/etherpad-lite ]; then |
| 21 | + chown -R etherpad-lite:etherpad-lite /var/lib/etherpad-lite |
| 22 | +fi |
| 23 | + |
| 24 | + |
| 25 | +#DEBHELPER# |
| 26 | + |
| 27 | +exit 0 |
Index: trunk/debs/etherpad-lite/debian/etherpad-lite.postrm |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +#!/bin/sh -e |
| 3 | + |
| 4 | +if [ "$1" = "purge" ] ; then |
| 5 | + # remove etherpad-lite user |
| 6 | + if getent passwd etherpad-lite >/dev/null; then |
| 7 | + deluser etherpad-lite |
| 8 | + fi |
| 9 | + if getent group etherpad-lite >/dev/null; then |
| 10 | + delgroup etherpad-lite |
| 11 | + fi |
| 12 | +fi |
| 13 | + |
| 14 | +#DEBHELPER# |
Index: trunk/debs/etherpad-lite/debian/rules |
— | — | @@ -0,0 +1,87 @@ |
| 2 | +#!/usr/bin/make -f |
| 3 | +# -*- makefile -*- |
| 4 | +# Sample debian/rules that uses debhelper. |
| 5 | +# This file was originally written by Joey Hess and Craig Small. |
| 6 | +# As a special exception, when this file is copied by dh-make into a |
| 7 | +# dh-make output file, you may use that output file without restriction. |
| 8 | +# This special exception was added by Craig Small in version 0.37 of dh-make. |
| 9 | + |
| 10 | +# Uncomment this to turn on verbose mode. |
| 11 | +export DH_VERBOSE=1 |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +configure: configure-stamp |
| 18 | +configure-stamp: |
| 19 | + dh_testdir |
| 20 | + # Add here commands to configure the package. |
| 21 | + |
| 22 | + touch configure-stamp |
| 23 | + |
| 24 | + |
| 25 | +build: build-stamp |
| 26 | + |
| 27 | +build-stamp: configure-stamp |
| 28 | + dh_testdir |
| 29 | + |
| 30 | + # Add here commands to compile the package. |
| 31 | + bin/installDeps.sh |
| 32 | + touch $@ |
| 33 | + |
| 34 | +clean: |
| 35 | + dh_testdir |
| 36 | + dh_testroot |
| 37 | + rm -f build-stamp configure-stamp |
| 38 | + |
| 39 | + # Add here commands to clean up after the build process. |
| 40 | + rm -rf build |
| 41 | + |
| 42 | + dh_clean |
| 43 | + |
| 44 | +install: build |
| 45 | + dh_testdir |
| 46 | + dh_testroot |
| 47 | + #dh_prep |
| 48 | + dh_installdirs |
| 49 | + |
| 50 | +# Build architecture-independent files here. |
| 51 | +binary-indep: install |
| 52 | + dh_testdir |
| 53 | + dh_testroot |
| 54 | + dh_installinit -n |
| 55 | + |
| 56 | +# Build architecture-dependent files here. |
| 57 | +binary-arch: install |
| 58 | + dh_testdir |
| 59 | + dh_testroot |
| 60 | +# dh_installchangelogs |
| 61 | + dh_installdocs |
| 62 | +# dh_installexamples |
| 63 | + dh_install |
| 64 | +# dh_installmenu |
| 65 | +# dh_installdebconf |
| 66 | +# dh_installlogrotate |
| 67 | +# dh_installemacsen |
| 68 | +# dh_installpam |
| 69 | +# dh_installmime |
| 70 | +# dh_python |
| 71 | +# dh_installinit |
| 72 | +# dh_installcron |
| 73 | +# dh_installinfo |
| 74 | +# dh_installman |
| 75 | + dh_link |
| 76 | + dh_strip |
| 77 | + dh_compress |
| 78 | + dh_fixperms |
| 79 | +# dh_perl |
| 80 | +# dh_makeshlibs |
| 81 | + dh_installdeb |
| 82 | + dh_shlibdeps |
| 83 | + dh_gencontrol |
| 84 | + dh_md5sums |
| 85 | + dh_builddeb |
| 86 | + |
| 87 | +binary: binary-indep binary-arch |
| 88 | +.PHONY: build clean binary-indep binary-arch binary install configure |
Property changes on: trunk/debs/etherpad-lite/debian/rules |
___________________________________________________________________ |
Added: svn:executable |
1 | 89 | + |