diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-04-28 22:14:31 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-04-28 22:14:31 +0200 |
commit | c6c9281b939ca20b351a9c178254f05e69ced28b (patch) | |
tree | 85a47b0cca536d34d873528ab329fa3aecdd2851 /debian | |
parent | 7b93e5093e4a181e94eb61b9321e45c01df1feb9 (diff) | |
download | etherpad-c6c9281b939ca20b351a9c178254f05e69ced28b.tar.gz etherpad-c6c9281b939ca20b351a9c178254f05e69ced28b.tar.xz etherpad-c6c9281b939ca20b351a9c178254f05e69ced28b.zip |
git-buildpackage-converted debian packaging
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README | 6 | ||||
-rw-r--r-- | debian/README.Debian | 6 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/config | 49 | ||||
-rw-r--r-- | debian/control | 20 | ||||
-rw-r--r-- | debian/copyright | 42 | ||||
-rwxr-xr-x | debian/postinst | 81 | ||||
-rw-r--r-- | debian/postrm | 38 | ||||
-rw-r--r-- | debian/preinst | 34 | ||||
-rwxr-xr-x | debian/prerm | 43 | ||||
-rwxr-xr-x | debian/rules | 139 | ||||
-rw-r--r-- | debian/templates | 11 |
13 files changed, 475 insertions, 0 deletions
diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..21f1d88 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package etherpad +---------------------------- + +Comments regarding the Package + + -- Egil Möller <egil.moller@piratpartiet.se> Mon, 26 Apr 2010 19:51:51 +0200 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..b246eb5 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +etherpad for Debian +------------------- + +<possible notes regarding this package - if none, delete this file> + + -- Egil Möller <egil.moller@piratpartiet.se> Mon, 26 Apr 2010 19:51:51 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9f15642 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +etherpad (1.0) unstable; urgency=low + + * Initial Release. + + -- Egil Möller <egil.moller@piratpartiet.se> Mon, 26 Apr 2010 19:51:51 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..f97ab33 --- /dev/null +++ b/debian/config @@ -0,0 +1,49 @@ +#!/bin/bash + +################################################################################ +# +# Copyright (c) 2010 penSec.IT UG (haftungsbeschränkt) +# http://www.pensec.it +# mail@pensec.it +# Copyright (c) 2010 Egil Möller <egil.moller@piratpartiet.se> +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +################################################################################ + + + +set -e +. /usr/share/debconf/confmodule + +if [ -n "$ETHERPAD_DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +db_version 2.0 + +# Set up database +. /usr/share/dbconfig-common/dpkg/config.mysql +dbc_go etherpad $@ + +db_input high "etherpad/admin_password" || true +db_go + +db_get "etherpad/topdomains" +if ! [ "$RET" ]; then + db_set "etherpad/topdomains" "$(hostname -f)" +fi + +db_input high "etherpad/topdomains" || true +db_go diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..14ffd66 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: etherpad +Section: unknown +Priority: extra +Maintainer: Egil Möller <egil.moller@piratpartiet.se> +Build-Depends: debhelper (>= 7), dbconfig-common, sun-java6-jdk, mysql-client, libmysql-java, scala (>= 2.7) +Build-Conflicts: libgcj-common, java-gcj-compat-headless, java-gcj-compat, gcj-4.3-base +Standards-Version: 3.8.0 +Homepage: <insert the upstream URL, if relevant> + +Package: etherpad +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, dbconfig-common, sun-java6-jdk, mysql-client, libmysql-java, scala (>= 2.7) +Description: Etherpad multiuser web-based word processor + EtherPad is the only web-based word processor that allows people to work + together in really 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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..21f3788 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Egil Möller <egil.moller@piratpartiet.se> on +Mon, 26 Apr 2010 19:51:51 +0200. + +It was downloaded from <url://example.com> + +Upstream Author(s): + + <put author's name and email here> + <likewise for another author> + +Copyright: + + <Copyright (C) YYYY Name OfAuthor> + <likewise for another author> + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted under the terms of the BSD License. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +On Debian systems, the complete text of the BSD License can be +found in `/usr/share/common-licenses/BSD'. + + +The Debian packaging is copyright 2010, Egil Möller <egil.moller@piratpartiet.se> and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..3b85741 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,81 @@ +#!/bin/bash + +################################################################################ +# +# Copyright (c) 2010 penSec.IT UG (haftungsbeschränkt) +# http://www.pensec.it +# mail@pensec.it +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +################################################################################ + + + +set -e +. /usr/share/debconf/confmodule + +if [ -n "$ETHERPAD_DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +db_version 2.0 + +. /usr/share/dbconfig-common/dpkg/postinst.mysql +dbc_go etherpad $@ + +db_get "etherpad/admin_password" +db_admin_password="$RET" +db_get "etherpad/topdomains" +db_topdomains="$RET" + +. /etc/dbconfig-common/etherpad.conf + + + +# Create system user +if ! getent passwd etherpad > /dev/null ; then + echo 'Adding system-user for etherpad' 1>&2 + adduser --system --group --quiet \ + --home /usr/share/etherpad --no-create-home \ + --disabled-login --force-badname etherpad +fi + +# Give user the rights to write into the log & data directory +chown -R etherpad:etherpad "/var/log/etherpad" +chown -R etherpad:etherpad "/usr/share/etherpad/etherpad/data" +# Give user the rights do write everywhere, did not yet figure +# out which rights are necessary, exactly +chown -R etherpad:etherpad "/usr/share/etherpad" + +if ! [ "$dbc_dbserver" ]; then + dbc_dbserver=localhost +fi +if ! [ "$dbc_dbport" ]; then + dbc_dbport=3306 +fi + + +m4 \ + -D __db_admin_password__="$db_admin_password" \ + -D __dbc_dbserver__="$dbc_dbserver" \ + -D __dbc_dbport__="$dbc_dbport" \ + -D __dbc_dbname__="$dbc_dbname" \ + -D __dbc_dbpass__="$dbc_dbpass" \ + -D __dbc_dbuser__="$dbc_dbuser" \ + -D __db_topdomains__="$db_topdomains" \ + < /etc/etherpad/etherpad.local.properties.tmpl \ + > /etc/etherpad/etherpad.local.properties + +chown etherpad:etherpad /etc/etherpad/etherpad.local.properties diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..ef4425a --- /dev/null +++ b/debian/postrm @@ -0,0 +1,38 @@ +#!/bin/bash + +################################################################################ +# +# Copyright (c) 2010 penSec.IT UG (haftungsbeschränkt) +# http://www.pensec.it +# mail@pensec.it +# Copyright (c) 2010 Egil Möller <egil.moller@piratpartiet.se> +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +################################################################################ + + + +set -e +. /usr/share/debconf/confmodule + +if [ -n "$ETHERPAD_DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +db_version 2.0 + +# Set up database +. /usr/share/dbconfig-common/dpkg/postrm.mysql +dbc_go etherpad $@ diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..ffced88 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,34 @@ +#!/bin/bash + +################################################################################ +# +# Copyright (c) 2010 penSec.IT UG (haftungsbeschränkt) +# http://www.pensec.it +# mail@pensec.it +# Copyright (c) 2010 Egil Möller <egil.moller@piratpartiet.se> +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +################################################################################ + + + +set -e +. /usr/share/debconf/confmodule + +if [ -n "$ETHERPAD_DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +db_version 2.0 diff --git a/debian/prerm b/debian/prerm new file mode 100755 index 0000000..7b7d352 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,43 @@ +#!/bin/bash + +################################################################################ +# +# Copyright (c) 2010 penSec.IT UG (haftungsbeschränkt) +# http://www.pensec.it +# mail@pensec.it +# Copyright (c) 2010 Egil Möller <egil.moller@piratpartiet.se> +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +################################################################################ + + + +set -e +. /usr/share/debconf/confmodule + +if [ -n "$ETHERPAD_DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +db_version 2.0 + +# Set up database +. /usr/share/dbconfig-common/dpkg/prerm.mysql +dbc_go etherpad $@ + +# Remove log+data directories, otherwise uninstall will fail +rm -rf /var/log/etherpad +rm -rf /usr/share/etherpad/etherpad/data + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3a06dbe --- /dev/null +++ b/debian/rules @@ -0,0 +1,139 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + + # Add here commands to compile the arch part of the package. + #$(MAKE) + bin/build.sh + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + + # Add here commands to compile the indep part of the package. + #$(MAKE) doc + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + # Add here commands to clean up after the build process. + #git clean -X + + dh_clean --exclude ./build/apt/.tmp.local/infrastructure/bin/makejar.sh.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_prep -i --exclude ./build/apt/.tmp.local/infrastructure/bin/makejar.sh.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig + dh_installdirs -i + + # Add here commands to install the indep part of the package into + # debian/<package>-doc. + #INSTALLDOC# + + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_prep -s --exclude ./build/apt/.tmp.local/infrastructure/bin/makejar.sh.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./build/apt/.tmp.local/infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Decompiler.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Parser.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/Token.java.orig --exclude ./infrastructure/yuicompressor/src/yuicompressor/org/mozilla/javascript/TokenStream.java.orig + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/tmp. + # $(MAKE) DESTDIR=$(CURDIR)/debian/etherpad install + + mkdir -p debian/etherpad/usr/share/etherpad + cp -a $$(ls | grep -v debian) debian/etherpad/usr/share/etherpad + + mkdir -p debian/etherpad/etc + mv debian/etherpad/usr/share/etherpad/etherpad/etc debian/etherpad/etc/etherpad + ln -s /etc/etherpad debian/etherpad/usr/share/etherpad/etherpad/etc + + mkdir -p debian/etherpad/var/log/etherpad + + mkdir -p debian/etherpad/etc/init.d + ln -s /usr/share/etherpad/bin/etherpad.init.d debian/etherpad/etc/init.d/etherpad + + + dh_install -s + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# 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 + +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..b73dc5e --- /dev/null +++ b/debian/templates @@ -0,0 +1,11 @@ +Template: etherpad/admin_password +Type: password +Default: password +Description: etherpad administration password + Please insert the administration password, default is password. + +Template: etherpad/topdomains +Type: string +Default: +Description: Domain name of site + Please insert the domain name of your site. |