diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..3e3ecc3 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +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/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.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/changelog b/debian/changelog new file mode 100644 index 0000000..4c69660 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,17 @@ +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 + + -- 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..0b215ec --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: brubeck +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: amd64 +Depends: ${misc:Depends}, libjansson4, libmicrohttpd12, ${shlibs:Depends} +Description: Statsd daemon replacement + Use this to get a better Statsd implementation diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..41016b1 --- /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/github/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/install b/debian/install new file mode 100644 index 0000000..dbcff55 --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +brubeck usr/bin +config.default.json.example etc/brubeck diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3428ce7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/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 + +%: + dh $@ --with systemd + +override_dh_installinit: + 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 ) +#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)