[apache-log4j2] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 27 23:57:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository apache-log4j2.
commit ba4695bfe94c7555fb9043d94d84dd2970137f79
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Jan 28 00:54:27 2014 +0100
Initial packaging
---
debian/README.source | 9 ++++
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 80 ++++++++++++++++++++++++++++++++++
debian/copyright | 15 +++++++
debian/liblog4j2-java-doc.doc-base.api | 10 +++++
debian/liblog4j2-java-doc.install | 1 +
debian/liblog4j2-java.poms | 39 +++++++++++++++++
debian/maven.ignoreRules | 37 ++++++++++++++++
debian/maven.properties | 5 +++
debian/maven.rules | 19 ++++++++
debian/orig-tar.sh | 20 +++++++++
debian/rules | 12 +++++
debian/source/format | 1 +
debian/watch | 4 ++
15 files changed, 258 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..665dcea
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about apache-log4j2
+-------------------------------
+
+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.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3f59ce5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+apache-log4j2 (2.0~beta9-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #718867)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Mon, 27 Jan 2014 23:48:33 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cb0ae70
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,80 @@
+Source: apache-log4j2
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: cdbs, debhelper (>= 9), default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: default-jdk-doc,
+ libapache-pom-java (>= 10),
+ libcommons-logging-java,
+ libcommons-logging-java-doc,
+ libdisruptor-java,
+ libgeronimo-jms-1.1-spec-java,
+ libgnumail-java,
+ libjackson2-databind-java,
+ libjansi-java,
+ libjpa-2.1-spec-java,
+ liblightcouch-java,
+ libmaven-bundle-plugin-java,
+ libmaven-exec-plugin-java,
+ libmaven-javadoc-plugin-java,
+ libmongodb-java,
+ libosgi-core-java,
+ libservlet3.0-java,
+ libslf4j-java
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-java/apache-log4j2.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/apache-log4j2.git
+Homepage: http://logging.apache.org/log4j/2.x/
+
+Package: liblog4j2-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}, liblog4j2-java-doc
+Description: Apache Log4j - Logging Framework for Java
+ Apache Log4j 2 is an upgrade to Log4j that provides significant improvements
+ over its predecessor, Log4j 1.x:
+ .
+ API Separation: The API for Log4j is separate from the implementation making
+ it clear for application developers which classes and methods they can use
+ while ensuring forward compatibility.
+ .
+ Improved Performance: Log4j 2 contains next-generation Asynchronous Loggers
+ based on the LMAX Disruptor library. In multi-threaded scenarios Asynchronous
+ Loggers have 10 times higher throughput and orders of magnitude lower latency
+ than Log4j 1.x.
+ .
+ Support for multiple APIs: While the Log4j 2 API will provide the best
+ performance, Log4j 2 provides support for the SLF4J and Commons Logging APIs.
+ .
+ Automatic Reloading of Configurations: Log4j 2 can automatically reload its
+ configuration upon modification. It will do so without losing log events
+ while reconfiguration is taking place.
+ .
+ Advanced Filtering: Log4j 2 supports filtering based on context
+ data, markers, regular expressions, and other components in the Log event.
+ Filtering can be specified to apply to all events before being passed to
+ Loggers or as they pass through Appenders.
+ .
+ Plugin Architecture: Log4j uses the plugin pattern to configure components.
+ As such, no code is needed to create and configure an Appender, Layout,
+ Pattern Converter, and so on. Log4j automatically recognizes plugins
+ and uses them when a configuration references them.
+ .
+ Property Support: Properties can be referenced in a configuration, Log4j will
+ directly replace them, or Log4j will pass them to an underlying component that
+ will dynamically resolve them. Properties come from values defined in the
+ configuration file, system properties, environment variables, the
+ ThreadContext Map, and data present in the event.
+
+Package: liblog4j2-java-doc
+Architecture: all
+Section: doc
+Depends: ${maven:DocDepends}, ${misc:Depends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: liblog4j2-java
+Description: Documentation for Apache Log4j 2
+ Apache Log4j 2 is an upgrade to Log4j that provides significant improvements
+ over its predecessor, Log4j 1.x.
+ .
+ This package contains the API documentation of liblog4j2-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..509d3d1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Apache Log4j 2
+Source: http://logging.apache.org/log4j/2.x/
+
+Files: *
+Copyright: 1999-2014, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/liblog4j2-java-doc.doc-base.api b/debian/liblog4j2-java-doc.doc-base.api
new file mode 100644
index 0000000..2e87a5c
--- /dev/null
+++ b/debian/liblog4j2-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: liblog4j2-java
+Title: API Javadoc for Apache Log4j 2
+Author: Apache Software Foundation developers
+Abstract: This is the API Javadoc provided for the
+ liblog4j2-java libraries.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/liblog4j2-java/api/index.html
+Files: /usr/share/doc/liblog4j2-java/api/*
diff --git a/debian/liblog4j2-java-doc.install b/debian/liblog4j2-java-doc.install
new file mode 100644
index 0000000..077eb1d
--- /dev/null
+++ b/debian/liblog4j2-java-doc.install
@@ -0,0 +1 @@
+target/site/apidocs/* usr/share/doc/liblog4j2-java/api
diff --git a/debian/liblog4j2-java.poms b/debian/liblog4j2-java.poms
new file mode 100644
index 0000000..aa5259d
--- /dev/null
+++ b/debian/liblog4j2-java.poms
@@ -0,0 +1,39 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [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 <parent> tag from the POM
+# --package=<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=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: 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>: name to use when installing the library in /usr/share/java
+# --usj-version=<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=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
+pom.xml --has-package-version
+log4j-api/pom.xml --has-package-version --java-lib
+log4j-core/pom.xml --has-package-version --java-lib
+log4j-osgi/pom.xml --ignore
+log4j-1.2-api/pom.xml --has-package-version --java-lib
+log4j-slf4j-impl/pom.xml --ignore
+log4j-to-slf4j/pom.xml --has-package-version --java-lib
+log4j-jcl/pom.xml --has-package-version --java-lib
+log4j-flume-ng/pom.xml --ignore
+log4j-taglib/pom.xml --ignore
+log4j-jmx-gui/pom.xml --ignore
+log4j-samples/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..a095a6a
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,37 @@
+
+org.apache.logging.log4j log4j-api test-jar * * *
+org.apache.logging.log4j log4j-core test-jar * * *
+org.apache.logging.log4j log4j-flume-ng jar * * *
+org.apache.logging.log4j log4j-jmx-gui jar * * *
+org.apache.logging.log4j log4j-taglib jar * * *
+org.apache.logging.log4j.osgi log4j-osgi pom * * *
+org.apache.logging.log4j.samples log4j-samples pom * * *
+ch.qos.logback logback-classic * * * *
+ch.qos.logback logback-core * * * *
+com.h2database h2 * * * *
+commons-httpclient commons-httpclient * * * *
+javax.jmdns jmdns * * * *
+junit junit * * * *
+log4j log4j * * * *
+org.apache.felix org.apache.felix.framework * * * *
+org.apache.maven maven-core * * * *
+org.apache.maven.plugins maven-changes-plugin * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-jxr-plugin * * * *
+org.apache.maven.plugins maven-pdf-plugin * * * *
+org.apache.maven.plugins maven-pmd-plugin * * * *
+org.apache.maven.plugins maven-project-info-reports-plugin * * * *
+org.apache.maven.plugins maven-remote-resources-plugin * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+org.apache.maven.wagon wagon-ssh * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.apache.velocity velocity * * * *
+org.codehaus.mojo cobertura-maven-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
+org.easymock easymock * * * *
+org.eclipse.osgi org.eclipse.osgi * * * *
+org.eclipse.persistence org.eclipse.persistence.jpa * * * *
+org.hsqldb hsqldb * * * *
+org.mockejb mockejb * * * *
+org.slf4j slf4j-ext * * * *
+org.springframework spring-test * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..0221bd1
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,19 @@
+
+com.fasterxml.jackson.core jackson-core jar s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind jar s/2\..*/2.x/ * *
+s/com\.sun\.mail/javax.mail/ s/javax\.mail/gnumail/ jar s/.*/debian/ * *
+org.apache apache pom s/.*/debian/ * *
+org.lightcouch lightcouch jar s/.*/debian/ * *
+org.mongodb mongo-java-driver bundle s/.*/debian/ * *
+org.mongodb mongo-java-driver s/jar/bundle/ s/.*/debian/ * *
+com.fasterxml.jackson.core jackson-core * s/.*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind * s/.*/2.x/ * *
+commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * *
+javax.servlet s/javax\.servlet-api/servlet-api * s/.*/3.0/ * *
+org.eclipse.persistence javax.persistence * s/.*/2.x/ * *
+org.eclipse.persistence javax.persistence * s/2\..*/2.x/ * *
+org.osgi s/core/org.osgi.core/ * s/.*/debian/ * *
+s/org.apache.tomcat/javax.el/ el-api jar s/.*/2.1/ * *
+s/org.apache.tomcat/javax.servlet/ jsp-api jar s/.*/2.1/ * *
+s/org.apache.tomcat/javax.servlet/ servlet-api jar s/.*/2.5/ * *
+s/org.apache.felix/org.osgi/ org.osgi.core * * * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..c2bc0af
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# Removes unwanted content from the upstream sources.
+# Called by uscan with '--upstream-version' <version> <file>
+#
+
+VERSION=$2
+TAR=../apache-log4j2_$VERSION.orig.tar.xz
+DIR=apache-log4j2-$VERSION
+TAG=$(echo "log4j-$VERSION" | sed -re's/~/-/')
+
+svn export http://svn.apache.org/repos/asf/logging/log4j/log4j2/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir && echo "moved $TAR to $origDir"
+fi
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2219121
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/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
+
+DEB_MAVEN_DOC_TARGET := install javadoc:javadoc javadoc:aggregate
+DEB_INSTALL_CHANGELOGS_ALL := RELEASE-NOTES.txt
+
+get-orig-source:
+ uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f49fda6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+
+version=3
+opts="uversionmangle=s/-(alpha|beta)/~$1/;s/-rc/~rc/" \
+http://svn.apache.org/repos/asf/logging/log4j/log4j2/tags/ log4j-(.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/apache-log4j2.git
More information about the pkg-java-commits
mailing list