[deal.ii] 05/08: Fix privacy breach issues in html documentation, miscellaneous

Matthias Maier tamiko-guest at moszumanska.debian.org
Sun Mar 2 02:23:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

tamiko-guest pushed a commit to branch master
in repository deal.ii.

commit 5e300bf995c9498a5d35bb8c0672f109b40874cd
Author: Matthias Maier <tamiko at kyomu.43-1.org>
Date:   Sat Mar 1 18:57:19 2014 +0100

    Fix privacy breach issues in html documentation, miscellaneous
    
     - The orig tarball now also contains all necessary external (image and
       movie) resources so that the html documentation can be viewed offline.
    
     - All external links to google groups and w3c validator are now removed.
    
     - Remove empty directories from html documentation and examples
    
     - Intall example source unzipped so that example steps are readily usable
---
 debian/rules | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/debian/rules b/debian/rules
index 8c58184..ce8b7fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,14 +26,35 @@ override_dh_auto_configure:
 	-DDEAL_II_PROJECT_CONFIG_RELDIR=share/cmake/deal.II \
 	-DDEAL_II_LIBRARY_RELDIR=lib/$(DEB_HOST_MULTIARCH)
 
+override_dh_auto_install:
+	dh_auto_install
+	# Replace links to external html resources by local links:
+	sed -i 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \
+		"$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/doxygen/deal.II/step_*.html
+	# Remove external links to the W3C validator icon:
+	find "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html \
+		-type f -name '*.html' -exec sed -i 's#\(<img.*w3.org.*\)</a>#</a>#' {} \;
+	# Remove a java script embedding to google groups:
+	sed -i  -e 's#.*getElementById.*forum_embed.*##g' \
+		-e 's#.*groups\.google\.com/forum/embed.*##g' \
+		"$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/mail.html
+	# Remove superfluous license file
+	rm "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/LICENSE
+	# Remove empty directories
+	rm -r "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/examples/step-35/lib
+	rmdir "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/glossary
+
 override_dh_strip:
 	dh_strip --dbg-package=libdeal.ii-dbg
 
 VERSION := 8.1.0
 get-orig-source:
 	wget --no-clobber -O deal.ii-$(VERSION).tar.gz https://dealii.googlecode.com/files/deal.II-$(VERSION).tar.gz
+	wget --no-clobber -O deal.ii-doc-$(VERSION).tar.gz https://dealii.googlecode.com/files/deal.offlinedoc-$(VERSION).tar.gz
 	mkdir deal.ii-$(VERSION)
 	tar --strip-components=1 -C deal.ii-$(VERSION) -xzf deal.ii-$(VERSION).tar.gz
+	mkdir -p deal.ii-$(VERSION)/doc/doxygen/deal.II
+	tar -C deal.ii-$(VERSION) -xzf deal.ii-doc-$(VERSION).tar.gz doc/doxygen/deal.II/images
 	set -e; cd deal.ii-$(VERSION); \
 		rm -rf bundled
 	tar -cJf deal.ii_$(VERSION).orig.tar.xz deal.ii-$(VERSION)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/deal.ii.git



More information about the debian-science-commits mailing list