debian/0000755000000000000000000000000012264530311007163 5ustar debian/libpstreams-dev.examples0000644000000000000000000000004111046114310014011 0ustar test_minimum.cc test_pstreams.cc debian/compat0000644000000000000000000000000211656256076010402 0ustar 7 debian/changelog0000644000000000000000000000426712264530007011050 0ustar pstreams (0.8.0-2) unstable; urgency=medium * debian/tests/control: add missing dependencies to be able to run the test suite in a clean environment. -- Antonio Terceiro Sun, 12 Jan 2014 12:08:38 -0300 pstreams (0.8.0-1) unstable; urgency=medium * Add Vcs-* fields to debian/control * Remove martin f. krafft from Uploaders per his request. Thanks to martin for sponsoring my first package in Debian back in the day (Closes: #719103) * Imported Upstream version 0.8.0 * Bump Standards-Version to 3.9.4; no changes needed * debian/control: add `XS-Testsuite: autopkgtest` (Closes: #692665) * debian/patches/dont-update-generated-files.patch: avoid updating generated files when building the Debian package -- Antonio Terceiro Sun, 15 Dec 2013 19:11:11 -0300 pstreams (0.7.0-2) unstable; urgency=low * Rename deprecated(3); that's a too generic name for a manpage. Closes: #648298 -- Antonio Terceiro Thu, 10 Nov 2011 09:39:19 -0200 pstreams (0.7.0-1) unstable; urgency=low * New upstream release * Add debian/watch * Migrate to debhelper 7 * Bump standards version to 3.9.2. No changes needed * Remove article from start of short description * Add ${misc:Depends} to dependency list * Use 3.0 (quilt) format * Remove duplicate word ("the the") from description * Add Homepage: field to debian/control * Upstream changed license to LGPL-3+; debian/copyright updated and rewriten using DEP5 format * Added DEP8-style tests -- Antonio Terceiro Tue, 08 Nov 2011 16:05:36 -0200 pstreams (0.5.2-1) unstable; urgency=low * New upstream release -- Antonio S. de A. Terceiro Sun, 17 Jul 2005 19:35:46 -0300 pstreams (0.5.0-1) unstable; urgency=low * Initial release (Closes: #276612). * Makefile: added install target to install the header file. * Makefile: complemented clean target to delete generated documentation. * renamed deprecated(3) manpage to pstreams_deprecated(3), as the prior name would be too generic for a manpage. -- Antonio S. de A. Terceiro Sun, 17 Oct 2004 16:48:33 -0200 debian/copyright0000644000000000000000000000213011656261424011124 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: pstreams Source: http://pstreams.sourceforge.net/ Files: * Copyright: 2001,2002,2003,2004,2005,2006,2007,2008 Jonathan Wakely License: LGPL-3+ PStreams 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 3 of the License, or (at your option) any later version. . PStreams 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 program. If not, see . Comment: On Debian systems, a copy of the LGPL-3 license can be found at /usr/share/common-licenses/LGPL-3. Files: debian/* Copyright: © 2011 Antonio Terceiro License: The Debian packaging is licensed under the same terms as the original package. debian/control0000644000000000000000000000176412253427136010606 0ustar Source: pstreams Section: libdevel Priority: optional Maintainer: Antonio Terceiro Build-Depends-Indep: debhelper (>= 7.0.50~), doxygen, perl Standards-Version: 3.9.4 Homepage: http://pstreams.sourceforge.net/ Vcs-Git: git://git.debian.org/collab-maint/pstreams.git Vcs-Browser: http://git.debian.org/?p=collab-maint/pstreams.git;a=summary XS-Testsuite: autopkgtest Package: libpstreams-dev Architecture: all Depends: ${misc:Depends} Description: C++ iostream interface to POSIX process I/O PStreams allows you to run another program from your C++ application and to transfer data between the two programs, similar to shell pipelines. The PStreams class works like a wrapper for the POSIX.2 functions popen(3) and pclose(3) (although it doesn't actually use them), using a C++ iostreams interface, instead of C's stdio library. Thus, PStreams makes it possible to run an external program and handle its stdin, stdout, and stderr just like you would handle any other C++ iostream. debian/rules0000755000000000000000000000112111656735523010256 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_build: # Add here commands to compile the package. $(MAKE) docs $(MAKE) TODO sed -i -e 's/ -1 / \\-1 /g' doc/man/man3/* dh_auto_build override_dh_auto_install: $(MAKE) install prefix=/usr DESTDIR=$(CURDIR)/debian/libpstreams-dev override_dh_installman: dh_installman #rename deprecated(3), that's a too generic name for a manpage. mv $(CURDIR)/debian/libpstreams-dev/usr/share/man/man3/deprecated.3 $(CURDIR)/debian/libpstreams-dev/usr/share/man/man3/pstreams_deprecated.3 override_dh_auto_clean: dh_auto_clean $(RM) pstreams.wout debian/source/0000755000000000000000000000000011656260151010471 5ustar debian/source/format0000644000000000000000000000001411656260151011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000036511062730131010215 0ustar # pstreams has weird version numbers (e.g. 0.17 which is older then 0.5.x, so # we'll stick to one digit in the minor version number as a workaround) version=3 http://pstreams.sourceforge.net/download/ .*pstreams-([0-9]+\.[0-9]\.[0-9+]).tar.gz debian/patches/0000755000000000000000000000000012253424034010614 5ustar debian/patches/series0000644000000000000000000000004212253424034012025 0ustar dont-update-generated-files.patch debian/patches/dont-update-generated-files.patch0000644000000000000000000000112212253423740017114 0ustar Description: Don't update generated files when building the Debian package Author: Antonio Terceiro Forwarded: not-needed --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ DIST_FILES = $(SOURCES) $(GENERATED_FILE VERS := $(shell awk -F' ' '/^\#define *PSTREAMS_VERSION/{ print $$NF }' pstream.h) -all: docs $(GENERATED_FILES) +all: docs check: test_pstreams test_minimum | pstreams.wout @for test in $^ ; do echo $$test ; ./$$test >/dev/null 2>&1 || echo "$$test EXITED WITH STATUS $$?" ; done debian/libpstreams-dev.docs0000644000000000000000000000002511046114310013125 0ustar README TODO doc/html debian/tests/0000755000000000000000000000000012264370234010333 5ustar debian/tests/control0000644000000000000000000000004512263242550011733 0ustar Tests: run-all Depends: @, g++, make debian/tests/run-all0000755000000000000000000000045312261352245011634 0ustar #!/bin/sh set -e failed=no ( cd $(dirname $0) tests=$(ls -1 *.cc | sed -e 's/\.cc//') for test in $tests; do rm -f $test make -s $test if ./$test; then echo "✔ $test" else echo "✖ $test" failed=yes fi done rm -f $tests ) test "$failed" = 'no' debian/tests/simple.cc0000644000000000000000000000030411656264733012142 0ustar #include int main() { std::string output; redi::ipstream one_two_three("echo 123"); one_two_three >> output; if (output != "123") { return 1; } return 0; } debian/tests/bad-manpage.cc0000644000000000000000000000046511656735321013011 0ustar #include #include #define BAD_MANPAGE "/usr/share/man/man3/deprecated.3.gz" int main() { using namespace std; ifstream bad_manpage(BAD_MANPAGE, ifstream::in); if (!bad_manpage.fail()) { cerr << "Bad manpage installed: " << BAD_MANPAGE << endl; return 1; } return 0; } debian/tests/sed.cc0000644000000000000000000000053511656267144011431 0ustar #include #include int main() { std::string output; redi::pstream sed("sed -e s/x/./g", redi::pstream::pstdin | redi::pstream::pstdout | redi::pstream::pstderr); sed << "xxx" << std::endl << redi::peof; std::getline(sed.out(), output); sed.close(); if (output != "...") { return 1; } return 0; } debian/libpstreams-dev.manpages0000644000000000000000000000001711046114310013771 0ustar doc/man/man3/* debian/libpstreams-dev.dirs0000644000000000000000000000002511046114310013136 0ustar usr/include/pstreams