You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by "Scott Kuehn (Commented) (JIRA)" <ji...@apache.org> on 2011/11/10 02:29:51 UTC

[jira] [Commented] (ACCUMULO-19) Debian packaging support

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

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

Initial patch for debian packaging support is attached.  To test this out, run 'mvn -N jdeb:jdeb'.  A deb file will be generated in target/, and you can use the standard dpkg-deb commands to inspect the archive.  

A few notes: 
- I mirrored the RPM packaging config as much as possible.  As such, the debian package should have the same files and metadata as the rpm package
- Presently, a generated 'deb' package will not have the typical debian control scripts that set up user accounts, init the db, etc.... I just wanted to show a preview of what a basic deb bundling would look like, and I can add control scripts if this patch is determined to be useful.
- I didn't bind the goal to a particular build phase b/c executing this goal seems like a rare/one-off operation.  Note that the rpm plugin is configured in a similar fashion.
- You should run 'mvn package' prior to invoking the jdeb goal.  I realize this is clunky, and I'm working to get a patch for jdeb that will provide cleaner support to aggregate mvn projects like accumulo.  Another option, which might be better in the long run, is to refactor accumulo build structure to have a distribution module that will depend on the other modules.  assembly, RPM, Debian, and other distro-related concerns could all be encapsulated in this module.

Thanks for your patience w/this patch, I haven't had much free time lately.



                
> 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
>         Attachments: ACCUMULO-19.patch
>
>
> 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