From: Ralph Ronnquist Date: Mon, 11 Mar 2019 01:26:37 +0000 (+1100) Subject: debian packaging X-Git-Tag: 0.3~15 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=7ec2cf1f72996d6bb25cdc510fba170ec2c62eaf;p=rrq%2Ffusefile.git debian packaging --- diff --git a/Makefile b/Makefile index d3c33ef..c9df3bb 100644 --- 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 index 0000000..2b2df8a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fusefile (0.1) unstable; urgency=medium + + * Initial Release. + + -- Ralph Ronnquist Mon, 11 Mar 2018 10:00:00 +1100 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..dd72b72 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: fusefile +Section: admin +Priority: optional +Maintainer: Ralph Ronnquist +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 index 0000000..d45ae41 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fusefile +Source: + +Files: * +Copyright: 2018 Ralph Ronnquist +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 . + . + 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 index 0000000..15454eb --- /dev/null +++ b/debian/files @@ -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 index 0000000..df491d8 --- /dev/null +++ b/debian/gbp.conf @@ -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 index 0000000..9ba3ef6 --- /dev/null +++ b/debian/rules @@ -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 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)