[Python-modules-commits] [remotecv] 02/07: Importing debian folder from Gilles Dubuc repository

Marcelo Jorge Vieira metal at moszumanska.debian.org
Fri Sep 8 20:46:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

metal pushed a commit to branch master
in repository remotecv.

commit 916f8a8049c988b9a9bb6275842a0978a873a956
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Fri Sep 8 01:09:27 2017 -0300

    Importing debian folder from Gilles Dubuc repository
    
    https://github.com/gi11es/thumbor-debian
---
 debian/changelog         |  5 +++
 debian/compat            |  1 +
 debian/control           | 28 ++++++++++++++++
 debian/copyright         | 75 ++++++++++++++++++++++++++++++++++++++++++
 debian/docs              |  1 +
 debian/remotecv.1        | 84 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/remotecv.manpages |  1 +
 debian/remotecv.postinst | 13 ++++++++
 debian/remotecv.service  | 12 +++++++
 debian/rules             | 14 ++++++++
 debian/source/format     |  1 +
 debian/watch             |  3 ++
 12 files changed, 238 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..713bf1d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+remotecv (2.2.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #825893)
+
+ -- Gilles Dubuc <gilles at wikimedia.org>  Thu, 19 May 2016 16:38:43 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9a2412e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: remotecv
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Gilles Dubuc <gilles at wikimedia.org>
+Section: python
+Priority: optional
+Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               dh-systemd,
+               pyres (>= 1.2),
+               python-all,
+               python-mock,
+               python-nose,
+               python-opencv,
+               python-pil (>= 3.0),
+	       python-preggy,
+               python-setuptools
+X-Python-Version: >= 2.6
+Homepage: https://github.com/thumbor/remotecv
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/remotecv.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/remotecv.git
+
+Package: remotecv
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, pyres (>= 1.2), python-pil (>= 3.0), python-opencv
+Description: Python module providing an OpenCV server for facial and feature recognition
+ Remotecv can use a Pyres or Celery backend, this package is
+ configured to use Pyres and a Redis server to handle its job queue.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..533cc51
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,75 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: remotecv
+Source: https://github.com/thumbor/remotecv
+
+Files: *
+Copyright: 2014-2016 globo.com <timehome at corp.globo.com>
+License: MIT
+
+Files: remotecv/detectors/*/*.xml
+Copyright: 2000 Intel Corporation
+License: Intel-Open-Source-License
+
+Files: debian/*
+Copyright: 2014-2016 globo.com <timehome at corp.globo.com>,
+           2016 Gilles Dubuc <gilles at wikimedia.org>
+License: MIT
+
+License: MIT
+  Copyright (c) 2014-2016 globo.com <timehome at corp.globo.com>
+  .
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to deal
+  in the Software without restriction, including without limitation the rights
+  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+  copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+  .
+  The above copyright notice and this permission notice shall be included in all
+  copies or substantial portions of the Software.
+  .
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
+License: Intel-Open-Source-License
+ IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
+ .
+  By downloading, copying, installing or using the software you agree to this license.
+  If you do not agree to this license, do not download, install,
+  copy or use the software.
+ .
+ .
+                        Intel License Agreement
+                For Open Source Computer Vision Library
+ .
+ Copyright (C) 2000, Intel Corporation, all rights reserved.
+ Third party copyrights are property of their respective owners.
+ .
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+   * Redistribution's of source code must retain the above copyright notice,
+     this list of conditions and the following disclaimer.
+ .
+   * Redistribution's in binary form must reproduce the above copyright notice,
+     this list of conditions and the following disclaimer in the documentation
+     and/or other materials provided with the distribution.
+ .
+   * The name of Intel Corporation may not be used to endorse or promote products
+     derived from this software without specific prior written permission.
+ .
+ This software is provided by the copyright holders 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 Intel Corporation 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.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..c2401f7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.mkd
diff --git a/debian/remotecv.1 b/debian/remotecv.1
new file mode 100644
index 0000000..9261912
--- /dev/null
+++ b/debian/remotecv.1
@@ -0,0 +1,84 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
+.TH REMOTECV "1" "June 2016" "remotecv 2.2.1" "User Commands"
+.SH NAME
+remotecv \- OpenCV server for facial and feature recognition
+.SH DESCRIPTION
+usage: remotecv [\-h] [\-b {pyres,celery}] [\-\-host HOST] [\-\-port PORT]
+.IP
+[\-\-database DATABASE] [\-\-password PASSWORD] [\-\-region REGION]
+[\-\-key_id KEY_ID] [\-\-key_secret KEY_SECRET]
+[\-\-polling_interval POLLING_INTERVAL] [\-l LEVEL] [\-o LOADER]
+[\-s STORE] [\-t TIMEOUT] [\-\-sentry_url SENTRY_URL]
+[\-\-memcache_hosts MEMCACHE_HOSTS]
+\&...
+.PP
+Runs RemoteCV.
+.SS "positional arguments:"
+.IP
+args
+.SS "optional arguments:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.SS "Worker Backend:"
+.TP
+\fB\-b\fR {pyres,celery}, \fB\-\-backend\fR {pyres,celery}
+Worker backend
+.SS "Pyres Connection Arguments:"
+.TP
+\fB\-\-host\fR HOST
+Redis host
+.TP
+\fB\-\-port\fR PORT
+Redis port
+.TP
+\fB\-\-database\fR DATABASE
+Redis database
+.TP
+\fB\-\-password\fR PASSWORD
+Redis password
+.SS "Celery/SQS Connection Arguments:"
+.TP
+\fB\-\-region\fR REGION
+AWS SQS Region
+.TP
+\fB\-\-key_id\fR KEY_ID
+AWS access key id
+.TP
+\fB\-\-key_secret\fR KEY_SECRET
+AWS access key secret
+.TP
+\fB\-\-polling_interval\fR POLLING_INTERVAL
+AWS polling interval
+.SS "Other arguments:"
+.TP
+\fB\-l\fR LEVEL, \fB\-\-level\fR LEVEL
+Logging level
+.TP
+\fB\-o\fR LOADER, \fB\-\-loader\fR LOADER
+Loader used
+.TP
+\fB\-s\fR STORE, \fB\-\-store\fR STORE
+Loader used
+.TP
+\fB\-t\fR TIMEOUT, \fB\-\-timeout\fR TIMEOUT
+Timeout in seconds for image detection
+.TP
+\fB\-\-sentry_url\fR SENTRY_URL
+URL used to send errors to sentry
+.SS "Memcache store arguments:"
+.TP
+\fB\-\-memcache_hosts\fR MEMCACHE_HOSTS
+Comma separated list of memcache hosts
+.SH "SEE ALSO"
+The full documentation for
+.B remotecv
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B remotecv
+programs are properly installed at your site, the command
+.IP
+.B info remotecv
+.PP
+should give you access to the complete manual.
diff --git a/debian/remotecv.manpages b/debian/remotecv.manpages
new file mode 100644
index 0000000..dafad0e
--- /dev/null
+++ b/debian/remotecv.manpages
@@ -0,0 +1 @@
+debian/remotecv.1
diff --git a/debian/remotecv.postinst b/debian/remotecv.postinst
new file mode 100644
index 0000000..1517c06
--- /dev/null
+++ b/debian/remotecv.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] ; then
+	if ! getent passwd remotecv | grep -q remotecv; then
+		useradd --system --user-group --home /var/lib/remotecv remotecv
+	fi
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/remotecv.service b/debian/remotecv.service
new file mode 100644
index 0000000..a240492
--- /dev/null
+++ b/debian/remotecv.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Remotecv, OpenCV server for facial and feature recognition
+Requires=redis-server.service
+After=redis-server.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/remotecv -l info
+User=remotecv
+
+[Install]
+WantedBy=default.target
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..88a7869
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+export PYBUILD_NAME=remotecv
+export PYBUILD_BEFORE_TEST=cp -R {dir}/tests {build_dir}
+export PYBUILD_AFTER_TEST=rm -fR {build_dir}/tests
+
+%:
+	dh $@ --with python2,systemd --buildsystem=pybuild
+
+override_dh_clean:
+	rm -rf remotecv.egg-info .coverage
+	dh_clean
+
+override_dh_installinit:
+	dh_installinit --name=remotecv --noscripts
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..bd8f7e2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/.+\/v?(.*)\.tar\.gz/remotecv-$1.tar.gz/" \
+ https://github.com/thumbor/remotecv/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/remotecv.git



More information about the Python-modules-commits mailing list