pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dangerzone: add incomplete package (PySide2 needs packaging)



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Mon Jan 10 22:32:32 2022 +0100
Changeset:	5e0eb5d8fe9453fabf7e9b31f87eb9c92db8a3f6

Modified Files:
	Makefile
Added Files:
	dangerzone/DESCR
	dangerzone/Makefile
	dangerzone/PLIST
	dangerzone/TODO
	dangerzone/distinfo

Log Message:
dangerzone: add incomplete package (PySide2 needs packaging)

Take potentially dangerous PDFs, office documents, or images and
convert them to a safe PDF.

Dangerzone works like this: You give it a document that you don't
know if you can trust (for example, an email attachment). Inside
of a sandbox, Dangerzone converts the document to a PDF (if it
isn't already one), and then converts the PDF into raw pixel data:
a huge list of of RGB color values for each page. Then, in a separate
sandbox, Dangerzone takes this pixel data and converts it back into
a PDF.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5e0eb5d8fe9453fabf7e9b31f87eb9c92db8a3f6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile            |  1 +
 dangerzone/DESCR    | 10 ++++++++++
 dangerzone/Makefile | 20 ++++++++++++++++++++
 dangerzone/PLIST    | 44 ++++++++++++++++++++++++++++++++++++++++++++
 dangerzone/TODO     |  1 +
 dangerzone/distinfo |  5 +++++
 6 files changed, 81 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ad5607d410..a342341ccd 100644
--- a/Makefile
+++ b/Makefile
@@ -585,6 +585,7 @@ SUBDIR+=	d-feet
 SUBDIR+=	d1x-rebirth
 SUBDIR+=	d2x-rebirth
 SUBDIR+=	daligner
+SUBDIR+=	dangerzone
 SUBDIR+=	daphne
 SUBDIR+=	darcs
 SUBDIR+=	darcs-to-git
diff --git a/dangerzone/DESCR b/dangerzone/DESCR
new file mode 100644
index 0000000000..7ab0b4887a
--- /dev/null
+++ b/dangerzone/DESCR
@@ -0,0 +1,10 @@
+Take potentially dangerous PDFs, office documents, or images and
+convert them to a safe PDF.
+
+Dangerzone works like this: You give it a document that you don't
+know if you can trust (for example, an email attachment). Inside
+of a sandbox, Dangerzone converts the document to a PDF (if it
+isn't already one), and then converts the PDF into raw pixel data:
+a huge list of of RGB color values for each page. Then, in a separate
+sandbox, Dangerzone takes this pixel data and converts it back into
+a PDF.
diff --git a/dangerzone/Makefile b/dangerzone/Makefile
new file mode 100644
index 0000000000..bdaa185042
--- /dev/null
+++ b/dangerzone/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	dangerzone-0.3
+CATEGORIES=	print
+MASTER_SITES=	${MASTER_SITE_GITHUB:=firstlookmedia/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://dangerzone.rocks/
+COMMENT=	Convert PDFs to safe PDFs
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-click-[0-9]*:../../devel/py-click
+#DEPENDS+=	${PYPKGPREFIX}-PySide2-[0-9]*:../../x11/py-PySide2
+
+USE_LANGUAGES=	# none
+
+.include "../../lang/python/egg.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/dangerzone/PLIST b/dangerzone/PLIST
new file mode 100644
index 0000000000..f981ba5ea7
--- /dev/null
+++ b/dangerzone/PLIST
@@ -0,0 +1,44 @@
+@comment $NetBSD$
+bin/dangerzone
+bin/dangerzone-cli
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/dangerzone/__init__.py
+${PYSITELIB}/dangerzone/__init__.pyc
+${PYSITELIB}/dangerzone/__init__.pyo
+${PYSITELIB}/dangerzone/cli.py
+${PYSITELIB}/dangerzone/cli.pyc
+${PYSITELIB}/dangerzone/cli.pyo
+${PYSITELIB}/dangerzone/common.py
+${PYSITELIB}/dangerzone/common.pyc
+${PYSITELIB}/dangerzone/common.pyo
+${PYSITELIB}/dangerzone/container.py
+${PYSITELIB}/dangerzone/container.pyc
+${PYSITELIB}/dangerzone/container.pyo
+${PYSITELIB}/dangerzone/global_common.py
+${PYSITELIB}/dangerzone/global_common.pyc
+${PYSITELIB}/dangerzone/global_common.pyo
+${PYSITELIB}/dangerzone/gui/__init__.py
+${PYSITELIB}/dangerzone/gui/__init__.pyc
+${PYSITELIB}/dangerzone/gui/__init__.pyo
+${PYSITELIB}/dangerzone/gui/common.py
+${PYSITELIB}/dangerzone/gui/common.pyc
+${PYSITELIB}/dangerzone/gui/common.pyo
+${PYSITELIB}/dangerzone/gui/main_window.py
+${PYSITELIB}/dangerzone/gui/main_window.pyc
+${PYSITELIB}/dangerzone/gui/main_window.pyo
+${PYSITELIB}/dangerzone/gui/systray.py
+${PYSITELIB}/dangerzone/gui/systray.pyc
+${PYSITELIB}/dangerzone/gui/systray.pyo
+${PYSITELIB}/dangerzone/settings.py
+${PYSITELIB}/dangerzone/settings.pyc
+${PYSITELIB}/dangerzone/settings.pyo
+share/applications/media.firstlook.dangerzone.desktop
+share/dangerzone/dangerzone.ico
+share/dangerzone/error.png
+share/dangerzone/icon.png
+share/dangerzone/version.txt
+share/icons/hicolor/64x64/apps/media.firstlook.dangerzone.png
diff --git a/dangerzone/TODO b/dangerzone/TODO
new file mode 100644
index 0000000000..0ab6da1fb0
--- /dev/null
+++ b/dangerzone/TODO
@@ -0,0 +1 @@
+- package missing PySide2 dependency
diff --git a/dangerzone/distinfo b/dangerzone/distinfo
new file mode 100644
index 0000000000..5720b01907
--- /dev/null
+++ b/dangerzone/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (dangerzone-0.3.tar.gz) = 2b6b8ff0d5a80c46eb7570fd4122eec32b41a2d380fc9c589329ff62cc0ccf20
+SHA512 (dangerzone-0.3.tar.gz) = cd263223b68f9dc66791a5fe65fd033e8b14d9a0542d0ce804ee23cebce03ee095c0d499d4c666d103ff1ddd656f41e1bccc40717b7be866a08ad5fe39c182f3
+Size (dangerzone-0.3.tar.gz) = 1683480 bytes


Home | Main Index | Thread Index | Old Index