Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27861 - Ebuild for MIMEDefang
Summary: Ebuild for MIMEDefang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.roaringpenguin.com
Whiteboard:
Keywords:
: 85735 (view as bug list)
Depends on: 27880 36886 49445
Blocks:
  Show dependency tree
 
Reported: 2003-09-03 07:56 UTC by Brett Simpson
Modified: 2007-03-05 16:26 UTC (History)
5 users (show)

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


Attachments
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,836 bytes, text/plain)
2003-09-03 07:57 UTC, Brett Simpson
Details
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,915 bytes, text/plain)
2003-09-03 08:16 UTC, Brett Simpson
Details
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,2.81 KB, text/plain)
2003-09-03 10:37 UTC, Brett Simpson
Details
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,2.77 KB, text/plain)
2003-09-03 10:47 UTC, Brett Simpson
Details
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,2.79 KB, text/plain)
2003-09-03 13:14 UTC, Brett Simpson
Details
mimedefang-2.36.ebuild (mimedefang-2.36.ebuild,3.01 KB, text/plain)
2003-09-03 13:17 UTC, Brett Simpson
Details
120_graphdefang.conf (120_graphdefang.conf,186 bytes, text/plain)
2003-09-03 14:35 UTC, Brett Simpson
Details
graphdefang-config (graphdefang-config,7.35 KB, text/plain)
2003-09-03 14:37 UTC, Brett Simpson
Details
mimedefang-2.37.ebuild (mimedefang-2.37.ebuild,3.30 KB, text/plain)
2003-09-11 10:49 UTC, Brett Simpson
Details
graphdefang-config (graphdefang-config,7.35 KB, text/plain)
2003-09-15 09:41 UTC, Brett Simpson
Details
mimedefang-2.39 (mimedefang-2.39.ebuild,4.15 KB, text/plain)
2003-12-15 11:40 UTC, Brett Simpson
Details
graphdefang.cron (graphdefang.cron,57 bytes, text/plain)
2003-12-29 11:29 UTC, Brett Simpson
Details
mimedefang-2.39-r1.ebuild (mimedefang-2.39-r1.ebuild,4.59 KB, text/plain)
2003-12-29 13:11 UTC, Brett Simpson
Details
120_graphdefang.conf (120_graphdefang.conf,193 bytes, text/plain)
2003-12-29 13:13 UTC, Brett Simpson
Details
Ebuild for mimedefang-2.42. Mostly cleanups (mimedefang-2.42.ebuild,1.96 KB, text/plain)
2004-04-29 16:09 UTC, Raymond Page
Details
Update to 2.49 and fix the user and group adding (mimedefang-2.49-r1.ebuild,1.96 KB, text/plain)
2004-12-01 15:22 UTC, Rubberneck
Details
MIMEDefang init script (mimedefang-init.d,3.67 KB, text/plain)
2005-03-18 04:29 UTC, nezus
Details
MIMEDefang conf.d config (mimedefang-conf.d,3.81 KB, text/plain)
2005-03-18 04:30 UTC, nezus
Details
Updated ebuild (mimedefang-2.54.ebuild,1.85 KB, text/plain)
2006-01-05 13:42 UTC, Rubberneck
Details
MIMEDefang ebuild + init script + conf file (mimidefang.2.57.ebuild.tgz,4.33 KB, application/x-gzip-compressed)
2006-07-24 03:41 UTC, Stas Korzovsky
Details
updated MD to version 2.61 (mimedefang-2.61.tgz,4.73 KB, application/octet-stream)
2007-03-04 18:52 UTC, woodstock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Simpson 2003-09-03 07:56:29 UTC
This is an ebuild for MIMEDefang 2.36 stable.
Comment 1 Brett Simpson 2003-09-03 07:57:36 UTC
Created attachment 17003 [details]
mimedefang-2.36.ebuild
Comment 2 Brett Simpson 2003-09-03 08:16:33 UTC
Created attachment 17004 [details]
mimedefang-2.36.ebuild

Added example init script as /etc/init.d/mimedefang-init.
Comment 3 Brett Simpson 2003-09-03 10:37:35 UTC
Created attachment 17009 [details]
mimedefang-2.36.ebuild

Added a use flag for gd to setup GraphDefang.
Comment 4 Brett Simpson 2003-09-03 10:47:58 UTC
Created attachment 17010 [details]
mimedefang-2.36.ebuild

Removed perl -MCPAN -e 'install Date::Format' since it's installed by default.
Comment 5 Brett Simpson 2003-09-03 13:14:02 UTC
Created attachment 17014 [details]
mimedefang-2.36.ebuild

Removed all CPAN building and replaced with appropriate Perl ebuilds. This also
means this ebuild depends on File-ReadBackwards for the Graphdefang
functionality.
Comment 6 Brett Simpson 2003-09-03 13:17:50 UTC
Created attachment 17016 [details]
mimedefang-2.36.ebuild

Added a header.
Comment 7 Brett Simpson 2003-09-03 14:35:22 UTC
Created attachment 17020 [details]
120_graphdefang.conf

Apache config file for Graphdefang
Comment 8 Brett Simpson 2003-09-03 14:37:02 UTC
Created attachment 17021 [details]
graphdefang-config

Graphdefang config file
Comment 9 Brett Simpson 2003-09-11 10:49:05 UTC
Created attachment 17515 [details]
mimedefang-2.37.ebuild

Version bump, corrected startup script to shutdown mimedefang properly, ebuild
now properly works.
Comment 10 Brett Simpson 2003-09-15 09:41:09 UTC
Created attachment 17773 [details]
graphdefang-config

Changed /var/log/mail/current to /var/log/mail.log. The graphdefang software
doesn't read metalog files properly so sysklogd is required.
Comment 11 Brett Simpson 2003-12-15 11:40:09 UTC
Created attachment 22252 [details]
mimedefang-2.39

Version bump
Comment 12 Cahya 2003-12-22 09:33:30 UTC
the new apache ebuild use /var/www/localhost instead of /home/httpd
Comment 13 Cahya 2003-12-22 09:59:39 UTC
why is this version depend on sysklogd? I am using syslog-ng, I don't need another syslog.
is it possible to use MIME::Tools from mimedefang instead of the CPAN version?
is it possible to define mimedefang user and group different than defang?

Comment 14 Cahya 2003-12-22 16:16:14 UTC
 I got following error during emerge:

>>> Install mimedefang-2.39 into /var/tmp/portage/mimedefang-2.39/image/ category net-mail
install: cannot stat `/usr/local/portage/net-mail/mimedefang/files/graphdefang.cron': No such file or directory
 
Comment 15 Brett Simpson 2003-12-29 11:29:23 UTC
Created attachment 22809 [details]
graphdefang.cron
Comment 16 Brett Simpson 2003-12-29 11:42:02 UTC
> why is this version depend on sysklogd? 

When I had tested Graphdefang with syslog-ng and metalog it wouldn't process the logs properly. I'm sure there's a workaround (maybe changing a config setting in one of the loggers). Once i figure it out I'll add it to the ebuild.

> is it possible to use MIME::Tools from mimedefang instead of the CPAN version?

I suppose you could just manually install the version that's comes with mimedefang and perl should use it even though you have the CPAN version installed. Not 100% sure on that through.

> is it possible to define mimedefang user and group different than defang?

The easiest way would be to modify this ebuild with your different group and user (changing everything that uses defang) and emerge the ebuild.
Comment 17 Brett Simpson 2003-12-29 13:11:51 UTC
Created attachment 22817 [details]
mimedefang-2.39-r1.ebuild

Changes:
1: Now uses /var/www/localhost instead of /home/httpd
2: Removed dependency for sysklog. Tested Graphdefang with sysklog and
syslog-ng. Works fine. Metalog still doesn't work right.
3: Removed need for graphdefang-config in files directory by using sed on the
example config file.
4: Removed dependency for logrotate since stats by default are disabled.
Comment 18 Brett Simpson 2003-12-29 13:13:26 UTC
Created attachment 22818 [details]
120_graphdefang.conf

Changed path to /var/www/localhost
Comment 19 Brett Simpson 2003-12-31 06:55:44 UTC
I've submitted the Roaring Pengiun patch for the MIME-tools ebuild.

http://bugs.gentoo.org/show_bug.cgi?id=36886
Comment 20 Grant Goodyear (RETIRED) gentoo-dev 2004-04-28 07:43:43 UTC
Incidentally, if you're wondering why this ebuild is still sitting here,
it's because we have very few devs who actually run sendmail.  I'm very
appreciative of the work that's been done on this ebuild, but I (like
several other people, I suspect) don't have the time right now to maintain
this ebuild.  Mr. Simpson, would you be willing to continue being the 
unofficial maintainer of this ebuild?

Also, here are some changes that really should be made to the ebuild:

1. Please use full dependency strings, e.g. >=net-mail/sendmail-x.y.z, in the
   DEPEND string.

2. We can't have sandbox disabled, although I see that's commented out now.

3. The useradd / groupadd stuff needs to be in pkg_preinst(), not
   pkg_setup().  The problem is that pkg_setup isn't run during a binary
   install.  Also, we're trying to standardize on using "getent group"
   and "getent passwd" instead of groupmod an id for group/password
   checks.

4. I assume the hard dependencies on sysklogd and logrotate are no longer
   needed?  A DEPEND of !app-admin/metalog would be fine, if needed.

5. Um, "gd" can't be used as a local USE flag because it's already 
   a global USE flag meaning something entirely different.

6. It's hardly urgent, but please indent your if / fi block.

There may be other things, but I have to get back to work now.

Thanks!

5. IUSE="" is inconsistent w/ the gd ? DEPEND.
Comment 21 Raymond Page 2004-04-29 16:09:56 UTC
Created attachment 30361 [details]
Ebuild for mimedefang-2.42.  Mostly cleanups

I went ahead and broke GraphDefang into its own package.  I need it standalone
from mimedefang, so it should make the mimedefang ebuild prettier.
Comment 22 Raymond Page 2004-04-29 16:12:15 UTC
The graphdefang should really be an alternate package in the portage tree.  I've broken out the gd? code from the last ebuild and created the graphdefang ebuild and bug report.
Comment 23 Brett Simpson 2004-04-30 04:59:20 UTC
Sorry for the delay on responding. I haven't had time to continue working on the ebuild. The new ebuild looks nice and I like the idea of splitting off Graphdefang.
Comment 24 Rubberneck 2004-12-01 15:22:42 UTC
Created attachment 45092 [details]
Update to 2.49 and fix the user and group adding

Updated the build to 2.49 (didn't seem to have to change anything). Fixed it so
it would check and add the group before it checks and adds the user.
Comment 25 nezus 2005-03-18 04:29:46 UTC
Created attachment 53778 [details]
MIMEDefang init script
Comment 26 nezus 2005-03-18 04:30:06 UTC
Created attachment 53779 [details]
MIMEDefang conf.d config
Comment 27 Rubberneck 2006-01-05 13:42:13 UTC
Created attachment 76272 [details]
Updated ebuild

Updated ebuild to version 2.54 and added the init and conf script that was posted in this bug report.
Comment 28 Stas Korzovsky 2006-07-24 03:41:02 UTC
Created attachment 92605 [details]
MIMEDefang ebuild + init script + conf file

This .tgz file contains the ebuild + init script + conf file for MIMEDefang 2.57.
Comment 29 Tuan Van (RETIRED) gentoo-dev 2006-07-24 10:01:33 UTC
(In reply to comment #28)
> Created an attachment (id=92605) [edit]
> MIMEDefang ebuild + init script + conf file
> 
> This .tgz file contains the ebuild + init script + conf file for MIMEDefang
> 2.57.
> 

plaintext files are preferred over tar files. It's inconvenience but it help us to quickly look at those files quickly without downoad/unpack the tarball and sometime it may come with "extras" we don't want ;)

Best regards,
Tuan
Comment 30 Tuan Van (RETIRED) gentoo-dev 2006-07-25 11:54:41 UTC
*** Bug 85735 has been marked as a duplicate of this bug. ***
Comment 31 Stas Korzovsky 2006-07-25 19:56:45 UTC
(In reply to comment #29)

Please forgive the newbie - I just wanted to post something complete that actually lets installing mimedefang right away.

Now this ebuild is located in Project Sunrise.

What's the procedure to get it into the main Portage tree? I would be glad to continue mentaining this ebuild as I use mimedefang on a few servers so I have sort of testing environment for that.
Comment 32 Tuan Van (RETIRED) gentoo-dev 2006-07-25 22:47:37 UTC
(In reply to comment #31)
> (In reply to comment #29)
> 
> Please forgive the newbie - I just wanted to post something complete that
> actually lets installing mimedefang right away.
> 
> Now this ebuild is located in Project Sunrise.
> 
> What's the procedure to get it into the main Portage tree? I would be glad to
> continue mentaining this ebuild as I use mimedefang on a few servers so I have
> sort of testing environment for that.
> 

I have an ebuild sitting in my overlay. Unfortunaly, postfix doesn't support milter message replacement as of 2.3 yet so I can't test it other than compile and start it with initscript. I just commited mimedefang to the tree (without Graphdefang and p.mask) . Please file seperate bug for Graphdefang and any bug related to mimedefang.

Thanks everyone.
Tuan
Comment 33 woodstock 2007-03-04 18:52:07 UTC
Created attachment 112105 [details]
updated MD to version 2.61

This is the updated MD 2.61
Added the reload option to the init script
Comment 34 woodstock 2007-03-05 16:26:21 UTC
(In reply to comment #33)
> Created an attachment (id=112105) [edit]
> updated MD to version 2.61
> 
> This is the updated MD 2.61
> Added the reload option to the init script
> 
Also fixed dependencies adding :

        dev-perl/Digest-SHA1
        dev-perl/MailTools
        dev-perl/IO-stringy
        dev-perl/Unix-Syslog

required by MD