debian/0000755000000000000000000000000012032533440007162 5ustar debian/compat0000644000000000000000000000000212032533437010366 0ustar 9 debian/patches/0000755000000000000000000000000012032533440010611 5ustar debian/patches/series0000644000000000000000000000011212032533440012020 0ustar 01-makefile.patch 02-lv2_headers.patch 03-fix_covert4chan_hardening.patch debian/patches/03-fix_covert4chan_hardening.patch0000644000000000000000000000122212032533440017154 0ustar Description: Fix hardening for conver4chan binary Author: Jaromír Mikeš Forwarded: no Index: ir.lv2/Makefile =================================================================== --- ir.lv2.orig/Makefile 2012-09-27 00:14:44.679979153 +0200 +++ ir.lv2/Makefile 2012-09-27 00:15:30.208204914 +0200 @@ -21,7 +21,7 @@ CPPFLAGS += -D_HAVE_GTK_ATLEAST_2_20 endif -C4CFLAGS = -Wall -I. -I/usr/include `pkg-config --cflags gthread-2.0` -O2 -ffast-math +C4CFLAGS = -Wall -I. -I/usr/include `pkg-config --cflags gthread-2.0` -D_FORTIFY_SOURCE=2 -O2 -ffast-math C4LIBS = -lsndfile `pkg-config --libs gthread-2.0` all: ir.so ir_gui.so debian/patches/01-makefile.patch0000644000000000000000000000155712032533440013635 0ustar Description: Prepend DESTDIR to INSTALL_DIR and set it to /usr/lib/lv2. Pass LDFLAGS to the linker. Author: Jaromír Mikeš Forwarded: no --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- ir.lv2.orig/Makefile +++ ir.lv2/Makefile @@ -5,7 +5,7 @@ # (for local use, not installed by make install) PREFIX = /usr -INSTDIR = $(PREFIX)/lib/lv2/ir.lv2 +INSTDIR = $(DESTDIR)$(PREFIX)/lib/lv2/ir.lv2 INST_FILES = ir.so ir_gui.so ir.ttl manifest.ttl @@ -51,7 +51,7 @@ ir_gui.so: ir_gui.o ir_utils.o ir_meter. g++ $(LDFLAGS) ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o $(LIBS) -shared -z nodelete -o ir_gui.so convert4chan: convert4chan.c - gcc $(C4CFLAGS) convert4chan.c $(C4LIBS) -o convert4chan + gcc $(C4CFLAGS) $(LDFLAGS) convert4chan.c $(C4LIBS) -o convert4chan install: all mkdir -p $(INSTDIR) debian/patches/02-lv2_headers.patch0000644000000000000000000000101412032533440014243 0ustar Description: Fix #include statements to find LV2 system wide-headers. Author: Alessio Treglia Forwarded: no --- ir_gui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- ir.lv2.orig/ir_gui.cc +++ ir.lv2/ir_gui.cc @@ -27,8 +27,8 @@ #include #include -#include "lv2_ui.h" -#include "instance-access.h" +#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" +#include "lv2/lv2plug.in/ns/ext/instance-access/instance-access.h" #include "ir.h" #include "ir_utils.h" debian/rules0000755000000000000000000000066512032533440010251 0ustar #!/usr/bin/make -f # -*- makefile -*- LDFLAGS+=-Wl,--as-needed export REPACK_SH=$(CURDIR)/debian/repack.sh %: dh $@ --parallel override_dh_auto_build: dh_auto_build make convert4chan override_dh_auto_install: dh_auto_install mkdir -p $(CURDIR)/debian/ir.lv2/usr/bin cp convert4chan $(CURDIR)/debian/ir.lv2/usr/bin override_dh_installchangelogs: dh_installchangelogs README ChangeLog get-orig-source: uscan --force-download debian/repack.local0000644000000000000000000000005612032533440011444 0ustar SUFFIX=~dfsg rm lv2_ui.h \ instance-access.h debian/control0000644000000000000000000000240312032533437010572 0ustar Source: ir.lv2 Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia , Jaromír Mikeš Build-Depends: debhelper (>= 9), libgtk2.0-dev (>= 2.16), libsamplerate0-dev (>= 0.1.7), libsndfile1-dev (>= 1.0.21), libzita-convolver-dev (>= 2.0.0), lv2-dev Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/pkg-multimedia/ir.lv2.git Vcs-Browser: http://git.debian.org/?p=pkg-multimedia/ir.lv2.git Homepage: http://factorial.hu/plugins/lv2/ir Package: ir.lv2 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Provides: lv2-plugin Description: LV2 IR reverb IR is a zero-latency, realtime, high performance signal convolver especially for creating reverb effects. Supports impulse responses with 1, 2 or 4 channels, in any soundfile format supported by libsndfile. . IR files can be for example here: - http://rhythminmind.net/1313/?cat=182 - http://www.echochamber.ch/responses/index.html - http://noisevault.com/index.php?page=ir-library - http://www.samplicity.com/bricasti-m7-impulse-responses/ . For converting 2ch impupuses to 4ch *True stereo* format use 'convert4chan' utility. See man pages. debian/repack.stub0000644000000000000000000000325112032533440011327 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sources under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh" exit 1 fi exec "$REPACK_SH" "$@" debian/ir.lv2.manpages0000644000000000000000000000002612032533437012017 0ustar debian/convert4chan.1 debian/changelog0000644000000000000000000000373712032533573011055 0ustar ir.lv2 (1.3.2~dfsg0-1) unstable; urgency=low * New upstream release. * Set compat/dh to 9 to fix hardening * Added patch to fix hardening for convert4chan binary. * Remove 03-zita_convolver3.patch, applied upstream. -- Jaromír Mikeš Wed, 26 Sep 2012 14:30:11 +0200 ir.lv2 (1.3.1~dfsg0-3) unstable; urgency=low * Replace lv2core,lv2-extensions-good build-deps with lv2-dev. * Update debian/copyright to machine-readable format. * Bump Standards. -- Alessio Treglia Mon, 14 May 2012 20:29:22 +0200 ir.lv2 (1.3.1~dfsg0-2) unstable; urgency=low * Port ir.lv2 to zita-convolver's new API (Closes: #652019). -- Alessio Treglia Fri, 16 Dec 2011 18:21:45 +0100 ir.lv2 (1.3.1~dfsg0-1) unstable; urgency=low * New upstream bugfix release: - Fixed Makefile from David Robillard. The change is that the module now relies on the GNU linker (via -z nodelete) to prevent unloading instead of reliance on the LV2 host obeying lv2:requiredFeature uiext:makeResident. This fixes http://tracker.ardour.org/view.php?id=4112 * Add debian/repack.{local,sh,stub} scripts to provide a mechanism to easy repack the tarball: - Strip {instance-access,lv2_ui}.h local copies to avoid duplicated code. On Debian, those LV2 extensions are provided by lv2-extensions-good. * Refresh debian/patches/01-makefile.patch * debian/patches/02-lv2_headers.patch: - Fix #include statements to find LV2 system wide-headers. * debian/rules: Enable parallel builds. * debian/control: - Fix list indentation in the package's long description. - Build-depend on lv2-extensions-good. - Sort build dependencies - Bump Standards. * Update debian/copyright. -- Alessio Treglia Wed, 13 Jul 2011 02:22:06 +0200 ir.lv2 (1.3-1) unstable; urgency=low * Initial release (Closes: #609941). -- Jaromír Mikeš Fri, 14 Jan 2011 01:27:59 +0100 debian/gbp.conf0000644000000000000000000000005712032533437010611 0ustar [DEFAULT] pristine-tar = True sign-tags = True debian/convert4chan.10000644000000000000000000000335412032533437011655 0ustar .TH CONVERT4CHAN "1" "January 15, 2011" "convert4chan" "convert4chan Manual Page" .SH NAME \fBconvert4chan\fP \- is a utility for converting pairs of stereo impulse response files to to a single 'True Stereo' 4-channel files. .br \fBir.lv2\fP \- LV2 IR reverb plugin supports these so-called 'True Stereo' impulses. .br .SH USAGE .B convert4chan /path/to/impulses/directory .PP or .PP .B cd /path/to/impulses/directory and run .B convert4chan .br .PP .SH DESCRIPTION .PP \fBconvert4chan\fP is not itself a generally useful program, but just a utility with very limited scope, Error checking is limited; you are not supposed to run convert4chan on your / . .PP .br You can use it to convert a full directory tree of stereo impulse response files with similar names that end with L.wav and R.wav to 'True Stereo' format, while your original files in directory stay untouched and can be later used as impulses as well. .PP .br \fB\'True Stereo'\fP impulses are four channel impulses that describe a full convolution matrix (the four channels contain, in order, the convolution paths L->L, L->R, R->L, R->R). .PP .br \fBconvert4chan\fP searching for stereo files named: .PP .br .B root/somewhere/somethingL.wav .br .B root/somewhere/somethingR.wav .PP .br and convert them to: .PP .br .B root/somewhere/something4.wav .PP .PP .br \fBconvert4chan\fP supports filenames ending in .wav by design, but it is possible that in future will supports other audio formats too (It could all audio formats supported by libsndfile in theory.) .PP More information can be found on the project website .B http://factorial.hu/plugins/lv2/ir. .SH AUTHOR This manual page was written by Jaromír Mikeš , for the Debian project (but may be used by others). debian/copyright0000644000000000000000000000251712032533437011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: IR Upstream-Contact: Tom Szilagyi Source: http://factorial.hu/plugins/lv2/ir Copyright: 2011 Tom Szilagyi License: GPL-2+ Comment: The files {instance-access,lv2_ui}.h were stripped out of the tarball to avoid duplicated code. Files: * Copyright: 2011 Tom Szilagyi License: GPL-2+ Files: debian/* Copyright: 2011 Jaromír Mikeš 2011-2012 Alessio Treglia License: GPL-2+ License: GPL-2+ 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. Comment: On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2+'. . You should have received a copy of the GNU General Public License along with this package. If not, see . debian/repack.sh0000755000000000000000000000703412032533440010772 0ustar #!/bin/sh # see the repack.stub for how to use # TODO: provide example watch files and repack.locals # TODO: test suite. problems fixed that need to be tested: # * globbing # * whitespace and then comments in the MANIFEST # TODO: does / in weird places work? test suite too. # TODO: I actually broke stuff with the MANIFEST change not thinking.. # TODO: allow for a sepearate (and multiple) MANIFEST files, then # de-uglify libsyntax-highlight-engine-kate-perl. # TODO: have each mv and rm check that something actually changed, and # if not, die set -e set -u usage() { echo "Usage: repack.sh --upstream-version " exit 1 } if [ "$#" != "3" ]; then usage fi if [ "$1" != "--upstream-version" ]; then usage fi if [ ! -f "$3" ]; then if [ -n "$3" ]; then echo "$3 doesn't exist" fi usage fi VER="$2" FILE="$3" PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'` SUFFIX="+dfsg" echo echo "Repackaging $FILE" echo DIR=`mktemp -d ./tmpRepackXXXXXX` DIR=$(readlink -f "$DIR") trap "/bin/rm -rf \"$DIR\"" QUIT INT EXIT # Create an extra directory to cope with rootless tarballs UP_BASE="$DIR/unpack" mkdir "$UP_BASE" tar xf "$FILE" -C "$UP_BASE" || unzip "$FILE" -d "$UP_BASE" if [ `ls -1 "$UP_BASE" | wc -l` -eq 1 ]; then # Tarball does contain a root directory UP_BASE="$UP_BASE/`ls -1 "$UP_BASE"`" fi RM_OPTS="-vrf" real_rm(){ /bin/rm "$@" } real_mv(){ /bin/mv "$@" } rm(){ set +f MYOLDPWD=$(pwd) cd "$UP_BASE" if [ "$MANIFEST" = "1" ]; then PERM=$(stat --format=%a "MANIFEST") chmod u+w "MANIFEST" fi for i in $@; do if [ "$MANIFEST" = "1" ]; then PATTERN="^$i" if [ -d "$i" ]; then if ! { echo "$PATTERN" | grep -q "/$" ; }; then PATTERN="${PATTERN}/" fi else PATTERN="${PATTERN}\s?" fi grep -Ev "$PATTERN" "MANIFEST" > "$DIR/MANIFEST" real_mv "$DIR/MANIFEST" "MANIFEST" fi real_rm "$RM_OPTS" "$i" done if [ "$MANIFEST" = "1" ]; then chmod $PERM "MANIFEST" fi cd $MYOLDPWD set -f } mv(){ set +f OLD=$(pwd) cd $UP_BASE real_mv "$@" cd $OLD if [ "$MANIFEST" = "1" ]; then echo "MANIFEST cannot be manipulated with mv yet, patches welcome" exit 1 fi set -f } # bump with incompatible changes REPACK_VERSION=3 requires_version(){ if [ $REPACK_VERSION -lt $1 ]; then echo "repack.sh is not up to date enough for this package. you need at least version $1, while this script is only version $REPACK_VERSION" exit 1 fi } MANIFEST=0 ## Remove stuff set -f MYORIGPWD=$(pwd) cd "$UP_BASE" . "$MYORIGPWD/debian/repack.local" cd $MYORIGPWD set +f ## End REPACK_DIR="$PKG-${VER}${SUFFIX}.orig" # DevRef § 6.7.8.2 DFSG_TAR="$(dirname $FILE)/${PKG}_${VER}${SUFFIX}.orig.tar" real_mv "$UP_BASE" "$DIR/$REPACK_DIR" # .gz or .bz2? FILETYPE=$(file --brief --mime-type --dereference "$FILE") case "$FILETYPE" in application/x-gzip|application/zip) C_PROGRAM="gzip" C_SUFFIX="gz" ;; application/x-bzip2) C_PROGRAM="bzip2" C_SUFFIX="bz2" ;; *) echo "E: Unknown filetye $FILETYPE" exit 1 ;; esac # Using a pipe hides tar errors! tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR" $C_PROGRAM -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.$C_SUFFIX" real_mv "$DIR/repacked.tar.$C_SUFFIX" "$DFSG_TAR.$C_SUFFIX" echo "*** $DFSG_TAR.$C_SUFFIX ready" debian/source/0000755000000000000000000000000012032533440010462 5ustar debian/source/format0000644000000000000000000000001412032533440011670 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000030312032533440010207 0ustar version=3 opts="uversionmangle=s/-/./,dversionmangle=s/~dfsg.*//" \ http://factorial.hu/plugins/lv2/ir \ http://factorial.hu/system/files/ir.lv2-([\d.]+)\.tar\.gz \ debian sh debian/repack.stub