summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-16 21:04:43 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-09-16 21:04:43 +0200
commit6b4596fe0124fe5c5f5bd6e11b0fd3b2d416aa56 (patch)
tree66336cd27806f1141ddf799b4c13a7639fda6a62 /debian
parentmake prefix variable more standard compliant (diff)
removed debian dir
moved source code to src/ dir
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog20
-rw-r--r--debian/compat1
-rw-r--r--debian/control17
-rw-r--r--debian/copyright28
-rwxr-xr-xdebian/postinst10
-rwxr-xr-xdebian/postrm9
-rwxr-xr-xdebian/prerm12
-rw-r--r--debian/rhdropbox.default5
-rwxr-xr-xdebian/rhdropbox.init139
-rwxr-xr-xdebian/rules69
10 files changed, 0 insertions, 310 deletions
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 2088a92..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,20 +0,0 @@
-rhdropbox (0.2.1-1) unstable; urgency=low
-
- * ignoring SIG_CHLD and SIG_PIPE by default
- * fixed memory error at client handling
-
- -- Christian Pointner <equinox@helsinki.at> Mon, 4 Oct 2010 17:19:31 +0200
-
-rhdropbox (0.2-1) unstable; urgency=low
-
- * added -d|--dir argument (initial path list at startup)
- * added max-child capability
-
- -- Christian Pointner <equinox@helsinki.at> Tue, 16 Feb 2010 16:10:31 +0100
-
-rhdropbox (0.1-1) unstable; urgency=low
-
- * Initial release
-
- -- Christian Pointner <equinox@helsinki.at> Mon, 16 Dec 2009 13:22:45 +0100
-
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 7ed6ff8..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644
index 9f3795c..0000000
--- a/debian/control
+++ /dev/null
@@ -1,17 +0,0 @@
-Source: rhdropbox
-Section: misc
-Priority: extra
-Maintainer: Christian Pointner <equinox@helsinki.at>
-Build-Depends: debhelper (>= 5)
-Standards-Version: 3.8.3
-Homepage: http://www.helsinki.at/
-
-Package: rhdropbox
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
-Description: Radio Helsinki dropbox daemon using inotify
- rhdropbox is a small daemon which can be used to watch one or more
- directories for new files. When a new file is detected a external program.
- Aditional directories can be added to the damons watch list using a simple
- unix socket based command interface.
-
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644
index 505b039..0000000
--- a/debian/copyright
+++ /dev/null
@@ -1,28 +0,0 @@
-This package was debianized by Christian Pointner <equinox@helsinki.at> on
-Fri, 29 May 2009 11:23:42 +0200.
-
-Upstream Author: Christian Pointner <equinox@helsinki.at>
-
-Copyright: 2009-2010 Christian Pointner
-
-License:
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this package; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-On Debian systems, the complete text of the GNU General
-Public License can be found in `/usr/share/common-licenses/GPL-3'.
-
-The Debian packaging is © 2009, Christian Pointner <equinox@helsinki.at> and
-is licensed under the GPL, see above.
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100755
index 672dae8..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-# postinst script for rhdropbox
-
-set -e
-
-if [ -x "/etc/init.d/rhdropbox" ]; then
- update-rc.d rhdropbox defaults >/dev/null
-fi
-
-
diff --git a/debian/postrm b/debian/postrm
deleted file mode 100755
index dc16a9d..0000000
--- a/debian/postrm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# postrm script for rhdropbox
-
-set -e
-
-if [ "$1" = "purge" ] ; then
- update-rc.d rhdropbox remove >/dev/null || exit $?
-fi
-
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100755
index 9ddebb7..0000000
--- a/debian/prerm
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-# prerm script for rhdropbox
-
-set -e
-
-if [ -x "/etc/init.d/rhdropbox" ] && [ "$1" = remove ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d rhdropbox stop || true
- else
- /etc/init.d/rhdropbox stop || true
- fi
-fi
diff --git a/debian/rhdropbox.default b/debian/rhdropbox.default
deleted file mode 100644
index c32d348..0000000
--- a/debian/rhdropbox.default
+++ /dev/null
@@ -1,5 +0,0 @@
-# Defaults for rhdropbox initscript
-# sourced by /etc/init.d/rhdropbox
-
-# Additional options that are passed to the Daemon.
-DAEMONOPTS=""
diff --git a/debian/rhdropbox.init b/debian/rhdropbox.init
deleted file mode 100755
index 429c682..0000000
--- a/debian/rhdropbox.init
+++ /dev/null
@@ -1,139 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: rhdropbox
-# Required-Start: $syslog
-# Required-Stop:
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Start radio helsinki dropbox daemon at boot time
-# Description: Enables dropboxes
-### END INIT INFO
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/bin/rhdropbox
-CONFIG_DIR=/etc/rhdropbox
-NAME=rhdropbox
-DESC=rhdropbox
-VARRUN_DIR=/var/run/$NAME
-
-test -x $DAEMON || exit 0
-
-# Include rhdropbox defaults if available
-if [ -f /etc/default/rhdropbox ] ; then
- . /etc/default/rhdropbox
-fi
-
-start_db () {
- STATUS="OK"
- if [ -f $CONFIG_DIR/$DBNAME/config ] ; then
- NEWFILE=''
- test -f $CONFIG_DIR/$DBNAME/newfile.sh && NEWFILE="-x $CONFIG_DIR/$DBNAME/newfile.sh"
- CHROOTDIR=`grep '^chroot' < $CONFIG_DIR/$DBNAME/config | sed 's/chroot\s*//'`
- if [ -n "$CHROOTDIR" ] ; then
- test -d $CHROOTDIR || mkdir -p $CHROOTDIR
- fi
- test -d $VARRUN_DIR || mkdir -p $VARRUN_DIR
- chmod 777 $VARRUN_DIR
- DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$DBNAME/config | grep -e '\w' | sed 's/^/--/' | tr '\n' ' '`
- $DAEMON --write-pid $VARRUN_DIR/$DBNAME.pid $NEWFILE $DAEMONOPTS $DAEMONARG || STATUS="FAILED"
- else
- STATUS="no config found"
- fi
- echo -n "($STATUS)"
-}
-
-stop_db () {
- kill `cat $PIDFILE` || true
- rm $PIDFILE
-}
-
-set -e
-case "$1" in
- start)
- echo -n "Starting $DESC:"
- if test -z "$2" ; then
- if [ -f $CONFIG_DIR/autostart ] ; then
- for DBNAME in `sed 's/#.*//' < $CONFIG_DIR/autostart | grep -e '\w'`; do
- echo -n " $DBNAME"
- start_db
- done
- else
- echo " no config found"
- exit 1;
- fi
- else
- while shift ; do
- [ -z "$1" ] && break
- DBNAME=$1
- echo -n " $DBNAME"
- start_db
- done
- fi
- echo "."
- ;;
- stop)
- echo -n "Stoping $DESC:"
- if test -z "$2" ; then
- for PIDFILE in `ls $VARRUN_DIR/*.pid 2> /dev/null`; do
- DBNAME=`echo $PIDFILE | cut -c20-`
- DBNAME=${DBNAME%%.pid}
- echo -n " $DBNAME"
- stop_db
- done
- else
- while shift ; do
- [ -z "$1" ] && break
- if test -e $VARRUN_DIR/$1.pid ; then
- PIDFILE=`ls $VARRUN_DIR/$1.pid 2> /dev/null`
- DBNAME=`echo $PIDFILE | cut -c20-`
- DBNAME=${DBNAME%%.pid}
- echo -n " $DBNAME"
- stop_db
- else
- echo -n " (failure: No such tunnel is running: $1)"
- fi
- done
- fi
- echo "."
- ;;
- reload)
- echo -n "Reloading $DESC:"
- if test -z "$2" ; then
- for PIDFILE in `ls $VARRUN_DIR/*.pid 2> /dev/null`; do
- DBNAME=`echo $PIDFILE | cut -c20-`
- DBNAME=${DBNAME%%.pid}
- echo -n " $DBNAME"
- stop_db
- start_db
- done
- else
- while shift ; do
- [ -z "$1" ] && break
- if test -e $VARRUN_DIR/$1.pid ; then
- PIDFILE=`ls $VARRUN_DIR/$1.pid 2> /dev/null`
- DBNAME=`echo $PIDFILE | cut -c20-`
- DBNAME=${DBNAME%%.pid}
- echo -n " $DBNAME"
- stop_db
- start_db
- else
- echo -n " (failure: No such tunnel is running: $1)"
- fi
- done
- fi
- echo "."
- ;;
- restart)
- SCRIPT=$0
- shift
- $SCRIPT stop $*
- sleep 1
- $SCRIPT start $*
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index b0480fc..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/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
- ./configure --prefix=/usr --sysconfdir=/etc --no-manpage --examplesdir=/usr/share/rhdropbox/examples
- touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- $(MAKE)
-
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
- $(MAKE) --directory=$(CURDIR) distclean
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_installdirs
-
- # Add here commands to install the package into debian/rhdropbox.
- $(MAKE) DESTDIR=$(CURDIR)/debian/rhdropbox install
- # Fix unusual path:
- mv debian/rhdropbox/usr/share/rhdropbox/examples/rhdropbox debian/rhdropbox/usr/share/rhdropbox/examples/config
- echo "example configurations can be found at /usr/share/rhdropbox/examples/config" > debian/rhdropbox/etc/rhdropbox/README
-
-# Build architecture-independent files here.
-binary-indep: install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installinit
- dh_installman doc/rhdropbox.8
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- 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