diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ba9953b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +inotify-info (0~20240209-1) unstable; urgency=medium + + * Initial upload to sid. + + -- Daniel Baumann Thu, 25 Apr 2024 09:14:44 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..da691ef --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: inotify-info +Section: utils +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), +Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/mikesart/inotify-info +Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/inotify-info +Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/inotify-info + +Package: inotify-info +Section: utils +Architecture: linux-any +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: tracking the number of inotify watches + The Linux inotify system can be difficult to debug when the system runs out of + watches. inotify-info allows tracking down how many inotify watches, instances, + and which files are being watched. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..576d38a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: inotify-info +Upstream-Contact: https://github.com/mikesart/inotify-info/issues +Source: https://github.com/mikesart/inotify-info/releases + +Files: * +Copyright: 2021 Michael Sartain +License: MIT + +Files: lfqueue/* +Copyright: 2018 Taymindis Woon +License: BSD-2-clause + +Files: debian/* +Copyright: 2024 Daniel Baumann +License: MIT + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions 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. + . + THIS SOFTWARE IS PROVIDED BY AUTHORS 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 AUTHORS 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. + +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/inotify-info.install b/debian/inotify-info.install new file mode 100644 index 0000000..f344131 --- /dev/null +++ b/debian/inotify-info.install @@ -0,0 +1 @@ +_release/inotify-info /usr/bin diff --git a/debian/patches/debian/0001-dwz.patch b/debian/patches/debian/0001-dwz.patch new file mode 100644 index 0000000..fce30fb --- /dev/null +++ b/debian/patches/debian/0001-dwz.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann +Description: Building without -gsplit-dwarf to workaround bug in dwz causing FTBFS (#1016936). + +diff -Naurp inotify-info.orig/Makefile inotify-info/Makefile +--- inotify-info.orig/Makefile ++++ inotify-info/Makefile +@@ -33,7 +33,7 @@ ifneq ($(COMPILER),clang) + WARNINGS += -Wsuggest-attribute=format -Wall + endif + +-CFLAGS = $(WARNINGS) -march=native -fno-exceptions -gdwarf-4 -g2 -ggnu-pubnames -gsplit-dwarf ++CFLAGS = $(WARNINGS) -march=native -fno-exceptions -gdwarf-4 -g2 -ggnu-pubnames + CFLAGS += -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 + CXXFLAGS = -fno-rtti -Woverloaded-virtual + LDFLAGS = -march=native -gdwarf-4 -g2 -Wl,--build-id=sha1 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..80e0c95 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-dwz.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..130c40b --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh ${@} + +execute_after_dh_auto_clean: + rm -rf _release 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..6951858 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/inotify-info-$1\.tar\.gz/ \ +https://github.com/mikesart/inotify-info/tags .*/v?(\d\S+)\.tar\.gz