[ 
https://issues.apache.org/jira/browse/ACCUMULO-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13136478#comment-13136478
 ] 

Scott Kuehn commented on ACCUMULO-19:
-------------------------------------

Quick status update, FYI --
I've evaluated these options for integrating debian pkg support:
- maven-deb plugin:  incomplete, and only supports jar projects
- maven-unix plugin: can not be run as a second-level mvn goal, so the project 
pom would have to be refactored
- running ant-plugin, which contains a deb target.  This is the way zookeeper's 
deb and rpm packaging work, but I only want to wrap another build system as a 
last ditch effort.

I'm now investigating a newer maven-debian plugin called jdeb: 
https://github.com/tcurdt/jdeb/blob/master/docs/maven.md
and it looks promising.  My current issue is figuring out how to run the plugin 
at the *end* of the packaging phase b/c my current config is executing the jdeb 
target prior to packaging the main module.

This ticket also relates to bigger issue of organizing distribution packages, 
and files related to run-time, such as everything in bin.  We should continue 
considering the addition of a top level distribution package.

I'm hoping to find some time to pump something out over the next few days.

                
> Debian packaging support
> ------------------------
>
>                 Key: ACCUMULO-19
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-19
>             Project: Accumulo
>          Issue Type: New Feature
>          Components: dist
>            Reporter: Scott Kuehn
>            Priority: Minor
>
> This ticket is for improving Accumulo ease-of-installation by adding built-in 
> support for debian packing. 
> Debian pkg support requires:
> 1. Creating the deb package lifecycle hook scripts, such as 'preinst' and 
> 'postinst'
> 2. Creating an init.d script (one of these already exists in bin/)
> 3. Integrating deb construction into the build lifecycle.  There are some mvn 
> dpkg plugins, but Im not sure how well these work.  It might just be easier 
> to run the deb construction as a delegated ant task (via the maven's antrun 
> plugin)
> Outline of required files: Putting all related packing files under 
> src/packages, which is consistent with other Apache projects, such as 
> zookeeper.
> The following dpkg hooks go in src/packages/deb/accumulo.control/:
> conffile, control, postinst, postrm, preinst, prerm
> An init.d script (which I think can just be a copy of bin/etc_initd_accumulo) 
> goes in src/packages/init.d:

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to