diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/NEWS | 11 | ||||
-rw-r--r-- | debian/changelog | 396 | ||||
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/control | 59 | ||||
-rw-r--r-- | debian/copyright | 368 | ||||
-rw-r--r-- | debian/libtirpc-common.install | 2 | ||||
-rw-r--r-- | debian/libtirpc-dev.docs | 2 | ||||
-rw-r--r-- | debian/libtirpc-dev.install | 5 | ||||
-rw-r--r-- | debian/libtirpc3-udeb.install | 2 | ||||
-rw-r--r-- | debian/libtirpc3.install | 1 | ||||
-rw-r--r-- | debian/libtirpc3.symbols | 7 | ||||
-rw-r--r-- | debian/not-installed | 2 | ||||
-rw-r--r-- | debian/patches/03-kfreebsd.diff | 107 | ||||
-rw-r--r-- | debian/patches/05-hurd-port.diff | 79 | ||||
-rw-r--r-- | debian/patches/06-hurd-client-port.diff | 48 | ||||
-rw-r--r-- | debian/patches/series | 3 | ||||
-rwxr-xr-x | debian/rules | 39 | ||||
-rw-r--r-- | debian/salsa-ci.yml | 3 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rwxr-xr-x | debian/tests/check-installation | 9 | ||||
-rw-r--r-- | debian/tests/control | 2 | ||||
-rw-r--r-- | debian/upstream/metadata | 3 | ||||
-rw-r--r-- | debian/watch | 2 |
23 files changed, 1152 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS new file mode 100644 index 0000000..15c07fb --- /dev/null +++ b/debian/NEWS @@ -0,0 +1,11 @@ +libtirpc (1.3.2-1) experimental; urgency=medium + + In order to avoid potential collisions libtirpc now includes + the following ports in its denylist for bindresvport: + - 873 + - 992 + - 994 + For more information check: + https://bugzilla.redhat.com/show_bug.cgi?id=1854147 + + -- Josue Ortega <josue@debian.org> Fri, 25 Jun 2021 14:37:34 -0600 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3ea7ce4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,396 @@ +libtirpc (1.3.4+ds-1) unstable; urgency=medium + + [ Debian Janitor ] + * Set upstream metadata fields: Archive, Bug-Database. + * Drop unnecessary dependency on dh-autoreconf. + + [ Josue Ortega ] + * New upstream release (1.3.4). + * debian/copyright: Update debian/* copyright holder year. + * Bump Standards-Version to 4.6.2. No changes required. + + -- Josue Ortega <josue@debian.org> Sun, 12 Nov 2023 17:45:44 -0600 + +libtirpc (1.3.3+ds-1) unstable; urgency=medium + + * New upstream release (1.3.3): + + Refresh debian/patches. + + Remove Fix-DoS-vulnerability-in-libtirpc.patch. Patch is not longer needed + the changes have been applied by upstream. + * debian/copyright: + + Update debian/* copyright holder years. + + Document repack of upstream removing symlink + to /usr/share/automake-1.16/INSTALL file. + * Bump Standards-Version to 4.6.1. No changees required. + + -- Josue Ortega <josue@debian.org> Thu, 11 Aug 2022 08:50:52 -0600 + +libtirpc (1.3.2-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix DoS vulnerability in libtirpc (CVE-2021-46828) (Closes: #1015873) + + -- Salvatore Bonaccorso <carnil@debian.org> Mon, 01 Aug 2022 16:26:18 +0200 + +libtirpc (1.3.2-2) unstable; urgency=medium + + * Upload to unstable + + -- Josue Ortega <josue@debian.org> Tue, 17 Aug 2021 09:16:38 -0600 + +libtirpc (1.3.2-1) experimental; urgency=medium + + * New upstream release (1.3.2) + * Add NEWS file for current release + + -- Josue Ortega <josue@debian.org> Fri, 25 Jun 2021 18:16:29 -0600 + +libtirpc (1.3.1-1) unstable; urgency=medium + + * New upstream release (1.3.1): + + Refresh patches: + - debian/patches/03-kfreebsd.diff + - debian/patches/06-hurd-client-port.diff + * debian/watch: Bump to Standard Version 4 + * Bump Standards-Version to 4.5.1. No changes required + + -- Josue Ortega <josue@debian.org> Wed, 30 Dec 2020 19:21:05 -0600 + +libtirpc (1.2.6-3) unstable; urgency=medium + + * Source only upload to enable new package migration to testing + * debian/patches: Document header Forwarded as not-needed on patches + 03-kfreebsd and 05-hurd-port + + -- Josue Ortega <josue@debian.org> Sun, 11 Oct 2020 14:39:10 -0600 + +libtirpc (1.2.6-2) unstable; urgency=medium + + * Add udeb package. Thanks to Aurelien Jarno <aurel32@debian.org> for + the patch. (Closes: #968824) + * Bump debhelper-compat to use (= 13): + + Add debian/not-installed file + + -- Josue Ortega <josue@debian.org> Sun, 23 Aug 2020 16:56:17 -0600 + +libtirpc (1.2.6-1) unstable; urgency=medium + + * New upstream release (1.2.6) + + Closes: #957482 + * Bump Standards-Version to 4.5.0. No changes required + + -- Josue Ortega <josue@debian.org> Sat, 18 Apr 2020 16:14:00 -0600 + +libtirpc (1.2.5-1) unstable; urgency=medium + + * New upstream release (1.2.5): + + Remove debian/patches/fix-manpage.diff, patch is no longer needed + * Bump Standards-Version to 4.4.1. No changes required + * debian/control: Add Rules-Requires-Root field + * Add debian/tests + + -- Josue Ortega <josue@debian.org> Fri, 27 Dec 2019 08:11:57 -0600 + +libtirpc (1.1.4-1) unstable; urgency=medium + + * New maintainer. Closes: #925044 + * Update package to use debhelper-compat (= 12): + - Remove dh-autoreconf, autotools-dev from build depends + * Update debian/copyright to machine-readable format (DEP-5) + * Add description to debian/patches/fix-manpage.diff + * Add description to debian/patches/03-kfreebsd.diff + * debian/rules: Add hardening flags + * debian/control: + - Add Vcs fields + - Fix typo in libtirpc-devel long description + * Bump Standards-Version to 4.4.0. No changes required. + + -- Josue Ortega <josue@debian.org> Sun, 01 Sep 2019 12:43:24 -0600 + +libtirpc (1.1.4-0.4) unstable; urgency=medium + + * Non-maintainer upload. + * libtirpc-common: add missing Breaks: libtirpc1 to ensure clean upgrades. + + -- Andreas Beckmann <anbe@debian.org> Tue, 11 Dec 2018 15:41:49 +0100 + +libtirpc (1.1.4-0.3) unstable; urgency=medium + + * Non-maintainer upload. + * Drop debian/libtirpc-dev.dirs and debian/libtirpc3.dirs, these are only + needed if we want to ship empty directories + * debian/patches/03-kfreebsd.diff: Fix FTBFS on non-linux architectures, the + package builds again on these architectures, not tested though + + -- Laurent Bigonville <bigon@debian.org> Sun, 21 Oct 2018 11:26:49 +0200 + +libtirpc (1.1.4-0.2) unstable; urgency=medium + + * Non-maintainer upload. + * Upload to unstable + * debian/libtirpc3.symbols: Add Build-Depends-Package field + * debian/control: Relax a bit the dependency from libtirpc3 against + libtirpc-common + + -- Laurent Bigonville <bigon@debian.org> Sat, 20 Oct 2018 13:06:56 +0200 + +libtirpc (1.1.4-0.1) experimental; urgency=medium + + * Non-maintainer upload. + * New upstream release (Closes: #889597) + - Drop d/p/10-CVE-2016-4429.diff: Fixed upstream + * debian/watch: Update the URL to point to sourceforge + * debian/control: Bump Standards-Version to 4.2.1 (no further changes) + * debian/control: Downgrade priority to optional to please lintian + * debian/control: Remove duplicate Section/Priority to please lintian + * Create a new libtirpc-common package and move /etc/netconfig and + netconfig.5 to it, do not conflit with libtirpc1 to ease the + co-installation of libtirpc1 and libtirpc3 (Closes: #884029) + + -- Laurent Bigonville <bigon@debian.org> Sun, 14 Oct 2018 18:10:57 +0200 + +libtirpc (1.0.2-0.2) experimental; urgency=medium + + * Non-maintainer upload. + * Update the list of copyright holders. Closes: #883910. + + -- Matthias Klose <doko@debian.org> Sat, 09 Dec 2017 13:16:22 +0100 + +libtirpc (1.0.2-0.1) experimental; urgency=medium + + * Non-maintainer upload. + * New upstream version. + - rendezvous_request: check the makefd_xprt return value (CVE-2018-14622) + (Closes: #907608) + * Bump standards version. + * Mark the -dev package as M-A: same. + * Add a symbols file for libtirpc3. + + -- Matthias Klose <doko@debian.org> Tue, 05 Dec 2017 07:37:47 +0100 + +libtirpc (0.2.5-1.2) unstable; urgency=high + + * Non-maintainer upload. + * CVE-2017-8779: Memory leak when failing to parse XDR strings or bytearrays + (Closes: #861834) + + -- Salvatore Bonaccorso <carnil@debian.org> Fri, 05 May 2017 17:24:41 +0200 + +libtirpc (0.2.5-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix CVE-2016-4429 (Closes: #840347) + * Standards-Version is now 3.9.8 + * Update patch 05-hurd-port.diff as config.h is already deleted by + debhelper. + * Stop installing empty /usr/lib directory. + * Stop installing now empty postinst/postrm, as debhelper installs + an ldconfig trigger instead. + + -- Christian Hofstaedtler <zeha@debian.org> Wed, 21 Dec 2016 22:12:21 +0000 + +libtirpc (0.2.5-1) unstable; urgency=medium + + * New upstream version 0.2.5. + Remove the INSTALL symlink, replace it with INSTALL from 0.2.3 + and repackage original upstream to fix lintian error: + E: libtirpc source: source-contains-unsafe-symlink INSTALL + * Merged upstream at http://git.infradead.org/users/steved/libtirpc.git + e63e2b5 Add a pthread key initializer constant + db2faef Clean up forward declarations in src/auth_gss.c + 797365f Clean up forward declarations in src/svc_auth_gss.c + 3bb76d9 man: Organize man/Makefile.am + fd96ce3 man: Replace outdated Solaris and BSD references in the man pages + 03de41b Pre-register server side RPCSEC GSS support + cf2e008 Avoid buffer overruns by allocating buffer in svcauth_gss_validate() + a940bf9 xdr_rejected_reply: Don't crash with invalid server rejection + * Refresh patches. + + -- Anibal Monsalve Salazar <anibal@debian.org> Tue, 09 Sep 2014 02:30:09 +0100 + +libtirpc (0.2.4-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Upload to unstable where this belongs to fix the release critical bug. + * Declare Breaks: against versions of nfs-common, nfs-kernel-server that + link against libtirpc1 and libgssglue1, so that we have a proper + transition. Closes: #755703. + + -- Steve Langasek <vorlon@debian.org> Mon, 11 Aug 2014 07:28:30 +0000 + +libtirpc (0.2.4-2) experimental; urgency=medium + + * Get rid of libgssglue1. + Run configure without "--enable-gss". + Don't build-depend on libgssglue-dev. + Drop 07-gssglue-gssapi.h.diff. + Closes: #755703. + * autogen.sh creates config.h.in. + Drop 08-config.h.in.diff. + * Refresh db2faef.patch. + + -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 02 Aug 2014 09:40:26 +0100 + +libtirpc (0.2.4-1) unstable; urgency=medium + + * New maintainer. + Closes: #740622. + * New upstream version 0.2.4. + Remove the INSTALL symlink, replace it with INSTALL from 0.2.3 + and repackage original upstream to fix lintian error: + E: libtirpc source: source-contains-unsafe-symlink INSTALL + * Fix "fatal error: gssapi/gssapi.h: No such file or directory" + Add 07-gssglue-gssapi.h.diff + * Update 05-hurd-port.diff to have AM_CONFIG_HEADER(config.h) in + configure.ac. + * Run autogen.sh to create config.h.in. + * Run autoheader to create config.h. + Add 09-autogen.sh.diff. + * Build-Depends on libkrb5-dev. + * Add upstream patches from http://git.infradead.org/users/steved/libtirpc.git + e63e2b5 Add a pthread key initializer constant + db2faef Clean up forward declarations in src/auth_gss.c + 797365f Clean up forward declarations in src/svc_auth_gss.c + 3bb76d9 man: Organize man/Makefile.am + fd96ce3 man: Replace outdated Solaris and BSD references in the man pages + 03de41b Pre-register server side RPCSEC GSS support + cf2e008 Avoid buffer overruns by allocating buffer in svcauth_gss_validate() + a940bf9 xdr_rejected_reply: Don't crash with invalid server rejection + * Add debian/watch. + * Refresh patches. + + -- Anibal Monsalve Salazar <anibal@debian.org> Fri, 18 Jul 2014 13:04:00 +0100 + +libtirpc (0.2.3-2) unstable; urgency=medium + + * Debian QA upload. + * Fix breakage introduced by 05-hurd-port.diff (Closes: #740491, #740574): + - Include config.h from src/getpeereid.c so that the test on + HAVE_SYS_USER_H actually works. + - Drop src/config.h which is an old copy of src/config.h.in. + + -- Aurelien Jarno <aurel32@debian.org> Fri, 04 Jul 2014 23:13:14 +0200 + +libtirpc (0.2.3-1) unstable; urgency=medium + + * Debian QA upload. + * New upstream version: + - includes fix to avoid issues with lock elision. (Closes: #751147). + - drop 01-remove-des-crypt.diff patch (merged upstream). + - drop 02-rerun-bootstrap.diff patch (not needed anymore). + - refresh 03-kfreebsd.diff patch. + - refresh 05-hurd-port.diff patch. + + -- Aurelien Jarno <aurel32@debian.org> Tue, 10 Jun 2014 21:12:53 +0200 + +libtirpc (0.2.2-7) unstable; urgency=low + + * Debian QA group upload. + * Added patch 06-hurd-client-port.diff, avoid malloc overflow in + client code on Hurd (Closes: #739674). + * Rewrite rules file to use dh and move to debhelper compat level 9 + for hardening support. + + -- Petter Reinholdtsen <pere@debian.org> Mon, 03 Mar 2014 11:05:36 +0100 + +libtirpc (0.2.2-6) unstable; urgency=medium + + * Orphan package. + * Acknowledge NMU. + + -- Steinar H. Gunderson <sesse@debian.org> Sun, 02 Mar 2014 20:52:38 +0100 + +libtirpc (0.2.2-5.1) unstable; urgency=medium + + * Non-maintainer upload with maintainer approval. + * Added patch 05-hurd-port.diff fixing build problems on Hurd + (Closes: #739557). Build using dh-autoreconf to activate changes + to configure.ac. + * Update standards-version from 3.9.2 to 3.9.5. No changes needed. + * Add homepage URL in control file. + + -- Petter Reinholdtsen <pere@debian.org> Thu, 20 Feb 2014 12:28:09 +0100 + +libtirpc (0.2.2-5) unstable; urgency=low + + * 04-fix-memory-leak.diff: New patch from George Danchev, + fixes a small memory leak in error situations. (Closes: #552024) + * Install man pages, both for libtirpc1 and libtirpc-dev. (Closes: #624510) + + -- Steinar H. Gunderson <sesse@debian.org> Sun, 10 Jul 2011 21:49:27 +0200 + +libtirpc (0.2.2-4) unstable; urgency=low + + * Set the priority of libtirpc-dev to extra, to properly match the + overrides in the archive. + * Move the shared library (not the development symlink and static library) + from /usr/lib to /lib. + + -- Steinar H. Gunderson <sesse@debian.org> Sat, 09 Jul 2011 19:38:30 +0200 + +libtirpc (0.2.2-3) unstable; urgency=low + + * Make package multiarch-capable. + * Set DEB_HOST_MULTIARCH correctly in debian/rules. + * Give --libdir to configure. + * Replace usr/lib with usr/lib/* in *.install. + * Up debian/compat level to 8, and bump debhelper dependency version + to 8.1.3. + * Make libtirpc1 Pre-Depend on ${misc:Pre-Depends}. + * Mark libtirpc1 as Multi-Arch: same. + + -- Steinar H. Gunderson <sesse@debian.org> Sun, 03 Jul 2011 22:46:02 +0200 + +libtirpc (0.2.2-2.1) unstable; urgency=low + + * Non-maintainer upload. + * 03-kfreebsd.diff: Fix FTBFS on GNU/kFreeBSD. Thanks Petr Salinger. + (Closes: #610716) + + -- Robert Millan <rmh@debian.org> Wed, 08 Jun 2011 12:53:03 +0200 + +libtirpc (0.2.2-2) unstable; urgency=low + + * Correct priority to standard. + + -- Steinar H. Gunderson <sesse@debian.org> Wed, 01 Jun 2011 20:47:40 +0200 + +libtirpc (0.2.2-1) unstable; urgency=low + + * Switch to dpkg-source 3.0 (quilt) format. + * New upstream release. (Closes: #625807) + * 01-remove-des-crypt.diff: New patch. Reverts upstream commit + 9bdcba10aa67ce3f67810c7aaac944a00dcfcee5, which is not relevant + for glibc and breaks the build. + * 02-rerun-bootstrap.diff: Rerun ./bootstrap to pick up the Makefile.am + change from the previous patch. + * Update Standards-Version to 3.9.2 (no changes needed). + * Drop unneeded build-dependency on libgss-dev. + + -- Steinar H. Gunderson <sesse@debian.org> Wed, 01 Jun 2011 19:10:25 +0200 + +libtirpc (0.2.1-1) unstable; urgency=low + + * New upstream release. + * Removed obsolete patch debian/patches/01-add-docs-to-subdirs-list.patch. + * No longer hard-codes list of IEEE754-compatible architectures, so fixes + building on HPPA. (Closes: #559102) + * Remove patch system, as we have no patches left. + * Add ${misc:Depends} to dependency list for both packages, to keep + lintian happy. + * Update Standards-Version to 3.9.1 (no changes needed). + + -- Steinar H. Gunderson <sesse@debian.org> Sat, 11 Dec 2010 11:36:38 +0100 + +libtirpc (0.2.0-2) unstable; urgency=low + + * Add pkg-config to list of build-deps; fixes FTBFS. + + -- Steinar H. Gunderson <sesse@debian.org> Sat, 04 Jul 2009 15:39:12 +0200 + +libtirpc (0.2.0-1) unstable; urgency=low + + * Initial upload to Debian, following Sun's license change of code from the + (non-free) Sun RPC license to a BSD-like license. + + -- Steinar H. Gunderson <sesse@debian.org> Thu, 25 Jun 2009 20:20:32 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..baba978 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +src/config.h diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..efde034 --- /dev/null +++ b/debian/control @@ -0,0 +1,59 @@ +Source: libtirpc +Priority: optional +Maintainer: Josue Ortega <josue@debian.org> +Build-Depends: debhelper-compat (= 13), libtool, pkg-config, libkrb5-dev +Standards-Version: 4.6.2 +Section: libs +Homepage: http://sourceforge.net/projects/libtirpc +Vcs-Git: https://salsa.debian.org/debian/libtirpc.git +Vcs-Browser: https://salsa.debian.org/debian/libtirpc +Rules-Requires-Root: no + +Package: libtirpc-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libtirpc3 (= ${binary:Version}), ${misc:Depends} +Description: transport-independent RPC library - development files + This package contains a port of Sun's transport-independent RPC library to + Linux. The library is intended as a replacement for the RPC code in the GNU C + library, providing among others support for RPC (and in turn, NFS) over IPv6. + . + This package contains the files needed for development against libtirpc. + +Package: libtirpc3 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, libtirpc-common (>= ${source:Version}) +Breaks: nfs-common (<< 1:1.2.8-7), nfs-kernel-server (<< 1:1.2.8-7) +Description: transport-independent RPC library + This package contains a port of Sun's transport-independent RPC library to + Linux. The library is intended as a replacement for the RPC code in the GNU C + library, providing among others support for RPC (and in turn, NFS) over IPv6. + +Package: libtirpc-common +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends} +Breaks: libtirpc1, libtirpc3 (<< 1.1.4-0.1~) +Replaces: libtirpc1, libtirpc3 (<< 1.1.4-0.1~) +Description: transport-independent RPC library - common files + This package contains a port of Sun's transport-independent RPC library to + Linux. The library is intended as a replacement for the RPC code in the GNU C + library, providing among others support for RPC (and in turn, NFS) over IPv6. + . + This package contains the netconfig configuration file as well as the + associated manpage. + +Package: libtirpc3-udeb +Package-Type: udeb +Architecture: any +Section: debian-installer +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: transport-independent RPC library - udeb + This package contains a port of Sun's transport-independent RPC library to + Linux. The library is intended as a replacement for the RPC code in the GNU C + library, providing among others support for RPC (and in turn, NFS) over IPv6. + . + This is a cut-down library package for use in debian-installer. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fd83844 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,368 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: package +Source: https://sourceforge.net/projects/libtirpc/ +Comment: The original upstream tarball included a symlink to + /usr/share/automake-1.16/INSTALL. This source re-pack removes the symlink + and adds the INSTALL file to the package. + +Files: * +Copyright: 2005 Bull S.A +License: BSD-3-Clause + +Files: debian/* +Copyright: 2009 Steinar H. Gunderson <sesse@debian.org> + 2023 Josue Ortega <josue@debian.org> +License: GPL-2 + +Files: src/auth_des.c + src/auth_none.c + src/auth_unix.c + src/authdes_prot.c + src/authunix_prot.c + src/bindresvport.c + src/clnt_bcast.c + src/clnt_perror.c + src/clnt_raw.c + src/clnt_simple.c + src/clnt_vc.c + src/debug.c + src/debug.h + src/des_crypt.c + src/getnetconfig.c + src/getnetpath.c + src/getrpcent.c + src/getrpcport.c + src/key_call.c + src/key_prot_xdr.c + src/pmap_clnt.c + src/pmap_getmaps.c + src/pmap_getport.c + src/pmap_prot.c + src/pmap_prot2.c + src/pmap_rmt.c + src/rpc_callmsg.c + src/rpc_com.h + src/rpc_commondata.c + src/rpc_dtablesize.c + src/rpc_generic.c + src/rpc_prot.c + src/rpc_soc.c + src/rpcb_prot.c + src/rpcb_st_xdr.c + src/rtime.c + src/svc_auth.c + src/svc_auth_des.c + src/svc_auth_unix.c + src/svc_dg.c + src/svc_generic.c + src/svc_raw.c + src/svc_simple.c + src/svc_vc.c + src/xdr_array.c + src/xdr_float.c + src/xdr_mem.c + src/xdr_rec.c + src/xdr_reference.c + src/xdr_sizeof.c + src/xdr_stdio.c + tirpc/rpc/auth_des.h + tirpc/rpc/auth_unix.h + tirpc/rpc/des_crypt.h + tirpc/rpc/pmap_clnt.h + tirpc/rpc/pmap_prot.h + tirpc/rpc/pmap_rmt.h + tirpc/rpc/raw.h + tirpc/rpc/rpc_com.h + tirpc/rpc/rpc_msg.h + tirpc/rpc/rpcb_clnt.h + tirpc/rpc/rpcb_prot.h + tirpc/rpc/svc_auth.h +Copyright: 1984-2009 Sun Microsystems, Inc. + 1986-1991 Sun Microsystems Inc. + 1986-1991 Sun Microsystems Inc. In addition, portions of such source code were derived from Berkeley + 1996 Jason Downs. + 2014 Red Hat, Steve Dickson <steved@redhat.com> +License: BSD-3-Clause + +Files: Makefile.in + aclocal.m4 + compile + config.guess + config.sub + configure + depcomp + doc/Makefile.in + install-sh + ltmain.sh + m4/libtool.m4 + m4/ltoptions.m4 + m4/ltsugar.m4 + m4/ltversion.m4 + m4/lt~obsolete.m4 + man/Makefile.in + missing + src/Makefile.in +Copyright: 1992-2017 Free Software Foundation, Inc. + 1994 X Consortium +License: __AUTO_PERMISSIVE__ + Autogenerated files with permissive licenses. + +Files: man/rpc_gss_get_error.3t + man/rpc_gss_get_mech_info.3t + man/rpc_gss_get_mechanisms.3t + man/rpc_gss_get_principal_name.3t + man/rpc_gss_get_versions.3t + man/rpc_gss_getcred.3t + man/rpc_gss_is_installed.3t + man/rpc_gss_max_data_length.3t + man/rpc_gss_mech_to_oid.3t + man/rpc_gss_qop_to_num.3t + man/rpc_gss_seccreate.3t + man/rpc_gss_set_callback.3t + man/rpc_gss_set_defaults.3t + man/rpc_gss_set_svc_name.3t + man/rpc_gss_svc_max_data_length.3t + man/rpcsec_gss.3t +Copyright: 2008 Isilon Inc http://www.isilon.com/ +License: BSD-2-Clause + +Files: src/auth_gss.c + src/authgss_prot.c + src/svc_auth_gss.c + src/svc_auth_none.c + tirpc/rpc/auth_gss.h +Copyright: 2000 Dug Song <dugsong@UMICH.EDU>. all wrongs reversed. + 2000 The Regents of the University of Michigan. +License: BSD-3-Clause + +Files: src/binddynport.c + src/rpc_gss_utils.c + tirpc/rpc/rpcsec_gss.h + tirpc/rpc/svc_auth_gss.h +Copyright: 2013-2018 Oracle America, Inc. +License: BSD-3-Clause + +Files: src/netname.c + src/netnamer.c +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/clnt_generic.c + src/rpcb_clnt.c +Copyright: 2010 Oracle America, Inc. +License: BSD-3-Clause + +Files: src/crypt_client.c + tirpc/rpcsvc/crypt.x +Copyright: 1996 Bill Paul <wpaul@ctr.columbia.edu>. +License: BSD-4-Clause + +Files: src/des_impl.c +Copyright: 1992 Eric Young Collected from libdes and modified for SECURE RPC Martin Kuck 1994 +License: LGPL-2.1+ + +Files: INSTALL +Copyright: 1994-2013 Free Software Foundation, Inc. +License: PERMISSIVE + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. This file is offered as-is, + without warranty of any kind. + . + Basic Installation + +Files: tirpc/rpc/nettype.h +Copyright: 1986-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/reentrant.h +Copyright: 1997-1998 The NetBSD Foundation, Inc. +License: BSD-2-Clause + +Files: tirpc/rpc/svc_mt.h +Copyright: 2015 Axentia Technologies AB. +License: BSD-2-Clause + +Files: src/getpeereid.c +Copyright: 2001 Dima Dorfman. +License: BSD-2-Clause + +Files: tirpc/un-namespace.h +Copyright: 2001 Daniel Eischen <deischen@FreeBSD.org>. +License: BSD-2-Clause + +Files: tirpc/rpc/rpcent.h +Copyright: 1986-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/epoll_sub.c +Copyright: 2003 Niels Provos <provos@citi.umich.edu> +License: BSD-3-Clause + +Files: tirpc/rpc/clnt.h +Copyright: 2010 Oracle America, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/xdr.h +Copyright: 1984-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/rpcdname.c +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/types.h +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/des_soft.c +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/svc.c +Copyright: 1984-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/auth.h +Copyright: 1984-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/svc_soc.h +Copyright: 1986-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/xdr.c +Copyright: 1986-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/getpublickey.c +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/rpc.h +Copyright: 1984-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/clnt_soc.h +Copyright: 1984-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/svc_run.c +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/des.h +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/svc.h +Copyright: 1986-2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +Files: src/nis.h +Copyright: 2010 Oracle America, Inc. +License: BSD-3-Clause + +Files: tirpc/rpc/svc_dg.h +Copyright: 2009 Sun Microsystems, Inc. +License: BSD-3-Clause + +License: BSD-3-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + - Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + - Neither the name of Sun Microsystems, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: BSD-4-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Bill Paul. + 4. Neither the name of the author nor the names of any co-contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: LGPL-2.1+ + This file is distributed under the terms of the GNU Lesser General + Public License, version 2.1 or later - see the file COPYING.LIB for details. + If you did not receive a copy of the license with this program, please + see <http://www.gnu.org/licenses/> to obtain a copy. + . + On Debian systems, the complete text of the GNU Lesser General Public License + Version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'. + +License: GPL-2 + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License, v2, as + published by the Free Software Foundation + . + 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + On Debian systems, the complete text of the GNU General Public + License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/libtirpc-common.install b/debian/libtirpc-common.install new file mode 100644 index 0000000..1a202a1 --- /dev/null +++ b/debian/libtirpc-common.install @@ -0,0 +1,2 @@ +etc/netconfig +usr/share/man/man5/*.5 diff --git a/debian/libtirpc-dev.docs b/debian/libtirpc-dev.docs new file mode 100644 index 0000000..090d0d1 --- /dev/null +++ b/debian/libtirpc-dev.docs @@ -0,0 +1,2 @@ +THANKS +TODO diff --git a/debian/libtirpc-dev.install b/debian/libtirpc-dev.install new file mode 100644 index 0000000..4d1e954 --- /dev/null +++ b/debian/libtirpc-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* +usr/share/man/man3/*.3t diff --git a/debian/libtirpc3-udeb.install b/debian/libtirpc3-udeb.install new file mode 100644 index 0000000..b5a110a --- /dev/null +++ b/debian/libtirpc3-udeb.install @@ -0,0 +1,2 @@ +etc/netconfig +usr/lib/*/libtirpc.so.* diff --git a/debian/libtirpc3.install b/debian/libtirpc3.install new file mode 100644 index 0000000..622f9ef --- /dev/null +++ b/debian/libtirpc3.install @@ -0,0 +1 @@ +lib/*/lib*.so.* diff --git a/debian/libtirpc3.symbols b/debian/libtirpc3.symbols new file mode 100644 index 0000000..bfd0882 --- /dev/null +++ b/debian/libtirpc3.symbols @@ -0,0 +1,7 @@ +libtirpc.so.3 libtirpc3 #MINVER# +* Build-Depends-Package: libtirpc-dev + (symver)TIRPC_0.3.0 1.0.2 + (symver)TIRPC_0.3.1 1.0.2 + (symver)TIRPC_0.3.2 1.0.2 + (symver)TIRPC_0.3.3 1.0.2 + (symver)TIRPC_PRIVATE 1.0.2 diff --git a/debian/not-installed b/debian/not-installed new file mode 100644 index 0000000..8b3cd03 --- /dev/null +++ b/debian/not-installed @@ -0,0 +1,2 @@ +etc/bindresvport.blacklist +usr/lib/*/libtirpc.la diff --git a/debian/patches/03-kfreebsd.diff b/debian/patches/03-kfreebsd.diff new file mode 100644 index 0000000..c596961 --- /dev/null +++ b/debian/patches/03-kfreebsd.diff @@ -0,0 +1,107 @@ +Description: Fix build on non Linux architectures +Author: Andreas Beckmann <anbe@debian.org> +Last-Update: 2019-09-01 +Forwarded: not-needed + +--- a/src/svc_dg.c ++++ b/src/svc_dg.c +@@ -650,6 +650,7 @@ + void + svc_dg_enable_pktinfo(int fd, const struct __rpc_sockinfo *si) + { ++#ifdef __linux__ + int val = 1; + + switch (si->si_af) { +@@ -662,6 +663,7 @@ + break; + #endif + } ++#endif + } + + /* +@@ -672,6 +674,7 @@ + int + svc_dg_valid_pktinfo(struct msghdr *msg) + { ++#ifdef __linux__ + struct cmsghdr *cmsg; + + if (!msg->msg_name) +@@ -718,4 +721,7 @@ + } + + return 1; ++#else ++ return 0; ++#endif + } +--- a/src/clnt_vc.c ++++ b/src/clnt_vc.c +@@ -76,10 +76,12 @@ + #define MCALL_MSG_SIZE 24 + + #define CMGROUP_MAX 16 +-#define SCM_CREDS 0x03 /* process creds (struct cmsgcred) */ + + #undef rpc_createerr /* make it clear it is a thread safe variable */ + ++#ifndef SCM_CREDS ++#define SCM_CREDS 0x03 /* process creds (struct cmsgcred) */ ++ + /* + * Credentials structure, used to verify the identity of a peer + * process that has sent us a message. This is allocated by the +@@ -95,6 +97,7 @@ + short cmcred_ngroups; /* number or groups */ + gid_t cmcred_groups[CMGROUP_MAX]; /* groups */ + }; ++#endif + + struct cmessage { + struct cmsghdr cmsg; +--- a/src/getpeereid.c ++++ b/src/getpeereid.c +@@ -28,6 +28,7 @@ + #include <sys/param.h> + #include <sys/socket.h> + #include <sys/un.h> ++#include <sys/user.h> + + #include <errno.h> + #include <unistd.h> +@@ -35,12 +36,22 @@ + int + getpeereid(int s, uid_t *euid, gid_t *egid) + { ++#ifdef XUCRED_VERSION ++ struct xucred uc; ++#define uid cr_uid ++#define gid cr_gid ++#else + struct ucred uc; ++#endif + socklen_t uclen; + int error; + + uclen = sizeof(uc); ++#ifdef XUCRED_VERSION ++ error = getsockopt(s, 0, LOCAL_PEERCRED, &uc, &uclen); ++#else + error = getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &uclen); /* SCM_CREDENTIALS */ ++#endif + if (error != 0) + return (error); + // if (uc.cr_version != XUCRED_VERSION) +--- a/tirpc/reentrant.h ++++ b/tirpc/reentrant.h +@@ -36,7 +36,7 @@ + * These definitions are only guaranteed to be valid on Linux. + */ + +-#if defined(__linux__) ++#if defined(__linux__) || defined(__GLIBC__) + + #include <pthread.h> + diff --git a/debian/patches/05-hurd-port.diff b/debian/patches/05-hurd-port.diff new file mode 100644 index 0000000..c7bc746 --- /dev/null +++ b/debian/patches/05-hurd-port.diff @@ -0,0 +1,79 @@ +Description: Get source building on Hurd + - Look for <sys/user.h> before using it. + - Define MAXHOSTNAMELEN to 64 if missing. + - Bind sockets on Hurd like on Linux. +Author: Petter Reinholdtsen <pere@hungry.com> +Forwarded: not-needed +Last-Update: 2022-08-11 + + +--- a/src/auth_unix.c ++++ b/src/auth_unix.c +@@ -56,6 +56,11 @@ + #include <rpc/auth.h> + #include <rpc/auth_unix.h> + ++/* Workaround for Hurd */ ++#ifndef MAXHOSTNAMELEN ++# define MAXHOSTNAMELEN 64 ++#endif ++ + /* auth_unix.c */ + static void authunix_nextverf (AUTH *); + static bool_t authunix_marshal (AUTH *, XDR *); +--- a/src/bindresvport.c ++++ b/src/bindresvport.c +@@ -64,7 +64,7 @@ + return bindresvport_sa(sd, (struct sockaddr *)sin); + } + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__GNU__) + + #define STARTPORT 600 + #define LOWPORT 512 +--- a/src/getpeereid.c ++++ b/src/getpeereid.c +@@ -25,10 +25,14 @@ + */ + + ++#include "config.h" ++ + #include <sys/param.h> + #include <sys/socket.h> + #include <sys/un.h> +-#include <sys/user.h> ++#ifdef HAVE_SYS_USER_H ++# include <sys/user.h> ++#endif /* HAVE_SYS_USER_H */ + + #include <errno.h> + #include <unistd.h> +@@ -36,6 +40,9 @@ + int + getpeereid(int s, uid_t *euid, gid_t *egid) + { ++#ifndef HAVE_SYS_USER_H ++ return(-1); ++#else + #ifdef XUCRED_VERSION + struct xucred uc; + #define uid cr_uid +@@ -59,4 +66,5 @@ + *euid = uc.uid; + *egid = uc.gid; + return (0); ++#endif /* HAVE_SYS_USER_H */ + } +--- a/configure.ac ++++ b/configure.ac +@@ -93,7 +93,7 @@ + AC_PROG_LIBTOOL + AC_HEADER_DIRENT + AC_PREFIX_DEFAULT(/usr) +-AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h gssapi/gssapi_ext.h]) ++AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h gssapi/gssapi_ext.h sys/user.h]) + AX_PTHREAD + AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent]) + diff --git a/debian/patches/06-hurd-client-port.diff b/debian/patches/06-hurd-client-port.diff new file mode 100644 index 0000000..dfb7e9c --- /dev/null +++ b/debian/patches/06-hurd-client-port.diff @@ -0,0 +1,48 @@ +Description: Fix client code for hurd, avoiding malloc overflow + When trying to setup a inet connection, it happens the following: + - in libtirp, src/clnt_vc.c, clnt_vc_create gets called + - when trying to allocate vc_fd_locks, __rpc_dtbsize() is used as size + for that array of fd locks + - __rpc_dtbsize(), in src/rpc_generic.c, queries using rlimit the + maximum (rlim_max) number of file descriptors (RLIMIT_NOFILE): + - on Linux, the default is { rlim_cur = 1024, rlim_max = 4096 } + - on kFreeBSD, the default is { rlim_cur = 1024, rlim_max = 1024 } + - on Hurd, the default is { rlim_cur = 1024, rlim_max = RLIM_INFINITY } + meaning that on Hurd the memory allocation fails (as + __rpc_dtbsize() * sizeof(int) overflows and is negative) + + Change libtiprc so __rpc_dtbsize falls back on rlim_cur if rlim_max + is unlimited. + + This patch fixes the client connection using inet sockets; local unix + sockets are not working, for two reasons so far: + - getpeername on them gives EOPNOTSUPP + - SO_REUSEADDR is not implemented for them +Author: Pino Toscano <pino@debian.org> + +Bug-Debian: http://bugs.debian.org/739674 +Forwarded: no +Reviewed-By: Petter Reinholdtsen +Last-Update: 2020-03-03 + +--- a/src/rpc_generic.c ++++ b/src/rpc_generic.c +@@ -107,12 +107,17 @@ + { + static int tbsize; + struct rlimit rl; ++ rlim_t lim; + + if (tbsize) { + return (tbsize); + } + if (getrlimit(RLIMIT_NOFILE, &rl) == 0) { +- return (tbsize = (int)rl.rlim_cur); ++ lim = rl.rlim_max; ++ if (lim == RLIM_INFINITY) { ++ lim = rl.rlim_cur; ++ } ++ return (tbsize = (int)lim); + } + /* + * Something wrong. I'll try to save face by returning a diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..be7fcc0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +03-kfreebsd.diff +05-hurd-port.diff +06-hurd-client-port.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0178d2f --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure --builddir=build-deb + dh_auto_configure --builddir=build-udeb -- --disable-gssapi + +override_dh_auto_build: + dh_auto_build --builddir=build-deb + dh_auto_build --builddir=build-udeb + +override_dh_auto_install: + dh_auto_install --builddir=build-deb + dh_auto_install --builddir=build-udeb + +override_dh_auto_install: + dh_auto_install --builddir=build-deb + dh_auto_install --builddir=build-udeb --destdir=debian/tmp-udeb + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +override_dh_install: + # Move libtirpc.so.* to /lib + mkdir -p debian/tmp/lib/$(DEB_HOST_MULTIARCH) + mv debian/tmp/usr/lib/*/libtirpc.so.* debian/tmp/lib/$(DEB_HOST_MULTIARCH) + + # Fix up the -dev symlink + LINKTARGET=`readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so`; \ + ln -sf /lib/$(DEB_HOST_MULTIARCH)/$$LINKTARGET debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so + + dh_install -Nlibtirpc3-udeb + dh_install -plibtirpc3-udeb --sourcedir=debian/tmp-udeb + +override_dh_auto_clean: + rm -rf build-deb build-udeb + rm -rf debian/tmp-udeb diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..0c22dc4 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,3 @@ +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml 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/tests/check-installation b/debian/tests/check-installation new file mode 100755 index 0000000..c15d105 --- /dev/null +++ b/debian/tests/check-installation @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -z "$(/sbin/ldconfig -p | grep libtirpc)" ]; then + echo "no files found" + exit 1 +else + echo "There are files" + exit 0 +fi diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..7652303 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: check-installation +Restrictions: needs-root diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..ceb44b1 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,3 @@ +--- +Archive: SourceForge +Bug-Database: http://sourceforge.net/tracker/?func=add&group_id=183075&atid=903784 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9142464 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +http://sf.net/libtirpc/libtirpc-(.+)\.tar\.bz2 |