Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119591 - www-apps/sql-ledger - a webbased ERP system
Summary: www-apps/sql-ledger - a webbased ERP system
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://www.sql-ledger.com
Whiteboard: sunrise suggested
Keywords: EBUILD
: 394943 405169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-19 12:22 UTC by Ed Wildgoose
Modified: 2019-07-17 19:54 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild (sql-ledger-2.6.5.ebuild,1.70 KB, text/plain)
2006-01-19 12:24 UTC, Ed Wildgoose
Details
postinstall file (postinstall-en.txt,1.18 KB, text/plain)
2006-01-19 12:24 UTC, Ed Wildgoose
Details
updated ebuild (sql-ledger-2.6.7.ebuild,1.69 KB, text/plain)
2006-03-11 01:03 UTC, Brian Dolbec (RETIRED)
Details
apache2 - sql-ledger.conf file (sql-ledger.conf,272 bytes, text/plain)
2006-05-28 19:37 UTC, Brian Dolbec (RETIRED)
Details
ebuild for latest sql-ledger (sql-ledger-2.8.7.ebuild,1.85 KB, text/plain)
2007-08-21 03:48 UTC, turtle
Details
updated for apache 2.2.6-r5 (ebuild.attachement,1.26 KB, text/plain)
2007-12-31 07:38 UTC, turtle
Details
ebuild for sql-ledger version 2.8.11 (sql-ledger-2.8.11.ebuild,1.85 KB, text/plain)
2007-12-31 07:58 UTC, turtle
Details
ebuild for sql-ledger version 2.8.18 (sql-ledger-2.8.18.ebuild,1.85 KB, text/plain)
2008-11-11 22:08 UTC, Thiemo Kellner
Details
Update sql-ledger ebuild to 3.2.8 (sql-ledger-3.2.8.ebuild,2.58 KB, text/plain)
2019-07-17 19:54 UTC, turtle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2006-01-19 12:22:55 UTC
New ebuild contributed for the rather nice accounting system: sql-ledger

This is probably the best free "accounting system" currently available right now.  Note this is a different kind of beast to kmymoney or gnucash - these are more personal accounting systems (which have some company bits as well), whereas sql-ledger is much more suitable for small to medium sized businesses.  Basically it's a general ledger app and a decent alternative to Sage

The ebuild "works", but the original app setup does some extra things which could be added to the ebuild. For example there is a "lock out" system by touching a file in the users directory which stops the system being used while the files are upgraded.  Also it needs to add some stuff to the Apache config file.  Grateful for some pointers on how best to implement these two points

Oh, and Latex is an optional dependency, but not sure what to do about that...?
Comment 1 Ed Wildgoose 2006-01-19 12:24:23 UTC
Created attachment 77572 [details]
new ebuild
Comment 2 Ed Wildgoose 2006-01-19 12:24:45 UTC
Created attachment 77573 [details]
postinstall file
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2006-03-11 01:02:20 UTC
version bump to -2.6.7

Also There is an error in the ebuild  for the keepdir command the ${D}/ needs to be removed to install correctly.
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2006-03-11 01:03:39 UTC
Created attachment 81899 [details]
updated ebuild

fixed an error in the keepdir command.
Comment 5 Ed Wildgoose 2006-03-19 02:24:06 UTC
Cheers, you appear to be correct about the keepdir change.  I am just testing right now with 2.6.7, but everything appears normal.

Just a note to anyone using this ebuild, the upgrade ability is still not handled explicitly.  It *should* upgrade the code correctly, but you really don't want to have anyone using the system while the code changes (obviously).  SL *does* have an inbuilt ability to lock everyone out of the system while an upgrade is in progress and this should ideally be made use of during the part of the process where the webapp installs itself into a subdir.  Not sure what the hooks are to handle this though, so patches welcome

However, if you lock the system manually or if like most people it's a small shop and you just don't use the system while the upgrade is in progress (kill apache) then everything should be fine

Ed 
Comment 6 Brian Dolbec (RETIRED) gentoo-dev 2006-03-19 06:47:23 UTC
There are a few more changes still needed I think.  I don't have it all working yet.  It appears that there are a couple /etc... configs that could be installed via the ebuild.  An update patch is needed for >=postgres-8.

Also I would like to change the post-install instructions file into einfo statements.  The current method does not get picked up by porthole filters.

I have not had the time again this week to work on it :(
Comment 7 Brian Dolbec (RETIRED) gentoo-dev 2006-05-28 19:32:51 UTC
I have it working with version -2.6.9 without any difficulties just renamed the ebuild.  It appears I was wrong about the >postgres-8.0 patches as they are already applied to recent versions.  version 2.6.9 has been working great for me.  I haven't actually entered real data yet.  I have been modifying things for my use though.  I have changed the invoice templates to use our logos etc.  I have added a custom footer to invoices, etc..  All has been going well despite my lack of tex and html knowledge.
Comment 8 Brian Dolbec (RETIRED) gentoo-dev 2006-05-28 19:37:40 UTC
Created attachment 87774 [details]
apache2 - sql-ledger.conf file

/etc/apache2/vhosts.d/sql-ledger.conf

just put this file in the above location for apache's use.  No need to edit the apache file.  If I knew how to add it to the ebuild properly I would.  Some dev should know how and only take a few seconds to do it :)
Comment 9 turtle 2006-07-20 00:08:46 UTC
Hi I opened up thred in unsupported software on gentoo forums [url=http://forums.gentoo.org/viewtopic-t-481957-start-0-postdays-0-postorder-asc-highlight-.html] here [/url] this proram is under constant development and would be great if it could be updated with emerge and all necessary config files installed with ebuild. I have been running sql-ledger for 6 months on gentoo ppc server using the installed supplyed find it very stable.
Comment 10 turtle 2007-08-21 03:48:29 UTC
Created attachment 128735 [details]
ebuild for latest sql-ledger

Here is the latest sql-ledger ebuild for 2.8.7 Printing with tetex added as a dependency. The application will not post invioves if they are not printed to a paper printer or print checks without a printer. It has no way of printing without tetex. If someone is majorly opposed to this dep then it could be an a USE flag. It would be nice to make it a slotted app managed with eselect when it gets into portage.
Comment 11 turtle 2007-12-31 07:38:30 UTC
Created attachment 139683 [details]
updated for apache 2.2.6-r5
Comment 12 turtle 2007-12-31 07:58:58 UTC
Created attachment 139685 [details]
ebuild for sql-ledger version 2.8.11
Comment 13 turtle 2007-12-31 08:00:28 UTC
ebuild.attachment should be named postinstall-en.txt
Comment 14 Daniel Mettler 2008-02-02 04:27:24 UTC
thanks for the ebuild! i've tested the version-bumped ebuild (just rename it to sql-ledger-2.8.12.ebuild) on my xenon/amd64 box and i can confirm that it works fine here too (hence please consider adding at least the ~amd64 keyword as well). looking forward to an ebuild that handles updates too (any idea how to accomplish this? i haven't dealt with emerge's syntax and features for quite a while now, so i'm probably the wrong person to take a look at it).
Comment 15 Thiemo Kellner 2008-11-11 22:08:24 UTC
Created attachment 171470 [details]
ebuild for sql-ledger version 2.8.18

untested though
Comment 16 Daniel Mettler 2009-02-13 02:12:50 UTC
The current version of sql-ledger is 2.8.23.

Simply take the sql-ledger-2.8.11.ebuild (or the sql-ledger-2.8.18.ebuild, it's identical) and rename it to sql-ledger-2.8.23.ebuild.

Works fine on my box, also when updating an older version (>2.8). I've updated 2.8.12 to 2.8.23 and it worked as expected. Looks like the first time you log in, sql-ledger takes care of updating the tables, if needed.

My box is an AMD64 box. I can thus confirm that you can at least set KEYWORDS="x86 ppc ~amd64" (or even KEYWORDS="x86 ppc amd64") instead of KEYWORDS="x86 ppc".
Comment 17 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-01 20:18:51 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 18 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-01-08 13:43:19 UTC
There have been multiple vulnerability reports for SQL Ledger:

Name:      CVE-2009-3580
URL:       http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3580

Name:      CVE-2009-3581
URL:       http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3581

Name:      CVE-2009-3582
URL:       http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3582

Name:      CVE-2009-3583
URL:       http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3583

Name:      CVE-2009-3584
URL:       http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3584

Please consider updating the ebuilds here and in any overlays they are in to a not vulnerable version. The initial commiter to gentoo-x86 has to make sure that these issues are fixed before importing the package. Thanks.
Comment 19 Leho Kraav (:macmaN @lkraav) 2010-02-16 19:48:35 UTC
tetex dep should probably be replaced with texlive, since tetex is not in the tree anymore. on my system tex migration worked pretty much as drop-in replacement.
Comment 20 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-16 15:52:27 UTC
*** Bug 394943 has been marked as a duplicate of this bug. ***
Comment 21 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-21 20:00:58 UTC
*** Bug 405169 has been marked as a duplicate of this bug. ***
Comment 22 turtle 2019-07-17 19:54:52 UTC
Created attachment 583352 [details]
Update sql-ledger ebuild to 3.2.8

Added latex use flag, converted to use webapp config, EAPI 6
Test and enjoy