From 03746e44925fec58a2ab4a6b0996836761186578 Mon Sep 17 00:00:00 2001 From: Andres Mejia Date: Sat, 16 Jul 2011 19:25:21 -0400 Subject: [PATCH] Imported Debian patch 0.0~git20110716.8c27363-1 --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 35 +++++++++++++++++++ debian/copyright | 66 +++++++++++++++++++++++++++++++++++ debian/gbp.conf | 6 ++++ debian/libnfs-dev.install | 3 ++ debian/libnfs-get-orig-source | 39 +++++++++++++++++++++ debian/libnfs0.install | 1 + debian/rules | 10 ++++++ debian/source/format | 1 + debian/watch | 2 ++ 11 files changed, 169 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libnfs-dev.install create mode 100755 debian/libnfs-get-orig-source create mode 100644 debian/libnfs0.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..304d4eb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libnfs (0.0~git20110716.8c27363-1) UNRELEASED; urgency=low + + * Initial release. (Closes: #634086) + + -- Andres Mejia Sat, 16 Jul 2011 19:25:21 -0400 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..ab684b8 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: libnfs +Section: libs +Priority: optional +Maintainer: Andres Mejia +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.9.2 +Homepage: https://github.com/sahlberg/libnfs + +Package: libnfs-dev +Architecture: any +Section: libdevel +Depends: libnfs0 (= ${binary:Version}), + ${misc:Depends} +Description: NFS client library (development files) + LIBNFS is a client library for accessing NFS shares over a network. + . + LIBNFS offers three different APIs, for different use : + 1, RAW : A fully async low level rpc library for nfs protocols + 2, NFS ASYNC : A fully asynchronous library for high level vfs functions + 3, NFS SYNC : A synchronous library for high level vfs functions + . + This package provides the necessary files needed for development. + +Package: libnfs0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: NFS client library (shared library) + LIBNFS is a client library for accessing NFS shares over a network. + . + LIBNFS offers three different APIs, for different use : + 1, RAW : A fully async low level rpc library for nfs protocols + 2, NFS ASYNC : A fully asynchronous library for high level vfs functions + 3, NFS SYNC : A synchronous library for high level vfs functions + . + This package provides the shared library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..900f8c4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,66 @@ +Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co +Upstream-Name: libnfs +Upstream-Contact: Ronnie Sahlberg +Source: https://github.com/sahlberg/libnfs + +Files: * +Copyright: 2010-2011 Ronnie Sahlberg +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library. If not, see + . + . + On Debian systems, the full text of the GNU Lesser General Public + License version 2.1 can be found in the file + '/usr/share/common-licenses/LGPL-2.1'. + +Files: examples/* +Copyright: 2010-2011 Ronnie Sahlberg +License: GPL-3+ + 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 program 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 full text of the GNU General Public + License version 2 can be found in the file + '/usr/share/common-licenses/GPL-3'. + +Files: debian/* +Copyright: 2011, Andres Mejia +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library. If not, see + . + . + On Debian systems, the full text of the GNU Lesser General Public + License version 2.1 can be found in the file + '/usr/share/common-licenses/LGPL-2.1'. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..1615f89 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch = upstream +debian-branch = master +upstream-tag = upstream/%(version)s +debian-tag = debian/%(version)s +pristine-tar = True diff --git a/debian/libnfs-dev.install b/debian/libnfs-dev.install new file mode 100644 index 0000000..746c714 --- /dev/null +++ b/debian/libnfs-dev.install @@ -0,0 +1,3 @@ +usr/include +usr/lib/libnfs.so +usr/lib/libnfs.a diff --git a/debian/libnfs-get-orig-source b/debian/libnfs-get-orig-source new file mode 100755 index 0000000..fa4e56a --- /dev/null +++ b/debian/libnfs-get-orig-source @@ -0,0 +1,39 @@ +#!/bin/sh + +# Script used to generate the orig source tarball for libnfs. + +LIBNFS_GIT_URL="git://github.com/sahlberg/libnfs.git" +LIBNFS_GIT_COMMIT="8c27363e21f667a01e75f585b897c3b36d8f5245" +DATE_RETRIEVED="20110716" +COMMIT_SHORT_FORM="$(echo $LIBNFS_GIT_COMMIT | \ + sed -e 's/^\([[:xdigit:]]\{,7\}\).*/\1/')" +LIBNFS_VERSION="0.0~git${DATE_RETRIEVED}.${COMMIT_SHORT_FORM}" + +git clone "$LIBNFS_GIT_URL" "libnfs-${LIBNFS_VERSION}" + +cd "libnfs-${LIBNFS_VERSION}" +git checkout "$LIBNFS_GIT_COMMIT" +./bootstrap +cd .. + +# Remove temp files and other cruft from source tarball +# The find command snippet here was taken from debhelper's dh_clean command +# with some modification to delete more unneeded files. +echo "Removing temp files and other cruft from source tarball" +find libnfs-${LIBNFS_VERSION} \( \( -type f -a \ + \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ + -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ + -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ + -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ + -o -name config.status -o -name config.cache -o -name config.log \ + \) -exec rm -f "{}" \; \) -o \ + \( -type d -a -name autom4te.cache -prune -exec rm -rf "{}" \; \) \) +rm -rf libnfs-${LIBNFS_VERSION}/.git +rm -f libnfs-${LIBNFS_VERSION}/.gitignore + +# Remove empty directories +echo "Removing empty directories" +find libnfs-${LIBNFS_VERSION} -type d -empty -delete + +tar --exclude-vcs -czf "libnfs_${LIBNFS_VERSION}.orig.tar.gz" \ + "libnfs-${LIBNFS_VERSION}/" diff --git a/debian/libnfs0.install b/debian/libnfs0.install new file mode 100644 index 0000000..da98ed8 --- /dev/null +++ b/debian/libnfs0.install @@ -0,0 +1 @@ +usr/lib/libnfs.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fb9ca85 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +# Set CFLAGS to DEB_CFLAGS +CFLAGS=$(DEB_CFLAGS) + +%: + dh $@ --parallel + +override_dh_clean: + dh_clean examples/Makefile 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..0d9c19a --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +# There is currently no upstream source tarball. This package is generated +# from upstream's git vcs. -- 2.34.1