From 2e5496bdee20ea3fc51b5ec95f102686306bd22c Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Fri, 10 Nov 2017 15:23:02 +0100 Subject: [PATCH 1/6] initial debian packaging config. run with: debuild -i -us -uc -b --- debian/README.Debian | 6 + debian/README.source | 10 ++ debian/brubeck-docs.docs | 2 + debian/brubeck.cron.d.ex | 4 + debian/brubeck.default.ex | 10 ++ debian/brubeck.doc-base.EX | 20 +++ debian/changelog | 5 + debian/compat | 1 + debian/control | 13 ++ debian/copyright | 27 ++++ debian/init.d.ex | 26 ++++ debian/install | 1 + debian/manpage.1.ex | 56 +++++++ debian/manpage.sgml.ex | 154 ++++++++++++++++++++ debian/manpage.xml.ex | 291 +++++++++++++++++++++++++++++++++++++ debian/menu.ex | 2 + debian/postinst.ex | 39 +++++ debian/postrm.ex | 37 +++++ debian/preinst.ex | 35 +++++ debian/prerm.ex | 38 +++++ debian/rules | 26 ++++ debian/source/format | 1 + debian/watch.ex | 39 +++++ 23 files changed, 843 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/brubeck-docs.docs create mode 100644 debian/brubeck.cron.d.ex create mode 100644 debian/brubeck.default.ex create mode 100644 debian/brubeck.doc-base.EX create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/init.d.ex create mode 100644 debian/install create mode 100644 debian/manpage.1.ex create mode 100644 debian/manpage.sgml.ex create mode 100644 debian/manpage.xml.ex create mode 100644 debian/menu.ex create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch.ex diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..04fe804 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +brubeck for Debian +----------------- + + + + -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..4e4c659 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +brubeck for Debian +----------------- + + + + + + -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 + diff --git a/debian/brubeck-docs.docs b/debian/brubeck-docs.docs new file mode 100644 index 0000000..7319041 --- /dev/null +++ b/debian/brubeck-docs.docs @@ -0,0 +1,2 @@ +README.source +README.Debian diff --git a/debian/brubeck.cron.d.ex b/debian/brubeck.cron.d.ex new file mode 100644 index 0000000..4730f38 --- /dev/null +++ b/debian/brubeck.cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the brubeck package +# +0 4 * * * root [ -x /usr/bin/brubeck_maintenance ] && /usr/bin/brubeck_maintenance diff --git a/debian/brubeck.default.ex b/debian/brubeck.default.ex new file mode 100644 index 0000000..ce832e6 --- /dev/null +++ b/debian/brubeck.default.ex @@ -0,0 +1,10 @@ +# Defaults for brubeck initscript +# sourced by /etc/init.d/brubeck +# installed at /etc/default/brubeck by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="" diff --git a/debian/brubeck.doc-base.EX b/debian/brubeck.doc-base.EX new file mode 100644 index 0000000..d0cec22 --- /dev/null +++ b/debian/brubeck.doc-base.EX @@ -0,0 +1,20 @@ +Document: brubeck +Title: Debian brubeck Manual +Author: +Abstract: This manual describes what brubeck is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/brubeck/brubeck.sgml.gz + +Format: postscript +Files: /usr/share/doc/brubeck/brubeck.ps.gz + +Format: text +Files: /usr/share/doc/brubeck/brubeck.text.gz + +Format: HTML +Index: /usr/share/doc/brubeck/html/index.html +Files: /usr/share/doc/brubeck/html/*.html diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..84e8a2c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +brubeck (2536347-1) unstable; urgency=medium + + * Initial release (Closes: #nnnn) + + -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 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..7a3e896 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: brubeck +Priority: optional +Maintainer: Klavs Klavsen +Build-Depends: debhelper (>=9), libmicrohttpd-dev, libjansson-dev (>=2.5) +Standards-Version: 3.9.6 +Homepage: https://github.com/nylas/brubeck.git +#Vcs-Git: git://anonscm.debian.org/collab-maint/brubeck.git +#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/brubeck.git + +Package: brubeck +Architecture: all +Description: Brubeck statsd daemon replacement + Brubec statsd daemon replacement diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3263dd0 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: brubeck +Source: https://raw.githubusercontent.com/nylas/brubeck/master/LICENSE + +Files: * +Copyright (c) 2012-2015 GitHub, Inc. + +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. diff --git a/debian/init.d.ex b/debian/init.d.ex new file mode 100644 index 0000000..3b5529a --- /dev/null +++ b/debian/init.d.ex @@ -0,0 +1,26 @@ +#!/bin/sh +# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. +if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then + set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script +fi +### BEGIN INIT INFO +# Provides: brubeck +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: +# Description: +# <...> +# <...> +### END INIT INFO + +# Author: Klavs Klavsen + +DESC="brubeck" +DAEMON=/usr/bin/brubeck + +# This is an example to start a single forking daemon capable of writing +# a pid file. To get other behaviors, implement do_start(), do_stop() or +# other functions to override the defaults in /lib/init/init-d-script. +# See also init-d-script(5) diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..d548f2b --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +brubeck usr/bin diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 0000000..b0aceb9 --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,56 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2017 Klavs Klavsen , +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Brubeck SECTION "November 10 2017" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +brubeck \- program to do something +.SH SYNOPSIS +.B brubeck +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B brubeck +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBbrubeck\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex new file mode 100644 index 0000000..d89c399 --- /dev/null +++ b/debian/manpage.sgml.ex @@ -0,0 +1,154 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + November 10 2017"> + + SECTION"> + klavs@enableit.dk"> + + Brubeck"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (and may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex new file mode 100644 index 0000000..e121435 --- /dev/null +++ b/debian/manpage.xml.ex @@ -0,0 +1,291 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A typical entry +in a Makefile or Makefile.am is: + +DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl +XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" + +manpage.1: manpage.xml + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The XSL files are in +docbook-xsl. A description of the parameters you can use can be found in the +docbook-xsl-doc-* packages. Please remember that if you create the nroff +version in one of the debian/rules file targets (such as build), you will need +to include xsltproc and docbook-xsl in your Build-Depends control field. +Alternatively use the xmlto command/package. That will also automatically +pull in xsltproc and docbook-xsl. + +Notes for using docbook2x: docbook2x-man does not automatically create the +AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as + ... . + +To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections +read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be +found in the docbook-xsl-doc-html package. + +Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` + +General documentation about man-pages and man-page-formatting: +man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + +--> + + + + + + + + + + + + + +]> + + + + &dhtitle; + &dhpackage; + + + &dhfirstname; + &dhsurname; + Wrote this manpage for the Debian system. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the Debian system + (and may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + program to do something + + + + &dhpackage; + + + + + + + + + this + + + + + + + + this + that + + + + + &dhpackage; + + + + + + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; and bar + commands. + This manual page was written for the Debian distribution + because the original program does not have a manual page. + Instead, it has documentation in the GNU + info + 1 + format; see below. + &dhpackage; is a program that... + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + + info + 1 + files. + + + + + + + Does this and that. + + + + + + + Show summary of options. + + + + + + + Show version of program. + + + + + + FILES + + + /etc/foo.conf + + The system-wide configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + ${HOME}/.foo.conf + + The per-user configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + + + ENVIRONMENT + + + FOO_CONF + + If used, the defined file is used as configuration + file (see also ). + + + + + + DIAGNOSTICS + The following diagnostics may be issued + on stderr: + + + Bad configuration file. Exiting. + + The configuration file seems to contain a broken configuration + line. Use the option, to get more info. + + + + + &dhpackage; provides some return codes, that can + be used in scripts: + + Code + Diagnostic + + 0 + Program exited successfully. + + + 1 + The configuration file seems to be broken. + + + + + + BUGS + The program is currently limited to only work + with the foobar library. + The upstreams BTS can be found + at . + + + SEE ALSO + + + bar + 1 + , + baz + 1 + , + foo.conf + 5 + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + info + 1 + system. + +
+ diff --git a/debian/menu.ex b/debian/menu.ex new file mode 100644 index 0000000..baf1cd1 --- /dev/null +++ b/debian/menu.ex @@ -0,0 +1,2 @@ +?package(brubeck):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ + title="brubeck" command="/usr/bin/brubeck" diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..4ee93e5 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for brubeck +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 0000000..c405720 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for brubeck +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 0000000..c30bc4d --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for brubeck +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..eeb28eb --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for brubeck +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..556fc1e --- /dev/null +++ b/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# 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 + + +%: + ./script/bootstrap + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://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) diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 0000000..c4c8eff --- /dev/null +++ b/debian/watch.ex @@ -0,0 +1,39 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 4 file +version=4 + +# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig +#opts="pgpsigurlmangle=s%$%.sig%" + +# HTTP site (basic) +#http://example.com/downloads.html \ +# files/brubeck-([\d\.]+)\.tar\.gz debian uupdate + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/brubeck-(.*)\.tar\.gz debian uupdate + +# SourceForge hosted projects +# http://sf.net/brubeck/ brubeck-(.*)\.tar\.gz debian uupdate + +# GitHub hosted projects +#opts="filenamemangle="s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%-$1.tar.gz%" \ +# https://github.com//brubeck/tags \ +# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate + +# PyPI +# https://pypi.python.org/packages/source//brubeck/ \ +# brubeck-(.+)\.tar\.gz debian uupdate + +# Direct Git +# opts="mode=git" http://git.example.com/brubeck.git \ +# refs/tags/v([\d\.]+) debian uupdate + + + + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html brubeck-(.*)\.tar\.gz From 22217fe86423669d6816f9a41e6e3ac255653521 Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Fri, 24 Nov 2017 14:50:58 +0100 Subject: [PATCH 2/6] cleanup debian folder - removing examples etc. and correcting/adding relevant text. --- debian/README.Debian | 2 +- debian/README.source | 10 -- debian/brubeck.cron.d.ex | 4 - debian/brubeck.default.ex | 10 -- debian/brubeck.doc-base.EX | 20 --- debian/changelog | 2 +- debian/control | 2 +- debian/copyright | 2 +- debian/init.d.ex | 26 ---- debian/manpage.1.ex | 56 ------- debian/manpage.sgml.ex | 154 -------------------- debian/manpage.xml.ex | 291 ------------------------------------- debian/menu.ex | 2 - debian/postinst.ex | 39 ----- debian/postrm.ex | 37 ----- debian/preinst.ex | 35 ----- debian/prerm.ex | 38 ----- debian/watch.ex | 39 ----- 18 files changed, 4 insertions(+), 765 deletions(-) delete mode 100644 debian/README.source delete mode 100644 debian/brubeck.cron.d.ex delete mode 100644 debian/brubeck.default.ex delete mode 100644 debian/brubeck.doc-base.EX delete mode 100644 debian/init.d.ex delete mode 100644 debian/manpage.1.ex delete mode 100644 debian/manpage.sgml.ex delete mode 100644 debian/manpage.xml.ex delete mode 100644 debian/menu.ex delete mode 100644 debian/postinst.ex delete mode 100644 debian/postrm.ex delete mode 100644 debian/preinst.ex delete mode 100644 debian/prerm.ex delete mode 100644 debian/watch.ex diff --git a/debian/README.Debian b/debian/README.Debian index 04fe804..3e3ecc3 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,6 +1,6 @@ brubeck for Debian ----------------- - +Compiles and packages https://github.com/github/brubeck -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 diff --git a/debian/README.source b/debian/README.source deleted file mode 100644 index 4e4c659..0000000 --- a/debian/README.source +++ /dev/null @@ -1,10 +0,0 @@ -brubeck for Debian ------------------ - - - - - - -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 - diff --git a/debian/brubeck.cron.d.ex b/debian/brubeck.cron.d.ex deleted file mode 100644 index 4730f38..0000000 --- a/debian/brubeck.cron.d.ex +++ /dev/null @@ -1,4 +0,0 @@ -# -# Regular cron jobs for the brubeck package -# -0 4 * * * root [ -x /usr/bin/brubeck_maintenance ] && /usr/bin/brubeck_maintenance diff --git a/debian/brubeck.default.ex b/debian/brubeck.default.ex deleted file mode 100644 index ce832e6..0000000 --- a/debian/brubeck.default.ex +++ /dev/null @@ -1,10 +0,0 @@ -# Defaults for brubeck initscript -# sourced by /etc/init.d/brubeck -# installed at /etc/default/brubeck by the maintainer scripts - -# -# This is a POSIX shell fragment -# - -# Additional options that are passed to the Daemon. -DAEMON_OPTS="" diff --git a/debian/brubeck.doc-base.EX b/debian/brubeck.doc-base.EX deleted file mode 100644 index d0cec22..0000000 --- a/debian/brubeck.doc-base.EX +++ /dev/null @@ -1,20 +0,0 @@ -Document: brubeck -Title: Debian brubeck Manual -Author: -Abstract: This manual describes what brubeck is - and how it can be used to - manage online manuals on Debian systems. -Section: unknown - -Format: debiandoc-sgml -Files: /usr/share/doc/brubeck/brubeck.sgml.gz - -Format: postscript -Files: /usr/share/doc/brubeck/brubeck.ps.gz - -Format: text -Files: /usr/share/doc/brubeck/brubeck.text.gz - -Format: HTML -Index: /usr/share/doc/brubeck/html/index.html -Files: /usr/share/doc/brubeck/html/*.html diff --git a/debian/changelog b/debian/changelog index 84e8a2c..4e272b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,5 @@ brubeck (2536347-1) unstable; urgency=medium - * Initial release (Closes: #nnnn) + * Initial release debian package -- Klavs Klavsen Fri, 10 Nov 2017 14:50:14 +0100 diff --git a/debian/control b/debian/control index 7a3e896..c4727ab 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Priority: optional Maintainer: Klavs Klavsen Build-Depends: debhelper (>=9), libmicrohttpd-dev, libjansson-dev (>=2.5) Standards-Version: 3.9.6 -Homepage: https://github.com/nylas/brubeck.git +Homepage: https://github.com/github/brubeck.git #Vcs-Git: git://anonscm.debian.org/collab-maint/brubeck.git #Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/brubeck.git diff --git a/debian/copyright b/debian/copyright index 3263dd0..41016b1 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,6 +1,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: brubeck -Source: https://raw.githubusercontent.com/nylas/brubeck/master/LICENSE +Source: https://raw.githubusercontent.com/github/brubeck/master/LICENSE Files: * Copyright (c) 2012-2015 GitHub, Inc. diff --git a/debian/init.d.ex b/debian/init.d.ex deleted file mode 100644 index 3b5529a..0000000 --- a/debian/init.d.ex +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. -if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then - set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script -fi -### BEGIN INIT INFO -# Provides: brubeck -# Required-Start: $remote_fs $syslog -# Required-Stop: $remote_fs $syslog -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: -# Description: -# <...> -# <...> -### END INIT INFO - -# Author: Klavs Klavsen - -DESC="brubeck" -DAEMON=/usr/bin/brubeck - -# This is an example to start a single forking daemon capable of writing -# a pid file. To get other behaviors, implement do_start(), do_stop() or -# other functions to override the defaults in /lib/init/init-d-script. -# See also init-d-script(5) diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex deleted file mode 100644 index b0aceb9..0000000 --- a/debian/manpage.1.ex +++ /dev/null @@ -1,56 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" (C) Copyright 2017 Klavs Klavsen , -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH Brubeck SECTION "November 10 2017" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -brubeck \- program to do something -.SH SYNOPSIS -.B brubeck -.RI [ options ] " files" ... -.br -.B bar -.RI [ options ] " files" ... -.SH DESCRIPTION -This manual page documents briefly the -.B brubeck -and -.B bar -commands. -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBbrubeck\fP is a program that... -.SH OPTIONS -These programs follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -A summary of options is included below. -For a complete description, see the Info files. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-v, \-\-version -Show version of program. -.SH SEE ALSO -.BR bar (1), -.BR baz (1). -.br -The programs are documented fully by -.IR "The Rise and Fall of a Fooish Bar" , -available via the Info system. diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex deleted file mode 100644 index d89c399..0000000 --- a/debian/manpage.sgml.ex +++ /dev/null @@ -1,154 +0,0 @@ - manpage.1'. You may view - the manual page with: `docbook-to-man manpage.sgml | nroff -man | - less'. A typical entry in a Makefile or Makefile.am is: - -manpage.1: manpage.sgml - docbook-to-man $< > $@ - - - The docbook-to-man binary is found in the docbook-to-man package. - Please remember that if you create the nroff version in one of the - debian/rules file targets (such as build), you will need to include - docbook-to-man in your Build-Depends control field. - - --> - - - FIRSTNAME"> - SURNAME"> - - November 10 2017"> - - SECTION"> - klavs@enableit.dk"> - - Brubeck"> - - - Debian"> - GNU"> - GPL"> -]> - - - -
- &dhemail; -
- - &dhfirstname; - &dhsurname; - - - 2003 - &dhusername; - - &dhdate; -
- - &dhucpackage; - - &dhsection; - - - &dhpackage; - - program to do something - - - - &dhpackage; - - - - - - - - DESCRIPTION - - This manual page documents briefly the - &dhpackage; and bar - commands. - - This manual page was written for the &debian; distribution - because the original program does not have a manual page. - Instead, it has documentation in the &gnu; - Info format; see below. - - &dhpackage; is a program that... - - - - OPTIONS - - These programs follow the usual &gnu; command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - Info files. - - - - - - - - Show summary of options. - - - - - - - - Show version of program. - - - - - - SEE ALSO - - bar (1), baz (1). - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - Info system. - - - AUTHOR - - This manual page was written by &dhusername; &dhemail; for - the &debian; system (and may be used by others). Permission is - granted to copy, distribute and/or modify this document under - the terms of the &gnu; General Public License, Version 2 any - later version published by the Free Software Foundation. - - - On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL. - - - -
- - diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex deleted file mode 100644 index e121435..0000000 --- a/debian/manpage.xml.ex +++ /dev/null @@ -1,291 +0,0 @@ - -.
will be generated. You may view the -manual page with: nroff -man .
| less'. A typical entry -in a Makefile or Makefile.am is: - -DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl -XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" - -manpage.1: manpage.xml - $(XP) $(DB2MAN) $< - -The xsltproc binary is found in the xsltproc package. The XSL files are in -docbook-xsl. A description of the parameters you can use can be found in the -docbook-xsl-doc-* packages. Please remember that if you create the nroff -version in one of the debian/rules file targets (such as build), you will need -to include xsltproc and docbook-xsl in your Build-Depends control field. -Alternatively use the xmlto command/package. That will also automatically -pull in xsltproc and docbook-xsl. - -Notes for using docbook2x: docbook2x-man does not automatically create the -AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as - ... . - -To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections -read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be -found in the docbook-xsl-doc-html package. - -Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` - -General documentation about man-pages and man-page-formatting: -man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - ---> - - - - - - - - - - - - - -]> - - - - &dhtitle; - &dhpackage; - - - &dhfirstname; - &dhsurname; - Wrote this manpage for the Debian system. -
- &dhemail; -
-
-
- - 2007 - &dhusername; - - - This manual page was written for the Debian system - (and may be used by others). - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU General Public License, - Version 2 or (at your option) any later version published by - the Free Software Foundation. - On Debian systems, the complete text of the GNU General Public - License can be found in - /usr/share/common-licenses/GPL. - -
- - &dhucpackage; - &dhsection; - - - &dhpackage; - program to do something - - - - &dhpackage; - - - - - - - - - this - - - - - - - - this - that - - - - - &dhpackage; - - - - - - - - - - - - - - - - - - - DESCRIPTION - This manual page documents briefly the - &dhpackage; and bar - commands. - This manual page was written for the Debian distribution - because the original program does not have a manual page. - Instead, it has documentation in the GNU - info - 1 - format; see below. - &dhpackage; is a program that... - - - OPTIONS - The program follows the usual GNU command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - - info - 1 - files. - - - - - - - Does this and that. - - - - - - - Show summary of options. - - - - - - - Show version of program. - - - - - - FILES - - - /etc/foo.conf - - The system-wide configuration file to control the - behaviour of &dhpackage;. See - - foo.conf - 5 - for further details. - - - - ${HOME}/.foo.conf - - The per-user configuration file to control the - behaviour of &dhpackage;. See - - foo.conf - 5 - for further details. - - - - - - ENVIRONMENT - - - FOO_CONF - - If used, the defined file is used as configuration - file (see also ). - - - - - - DIAGNOSTICS - The following diagnostics may be issued - on stderr: - - - Bad configuration file. Exiting. - - The configuration file seems to contain a broken configuration - line. Use the option, to get more info. - - - - - &dhpackage; provides some return codes, that can - be used in scripts: - - Code - Diagnostic - - 0 - Program exited successfully. - - - 1 - The configuration file seems to be broken. - - - - - - BUGS - The program is currently limited to only work - with the foobar library. - The upstreams BTS can be found - at . - - - SEE ALSO - - - bar - 1 - , - baz - 1 - , - foo.conf - 5 - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - info - 1 - system. - -
- diff --git a/debian/menu.ex b/debian/menu.ex deleted file mode 100644 index baf1cd1..0000000 --- a/debian/menu.ex +++ /dev/null @@ -1,2 +0,0 @@ -?package(brubeck):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ - title="brubeck" command="/usr/bin/brubeck" diff --git a/debian/postinst.ex b/debian/postinst.ex deleted file mode 100644 index 4ee93e5..0000000 --- a/debian/postinst.ex +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# postinst script for brubeck -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/debian/postrm.ex b/debian/postrm.ex deleted file mode 100644 index c405720..0000000 --- a/debian/postrm.ex +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# postrm script for brubeck -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/debian/preinst.ex b/debian/preinst.ex deleted file mode 100644 index c30bc4d..0000000 --- a/debian/preinst.ex +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# preinst script for brubeck -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `install' -# * `install' -# * `upgrade' -# * `abort-upgrade' -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - install|upgrade) - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/debian/prerm.ex b/debian/prerm.ex deleted file mode 100644 index eeb28eb..0000000 --- a/debian/prerm.ex +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# prerm script for brubeck -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see https://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - remove|upgrade|deconfigure) - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/debian/watch.ex b/debian/watch.ex deleted file mode 100644 index c4c8eff..0000000 --- a/debian/watch.ex +++ /dev/null @@ -1,39 +0,0 @@ -# Example watch control file for uscan -# Rename this file to "watch" and then you can run the "uscan" command -# to check for upstream updates and more. -# See uscan(1) for format - -# Compulsory line, this is a version 4 file -version=4 - -# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig -#opts="pgpsigurlmangle=s%$%.sig%" - -# HTTP site (basic) -#http://example.com/downloads.html \ -# files/brubeck-([\d\.]+)\.tar\.gz debian uupdate - -# Uncommment to examine a FTP server -#ftp://ftp.example.com/pub/brubeck-(.*)\.tar\.gz debian uupdate - -# SourceForge hosted projects -# http://sf.net/brubeck/ brubeck-(.*)\.tar\.gz debian uupdate - -# GitHub hosted projects -#opts="filenamemangle="s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%-$1.tar.gz%" \ -# https://github.com//brubeck/tags \ -# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate - -# PyPI -# https://pypi.python.org/packages/source//brubeck/ \ -# brubeck-(.+)\.tar\.gz debian uupdate - -# Direct Git -# opts="mode=git" http://git.example.com/brubeck.git \ -# refs/tags/v([\d\.]+) debian uupdate - - - - -# Uncomment to find new files on GooglePages -# http://example.googlepages.com/foo.html brubeck-(.*)\.tar\.gz From 7ae796697b1aa0ea687f4b212c360a1f5aa96e92 Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Fri, 24 Nov 2017 15:33:05 +0100 Subject: [PATCH 3/6] add install requirements. --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index c4727ab..e0888e1 100644 --- a/debian/control +++ b/debian/control @@ -9,5 +9,6 @@ Homepage: https://github.com/github/brubeck.git Package: brubeck Architecture: all +Depends: libjansson4, libmicrohttpd10 Description: Brubeck statsd daemon replacement Brubec statsd daemon replacement From 973ab30249601cb79ede51497814247ef467ff8a Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Fri, 24 Nov 2017 16:04:28 +0100 Subject: [PATCH 4/6] add systemd service and include sample config file. --- debian/brubeck.brubeck.service | 13 +++++++++++++ debian/install | 1 + debian/rules | 4 +++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 debian/brubeck.brubeck.service diff --git a/debian/brubeck.brubeck.service b/debian/brubeck.brubeck.service new file mode 100644 index 0000000..7c823a9 --- /dev/null +++ b/debian/brubeck.brubeck.service @@ -0,0 +1,13 @@ +[Unit] +Description=Brubeck Statsd Daemon + +[Service] +Type=simple +SyslogIdentifier=brubeck +User=nobody +Restart=on-failure +ExecStart=/usr/bin/brubeck --log /var/log/brubeck/brubeck.log --config /etc/brubeck/config.json + +[Install] +WantedBy=multi-user.target + diff --git a/debian/install b/debian/install index d548f2b..dbcff55 100644 --- a/debian/install +++ b/debian/install @@ -1 +1,2 @@ brubeck usr/bin +config.default.json.example etc/brubeck diff --git a/debian/rules b/debian/rules index 556fc1e..448a5a9 100755 --- a/debian/rules +++ b/debian/rules @@ -16,8 +16,10 @@ %: ./script/bootstrap - dh $@ + dh $@ --with systemd +#override_dh_installinit: +# dh_installinit --name=brubeck -- defaults # dh_make generated override targets # This is example for Cmake (See https://bugs.debian.org/641051 ) From 2b4ab967b6c03761a85df8f2e877b2bd7746387d Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Fri, 24 Nov 2017 16:16:08 +0100 Subject: [PATCH 5/6] add systemd service file and default config example. --- debian/changelog | 14 +++++++++++++- debian/control | 2 +- debian/rules | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4e272b1..4c69660 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,16 @@ -brubeck (2536347-1) unstable; urgency=medium +brubeck (2536347-3) unstable; urgency=low + + * add systemd service file, and example config file and added misc depends. + + -- Klavs Klavsen Fri, 24 Nov 2017 16:15:00 +0100 + +brubeck (2536347-2) unstable; urgency=low + + * Fix depends for brubeck. + + -- Klavs Klavsen Fri, 24 Nov 2017 14:50:14 +0100 + +brubeck (2536347-1) unstable; urgency=low * Initial release debian package diff --git a/debian/control b/debian/control index e0888e1..8185bc4 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,6 @@ Homepage: https://github.com/github/brubeck.git Package: brubeck Architecture: all -Depends: libjansson4, libmicrohttpd10 +Depends: ${misc:Depends}, libjansson4, libmicrohttpd10 Description: Brubeck statsd daemon replacement Brubec statsd daemon replacement diff --git a/debian/rules b/debian/rules index 448a5a9..2b98a87 100755 --- a/debian/rules +++ b/debian/rules @@ -18,8 +18,8 @@ ./script/bootstrap dh $@ --with systemd -#override_dh_installinit: -# dh_installinit --name=brubeck -- defaults +override_dh_installinit: + dh_installinit --name=brubeck -- defaults # dh_make generated override targets # This is example for Cmake (See https://bugs.debian.org/641051 ) From 7306fe1e46585c60f1720edf4ee1eaff334a1da1 Mon Sep 17 00:00:00 2001 From: Klavs Klavsen Date: Mon, 28 May 2018 12:59:14 +0000 Subject: [PATCH 6/6] config fixes for ubuntu 18.04/bionic build. now needs to be build with 'debuild -i -us -uc -b --lintian-opts --profile debian' --- debian/control | 9 +++++---- debian/rules | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/debian/control b/debian/control index 8185bc4..0b215ec 100644 --- a/debian/control +++ b/debian/control @@ -3,12 +3,13 @@ Priority: optional Maintainer: Klavs Klavsen Build-Depends: debhelper (>=9), libmicrohttpd-dev, libjansson-dev (>=2.5) Standards-Version: 3.9.6 +Section: misc Homepage: https://github.com/github/brubeck.git #Vcs-Git: git://anonscm.debian.org/collab-maint/brubeck.git #Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/brubeck.git Package: brubeck -Architecture: all -Depends: ${misc:Depends}, libjansson4, libmicrohttpd10 -Description: Brubeck statsd daemon replacement - Brubec statsd daemon replacement +Architecture: amd64 +Depends: ${misc:Depends}, libjansson4, libmicrohttpd12, ${shlibs:Depends} +Description: Statsd daemon replacement + Use this to get a better Statsd implementation diff --git a/debian/rules b/debian/rules index 2b98a87..3428ce7 100755 --- a/debian/rules +++ b/debian/rules @@ -13,13 +13,24 @@ # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed - %: - ./script/bootstrap dh $@ --with systemd override_dh_installinit: - dh_installinit --name=brubeck -- defaults + dh_systemd_enable -pbrubeck --name=brubeck brubeck.service + dh_installinit -pbrubeck --no-start --noscripts + dh_systemd_start -pbrubeck --no-restart-on-upgrade + +override_dh_systemd_start: + echo "Not running dh_systemd_start" + +# +#%: +# ./script/bootstrap +# dh $@ --with systemd +# +#override_dh_installinit: +# dh_installinit --name=brubeck -- defaults # dh_make generated override targets # This is example for Cmake (See https://bugs.debian.org/641051 )