Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22239 - new ebuild: geneweb-4.10.ebuild
Summary: new ebuild: geneweb-4.10.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD, Inclusion
: 12420 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-04 19:22 UTC by David Grant
Modified: 2007-08-18 14:24 UTC (History)
5 users (show)

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


Attachments
geneweb-4.09.ebuild (geneweb-4.09.ebuild,5.08 KB, application/octet-stream)
2003-06-05 20:47 UTC, David Grant
Details
geneweb-4.09.ebuild (geneweb-4.09.ebuild,5.08 KB, text/plain)
2003-06-05 20:47 UTC, David Grant
Details
geneweb-4.09.ebuild (geneweb.tar.gz,2.95 KB, application/gzip)
2003-06-05 20:52 UTC, David Grant
Details
updated geneweb-4.09.ebuild (geneweb.tar.gz,3.01 KB, application/gzip)
2003-06-06 04:12 UTC, David Grant
Details
Updated geneweb ebuild (geneweb.tar.gz,3.05 KB, application/x-tgz)
2003-06-24 10:46 UTC, David Grant
Details
Logfile patch for geneweb ebuild. (geneweb_ebuild.diff,151 bytes, patch)
2004-03-08 04:42 UTC, Stuart Grimshaw
Details | Diff
Patch for ebuild (geneweb_ebuild.diff,1006 bytes, patch)
2004-03-08 14:56 UTC, Stuart Grimshaw
Details | Diff
geneweb-4.09-r1.ebuild (geneweb-4.09-r1.ebuild,5.33 KB, text/plain)
2005-08-19 07:44 UTC, David Grant
Details
geneweb.conf.d (geneweb.conf.d,409 bytes, text/plain)
2005-08-19 07:44 UTC, David Grant
Details
geneweb.init.d (geneweb.init.d,565 bytes, text/plain)
2005-08-19 07:45 UTC, David Grant
Details
geneweb-4.10.ebuild (geneweb-4.10.ebuild,5.37 KB, text/plain)
2006-01-17 00:27 UTC, David Grant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2003-06-04 19:22:32 UTC
I'm going to be submitting this in the next few days, as soon as I get the
ebuild finalized.  I just wanted to post here to let people know, just in case
someone else decides to make one.
Comment 1 David Grant 2003-06-05 20:47:32 UTC
Created attachment 12858 [details]
geneweb-4.09.ebuild

geneweb-4.09.ebuild

Geneweb is a family tree server.  It has its own http server and can be used to
create/edit or just view a web page.  A password can be set to allow the
database to be editable over the web.  It has export and import support for
GEDCOM family tree databases.

I'll be making a few changes to this in the next week.	So don't make any
changes or submit any patches without first checking with me.  I may have
already fixed it.
Comment 2 David Grant 2003-06-05 20:47:56 UTC
Created attachment 12859 [details]
geneweb-4.09.ebuild

geneweb-4.09.ebuild

Geneweb is a family tree server.  It has its own http server and can be used to
create/edit or just view a web page.  A password can be set to allow the
database to be editable over the web.  It has export and import support for
GEDCOM family tree databases.

I'll be making a few changes to this in the next week.	So don't make any
changes or submit any patches without first checking with me.  I may have
already fixed it.
Comment 3 David Grant 2003-06-05 20:52:00 UTC
Created attachment 12860 [details]
geneweb-4.09.ebuild

created tar file to include the files/ directory
Comment 4 David Grant 2003-06-06 04:12:33 UTC
Created attachment 12874 [details]
updated geneweb-4.09.ebuild

same as previous version (I think).  I just added the ChangeLog which I forgot
before
Comment 5 David Grant 2003-06-10 13:08:44 UTC
Can someone stick this ebuild into portage?  It has the ~x86 flag, and in my opinion works better than some of the other ~x86 ebuilds I've tried.  Once it gets into portage I think some people might notice it, and then hopefully I/we can get some bugs reported about this ebuild.
Comment 6 David Grant 2003-06-15 12:07:44 UTC
I don't understand why this hasn't been added to portage yet?  I wish I had CVS access to do it myself, but I don't.  If this package doesn't move to the tree then it will never be tested and will never be stable.  Thank you.
Comment 7 Frank Straetz 2003-06-19 10:47:32 UTC
I'll take a look at this ebuild as soon as I have some spare time, but it's somewhat complicated so it'll take some time.
Comment 8 Frank Straetz 2003-06-21 12:32:02 UTC
OK, I've taken a look at the ebuild and here are some suggestions to make it even better. :)

1. Is the src_unpack() function really necessary? It seems to work like the base.eclass function without all the patching functionality.

2. Users and groups should be added by using the enewuser() and enewgroup() functions provided by the eutils eclass. Removing them is as far as I know not necessary (so you can remove the pkg_postrm() function).

3. It's better to use "sh ${FILESDIR}/geneweb.conf.d" rather than ". ${FILESDIR}/geneweb.conf.d" because it makes sure the right shell is used.

4. It'd be more flexible/less error prone to use "mkdir -p" to create ${GENEWEBDB}.
Comment 9 David Grant 2003-06-21 21:45:39 UTC
Thanks a lot for the help.  Just one question, about removing the user/group in postrm.  Personally I like when packages remove as much as possible when they are removed (except data and anything that the user might have changed).  Groups and users are one thing that I don't like lingering around.  Is there anything standard about doing this or not?  Either gentoo policy, or "standard linux" policy?
Comment 10 Frank Straetz 2003-06-24 04:03:41 UTC
There'll soon be a new method for adding and removing users/groups, but since it's not completely implemented yet I'd recommend to print a message via einfo so the user gets informed that he may remove the entries (that's because most other ebuilds like OpenSSH, Privoxy and all games using the games eclass don't remove the users/groups they create).

Please submit your fixed ebuild :)
Comment 11 David Grant 2003-06-24 10:46:19 UTC
Created attachment 13782 [details]
Updated geneweb ebuild

Only a couple changes really, the mkdir -p thing, and I no longer remove the
groups in post_rm().

1) I tried using "sh" instead of "." to source the environment variables and it
doesn't seem to work?
2) I didn't have much success with the enewgroup and enewuser commands.  They
are commented out in this ebuild.  If you know of a syntactical error let me
know.  Otherwise I'll just wait until a new system is in place and replace it
with that.
Comment 12 David Grant 2003-06-24 10:48:18 UTC
I just thought of something...  Should I stop and running geneweb processes in the 
pre_rm() function? 
Comment 13 George Shapovalov (RETIRED) gentoo-dev 2003-08-07 14:46:42 UTC
*** Bug 12420 has been marked as a duplicate of this bug. ***
Comment 14 Stuart Herbert (RETIRED) gentoo-dev 2003-10-04 06:23:04 UTC
Hi,

The web-apps herd is currently working on delivering some important changes
to the way that web-based applications are installed and managed on Gentoo
Linux.  Until this work is complete, we're not commiting ebuilds for new
packages.

I've marked this bug as 'LATER'.  As soon as we are able to, we will come
back to this bug and help you convert your ebuild to our new approach.

Many thanks for your patience,
Stu
Comment 15 David Grant 2003-10-04 13:35:20 UTC
One comment...this is not really a web-app...  The program runs it's own
httpd server AFAIK, and on it's own port (default is 8319).  It has not depend
on, nor does it have any association with apache, or any other free or commerical
"web" server.  Thus it isn't really a "web"-app, IMHO, like php-nuke, phpgroupware,
etc...  So it wouldn't rely on any new Gentoo eclass or system for these
apps.

Unless I am misunderstanding what the purpose of thes new "important changes
to the way that web-based applications are installed and managed on Gentoo",
then this ebuild is stable IMHO and can be committed to CVS now.
Comment 16 David Grant 2004-01-06 15:59:39 UTC
This ebuild is ready to be submitted.  See my last comment.
Comment 17 David Grant 2004-01-09 07:23:09 UTC
seemant, are you sure this is a science related package?  I mean I guess if there is no other category to put it in, then I guess it is.  I would prefer app-misc or net-misc or something like that.
Comment 18 David Grant 2004-02-21 18:03:24 UTC
I hope this ebuild isn't being held up because of comment #14.  This is not an apache-dependant application.  I have been running it happily using my ebuild for a long time now.

Just add it to portage, it has a ~x86 flag anyways.

http://sidicpc22.uwaterloo.ca:8081/a?lang=en
Comment 19 Stuart Grimshaw 2004-03-08 04:34:03 UTC
I have a bug in your ebuild.

If you try to build it it will fall over when it tries to change the permisions on the logfile. I suspect it was already created when you wrote that part of your ebuild.

My solution was to add this at around line 146 (just before it tries to do the chmod)

if [ ! -x $LOGFILE ]; then
    einfo "Creating $LOGFILE ..."
    touch $LOGFILE
fi

Also, in the info two of the variables are blank and produce this output

 * You may safely remove the user  and
 * the group .  See userdel and groupdel.

This is in the pkg_postrm function, perhaps these variables are not available there?

Can I ask why you are removing them when they are used for file permissions?

I would also change the last bit of einfo to include some info on starting geneweb, or start it as part of the ebuild.

Hope that helps you ...
Comment 20 Stuart Grimshaw 2004-03-08 04:42:51 UTC
Created attachment 27021 [details, diff]
Logfile patch for geneweb ebuild.

This is a patch to create the geneweb logfile if it doesn't already exist.
Comment 21 Stuart Grimshaw 2004-03-08 14:56:32 UTC
Created attachment 27056 [details, diff]
Patch for ebuild

This patch replaces my last one, it creates the logfile, but it also creates
the files in the geneweb DB directory needed to run gwsetup, it also copies
gwsetup into the bin directory.
Comment 22 David Grant 2004-07-20 14:45:39 UTC
This should go in the new www-server category
Comment 23 David Grant 2004-08-28 13:04:21 UTC
Please add to portage
Comment 24 David Grant 2005-07-21 13:36:07 UTC
If someone makes me developer, I could help maintain this package.
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2005-08-19 06:18:47 UTC
Please, attach a plaintext ebuild for the current version and reopen then. We
don't want tarballs.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2

Comment 26 David Grant 2005-08-19 07:44:25 UTC
Created attachment 66319 [details]
geneweb-4.09-r1.ebuild
Comment 27 David Grant 2005-08-19 07:44:55 UTC
Created attachment 66320 [details]
geneweb.conf.d
Comment 28 David Grant 2005-08-19 07:45:14 UTC
Created attachment 66321 [details]
geneweb.init.d
Comment 29 David Grant 2005-08-19 07:46:06 UTC
Please obsolete the patch, it is included in the geneweb-4.09-r1.ebuild I just
uploaded.
Comment 30 Helge Haugland 2005-08-21 14:07:04 UTC
I renamed the geneweb-4.09-r1.ebuild to geneweb-4.10.ebuild for the "new"
version of geneweb. Everything works fine!
Comment 31 David Grant 2005-08-21 14:12:52 UTC
I haven't tested this in a while. I just set up my new server, I will probably
install geneweb from scratch on that machine, create a new geneweb database
(just as a test). Then delete it, and import my old geneweb database. Then the
next task it to test 4.10.
Comment 32 David Grant 2006-01-17 00:27:48 UTC
Created attachment 77321 [details]
geneweb-4.10.ebuild

Tested and works.

To export your old database and try this one from scratch:
mv /home/geneweb /home/geneweb-backup
cd /home/geneweb-backup
gwu <dbname> -o <dbname>.gw
emerge -u geneweb
cp /home/geneweb-backup/<dbname>.gw /home/geneweb/
cd /home/geneweb
gwc <dbname>.gw -o <dbname>
cp /home/geneweb-backup/<dbname>.gwf .
Comment 33 David Grant 2006-01-17 00:29:34 UTC
BTW, it's just like dumping a mysql database and upgrading to a new version of mysql
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 12:20:11 UTC
Comment on attachment 77321 [details]
geneweb-4.10.ebuild

The pkg_postinst() is rather broken. 

- That DB setup should be moved to pkg_config(), most of it should be however done in src_install() anyway.

- Don't use adduser etc. in ebuilds. That's what enewuser/enewgroup from eutils.eclass is for!

- There's doconfd/doinitd for installing init scripts/conf.d files.
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 12:22:01 UTC
Comment on attachment 77321 [details]
geneweb-4.10.ebuild

The pkg_postinst() is rather broken. 

- That DB setup should be moved to pkg_config(), most of it should be however done in src_install() anyway.

- Don't use adduser etc. in ebuilds. That's what enewuser/enewgroup from eutils.eclass is for!

- There's doconfd/doinitd for installing init scripts/conf.d files.
Comment 36 David Grant 2006-08-10 13:28:59 UTC
I've been meaning to submit this to sunrise. Thanks for the tips, I'll incorporate those and then submit to the sunrise guys for review. I can't believe that enewuser isn't being used yet...that was suggested to me a long time ago. Actually I have enewuser in there, but it is commented out. Maybe it didn't work properly at the time.
Comment 37 David Grant 2006-08-10 22:02:15 UTC
I've made a ton of changes to the ebuild. One of the remaining issues is this executable stacks QA error.

QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/geneweb-4.10/temp/scanelf-execstack.log
"RWX --- --- usr/bin/gwc"
"RWX --- --- usr/bin/gwd"
"RWX --- --- usr/bin/gwu"
"RWX --- --- usr/bin/consang"
"RWX --- --- usr/bin/ged2gwb"
"RWX --- --- usr/bin/gwb2ged"
"RWX --- --- usr/bin/gwsetup"

I've tried changing the Makefile and using -ccopt --noexecstack to no avail... I've also emailed the upstream author as well.
Comment 38 Tupone Alfredo gentoo-dev 2007-08-18 14:24:09 UTC
I have added it to portage. Thanks for input.

ps

I'm taking maintainership just because I use it. If someone is interested or there is an herd to which it should belongs, feel free to add it