debian packaging
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 11 Mar 2019 01:26:37 +0000 (12:26 +1100)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 11 Mar 2019 01:26:37 +0000 (12:26 +1100)
Makefile
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/files [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]

index d3c33efe9a9e5071b2ccf8d56da099a284211222..c9df3bb0f33d5eccf721d35dc835b6e2552c8b10 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,4 +7,23 @@ fusefile: LDFLAGS = -lfuse
 fusefile: fusefile.c
 
 clean:
-       rm $(BINS)
+       rm -f $(BINS)
+
+# Building a debian package
+
+SBINDIR = $(DESTDIR)/usr/local/sbin
+MAN8DIR = $(DESTDIR)/usr/local/share/man/man8
+
+SBINFILES = fusefile
+MAN8FILES = fusefile.8
+
+INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))
+INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
+
+$(SBINDIR)/% $(MAN8DIR)/%: %
+       install -D -T $< $@
+
+install: $(INSTALLTARGETS)
+
+deb:
+       PREFIX= INCLUDE_PREFIX=/usr dpkg-buildpackage --build=full -uc -us
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..2b2df8a
--- /dev/null
@@ -0,0 +1,5 @@
+fusefile (0.1) unstable; urgency=medium
+
+  * Initial Release.
+
+ -- Ralph Ronnquist <ralph.ronnquist@gmail.com>  Mon, 11 Mar 2018 10:00:00 +1100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..dd72b72
--- /dev/null
@@ -0,0 +1,16 @@
+Source: fusefile
+Section: admin
+Priority: optional
+Maintainer: Ralph Ronnquist <ralph.ronnquist@gmail.com>
+Build-Depends: debhelper (>= 9), libfuse-dev
+Standards-Version: 3.9.8
+#Homepage:
+#Vcs-Git:
+
+Package: fusefile
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, fuse
+Description: fusefile is FUSE file mount that presents a series of
+ fragments of other files as a contiguous concatenation. It bind
+ mounts a driver on top of the file mountpoint to present the
+ nominated file fragments as a single, contiguous file.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..d45ae41
--- /dev/null
@@ -0,0 +1,24 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fusefile
+Source: <url://example.com>
+
+Files: *
+Copyright: 2018 Ralph Ronnquist <ralph.ronnquist@gmail.com>
+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/files b/debian/files
new file mode 100644 (file)
index 0000000..15454eb
--- /dev/null
@@ -0,0 +1,3 @@
+fusefile-dbgsym_0.1_amd64.deb debug extra
+fusefile_0.1_amd64.buildinfo admin optional
+fusefile_0.1_amd64.deb admin optional
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..df491d8
--- /dev/null
@@ -0,0 +1,4 @@
+[DEFAULT]
+debian-branch=suites/experimental
+ignore-branch=True
+compression-level=9
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..9ba3ef6
--- /dev/null
@@ -0,0 +1,27 @@
+#!/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)
+
+override_dh_usrlocal:
+       true
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..89ae9db
--- /dev/null
@@ -0,0 +1 @@
+3.0 (native)