summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/README.debian6
-rw-r--r--debian/changelog10
-rw-r--r--debian/conffiles2
-rw-r--r--debian/control11
-rw-r--r--debian/copyright8
-rw-r--r--debian/dirs4
-rwxr-xr-xdebian/init.d39
-rw-r--r--debian/postinst24
-rwxr-xr-xdebian/rules69
9 files changed, 173 insertions, 0 deletions
diff --git a/debian/README.debian b/debian/README.debian
new file mode 100644
index 0000000..8c753b6
--- /dev/null
+++ b/debian/README.debian
@@ -0,0 +1,6 @@
+irbox for DEBIAN
+----------------------
+
+Comments regarding the Package
+
+Herve DAMIANO <damiano@cenatoulouse.dgac.fr>, Thu, 22 Apr 1999 16:50:59 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ac832e7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,10 @@
+irbox (1.1-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Herve DAMIANO <damiano@cenatoulouse.dgac.fr> Thu, 22 Apr 1999 16:50:59 +0200
+
+Local variables:
+mode: debian-changelog
+add-log-mailing-address: "damiano@cenatoulouse.dgac.fr"
+End:
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644
index 0000000..d78fb01
--- /dev/null
+++ b/debian/conffiles
@@ -0,0 +1,2 @@
+/etc/init.d/irbox
+/etc/irbox.conf
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..38b565a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,11 @@
+Source: irbox
+Section: unknown
+Priority: optional
+Maintainer: Herve DAMIANO <damiano@cenatoulouse.dgac.fr>
+Standards-Version: 2.4.1
+
+Package: irbox
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: An ir box daemon
+ irbox package install daemon irbox which can receive signals from ir box and send messages on ivy bus according to signal.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..41c7a90
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,8 @@
+This package was debianized by Herve DAMIANO damiano@cenatoulouse.dgac.fr on
+Thu, 22 Apr 1999 16:50:59 +0200.
+
+It was downloaded from <fill in ftp site>
+
+Copyright:
+
+<Must follow here>
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..c085878
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+etc
+etc/init.d
+usr/lib/irbox
diff --git a/debian/init.d b/debian/init.d
new file mode 100755
index 0000000..cfb2341
--- /dev/null
+++ b/debian/init.d
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# irbox: Starts the irbox Ivy agent
+#
+# chkconfig: - 98 02
+# description: This is a daemon that drives an Irman infra-red device and \
+# emits its events on an Ivy bus
+# processname: irbox
+# config: /etc/irbox.conf
+
+
+test -f /usr/bin/irbox || exit 0
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Infra-red Ivy driver... "
+ start-stop-daemon --start --exec /usr/bin/irbox -- -b 143.196.53,143.196.1:2019 &
+ echo "."
+ ;;
+ stop)
+ echo -n "Shutting down Infra-red Ivy driver: "
+ start-stop-daemon --stop --quiet --exec /usr/bin/irbox
+ echo
+ ;;
+ reload)
+ start-stop-daemon --stop --quiet --signal 1 --exec /usr/bin/irbox
+ ;;
+ restart)
+ start-stop-daemon --stop --quiet --exec /usr/bin/irbox
+ start-stop-daemon --start --exec /usr/bin/irbox -- -b 143.196.53,143.196.1:2019 &
+ ;;
+ *)
+ echo "*** Usage: irbox {start|stop|restart|reload}"
+ exit 1
+esac
+
+exit 0
+
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..75176e6
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+NC="/etc/irbox.conf"
+
+TWEAK="no"
+
+# only do this stuff if we're being called to configure a package
+if [ "$1" != "configure" ]
+then
+ exit 0
+fi
+
+# make sure we have an /etc/irbox.conf
+if [ -f $NC ]
+then
+ echo "An /etc/irbox.conf file already exists, and will be used to"
+ echo "configure irboxd. You may wish to review the contents of this"
+ echo "file for accuracy."
+ echo ""
+else
+ start-stop-daemon --stop --quiet --exec /usr/bin/irbox
+fi
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ad200dd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,69 @@
+#!/usr/bin/make -f
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+package=irbox
+SED_COMMAND='s/.*(\([^)]*\)-.*/\1/p'
+VERSION := $(shell sed -n $(SED_COMMAND) debian/changelog | head -1)
+CVS_TAG := V$(shell echo -n $(VERSION) | sed -n 's/\./_/gp')
+
+build:
+ $(checkdir)
+
+ cd src && make
+ touch build
+
+clean:
+ $(checkdir)
+ -rm -f build
+ -cd src && make clean
+ -rm -f `find . -name "*~"`
+ -rm -rf debian/tmp debian/files* core debian/substvars
+
+binary-indep: checkroot build
+ $(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: checkroot build
+ $(checkdir)
+ $(checkversion)
+ -rm -rf debian/tmp
+ install -d debian/tmp
+ cd debian/tmp && install -d `cat ../dirs`
+ cd src && make install PREFIX=`pwd`/../debian/tmp
+# Must have debmake installed for this to work. Otherwise please copy
+# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
+ debstd doc/ChangeLog
+ dpkg-gencontrol
+ chown -R root.root debian/tmp
+ chmod -R go=rX debian/tmp
+ dpkg --build debian/tmp ..
+
+define checkdir
+ test -f debian/rules
+endef
+
+binary: binary-indep binary-arch
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+define checkversion
+ -@if (test -d CVS); then \
+ if (cvs status -v debian/changelog | grep --silent $(CVS_TAG)); then \
+ echo "cvs tag $(CVS_TAG) matches package version $(VERSION)"; \
+ else \
+ echo "debian/rules: *** Warning : No cvs tag $(CVS_TAG) matches package version $(VERSION) for file changelog. You can tag your cvs module by doing debian/rules tag"; \
+ echo -n "debian/rules: *** Existing tags are : "; \
+ cvs status -v debian/changelog | sed -n 's/.*\(V.*_[0-9]\).*/\1/p'; \
+ fi \
+ fi
+endef
+
+tag:
+ -@if (test -x `which cvs`); then cvs tag $(CVS_TAG) .; fi
+
+.PHONY: binary binary-arch binary-indep clean checkroot