diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d20ab1b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +surok (0.1-1) testing; urgency=low + + * Initial release (Closes: BBONL-1696) + + -- Denis Zheleztsov Mon, 01 Aug 2016 16:10:31 +0300 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..2be1fa5 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: surok +Section: admin +Priority: optional +Maintainer: Denis Zheleztsov +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.5 +Vcs-Git: http://vcs.bingo-boom.ru/difrex/surok.git + +Package: surok +Architecture: all +Depends: python3-jinja2, python3-dnsq +Description: Service discovery for Apache Mesos clusters diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fc63489 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: surok +Source: + +Files: * +Copyright: + +License: + + + . + + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2016 Denis Zheleztsov +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". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..2f12236 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +/etc/surok/conf.d +/etc/surok/templates diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..52ba9b6 --- /dev/null +++ b/debian/install @@ -0,0 +1,6 @@ +conf/surok.json etc/surok/conf +surok/templates.py usr/lib/python3/dist-packages/surok +surok/system.py usr/lib/python3/dist-packages/surok +surok/__init__.py usr/lib/python3/dist-packages/surok +surok/discovery.py usr/lib/python3/dist-packages/surok +surok.py usr/bin diff --git a/debian/patches/path-change b/debian/patches/path-change new file mode 100644 index 0000000..9687664 --- /dev/null +++ b/debian/patches/path-change @@ -0,0 +1,36 @@ +Description: + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + surok (0.1-1) unstable; urgency=low + . + * Initial release (Closes: #nnnn) +Author: Denis Zheleztsov + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- surok-0.1.orig/surok.py ++++ surok-0.1/surok.py +@@ -9,7 +9,7 @@ from surok.discovery import resolve + from surok.system import reload_conf + + # Load base configurations +-f = open('conf/surok.json', 'r') ++f = open('/etc/surok/conf/surok.json', 'r') + conf = json.loads(f.read()) + print(conf) + f.close() diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..db555fc --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +path-change diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ce15cce --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +# main packaging script based on dh7 syntax +%: + dh $@ + +# debmake generated override targets +# This is example for Cmake (See http://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + + + + 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)