From: Stefan Bund Date: Fri, 6 Nov 2009 13:54:28 +0000 (+0100) Subject: debianize X-Git-Url: http://g0dil.de/git?p=mapsector.git;a=commitdiff_plain;h=cd564bd299184269380260bd9f1fec882bac1a81 debianize --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad34549 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/*-stamp diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..06e32d0 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,3 @@ +/mapsector.debhelper.log +/mapsector/ +/files diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d9607b9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,16 @@ +mapsector (0.0.1~1.gbpc67543) UNRELEASED; urgency=low + + ** SNAPSHOT build @c6754307a8e5e3a0666641ce0916d639b95053f4 ** + + * [1f26a61a] modularize + * [63c6e663] Add version variable + * [9b845b7a] Add --version/-V command line option + * [c6754307] add updateversion.sh script + + -- Stefan Bund Fri, 06 Nov 2009 14:38:29 +0100 + +mapsector (0.0.0) unstable; urgency=low + + * Initial Release. + + -- Stefan Bund Fri, 06 Nov 2009 14:13:42 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ba9c4cb --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: mapsector +Section: unknown +Priority: extra +Maintainer: Stefan Bund +Build-Depends: debhelper (>= 7) +Standards-Version: 3.7.3 +Homepage: + +Package: mapsector +Architecture: all +Description: Map device/sector number to file name + mapsector will try to find the file name(s) associated with a given + sector on a given device. It supports several block device mapping + schemes like LVM or partition tables and supports several + filesystems. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4fce579 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Author(s): + + Stefan Bund + +Copyright: + + Copyright (C) 2009 Stefan Bund + +License: + + This package 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 2 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2009, Stefan Bund and +is licensed under the GPL, see above. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..a9e622c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,53 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +# the default build command: +#builder = debuild -i\.git/ -I.git +# the default clean command: +#cleaner = debuild clean +# the default branch for upstream sources: +#upstream-branch = upstream +# the default branch for the debian patch: +#debian-branch = master +# the default tag formats used: +#upstream-tag = v%(version)s +debian-tag = v%(version)s +# use pristine-tar: +#pristine-tar = True + +# Options only affecting git-buildpackage +[git-buildpackage] +#upstream-branch = dfsgclean +# uncomment this to automatically GPG sign tags +sign-tags = False +# keyid to GPG sign tags with +#keyid = 0xdeadbeef +# push to a remote repository after a successful tag: +#posttag = git-push git.example.com +# use this for more svn-buildpackage like behaviour: +#export-dir = ../build-area/ +#tarball-dir = ../tarballs/ +#ignore-new = True + +# Options only affecting git-import-orig +[git-import-orig] +#upstream-branch = newupstream +#debian-branch = dfsgclean +#filter = .svn + +# Options only affecting git-import-dsc +[git-import-dsc] +#upstream-branch = svn-upstream +#filter = [ 'CVS', '.cvsignore' ] + +# Options only affecting git-dch +[git-dch] +#git-log = --no-merges +#snapshot-number = snapshot + 1 +# include 0 digits of the commit id in the changelog enty +id-length = 8 +# don't include information from meta tags +#meta = False +# what tags to look for to generate bug-closing changelog entries +#meta-closes = Closes|LP + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ca366b2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir +# # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + +# # Add here commands to compile the package. + ./updateversion.sh + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + +# # Add here commands to clean up after the build process. + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# # Add here commands to install the package into debian/mapsector. + mkdir -p debian/mapsector/usr/bin + mkdir -p debian/mapsector/usr/share/mapsector + cp mapsector debian/mapsector/usr/bin + cp lib/* debian/mapsector/usr/share/mapsector + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman +# dh_link +# dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb +# dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/mapsector b/mapsector index d3c2a72..353c6de 100755 --- a/mapsector +++ b/mapsector @@ -52,7 +52,7 @@ unset LANG name="`basename "$0"`" X="`dirname "$0"`" if [ "`basename "$X"`" == "bin" ]; then # `" - libdir="`dirname "$X"`/lib/$name" #`" + libdir="`dirname "$X"`/share/$name" #`" fi if [ -z "$libdir" -o ! -d "$libdir" ]; then libdir="$X/lib"