debian/0000755000000000000000000000000012101006652007157 5ustar debian/watch0000644000000000000000000000025211622500322010207 0ustar # $MirOS: contrib/hosted/tg/deb/mircpio/debian/watch,v 1.2 2011/08/16 14:37:46 tg Exp $ version=3 http://www.mirbsd.org/MirOS/dist/mir/cpio/ paxmirabilis-(.*)\.cpio\.gz debian/changelog0000644000000000000000000001070412101006476011037 0ustar pax (1:20120606-2+deb7u1) unstable; urgency=low * The “I know how that feels, porting” upload * Apparently, x32 did the right thing and uses a 64-bit off_t by default as the BSDs do, even if its long is shorter; it’s the first Linux architecture to do so ⇒ needs an extra check * Upload to unstable, so the x32 porting can go on; it doesn’t need to migrate to wheezy in itself but this change shouldn’t prevent an eventual 1:20120606-2+deb7u2 from migrating either -- Thorsten Glaser Sat, 26 Jan 2013 17:04:17 +0000 pax (1:20120606-2) unstable; urgency=low * Fix permissions, timestamps, and shuffle dh_* around * Switch to 3.0 (quilt) * Temporarily add a versioned B-C for fakeroot on hurd (#676428) -- Thorsten Glaser Thu, 07 Jun 2012 00:37:12 +0000 pax (1:20120606-1) unstable; urgency=low * The “How the … did I get sore s̲h̲o̲u̲l̲d̲e̲r̲ muscles from football?” upload * Update to new upstream version: - oops, fix tty_init rewrito * This fixes FTBFS -- Thorsten Glaser Wed, 06 Jun 2012 00:49:57 +0200 pax (1:20120605-1) unstable; urgency=low * The “Sport ist Mord” upload * Update to new upstream version: - merge fixes from OpenBSD - improve portability - remove use of stdio in favour of syscalls in some places - mention nōn-support (TOOD) of pax file format in manpages * Drop lintian overrides - false positive is resolved - we don’t really care about no-homepage and no-upstream-changelog * Build-Depends less package! Thanks to “goodbye” sample package! * Aid cross-compiling by setting ${CC} to something useful -- Thorsten Glaser Tue, 05 Jun 2012 21:23:06 +0000 pax (1:20120520-1) unstable; urgency=low * New upstream version - paxtar front-end got a new 'a' option for compression utility auto-detection, based on archive filename - includes options.c change (drop Debian patch) * Mention member size limitations on !kfreebsd !LP64 platforms due to an eglibc bug (#317466) * Override lintian false-positive "hardening-no-stackprotector" * Add overrides for "yes, not an omission, there are none" -- Thorsten Glaser Sun, 20 May 2012 18:05:19 +0000 pax (1:20120216-2) unstable; urgency=low * Update options.c to version from CVS to ensure the order of command line arguments in the cpio front-end more tightly, to prevent creating archives in the wrong format accidentally * Link with --as-needed (not enough to workaround #650145 though ☹) * Policy 3.9.3 (no changes) * Mention non-support of ACLs/EAs in the long description -- Thorsten Glaser Mon, 27 Feb 2012 22:37:12 +0000 pax (1:20120216-1) unstable; urgency=low * Debian GNU/kFreeBSD uses 64-bit off_t line FreeBSD®, unlike GNU * Implement GNU cpio ‘-V’ option -- Thorsten Glaser Thu, 16 Feb 2012 18:01:39 +0000 pax (1:20120212-1) unstable; urgency=low * Brown paper bag: pasto in one of the manpages, and work around a GNU groff deficiency in another -- Thorsten Glaser Sun, 12 Feb 2012 03:03:15 +0000 pax (1:20120211-1) unstable; urgency=low * Take over maintainership of the pax package in Debian from Bdale Garbee (thanks) and replace it with the MirBSD variant also providing paxcpio/paxtar (Closes: #42158) (Closes: #539353) * debian/rules: cleanup (remove dh_installdirs, add back dh_clean) * debian/rules: modernise; use fully hardened dpkg-buildflags * debian/control: rework package description -- Thorsten Glaser Sun, 12 Feb 2012 02:10:40 +0000 mircpio (20110817-0wtf2) wtf; urgency=low * New upstream release, many new features - build from formal release, not CVS export * Update packaging to current standards, still works with etch * Link against libbsd (backport) instead of duplicating code * Move to Policy 3.9.2 (no relevant changes) * Add RCS IDs, VCS-* headers, misc:Depends * Patch manpages to honour the binary præfix (pax→mirpax, etc.) * Enhance package description, mention distinguishing features * paxmirabilis can do Multi-Arch: foreign as requested by vorlon * Add Origin and Bugs headers -- Thorsten Glaser Wed, 17 Aug 2011 10:55:08 +0000 mircpio (20080906-1) experimental; urgency=low * Initial release * Adjust manpages to cope with GNU groff’s inferiorities -- Thorsten Glaser Sun, 07 Sep 2008 01:00:10 +0000 debian/copyright0000644000000000000000000001001111763462153011122 0ustar This package was debianised by Thorsten Glaser on Sat, 06 Sep 2008 21:25:34 +0000. $MirOS: contrib/hosted/tg/deb/mircpio/debian/copyright,v 1.7 2012/06/05 19:56:03 tg Exp $ It was downloaded from: https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-20120605.cpio.gz Licence: * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011, 2012 * Thorsten Glaser * Copyright (c) 1996, 1997 SigmaSoft, Th. Lockert * Copyright (c) 1992 Keith Muller. * Copyright (c) 1990, 1992, 1993 * The Regents of the University of California. All rights reserved. * * Some Debian patches Copyright (c) 2011 * Svante Signell * Guillem Jover * Bdale Garbee * * This code is derived from software contributed to Berkeley by * Keith Muller of the University of California, San Diego. * * 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. Neither the name of the University 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 REGENTS 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 REGENTS 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. * Copyright (c) 2006, 2008, 2011 * Thorsten Glaser * * Provided that these terms and disclaimer and all copyright notices * are retained or reproduced in an accompanying document, permission * is granted to deal in this work without restriction, including un- * limited rights to use, publicly perform, distribute, sell, modify, * merge, give away, or sublicence. * * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to * the utmost extent permitted by applicable law, neither express nor * implied; without malicious intent or gross negligence. In no event * may a licensor, author or contributor be held liable for indirect, * direct, other damage, loss, or other issues arising in any way out * of dealing in the work, even if advised of the possibility of such * damage or existence of a defect, except proven that it results out * of said person's immediate fault when using the work as intended. * Copyright (c) 1998 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/control0000644000000000000000000000372211763774026010612 0ustar # $MirOS: contrib/hosted/tg/deb/mircpio/debian/control,v 1.19 2012/06/07 00:38:22 tg Exp $ # Source: pax Section: utils Priority: optional Maintainer: Thorsten Glaser Build-Conflicts: fakeroot (<< 1.18.4-2~) [hurd-i386] Standards-Version: 3.9.3 # First word is the $CVSROOT (-d arg) string, second word the module. # Upstream is on the same server, in the "pax" module. Vcs-CVS: :ext:_anoncvs@anoncvs.mirbsd.org:/cvs contrib/hosted/tg/deb/mircpio Vcs-Browser: http://cvs.mirbsd.de/contrib/hosted/tg/deb/mircpio/ Package: pax Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends} Description: Portable Archive Interchange (cpio, pax, tar) paxtar is an implementation of an archiving utility that reads and writes several formats - traditional ones, the extended formats specified in IEEE 1003.1, and the ar(5) format used by deb(5) packages (MirBSD specific paxtar extension). The pax interface was designed by IEEE 1003.2 as a compromise in the chronic controversy over which of tar or cpio is best, but this implementation offers paxcpio and paxtar for easy calling. . This is the MirBSD paxtar implementation supporting the formats ar, bcpio, cpio, SVR4 cpio with and without CRC, old tar, and ustar, but not the format known as pax yet. It has extensions for removing non-numerical user and group IDs from the archive, storing hardlinked files only once, setting ownership to the superuser, anonymising inode and device information, changing the mtime to zero, and producing GNU tar compatible trailing slashes on ustar directory nodes. Its "ar" format is suitable for operating on *.deb files, unlike that of GNU binutils. . Note that ACLs and Extended Attributes are not supported. Also, on Debian GNU/Hurd and Debian GNU/Linux (but not Debian GNU/kFreeBSD), size of archive members is limited to the width of the "long" type, that is, 2 GiB on platforms that do not have a 64-bit "long" type, due to a bug in the GNU C library (Debian #317466). debian/rules0000755000000000000000000001115412101006476010245 0ustar #!/usr/bin/make -f # $MirOS: contrib/hosted/tg/deb/mircpio/debian/rules,v 1.20.2.1 2013/01/26 17:06:45 tg Exp $ DEB_BUILD_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH) DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS) DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) # is ${CC} defined anywhere (other than implicit rules?) ifneq (,$(findstring $(origin CC),default undefined)) # no - then default to gcc (or cross-gcc) ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH}) CC= ${DEB_HOST_GNU_TYPE}-gcc else CC= gcc endif endif EXTRA_CFLAGS= -Wall -Wextra -Wformat -fno-strict-aliasing EXTRA_LDFLAGS= -Wl,--as-needed ifneq (kfreebsd,${DEB_HOST_ARCH_OS}) ifneq (x32,${DEB_HOST_ARCH}) EXTRA_CPPFLAGS+= -DLONG_OFF_T endif endif ifneq (,$(wildcard /usr/share/dpkg/buildflags.mk)) # dpkg-dev (>= 1.16.1~) DEB_CFLAGS_MAINT_APPEND=${EXTRA_CFLAGS} DEB_CPPFLAGS_MAINT_APPEND=${EXTRA_CPPFLAGS} DEB_LDFLAGS_MAINT_APPEND=${EXTRA_LDFLAGS} DEB_BUILD_MAINT_OPTIONS=hardening=+all include /usr/share/dpkg/buildflags.mk else # old-fashioned way to determine build flags CFLAGS= -O$(if $(findstring noopt,${DEB_BUILD_OPTIONS}),0,2) -g CFLAGS+= ${EXTRA_CFLAGS} CPPFLAGS+= ${EXTRA_CPPFLAGS} LDFLAGS+= ${EXTRA_LDFLAGS} endif build build-arch: debian/.build_stamp build-indep: debian/.build_stamp: # goodbye dh_testdir test -f tty_subs.c test -x debian/rules +for opts in '-flto=jobserver' '-fwhole-program --combine' ''; do \ set -x; \ ${CC} ${CPPFLAGS} ${CFLAGS} $$opts ${LDFLAGS} -o pax ar.c \ ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c \ ftree.c gen_subs.c getoldopt.c options.c pat_rep.c pax.c \ sel_subs.c tables.c tar.c tty_subs.c; \ test -x pax && exit 0; \ done; echo >&2 Compiling failed.; exit 1 @:>$@ clean: # goodbye dh_testdir test -f tty_subs.c test -x debian/rules ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH}) # goodbye dh_testroot test 0 = "$$(id -u)" endif -rm -f pax -rm -rf debian/.*_stamp debian/B debian/pax # goodbye dh_clean -rm -f debian/files debian/substvars binary-indep: build-indep binary-arch: build-arch # goodbye dh_testdir test -f tty_subs.c test -x debian/rules ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH}) # needs (fake)root when cross-compiling # goodbye dh_testroot test 0 = "$$(id -u)" endif # goodbye dh_prep -rm -f debian/files debian/substvars # goodbye dh_installdirs -rm -rf debian/pax mkdir -p debian/pax/bin debian/pax/usr/share/doc/pax \ debian/pax/usr/share/man/man1 # goodbye dh_installchangelogs cp -a debian/changelog debian/pax/usr/share/doc/pax/changelog.Debian gzip -n9 debian/pax/usr/share/doc/pax/changelog.Debian # goodbye dh_installdocs cp -a debian/copyright debian/pax/usr/share/doc/pax/copyright # goodbye dh_install cp pax debian/pax/bin/ # goodbye dh_installman echo .nr g 2 | cat - cpio.1 | \ gzip -n9 >debian/pax/usr/share/man/man1/paxcpio.1.gz echo .nr g 2 | cat - pax.1 | \ gzip -n9 >debian/pax/usr/share/man/man1/pax.1.gz echo .nr g 2 | cat - tar.1 | \ gzip -n9 >debian/pax/usr/share/man/man1/paxtar.1.gz # goodbye dh_link ln -s pax debian/pax/bin/paxcpio ln -s pax debian/pax/bin/paxtar # goodbye dh_strip ifeq (,$(findstring nostrip,${DEB_BUILD_OPTIONS})) strip -s -R .note -R .comment debian/pax/bin/pax endif # goodbye dh_fixperms ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH}) chown -R 0:0 debian/pax endif chmod 644 $$(find debian/pax -type f) chmod 755 $$(find debian/pax -type d) \ debian/pax/bin/pax # goodbye dh_installdeb -rm -rf debian/B mkdir -p debian/pax/DEBIAN debian/B/c # goodbye dh_shlibdeps dpkg-shlibdeps -edebian/pax/bin/pax # goodbye dh_gencontrol dpkg-gencontrol -ppax -Pdebian/pax -isp mv debian/pax/DEBIAN/control debian/B/c/ rm -rf debian/pax/DEBIAN # goodbye dh_md5sums (cd debian/pax && find . -type f | sed s,^./,, | sort | \ xargs md5sum) >debian/B/c/md5sums # goodbye dh_builddeb ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH}) mv debian/B/c debian/pax/DEBIAN dpkg-deb -b debian/pax .. else (cd debian/pax && find . | sort | ./bin/paxcpio \ -oC512 -Hustar -Minodes -Mlinks -Muidgid -Mgslash) | \ gzip -n9 >debian/B/data.tar.gz cd debian/B/c && chmod 644 * (cd debian/B/c && find . | sort | ../../pax/bin/paxcpio \ -oC512 -Hustar -Minodes -Mlinks -Muidgid -Mgslash) | \ gzip -n9 >debian/B/control.tar.gz echo 2.0 >debian/B/debian-binary read fn rest