[shiro] 01/01: Initial packaging

Emmanuel Bourg ebourg-guest at alioth.debian.org
Wed Oct 16 14:59:14 UTC 2013


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

ebourg-guest pushed a commit to branch master
in repository shiro.

commit 9622fd2cbd61dac2147169fbc3bd439b8c72665a
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Oct 16 16:47:39 2013 +0200

    Initial packaging
---
 debian/README.source                    |    9 +++
 debian/changelog                        |    5 ++
 debian/compat                           |    1 +
 debian/control                          |   31 +++++++++++
 debian/copyright                        |   15 +++++
 debian/libshiro-java.poms               |   42 ++++++++++++++
 debian/maven.cleanIgnoreRules           |    1 +
 debian/maven.ignoreRules                |   33 +++++++++++
 debian/maven.properties                 |    5 ++
 debian/maven.publishedRules             |   33 +++++++++++
 debian/maven.rules                      |   33 +++++++++++
 debian/orig-tar.sh                      |   20 +++++++
 debian/patches/01-bundles-to-jars.patch |   92 +++++++++++++++++++++++++++++++
 debian/patches/series                   |    1 +
 debian/rules                            |   10 ++++
 debian/source/format                    |    1 +
 debian/watch                            |    3 +
 17 files changed, 335 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..7b62b22
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about shiro
+-----------------------
+
+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..c94d924
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+shiro (1.2.2-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #726534)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Wed, 16 Oct 2013 14:05:42 +0200
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..a224a90
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: shiro
+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
+Build-Depends-Indep: libapache-pom-java (>= 10),
+                     libaspectj-java,
+                     libbuild-helper-maven-plugin-java,
+                     libcommons-beanutils-java,
+                     libcommons-cli-java,
+                     libehcache-java,
+                     libguava-java,
+                     libguice-java,
+                     libquartz-java,
+                     libservlet2.5-java,
+                     libslf4j-java,
+                     libspring-context-java
+Standards-Version: 3.9.4
+Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/shiro
+Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/shiro
+Homepage: http://shiro.apache.org
+
+Package: libshiro-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Apache Shiro - Java Security Framework
+ Apache Shiro is a powerful and flexible open-source security framework
+ that cleanly handles authentication, authorization, enterprise session
+ management, single sign-on and cryptography services.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6a817c9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Apache Shiro
+Source: http://shiro.apache.org
+
+Files: *
+Copyright: 2004-2013, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2013, 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/libshiro-java.poms b/debian/libshiro-java.poms
new file mode 100644
index 0000000..8194047
--- /dev/null
+++ b/debian/libshiro-java.poms
@@ -0,0 +1,42 @@
+# 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
+core/pom.xml --has-package-version --java-lib
+web/pom.xml --has-package-version --java-lib
+support/pom.xml --has-package-version
+support/aspectj/pom.xml --has-package-version --java-lib
+support/ehcache/pom.xml --has-package-version --java-lib
+support/quartz/pom.xml --has-package-version --java-lib
+support/spring/pom.xml --has-package-version --java-lib
+support/guice/pom.xml --ignore
+support/features/pom.xml --has-package-version --java-lib
+support/cas/pom.xml --ignore
+samples/pom.xml --ignore
+tools/pom.xml --has-package-version --java-lib
+tools/hasher/pom.xml --has-package-version --java-lib
+all/pom.xml --ignore
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..5575ff0
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,33 @@
+
+org.apache.shiro shiro-all jar * * *
+org.apache.shiro shiro-cas bundle * * *
+org.apache.shiro shiro-core test-jar * * *
+org.apache.shiro.samples shiro-samples pom * * *
+com.google.inject.extensions guice-multibindings * * * *
+com.google.inject.extensions guice-servlet * * * *
+hsqldb hsqldb * * * *
+log4j log4j * * * *
+org.apache.felix maven-bundle-plugin * * * *
+org.apache.maven.plugins maven-assembly-plugin * * * *
+org.apache.maven.plugins maven-gpg-plugin * * * *
+org.apache.maven.plugins maven-jxr-plugin * * * *
+org.apache.maven.plugins maven-pmd-plugin * * * *
+org.apache.maven.plugins maven-project-info-reports-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+org.apache.maven.plugins maven-surefire-report-plugin * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.codehaus.gmaven gmaven-plugin * * * *
+org.codehaus.groovy groovy-all * * * *
+org.codehaus.mojo aspectj-maven-plugin * * * *
+org.codehaus.mojo buildnumber-maven-plugin * * * *
+org.codehaus.mojo cobertura-maven-plugin * * * *
+org.codehaus.mojo dashboard-maven-plugin * * * *
+org.codehaus.mojo jdepend-maven-plugin * * * *
+org.codehaus.mojo taglist-maven-plugin * * * *
+org.easymock easymock * * * *
+org.hsqldb hsqldb * * * *
+org.slf4j jcl-over-slf4j * * * *
+org.slf4j slf4j-log4j12 * * * *
+org.slf4j slf4j-simple * * * *
+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.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..e07162c
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,33 @@
+
+org.apache.shiro shiro-aspectj bundle s/.*/debian/ * *
+org.apache.shiro shiro-aspectj s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-core bundle s/.*/debian/ * *
+org.apache.shiro shiro-core s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-ehcache bundle s/.*/debian/ * *
+org.apache.shiro shiro-ehcache s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-features pom s/.*/debian/ * *
+org.apache.shiro shiro-guice bundle s/.*/debian/ * *
+org.apache.shiro shiro-guice s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-quartz bundle s/.*/debian/ * *
+org.apache.shiro shiro-quartz s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-root pom s/.*/debian/ * *
+org.apache.shiro shiro-spring bundle s/.*/debian/ * *
+org.apache.shiro shiro-spring s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro shiro-support pom s/.*/debian/ * *
+org.apache.shiro shiro-web bundle s/.*/debian/ * *
+org.apache.shiro shiro-web s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools-hasher bundle s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools-hasher s/jar/bundle/ s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools pom s/.*/debian/ * *
+org.apache.shiro shiro-aspectj * s/.*/debian/ * *
+org.apache.shiro shiro-core * s/.*/debian/ * *
+org.apache.shiro shiro-ehcache * s/.*/debian/ * *
+org.apache.shiro shiro-features * s/.*/debian/ * *
+org.apache.shiro shiro-guice * s/.*/debian/ * *
+org.apache.shiro shiro-quartz * s/.*/debian/ * *
+org.apache.shiro shiro-root * s/.*/debian/ * *
+org.apache.shiro shiro-spring * s/.*/debian/ * *
+org.apache.shiro shiro-support * s/.*/debian/ * *
+org.apache.shiro shiro-web * s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools-hasher * s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools * s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..34ceba3
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,33 @@
+
+s/aspectj/org.aspectj/ aspectjrt jar s/.*/debian/ * *
+s/aspectj/org.aspectj/ aspectjtools jar s/.*/debian/ * *
+s/aspectj/org.aspectj/ aspectjweaver jar s/.*/debian/ * *
+com.google.guava guava bundle s/.*/debian/ * *
+com.google.guava guava s/jar/bundle/ s/.*/debian/ * *
+commons-beanutils commons-beanutils jar s/.*/debian/ * *
+javax.servlet jstl jar s/.*/1.1/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.apache apache pom s/.*/debian/ * *
+org.apache.shiro shiro-core s/bundle/jar/ s/.*/debian/ * *
+org.quartz-scheduler quartz jar s/.*/debian/ * *
+s/hsqldb/org.hsqldb/ hsqldb * s/.*/debian/ * *
+junit junit * s/4\..*/4.x/ * *
+org.apache.felix maven-bundle-plugin * s/.*/2.3.5/ * *
+org.apache.shiro shiro-aspectj * s/.*/debian/ * *
+org.apache.shiro shiro-ehcache * s/.*/debian/ * *
+org.apache.shiro shiro-features * s/.*/debian/ * *
+org.apache.shiro shiro-guice * s/.*/debian/ * *
+org.apache.shiro shiro-quartz * s/.*/debian/ * *
+org.apache.shiro shiro-root * s/.*/debian/ * *
+org.apache.shiro shiro-spring * s/.*/debian/ * *
+org.apache.shiro shiro-support * s/.*/debian/ * *
+org.apache.shiro shiro-web * s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools-hasher * s/.*/debian/ * *
+org.apache.shiro.tools shiro-tools * s/.*/debian/ * *
+org.springframework * * s/3\..*/3.x/ * *
+s/com.google.code.google-collections/com.google.guava/ s/google-collect/guava/ s/jar/bundle/ s/.*/debian/ * *
+s/com.google.collections/com.google.guava/ s/google-collections/guava/ s/jar/bundle/ 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.opensymphony.quartz/org.quartz-scheduler/ quartz * s/.*/debian/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..50e7132
--- /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=../shiro_$VERSION.orig.tar.xz
+DIR=shiro-$VERSION
+TAG=$(echo "shiro-root-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
+
+svn export http://svn.apache.org/repos/asf/shiro/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' --exclude '.gitignore' $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/patches/01-bundles-to-jars.patch b/debian/patches/01-bundles-to-jars.patch
new file mode 100644
index 0000000..f323a2a
--- /dev/null
+++ b/debian/patches/01-bundles-to-jars.patch
@@ -0,0 +1,92 @@
+Description: Changes the packaging from bundle to jar to fix build issues.
+ Feel free to disable this patch if you figure how to build proper OSGi modules.
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/core/pom.xml
++++ b/core/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-core</artifactId>
+     <name>Apache Shiro :: Core</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <build>
+         <plugins>
+--- a/support/ehcache/pom.xml
++++ b/support/ehcache/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-ehcache</artifactId>
+     <name>Apache Shiro :: Support :: EHCache</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
+--- a/support/guice/pom.xml
++++ b/support/guice/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-guice</artifactId>
+     <name>Apache Shiro :: Support :: Guice</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <properties>
+         <guice.version>3.0</guice.version>
+--- a/support/quartz/pom.xml
++++ b/support/quartz/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-quartz</artifactId>
+     <name>Apache Shiro :: Support :: Quartz</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
+--- a/support/spring/pom.xml
++++ b/support/spring/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-spring</artifactId>
+     <name>Apache Shiro :: Support :: Spring</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
+--- a/tools/hasher/pom.xml
++++ b/tools/hasher/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-tools-hasher</artifactId>
+     <name>Apache Shiro :: Tools :: Hasher</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
+--- a/web/pom.xml
++++ b/web/pom.xml
+@@ -30,7 +30,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-web</artifactId>
+     <name>Apache Shiro :: Web</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
+--- a/support/aspectj/pom.xml
++++ b/support/aspectj/pom.xml
+@@ -29,7 +29,7 @@
+     <modelVersion>4.0.0</modelVersion>
+     <artifactId>shiro-aspectj</artifactId>
+     <name>Apache Shiro :: Support :: AspectJ</name>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <dependencies>
+         <dependency>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0f5e843
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-bundles-to-jars.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..92d3665
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/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 := javadoc:javadoc javadoc:aggregate
+
+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..a887f57
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
+  http://svn.apache.org/repos/asf/shiro/tags/ shiro-root-([\d\.]+)/ debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/shiro.git



More information about the pkg-java-commits mailing list