Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328897 - www-apps/etherpad-lite-1.2.91 : ebuild request
Summary: www-apps/etherpad-lite-1.2.91 : ebuild request
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://etherpad.org/
Whiteboard:
Keywords:
Depends on: 463782
Blocks:
  Show dependency tree
 
Reported: 2010-07-19 03:41 UTC by Dion Moult (RETIRED)
Modified: 2016-04-09 07:21 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---
dastergon: Bugday+


Attachments
etherpad init script for gentoo, adapter from the debian version (etherpad,1.87 KB, text/plain)
2011-03-12 09:40 UTC, Leho Kraav (:macmaN @lkraav)
Details
www-apps/etherpad-lite-bin-1.2.4.ebuild (etherpad-lite-bin-1.2.4.ebuild,6.60 KB, text/plain)
2013-01-11 16:15 UTC, Daa Jaa
Details
www-apps/etherpad-lite-bin/Manifest (Manifest,777 bytes, text/plain)
2013-01-11 16:19 UTC, Daa Jaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dion Moult (RETIRED) gentoo-dev 2010-07-19 03:41:29 UTC
Etherpad has been bought over by Google and has been down for a while but the sources has been released as shown by this message http://etherpad.com/

It would be great if an ebuild could be put together so that people could run their own etherpad instances. See:
http://code.google.com/p/etherpad/
http://etherpad.org/


Reproducible: Always
Comment 1 Peter Stuge 2011-02-12 21:00:56 UTC
I've made an attempt at creating an ebuild for etherpad and all it's dependencies which were missing from portage, in my ebuild called stuge. It's available using layman:

layman -a stuge
emerge etherpad -av

Lots of dev-java dependencies. I know almost nothing about Java. Both the etherpad ebuild and ebuilds for dependencies that I have added in my overlay probably need some more USE flags. Please feel free to send me patches and/or reports about problems with the ebuild.

In particular I'd like to not hard depend on openoffice. :)
Comment 2 Leho Kraav (:macmaN @lkraav) 2011-03-11 07:33:47 UTC
hi stuge

just checked your ebuild in git. i was looking for some kind of an initial attempt at an initscript, but looks like you haven't (commited?) attacked that yet. any thoughts on this?
Comment 3 Leho Kraav (:macmaN @lkraav) 2011-03-12 09:40:29 UTC
Created attachment 265615 [details]
etherpad init script for gentoo, adapter from the debian version

running this against github:redhog/pad. quite hackish, but seems functional for me.

starting/stopping soffice document converter seemed flaky: 
even though starting is commented out, etherpad seems to start it based on  internal configuration, yet was unable to stop on its own, which the ebuild seems to handle well enough.
Comment 4 Patrick 2011-03-24 08:45:09 UTC
(In reply to comment #1)
> I've made an attempt at creating an ebuild for etherpad and all it's
> dependencies which were missing from portage, in my ebuild called stuge. It's
> available using layman:
> 
> layman -a stuge

Thanks for your work! But why is it in the dev-java category? Wouldn't www-apps or app-office be more suitable? And where to get >=www-servers/jetty-6.1.20?
Comment 5 Daa Jaa 2013-01-11 16:15:33 UTC
Created attachment 335234 [details]
www-apps/etherpad-lite-bin-1.2.4.ebuild

Etherpad-lite is a Web-based collaborative word processor based on Node.js (instead of Scala for etherpad-1.1).

ebuild tested with: cd /usr/local/portage/$USER/www-apps/etherpad-lite-bin/ ; cp /home/$USER/etherpad-lite-bin-1.2.4.ebuild . ; RESTRICT="strip mirror" ebuild etherpad-lite-bin-1.2.4.ebuild  manifest ;  USE=mysql PORTDIR_OVERLAY=/usr/local/portage/$USER MYSQL_USER_PASSWORD=$MYSQL_USER_PASSWORD emerge -v etherpad-lite-bin

USE=mysql makes a bug, only a mysql gourou could fix that.
Without USE=mysql, it works, but the database type is JSON (raw file).

I have tried to secure it, with all executable files now owned by root.
Comment 6 Daa Jaa 2013-01-11 16:19:59 UTC
Created attachment 335236 [details]
www-apps/etherpad-lite-bin/Manifest

contains checksums for what I managed to compile and use.

It now works for me, so it is enough for me. Feel free to make mysql, sqlite, postgresql or abiword work in this ebuild.
Comment 7 Julian Ospald 2013-10-07 21:24:50 UTC
this needs a lot of work

I am mildly interested, so if someone can clean up this, it has a chance to go into the tree.
Comment 8 Daa Jaa 2013-11-01 20:39:45 UTC
No, it stopped working at some point :-(

Now I use the normal installation procedure, with all executables owned by the process running etherpad. I am afraid it is too horrible to go inside the tree.
Comment 9 Daa Jaa 2014-08-19 07:57:36 UTC
Just learnt on IRC #gentoo-python that, according to idella4, neurogeek made ebuilds for these in his overlay and he wrote up his own npm.eclass!!!

And etherpad-lite-develop-1.4 still uses npm a lot, so this overlay will be useful for any progress done here.
Comment 10 Daa Jaa 2014-08-19 08:52:50 UTC
update: etherpad-lite-developer needs nodejs packages, there might be a better installer than npm for node java script.

npm.eclass is in #463782
Comment 11 A. Person 2016-01-20 00:51:50 UTC
Just a quick comment that it would be great to have an ebuild for this.  I'd like to use it with Odoo.
Comment 12 Daa Jaa 2016-01-21 10:07:24 UTC
@Comment 11:

I stated in Comment 10 that the problem was to ask portage to update node js packages, in place of the current npm. Etherpad-lite launcher currently needs write access to its files :-(

If you don't mind restricting the use of etherpad-lite to one account, type this:

emerge <the etherpad ebuild I uploaded in this bug report; it merges necessary dependencies then fails>
su - your-account
git clone git://github.com/ether/etherpad-lite.git OR the line
( git is denied at my work, so I downloaded ether-etherpad-lite-1.5.6-0-ge509824.zip )
node node_modules/ep_etherpad-lite/node/server.js

Hope this helps.
Comment 13 Daa Jaa 2016-01-22 16:37:48 UTC
#gentoo-dev-help published the url of npm.eclass:
https://github.com/neurogeek/gentoo-overlay/blob/master/eclass/npm.eclass