debian/0000755000000000000000000000000011732526311007167 5ustar debian/maven.cleanIgnoreRules0000644000000000000000000000150011732521205013451 0ustar # Maven clean ignore rules - ignore some Maven dependencies and plugins # during the clean phase of a Maven build # Format of this file is: # [group] [artifact] [type] [version] [classifier] [scope] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., this dependency is then removed # from the POM before mvn clean is called # junit junit jar s/3\..*/3.x/ debian/libowasp-java-html-sanitizer-java.poms0000644000000000000000000000315711732521205016520 0ustar # List of POM files for the package # Format of this file is: # [option]* # where option can be: # --ignore: ignore this POM and its artifact if any # --ignore-pom: don't install the POM. To use on POM files that are created # temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms] # --no-parent: remove the tag from the POM # --package=: an alternative package to use when installing this POM # and its artifact # --has-package-version: to indicate that the original version of the POM is the same as the upstream part # of the version for the package. # --keep-elements=: a list of XML elements to keep in the POM # during a clean operation with mh_cleanpom or mh_installpom # --artifact=: path to the build artifact associated with this POM, # it will be installed when using the command mh_install. [mh_install] # --java-lib: install the jar into /usr/share/java to comply with Debian # packaging guidelines # --usj-name=: name to use when installing the library in /usr/share/java # --usj-version=: version to use when installing the library in /usr/share/java # --no-usj-versionless: don't install the versionless link in /usr/share/java # --dest-jar=: the destination for the real jar. # It will be installed with mh_install. [mh_install] # --classifier=: Optional, the classifier for the jar. Empty by default. # --site-xml=: Optional, the location for site.xml if it needs to be installed. # Empty by default. [mh_install] # pom.xml --java-lib debian/README.source0000644000000000000000000000124511732521205011345 0ustar Information about owasp-java-html-sanitizer ------------------------------------------- This package was debianized using the mh_make command from the maven-debian-helper package. The build system uses Maven but prevents it from downloading anything from the Internet, making the build compliant with the Debian policy. Retrieving the upstream source code ----------------------------------- The upstream project produces source code as part of a monolithic zip file containing all dependencies as well. The get-orig-source target in debian/rules picks the Maven source artifact and pom file from the upstream SVN repository and builds the orig.tar.gz that way instead. debian/libowasp-java-html-sanitizer-java-doc.install0000644000000000000000000000010511732521205017741 0ustar target/apidocs/* usr/share/doc/libowasp-java-html-sanitizer-java/api debian/maven.properties0000644000000000000000000000022511732521205012407 0ustar # Include here properties to pass to Maven during the build. # For example: maven.test.skip=true maven.compiler.source=1.5 maven.compiler.target=1.5 debian/rules0000755000000000000000000000200211732521205010236 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/maven.mk JAVA_HOME := /usr/lib/jvm/default-java # Upstream publish a suitable source jar and pom file # in their SVN repository - build .orig.tar.gz from that. PACKAGE_NAME := owasp-java-html-sanitizer BASE_URL := http://owasp-java-html-sanitizer.googlecode.com/svn/maven/owasp-java-html-sanitizer/owasp-java-html-sanitizer UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/0.1+//') get-orig-source: mkdir -p $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)/src/main/java curl $(BASE_URL)/$(UPSTREAM_VERSION)/$(PACKAGE_NAME)-$(UPSTREAM_VERSION).pom > \ $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)/pom.xml ( cd $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)/src/main/java && \ curl $(BASE_URL)/$(UPSTREAM_VERSION)/$(PACKAGE_NAME)-$(UPSTREAM_VERSION)-src.jar | \ jar -x ) tar -czf $(PACKAGE_NAME)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION) rm -rf $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION) debian/control0000644000000000000000000000310311732521205010564 0ustar Source: owasp-java-html-sanitizer Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: James Page DM-Upload-Allowed: yes Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-debian-helper (>= 1.5) Build-Depends-Indep: default-jdk-doc, libguava-java, libguava-java-doc, libjsr305-java, libjsr305-java-doc, libmaven-javadoc-plugin-java Standards-Version: 3.9.3 Homepage: http://code.google.com/p/owasp-java-html-sanitizer Vcs-Git: git://git.debian.org/git/pkg-java/owasp-java-html-sanitizer.git Vcs-Browser: http://git.debian.org/?p=pkg-java/owasp-java-html-sanitizer.git Package: libowasp-java-html-sanitizer-java Architecture: all Depends: ${maven:Depends}, ${misc:Depends} Recommends: ${maven:OptionalDepends} Suggests: libowasp-java-html-sanitizer-java-doc Description: OWASP Java HTML Sanitizer A fast and easy to configure HTML Sanitizer written in Java which lets you include HTML authored by third-parties in your web application while protecting against XSS. Package: libowasp-java-html-sanitizer-java-doc Architecture: all Section: doc Depends: ${maven:DocDepends}, ${misc:Depends} Recommends: ${maven:DocOptionalDepends} Suggests: libowasp-java-html-sanitizer-java Description: Documentation for OWASP Java HTML Sanitizer A fast and easy to configure HTML Sanitizer written in Java which lets you include HTML authored by third-parties in your web application while protecting against XSS. . This package contains the API documentation of libowasp-java-html-sanitizer-java. debian/maven.rules0000644000000000000000000000175411732521205011355 0ustar # Maven rules - transform Maven dependencies and plugins # Format of this file is: # [group] [artifact] [type] [version] [classifier] [scope] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # - a regular expression of the form s/match/replace/ # in this case, elements that match are transformed using # the regex rule. # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., replacing the version with 3.x # junit junit jar s/3\..*/3.x/ owasp-java-html-sanitizer owasp-java-html-sanitizer jar s/.*/debian/ * * s/com.google.code.findbugs/org.jsr-305/ jsr305 * s/.*/0.x/ * * debian/copyright0000644000000000000000000000337711732521205011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OWASP Java HTML Sanitizer Source: http://code.google.com/p/owasp-java-html-sanitizer Files: * Copyright: 2011, Mike Samuel License: BSD Files: debian/* Copyright: 2012, Canonical Ltd (http://www.canonical.com) License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the OWASP nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/compat0000644000000000000000000000000211732521205010362 0ustar 7 debian/maven.publishedRules0000644000000000000000000000164111732521205013210 0ustar # Maven published rules - additional rules to publish, to help # the packaging work of Debian maintainers using mh_make # Format of this file is: # [group] [artifact] [type] [version] [classifier] [scope] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # - a regular expression of the form s/match/replace/ # in this case, elements that match are transformed using # the regex rule. # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., replacing the version with 3.x # junit junit jar s/3\..*/3.x/ debian/source/0000755000000000000000000000000011732521205010464 5ustar debian/source/format0000644000000000000000000000001411732521205011672 0ustar 3.0 (quilt) debian/maven.ignoreRules0000644000000000000000000000136511732521205012517 0ustar # Maven ignore rules - ignore some Maven dependencies and plugins # Format of this file is: # [group] [artifact] [type] [version] [classifier] [scope] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., this dependency is then removed # from the POM # junit junit jar s/3\..*/3.x/ debian/changelog0000644000000000000000000000061011732521205011033 0ustar owasp-java-html-sanitizer (0.1+r88-1) unstable; urgency=low * Initial Debian release (Closes: #664055) [tony mancill] * Set DMUA flag. -- James Page Tue, 20 Mar 2012 12:18:18 +0000 owasp-java-html-sanitizer (0.1+r88-0ubuntu1) precise; urgency=low * Initial release (LP: #954960). -- James Page Thu, 15 Mar 2012 09:53:59 +0000 debian/patches/0000755000000000000000000000000011732521205010613 5ustar debian/patches/fix-pom.patch0000644000000000000000000000225711732521205013221 0ustar Description: The upstream POM file is badly formatted and cannot be processed by maven in is raw form. Author: James Page Forwarded: no Index: owasp-java-html-sanitizer-0.1+r88/pom.xml =================================================================== --- owasp-java-html-sanitizer-0.1+r88.orig/pom.xml 2012-03-14 11:53:19.000000000 +0000 +++ owasp-java-html-sanitizer-0.1+r88/pom.xml 2012-03-14 11:54:42.902269301 +0000 @@ -1,9 +1,10 @@ + - + 4.0.0 owasp-java-html-sanitizer owasp-java-html-sanitizer debian/patches/series0000644000000000000000000000001611732521205012025 0ustar fix-pom.patch debian/libowasp-java-html-sanitizer-java-doc.doc-base.api0000644000000000000000000000057511732521205020533 0ustar Document: libowasp-java-html-sanitizer-java Title: API Javadoc for OWASP Java HTML Sanitizer Author: OWASP developers Abstract: This is the API Javadoc provided for the libowasp-java-html-sanitizer-java library. Section: Programming Format: HTML Index: /usr/share/doc/libowasp-java-html-sanitizer-java/api/index.html Files: /usr/share/doc/libowasp-java-html-sanitizer-java/api/*