Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28277 - popa3d-0.6.3.ebuild (New package)
Summary: popa3d-0.6.3.ebuild (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Ian Leitch (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-09-09 10:34 UTC by Hallgrimur Gunnarsson (RETIRED)
Modified: 2003-09-11 10:39 UTC (History)
1 user (show)

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


Attachments
Tar.gz with popa3d ebuild and companions (popa3d-0.6.3-ebuild.tgz,1.51 KB, application/octet-stream)
2003-09-09 10:36 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
popa3d-0.6.3.ebuild (popa3d-0.6.3.ebuild,2.62 KB, text/plain)
2003-09-09 17:12 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
Manifest (Manifest,241 bytes, text/plain)
2003-09-09 17:12 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
files/popa3d-initrc (popa3d-initrc,385 bytes, text/plain)
2003-09-09 17:13 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
files/pam (pam,136 bytes, text/plain)
2003-09-09 17:13 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
files/digest-popa3d-0.6.3 (digest-popa3d-0.6.3,201 bytes, text/plain)
2003-09-09 17:14 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
Modified popa3d-0.6.3.ebuild (popa3d-0.6.3.ebuild,3.01 KB, text/plain)
2003-09-10 13:34 UTC, Ian Leitch (RETIRED)
Details
Modified popa3d-0.6.3.ebuild (popa3d-0.6.3.ebuild,3.90 KB, text/plain)
2003-09-10 16:02 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
Modified popa3d-0.6.3.ebuild (popa3d-0.6.3.ebuild,3.95 KB, text/plain)
2003-09-10 21:34 UTC, Hallgrimur Gunnarsson (RETIRED)
Details
Modified popa3d-0.6.3.ebuild take 2 (popa3d-0.6.3.ebuild,5.42 KB, text/plain)
2003-09-11 05:38 UTC, Ian Leitch (RETIRED)
Details
popa3d-0.6.3.ebuild RC-1 (popa3d-0.6.3.ebuild,4.11 KB, text/plain)
2003-09-11 09:28 UTC, Hallgrimur Gunnarsson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 10:34:49 UTC
Hello!

This is popa3d, a security oriented POP3 server.
The website is http://www.openwall.com/popa3d/

Supports mbox/maildir, virtual hosts, PAM/shadow
authentication and more.

The .tgz file contains the following:

popa3d-0.6.3.ebuild
files/pam
files/popa3d-initrc

This is my first ebuild, and I'd appreciate any
comments. Thanks.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 10:36:38 UTC
Created attachment 17349 [details]
Tar.gz with popa3d ebuild and companions

Tar.gz with popa3d ebuild and companions.
Comment 2 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:12:13 UTC
Created attachment 17369 [details]
popa3d-0.6.3.ebuild
Comment 3 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:12:42 UTC
Created attachment 17370 [details]
Manifest
Comment 4 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:13:11 UTC
Created attachment 17371 [details]
files/popa3d-initrc
Comment 5 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:13:32 UTC
Created attachment 17372 [details]
files/pam
Comment 6 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:14:02 UTC
Created attachment 17373 [details]
files/digest-popa3d-0.6.3
Comment 7 Ian Leitch (RETIRED) gentoo-dev 2003-09-09 17:45:40 UTC
Hi, I will take a look at your work this evening.

Thanks for the hard work.
Comment 8 Ian Leitch (RETIRED) gentoo-dev 2003-09-09 17:47:59 UTC
By the way, there is no need to submit the Manifest and digest files.
Comment 9 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 17:59:35 UTC
Ah okay, makes sense. Why have MD5sums if you accept
them from submitters :-). I skipped them in the tgz,
but included them when I posted the files individually,
I wasn't really sure, but now I know. Thanks.

I also set up a how-to/tester thread on the forum

http://forums.gentoo.org/viewtopic.php?t=82386
Comment 10 Ian Leitch (RETIRED) gentoo-dev 2003-09-10 13:34:05 UTC
Created attachment 17459 [details]
Modified popa3d-0.6.3.ebuild

OK, I've taken a look at your ebuild and butchered it ;)

It uses the mbox and maildir USE flags much more closely now, and I removed
your POPA3D_HOME_MAILBOX="Maildir" comment, as all other ebuilds in portage
default .maildir. 

Anyway, you can take a look at see the rest for yourself.
I've got a few more things to check and change in there, but I've run out of
time for tonight.

Regards.
Comment 11 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-10 16:02:01 UTC
Created attachment 17468 [details]
Modified popa3d-0.6.3.ebuild

You seem to have butchered off your own foot along with it.

Few comments on your changes:

*) Checking for mbox && maildir is good. I like that.

*) It should be possible to overwrite POPA3D_HOME_MAILBOX
for people who want the traditional ~/Mailbox or ~/Maildir
(which, yes, are not gentoo traditional though, see my
discussion on bug #28260).

*) When the 'mbox' USE flag is set, you set POPA3D_HOME_MAILBOX
to "Mailbox", which is incorrect. In gentoo 'mbox' denotes
/var/mail/user. To get that you'll have to leave POPA3D_HOME_MAILBOX
empty, which in turn, makes popa3d use the default /var/mail/user,
and not a home (~/) mailbox, as the name suggests.

*) In src_unpack you only set the home mailbox path in popa3d
if the 'maildir' USE flag is set. This breaks the use of
POPA3D_HOME_MAILBOX when 'mbox' is being used (so it breaks
your previous ~/Mailbox assignment). Also, the info line
in the else is wrong compared to the previous ~/Mailbox
entry you added.

*) You mix up the einfo's for mailbox path determination
and mailbox format.

I've attached a modified version of the ebuild. I included
a header explaining the configuration.

Please let me know what you think of it, and what other
changes you had in mind.
Comment 12 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-10 21:34:56 UTC
Created attachment 17475 [details]
Modified popa3d-0.6.3.ebuild

Added dodoc for all the relevant files.
Comment 13 Ian Leitch (RETIRED) gentoo-dev 2003-09-11 05:38:34 UTC
Created attachment 17489 [details]
Modified popa3d-0.6.3.ebuild take 2

I've got one foot left, so heres another modification.

*)I moved the mbox and maildir check back into pkg_config as we want to die
early when they are both set. 

*)POPA3D_HOME_MAILBOX can now be set from outside. If using mbox its set back
to ""

*) maildir takes precedence over mbox so if neither are set, maildir is the
default. 

*) added depscan.sh run in pkg_postinst as we are installing an init script.

As for having epatch run inside src_compile, I'm going let that slide as the
output looks messy with the einfo's inside unpacking.
Comment 14 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-11 09:28:34 UTC
Created attachment 17505 [details]
popa3d-0.6.3.ebuild RC-1

Okay, we're on the same track now. Only one minor change,
if using mbox, we shouldn't set POPA3D_HOME_MAILBOX=""
since that'd block people from overwriting it. The default
is of course "".
Comment 15 Ian Leitch (RETIRED) gentoo-dev 2003-09-11 10:39:46 UTC
In cvs, thanks.