Author: ieugen
Date: Wed Feb 15 10:57:53 2012
New Revision: 1244437

URL: http://svn.apache.org/viewvc?rev=1244437&view=rev
Log:
JAMES-1343
- added basic debian packaging creation capabilites as maven profile to 
james-app
- fixed issue with duplicate dependency

Added:
    james/app/trunk/src/debian/
    james/app/trunk/src/debian/control/
    james/app/trunk/src/debian/control/control   (with props)
Modified:
    james/app/trunk/pom.xml

Modified: james/app/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/app/trunk/pom.xml?rev=1244437&r1=1244436&r2=1244437&view=diff
==============================================================================
--- james/app/trunk/pom.xml (original)
+++ james/app/trunk/pom.xml Wed Feb 15 10:57:53 2012
@@ -167,10 +167,6 @@
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>commons-daemon</groupId>
-            <artifactId>commons-daemon</artifactId>
-        </dependency>
-        <dependency>
             <groupId>org.apache.james</groupId>
             <artifactId>james-server-mailetcontainer-camel</artifactId>
             <scope>runtime</scope>
@@ -781,4 +777,76 @@
         </plugins>
 
     </build>
+    
+    <profiles>
+        <profile>
+            <id>make-deb</id>
+            <build>
+                <resources>
+                    <resource>
+                        <directory>src/debian/control</directory>
+                        <filtering>true</filtering>
+                        <includes>
+                            <include>control*</include>
+                        </includes>
+                        
<targetPath>${project.build.directory}/control</targetPath>
+                    </resource>
+                </resources>
+                <plugins>
+                    <plugin>
+                        <artifactId>jdeb</artifactId>
+                        <groupId>org.vafer</groupId>
+                        <version>0.9</version>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>jdeb</goal>
+                                </goals>
+                                <configuration>
+                                    
<deb>${project.build.directory}/${project.artifactId}_${project.version}_all.deb</deb>
+                                    <dataSet>
+                                        <data>
+                                            
<src>${project.build.directory}/${project.build.finalName}.jar</src>
+                                            <type>file</type>
+                                            <mapper>
+                                                <type>file</type>
+                                                <prefix>/</prefix>
+                                            </mapper>
+                                            <mapper>
+                                                <type>perm</type>
+                                                
<prefix>/usr/share/james-server</prefix>
+                                                <user>root</user>
+                                                <group>root</group>
+                                            </mapper>
+                                        </data>
+                                        <data>
+                                            
<src>${project.basedir}/src/main/app</src>
+                                            <type>directory</type>
+                                            <includes>*</includes>
+                                            <excludes>**/.svn</excludes>
+                                            <mapper>
+                                                <type>directory</type>
+                                                
<prefix>/usr/share/james-server</prefix>
+                                            </mapper>
+                                            <mapper>
+                                                <type>perm</type>
+                                                
<prefix>/usr/share/james-server</prefix>
+                                                <user>root</user>
+                                                <group>root</group>
+                                            </mapper>
+                                        </data>
+                                    </dataSet>
+                                    
<controlDir>${project.build.directory}/control</controlDir>
+                                    
<changesIn>${project.basedir}README.txt</changesIn>
+                                    
<changesOut>${project.build.directory}/${project.build.finalName}.changes</changesOut>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+    
 </project>

Added: james/app/trunk/src/debian/control/control
URL: 
http://svn.apache.org/viewvc/james/app/trunk/src/debian/control/control?rev=1244437&view=auto
==============================================================================
--- james/app/trunk/src/debian/control/control (added)
+++ james/app/trunk/src/debian/control/control Wed Feb 15 10:57:53 2012
@@ -0,0 +1,14 @@
+Package: ${artifactId}
+Version: ${project.version}
+Section: mail
+Priority: optional
+Architecture: all
+Depends: java6-runtime
+Maintainer: Apache James Team <[email protected]>
+Description: Hi-performance, modular and extensible Java based email server.
+  The Apache James Project delivers a rich set of open source modules and 
libraries,
+ written in Java, related to Internet mail communication which build into an 
advanced
+ enterprise mail server.
+ James Server provides a mailet container: the email processing is delegated 
to 
+ independent, extensible, pluggable agents specified by the Mailet API. Any 
function 
+ which is not already available (from James or from a third party) can be 
developed.

Propchange: james/app/trunk/src/debian/control/control
------------------------------------------------------------------------------
    svn:executable = *



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to