Re: OpenDKIM RPM Progress

From: Daniel Black <daniel.subs_at_internode.on.net>
Date: Sat, 11 Jun 2011 16:18:24 +1000

On Sat, 11 Jun 2011 02:05:59 PM Steve Jenkins wrote:
> As I've mentioned before, I'm teaching myself how to package RPMs -
> using OpenDKIM as my first project. My goal is to provide i386 and
> x86_64 RPMs that could be eventually included in some repos (like
> EPEL).

that would be really nice.

As a comparison here's the gentoo build (that I've yet to update) and our
FreeBSD one:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/mail-
filter/opendkim/opendkim-2.2.2.ebuild?view=markup

http://code.bsd64.org/cvsweb/freebsd/ports/mail/opendkim/Makefile?rev=1.7;content-
type=text%2Fx-cvsweb-markup

Unlike RPMs these allow user configurable options. Generally I'm in favour of
enabling features, even experimental features, that are left up to the user to
enable in configuration files. With RPMs though more features means more
dependancies which isn't totally a bad thing.

> I'm asking for feedback about which of those steps should be modified
> as I move toward a package that could be made available in repos. Here
> are my thoughts:
>
> 1) add --enable-stats to the ./configure
>
yes. This would also require setting up the package and documentation for
stats.

More feature options here too.

> 2) Use the RedHat specific init script from contrib/init/redhat - with
> hard-coded variables as discussed in a previous thread.

The current init script has a few QA things highlighted by rpmlint so I agree
here.

> 3) Really wondering here. Should I make separate config examples for
> Postfix vs. Sendmail and include them in the docs? Should this conf
> assume they're using Sendmail? Anything in this example config that
> doesn't need to be there, or anything that isn't there but should be?

I don't think anything here really assumes postfix or sendmail. I only set to
inet sockets because getting the postfix permissions is ugly.

The "and putting /etc/opendkim" is a bit redundant with -D specified.


> 6) Not sure on this one - I personally use /etc/mail/dkim to store
> OpenDKIM-related files, with and /etc/mail/dkim/keys/example.com for
> each domain's keys.

Seems very sendmail like however for real acceptance following the convention
of the common MTA interacting programs packages in Redhat/Fedora EPEL
(whatever that works out to be).

For me, rpmlint ~/rpmbuild/RPMS/x86_64/ shows a few other things that need
improving too.

The opendkim/README should also be installed for the documenation too.

Keep up the disto push Steve :-)
Received on Mon Jun 13 2011 - 02:34:58 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:10 PST