New Upstream Snapshot - pdf-redact-tools

Ready changes

Summary

Merged new upstream version: 0.1.2+git20200505.1.e407942 (was: 0.1.2).

Resulting package

Built on 2023-01-19T14:53 (took 6m19s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots pdf-redact-tools

Lintian Result

Diff

diff --git a/BUILD.md b/BUILD.md
deleted file mode 100644
index f312f3a..0000000
--- a/BUILD.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Building PDF Redact Tools
-
-First, get a copy of the source code.
-
-```sh
-git clone https://github.com/micahflee/pdf-redact-tools.git
-cd pdf-redact-tools
-```
-
-### Debian-based Linux (Debian, Ubuntu, Mint, etc.)
-
-Install dependencies:
-
-```sh
-sudo apt-get install imagemagick libimage-exiftool-perl python-stdeb python-all fakeroot build-essential
-```
-
-Create a .deb and install it:
-
-```sh
-./build_deb.sh
-sudo dpkg -i deb_dist/pdf-redact-tools_*-1_all.deb
-```
-
-### Red Hat-based Linux (Red Hat, Fedora, CentOS, etc.)
-
-Install dependencies:
-
-```sh
-sudo dnf install rpm-build ImageMagick perl-Image-ExifTool
-```
-
-Create a .rpm and install it:
-
-```sh
-./build_rpm.sh
-sudo dnf install dist/pdf-redact-tools-*-1.noarch.rpm
-```
-
-### Mac OS X
-
-The easiest way to get this working on OS X is by installing dependencies with [Homebrew](http://brew.sh/).
-
-Install dependencies:
-
-```sh
-brew install imagemagick exiftool gs
-```
-
-Install pdf-redact-tools systemwide:
-
-```sh
-sudo cp pdf-redact-tools /usr/local/bin
-```
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index dc8b92d..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,14 +0,0 @@
-Changelog
-
-# 0.1.2
-
-* Added achromatic option that converts to black and white to remove printer dots
-* Added a warning to the readme about ImageMagick vulnerabilities
-
-# 0.1.1
-
-* Added safety check against ImageMagick vulnerability CVE-2016-3714
-
-# 0.1
-
-* Initial release
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..b0b296f
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,12 @@
+Metadata-Version: 2.1
+Name: pdf-redact-tools
+Version: 0.1.2
+Summary: PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing
+Home-page: https://github.com/micahflee/pdf-redact-tools
+Author: Micah Lee
+Author-email: micah.lee@firstlook.org
+License: GPLv3
+Platform: GNU/Linux
+License-File: LICENSE
+
+PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing.
diff --git a/README.md b/README.md
index 31d1e4e..595535b 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # PDF Redact Tools
 
+_Warning: This project is no longer maintained. A much better tool is [dangerzone](https://dangerzone.rocks)._
+
 ![PDF Redact Tools](/logo.png)
 
 PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing.
diff --git a/build_deb.sh b/build_deb.sh
deleted file mode 100755
index 7f4d67e..0000000
--- a/build_deb.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-VERSION=`cat version`
-
-# clean up from last build
-rm -r deb_dist
-
-# build binary package
-python setup.py --command-packages=stdeb.command bdist_deb
-
-# install it
-echo ""
-echo "To install, run:"
-echo "sudo dpkg -i deb_dist/pdf-redact-tools_$VERSION-1_all.deb"
diff --git a/build_rpm.sh b/build_rpm.sh
deleted file mode 100755
index 45b5d1c..0000000
--- a/build_rpm.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-VERSION=`cat version`
-
-# clean up from last build
-rm -r build
-
-# build binary package
-python setup.py bdist_rpm --requires="ImageMagick, perl-Image-ExifTool"
-
-# install it
-echo ""
-echo "RPM package: dist/pdf-redact-tools-$VERSION-1.noarch.rpm"
diff --git a/debian/changelog b/debian/changelog
index d52f705..08046f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
-pdf-redact-tools (0.1.2-5) UNRELEASED; urgency=low
+pdf-redact-tools (0.1.2+git20200505.1.e407942-1) UNRELEASED; urgency=low
 
+  [ Kunal Mehta ]
   * Trim trailing whitespace.
   * Update standards version to 4.5.0, no changes needed.
 
- -- Kunal Mehta <legoktm@debian.org>  Wed, 03 Jun 2020 02:17:26 -0000
+  [ Debian Janitor ]
+  * New upstream snapshot.
+
+ -- Kunal Mehta <legoktm@debian.org>  Thu, 19 Jan 2023 14:48:33 -0000
 
 pdf-redact-tools (0.1.2-4) unstable; urgency=medium
 
diff --git a/debian/patches/0001-Add-Python-3-support.patch b/debian/patches/0001-Add-Python-3-support.patch
index 113681b..5744801 100644
--- a/debian/patches/0001-Add-Python-3-support.patch
+++ b/debian/patches/0001-Add-Python-3-support.patch
@@ -15,11 +15,11 @@ Forwarded: https://github.com/firstlookmedia/pdf-redact-tools/pull/34
  pdf-redact-tools | 35 ++++++++++++++++++-----------------
  1 file changed, 18 insertions(+), 17 deletions(-)
 
-diff --git a/pdf-redact-tools b/pdf-redact-tools
-index 1b577b2..80b0002 100755
---- a/pdf-redact-tools
-+++ b/pdf-redact-tools
-@@ -18,6 +18,7 @@ GNU General Public License for more details.
+Index: pdf-redact-tools.git/pdf-redact-tools
+===================================================================
+--- pdf-redact-tools.git.orig/pdf-redact-tools
++++ pdf-redact-tools.git/pdf-redact-tools
+@@ -18,6 +18,7 @@ GNU General Public License for more deta
  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  """
@@ -95,7 +95,7 @@ index 1b577b2..80b0002 100755
          subprocess.call(['exiftool', '-Title=', '-Producer=', self.output_filename])
          os.remove('{0}_original'.format(self.output_filename))
  
-@@ -168,7 +169,7 @@ def valid_pdf(filename):
+@@ -173,7 +174,7 @@ def valid_pdf(filename):
      return subprocess.check_output(['file',
          '-b',
          '--mime-type',
@@ -104,7 +104,7 @@ index 1b577b2..80b0002 100755
  
  
  def main():
-@@ -186,18 +187,18 @@ def main():
+@@ -191,18 +192,18 @@ def main():
          if valid_pdf(explode_filename):
              pdfrt.set_pdf_filename(explode_filename)
              if pdfrt.explode(achromatic):
@@ -127,7 +127,7 @@ index 1b577b2..80b0002 100755
  
      # sanitize
      if sanitize_filename:
-@@ -208,9 +209,9 @@ def main():
+@@ -213,9 +214,9 @@ def main():
                      # delete temp files
                      shutil.rmtree(pdfrt.pages_dirname)
  
diff --git a/logo.png b/logo.png
deleted file mode 100644
index 501f598..0000000
Binary files a/logo.png and /dev/null differ
diff --git a/pdf-redact-tools b/pdf-redact-tools
index 1b577b2..97c795e 100755
--- a/pdf-redact-tools
+++ b/pdf-redact-tools
@@ -165,6 +165,11 @@ def parse_arguments():
     return args
 
 def valid_pdf(filename):
+    # Reject filenames that start with '-', to avoid ImageMagick command injection
+    if filename.startswith('-'):
+        return False
+
+    # Make sure the file's mime type is 'application/pdf'
     return subprocess.check_output(['file',
         '-b',
         '--mime-type',
diff --git a/pdf_redact_tools.egg-info/PKG-INFO b/pdf_redact_tools.egg-info/PKG-INFO
new file mode 100644
index 0000000..b0b296f
--- /dev/null
+++ b/pdf_redact_tools.egg-info/PKG-INFO
@@ -0,0 +1,12 @@
+Metadata-Version: 2.1
+Name: pdf-redact-tools
+Version: 0.1.2
+Summary: PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing
+Home-page: https://github.com/micahflee/pdf-redact-tools
+Author: Micah Lee
+Author-email: micah.lee@firstlook.org
+License: GPLv3
+Platform: GNU/Linux
+License-File: LICENSE
+
+PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing.
diff --git a/pdf_redact_tools.egg-info/SOURCES.txt b/pdf_redact_tools.egg-info/SOURCES.txt
new file mode 100644
index 0000000..a493bfc
--- /dev/null
+++ b/pdf_redact_tools.egg-info/SOURCES.txt
@@ -0,0 +1,10 @@
+LICENSE
+MANIFEST.in
+README.md
+pdf-redact-tools
+setup.py
+version
+pdf_redact_tools.egg-info/PKG-INFO
+pdf_redact_tools.egg-info/SOURCES.txt
+pdf_redact_tools.egg-info/dependency_links.txt
+pdf_redact_tools.egg-info/top_level.txt
\ No newline at end of file
diff --git a/pdf_redact_tools.egg-info/dependency_links.txt b/pdf_redact_tools.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/pdf_redact_tools.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/pdf_redact_tools.egg-info/top_level.txt b/pdf_redact_tools.egg-info/top_level.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/pdf_redact_tools.egg-info/top_level.txt
@@ -0,0 +1 @@
+
diff --git a/ppa_release.sh b/ppa_release.sh
deleted file mode 100755
index 255cd91..0000000
--- a/ppa_release.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# This script pushes updates to my Ubuntu PPA: https://launchpad.net/~micahflee/+archive/ppa
-# If you want to use it, you'll need your own ~/.dput.cf and ssh key.
-# More info: https://help.launchpad.net/Packaging/PPA/Uploading
-
-VERSION=`cat version`
-
-rm -rf deb_dist
-python setup.py --command-packages=stdeb.command sdist_dsc
-cd deb_dist/pdf-redact-tools-$VERSION
-dpkg-buildpackage -S
-cd ..
-dput ppa:micahflee/ppa pdf-redact-tools_$VERSION-1_source.changes
-cd ..
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..8bfd5a1
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff --git a/stdeb.cfg b/stdeb.cfg
deleted file mode 100644
index d3faba8..0000000
--- a/stdeb.cfg
+++ /dev/null
@@ -1,4 +0,0 @@
-[DEFAULT]
-Package: pdf-redact-tools
-Depends: imagemagick, libimage-exiftool-perl
-Suite: trusty

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/share/doc/pdf-redact-tools/changelog.gz

No differences were encountered in the control files

More details

Full run details