From cd210421c6b25552dc90a1ba88fa338c2ac5abcb Mon Sep 17 00:00:00 2001 From: Jan-Pascal van Best Date: Sat, 23 Jun 2018 15:58:09 +0200 Subject: [PATCH] Imported debian/ from deb-multimedia --- debian/QUICKSTART.txt | 9 +++ debian/changelog | 126 ++++++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 17 ++++++ debian/copyright | 43 ++++++++++++++ debian/docs | 1 + debian/init | 70 +++++++++++++++++++++++ debian/postrm | 13 +++++ debian/rules | 27 +++++++++ debian/source/format | 1 + debian/watch | 5 ++ 11 files changed, 313 insertions(+) create mode 100644 debian/QUICKSTART.txt create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/init create mode 100644 debian/postrm create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/QUICKSTART.txt b/debian/QUICKSTART.txt new file mode 100644 index 0000000..1bb5f18 --- /dev/null +++ b/debian/QUICKSTART.txt @@ -0,0 +1,9 @@ + +Open a browser and go to motioneye : + +http://:8765/ + +login admin +empty password + +Then change the empty password in preferences. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b2b6988 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,126 @@ +motioneye-dmo (0.39.1-dmo1) unstable; urgency=medium + + * New upstream bugfix release. + + -- Christian Marillat Sun, 03 Jun 2018 07:57:48 +0200 + +motioneye-dmo (0.39-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sun, 01 Apr 2018 08:49:23 +0200 + +motioneye-dmo (0.38.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Wed, 07 Feb 2018 08:37:05 +0100 + +motioneye-dmo (0.38-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Tue, 31 Oct 2017 23:34:29 +0100 + +motioneye-dmo (0.37.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sun, 10 Sep 2017 08:48:11 +0200 + +motioneye-dmo (0.37-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sat, 26 Aug 2017 16:49:17 +0200 + +motioneye-dmo (0.36.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Fri, 07 Jul 2017 00:52:26 +0200 + +motioneye-dmo (0.36-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sat, 10 Jun 2017 21:21:53 +0200 + +motioneye-dmo (0.35.2-dmo2) unstable; urgency=medium + + * Fix broken postrm sript. + * Add a /usr/share/doc/motioneye/QUICKSTART.txt file. + + -- Christian Marillat Sat, 18 Feb 2017 09:33:56 +0100 + +motioneye-dmo (0.35.2-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sat, 11 Feb 2017 17:51:59 +0100 + +motioneye-dmo (0.35.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Thu, 24 Nov 2016 18:42:34 +0100 + +motioneye-dmo (0.35-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Thu, 03 Nov 2016 18:39:13 +0100 + +motioneye-dmo (0.34.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Thu, 27 Oct 2016 01:34:15 +0200 + +motioneye-dmo (0.34-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Wed, 26 Oct 2016 00:02:28 +0200 + +motioneye-dmo (0.33.4-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Tue, 13 Sep 2016 23:55:38 +0200 + +motioneye-dmo (0.33.3-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Tue, 13 Sep 2016 08:41:35 +0200 + +motioneye-dmo (0.33.2-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sun, 21 Aug 2016 08:39:31 +0200 + +motioneye-dmo (0.33.1-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Mon, 15 Aug 2016 08:39:10 +0200 + +motioneye-dmo (0.33-dmo1) unstable; urgency=medium + + * New upstream release. + + -- Christian Marillat Sun, 07 Aug 2016 19:19:39 +0200 + +motioneye-dmo (0.32.1-dmo2) unstable; urgency=medium + + * Remove /etc/motioneye directory on purge. + + -- Christian Marillat Sun, 24 Jul 2016 15:55:14 +0200 + +motioneye-dmo (0.32.1-dmo1) unstable; urgency=medium + + * Initial release. + + -- Christian Marillat Sat, 16 Jul 2016 18:01:13 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..37d8523 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: motioneye-dmo +Section: web +Priority: optional +Maintainer: Christian Marillat +Bugs: mailto:marillat@deb-multimedia.org +Homepage: https://github.com/ccrisan/motioneye +X-Python-Version: >= 2.7 +Standards-Version: 4.1.4 +Build-Depends: debhelper (>= 11), python | python-all | python-dev | python-all-dev, + dh-python + +Package: motioneye +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, libjs-jquery, libjs-jquery-mousewheel, python-tornado, python-jinja2, python-pil, python-pycurl, python-pkg-resources, lsb-base +Suggests: motion, ffmpeg, v4l-utils +Description: web-based frontend for motion + A web frontend for the motion daemon, written in Python. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b868245 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,43 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: motioneye +Source: https://github.com/ccrisan/motioneye/releases + +Files: * +Copyright: 2016 Calin Crisan +License: GPL-3 + This library is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This library 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 Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. + . + On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public + License can be found in `/usr/share/common-licenses/LGPL-3'. + +Files: debian/* +Copyright: 2016 Christian Marillat +License: GPL-2+ + This package 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 2 of the License, or + (at your option) any later version. + . + This package 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 program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..af2037b --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +debian/QUICKSTART.txt diff --git a/debian/init b/debian/init new file mode 100755 index 0000000..c9f7f3a --- /dev/null +++ b/debian/init @@ -0,0 +1,70 @@ +#!/bin/sh -e +# +# /etc/init.d/motioneye: Start the motionEye server +# +### BEGIN INIT INFO +# Provides: motioneye +# Required-Start: $local_fs $syslog $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start the motionEye server +# Description: Start the motionEye server +### END INIT INFO + +NAME="motioneye" +PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin" +DAEMON="/usr/local/bin/meyectl" +PIDFILE="/var/run/$NAME.pid" +DESC="motionEye server" +USER="root" +OPTIONS="startserver -c /etc/motioneye/motioneye.conf -l -b" + +. /lib/lsb/init-functions + +test -x $DAEMON || exit 0 + +RET=0 + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if start-stop-daemon --start --oknodo --exec $DAEMON --chuid $USER -- $OPTIONS; then + log_end_msg 0 + else + log_end_msg 1 + RET=1 + fi + ;; + + stop) + log_daemon_msg "Stopping $DESC" + if start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5; then + log_end_msg 0 + else + log_end_msg 1 + RET=1 + fi + ;; + + restart|force-reload) + log_action_begin_msg "Restarting $DESC" + if $0 stop && $0 start; then + log_action_end_msg 0 + else + log_action_cont_msg "(failed)" + RET=1 + fi + ;; + + status) + status_of_proc $DAEMON $NAME + ;; + + *) + echo "Usage: /etc/init.d/$NAME {start|stop|restart|status}" + RET=1 + ;; +esac + +exit $RET diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..d130010 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +if [ "$1" = "purge" ]; then + if [ -d /etc/motioneye ]; then + rm -rf /etc/motioneye + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2c9b4a5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python2 + +override_dh_clean: + + -rm -rf motioneye.egg-info + + dh_clean + +override_dh_auto_install: + dh_auto_install + + rm debian/motioneye/usr/lib/python2.7/dist-packages/motioneye/static/js/jquery.min.js + rm debian/motioneye/usr/lib/python2.7/dist-packages/motioneye/static/js/jquery.mousewheel.js + + dh_link usr/share/javascript/jquery/jquery.min.js usr/lib/python2.7/dist-packages/motioneye/static/js/jquery.min.js + dh_link usr/share/javascript/jquery-mousewheel/jquery.mousewheel.js usr/lib/python2.7/dist-packages/motioneye/static/js/jquery.mousewheel.js + + dh_installdirs var/lib/motioneye etc/motioneye lib/systemd/system + + mv debian/motioneye/usr/share/motioneye/extra/motioneye.conf.sample debian/motioneye/etc/motioneye/motioneye.conf + + mv debian/motioneye/usr/share/motioneye/extra/motioneye.systemd-unit debian/motioneye/lib/systemd/system/motioneye.service + + rm -rf debian/motioneye/usr/share/motioneye diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..54db3b0 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=4 + +opts="uversionmangle=s/rc1//" \ +https://github.com/ccrisan/motioneye/releases \ +.*/(.*)\.tar\.gz -- 2.39.5