From 5a3e385e3fcf889f37d2af1256bd0905bf73a66d Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 20 Mar 2015 09:14:30 +0000 Subject: [PATCH] add Debian package metadata --- debian/changed.manpages | 1 + debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 12 ++++++++++++ debian/copyright | 31 +++++++++++++++++++++++++++++++ debian/rules | 17 +++++++++++++++++ debian/source/format | 1 + 7 files changed, 68 insertions(+) create mode 100644 debian/changed.manpages create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changed.manpages b/debian/changed.manpages new file mode 100644 index 0000000..c5d0ffd --- /dev/null +++ b/debian/changed.manpages @@ -0,0 +1 @@ +changed.1 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ccadf71 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +changed (0.1) unstable; urgency=low + + * Initial Release. + + -- ale <ale@incal.net> Wed, 21 Jan 2015 08:19:45 +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..2b52159 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: changed +Section: utils +Priority: optional +Maintainer: ale <ale@incal.net> +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.5 + +Package: changed +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tells if a file or directory have changed. + Useful for automation and configuration management scripts. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e30d6d0 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: changed +Source: <https://git.autistici.org/ale/changed> + +Files: * +Copyright: 2014 ale <ale@incal.net> +License: MIT + +Files: debian/* +Copyright: 2014 ale <ale@incal.net> +License: MIT + +License: MIT + 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/rules b/debian/rules new file mode 100755 index 0000000..1e02d6d --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PKGDIR = $(CURDIR)/debian/changed + +%: + dh $@ + +override_dh_install: + install -m 755 -o root -g root -d $(PKGDIR)/usr/bin + go build -o $(PKGDIR)/usr/bin/changed changed.go + chmod 755 $(PKGDIR)/usr/bin/changed + chown root:root $(PKGDIR)/usr/bin/changed + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- GitLab