]> git.corax.cc Git - toolbox-linux/commitdiff
debian: Add files for building debian packages
authorMatthias Kruk <m@m10k.eu>
Sun, 23 Jan 2022 15:53:09 +0000 (00:53 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 23 Jan 2022 15:55:37 +0000 (00:55 +0900)
This commit adds all files necessary to build debian packages from
the source tree.

Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..a18a2ea
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+PHONY = install uninstall test
+
+ifeq ($(PREFIX), )
+       PREFIX = /usr
+endif
+
+all:
+
+clean:
+
+test:
+
+install:
+       mkdir -p $(DESTDIR)/$(PREFIX)/share/toolbox/include
+       chown -R root.root include
+       find include -type d -exec chmod 755 {} \;
+       find include -type f -exec chmod 644 {} \;
+       cp -a include/* $(DESTDIR)/$(PREFIX)/share/toolbox/include/.
+
+uninstall:
+       rm -f $(DESTDIR)/$(PREFIX)/share/toolbox/include/acpi/ac.sh
+       rm -f $(DESTDIR)/$(PREFIX)/share/toolbox/include/acpi/battery.sh
+       rm -f $(DESTDIR)/$(PREFIX)/share/toolbox/include/net/iface.sh
+       rmdir $(DESTDIR)/$(PREFIX)/share/toolbox/include/acpi
+       rmdir $(DESTDIR)/$(PREFIX)/share/toolbox/include/net
+
+.PHONY: $(PHONY)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..4a48118
--- /dev/null
@@ -0,0 +1,8 @@
+toolbox-linux (0.1.0-1) unstable; urgency=medium
+
+  * New modules
+    - acpi/ac: Functions for querying power supply information
+    - acpi/battery: Functions for querying battery information
+    - net/iface: Functions for querying network interfaces
+
+ -- Matthias Kruk <m@m10k.eu>  Mon, 24 Jan 2022 00:33:26 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..97b8412
--- /dev/null
@@ -0,0 +1,15 @@
+Source: toolbox-linux
+Priority: optional
+Maintainer: Matthias Kruk <m@m10k.eu>
+Build-Depends: debhelper (>= 9), make, coreutils, findutils
+Standards-Version: 3.9.8
+Section: shells
+Homepage: https://m10k.eu/toolbox.html
+
+Package: toolbox-linux
+Section: shells
+Architecture: all
+Depends: bash (>= 4.0), toolbox, coreutils, grep, net-tools, wireless-tools, iproute2, ${misc:Depends}
+Description: Linux modules for toolbox
+ This package provides various modules that depend on Linux-specific
+ APIs, such as power management and network interfaces.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..710d8f1
--- /dev/null
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: toolbox-linux
+Source: https://m10k.eu/toolbox
+
+Files: *
+Copyright: 2021 Matthias Kruk <m@m10k.eu>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2021 Matthias Kruk <m@m10k.eu>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program 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 3 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 <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..e1c367c
--- /dev/null
@@ -0,0 +1,25 @@
+#!/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 $@
+
+
+# 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)
+