Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] exim: new package
Date: Sat, 5 Apr 2014 18:35:15 +0200	[thread overview]
Message-ID: <20140405183515.473bebd4@skate> (raw)
In-Reply-To: <1394124890-29254-3-git-send-email-luca@lucaceresoli.net>

Dear Luca Ceresoli,

On Thu,  6 Mar 2014 17:54:50 +0100, Luca Ceresoli wrote:
> ---

You also for your SoB here.

> diff --git a/package/exim/exim.mk b/package/exim/exim.mk
> new file mode 100644
> index 0000000..011d0a4
> --- /dev/null
> +++ b/package/exim/exim.mk
> @@ -0,0 +1,41 @@
> +#############################################################
> +#
> +# exim
> +#
> +#############################################################
> +
> +EXIM_VERSION = 4.82
> +EXIM_SOURCE = exim-$(EXIM_VERSION).tar.bz2
> +EXIM_SITE = ftp://ftp.exim.org/pub/exim/exim4
> +EXIM_LICENSE = GPLv2+
> +EXIM_LICENSE_FILES = LICENCE
> +EXIM_DEPENDENCIES = pcre berkeleydb
> +
> +# These echos seem to be the sanest way to feed CC and CFLAGS to exim
> +define EXIM_CONFIGURE_CMDS
> +	install -D package/exim/Local-Makefile $(@D)/Local/Makefile

I've used $(INSTALL) -m0644 instead

> +	echo "CC=$(TARGET_CC)" >>$(@D)/Local/Makefile
> +	echo "CFLAGS=$(TARGET_CFLAGS)" >>$(@D)/Local/Makefile
> +	echo "HOSTCC=$(HOSTCC)" >>$(@D)/Local/Makefile
> +	echo "HOSTCFLAGS=$(HOSTCFLAGS)" >>$(@D)/Local/Makefile

I've added AR and RANLIB here, otherwise the exim build system uses the
native versions.

> +endef
> +
> +# "The -j (parallel) flag must not be used with make"
> +# (http://www.exim.org/exim-html-current/doc/html/spec_html/ch04.html)
> +define EXIM_BUILD_CMDS
> +	build=br $(MAKE1) -C $(@D)
> +endef
> +
> +define EXIM_INSTALL_TARGET_CMDS
> +	$(INSTALL) -D -m 755 package/exim/S86exim \
> +		$(TARGET_DIR)/etc/init.d/S86exim

I've moved this to EXIM_INSTALL_INIT_SYSV.

> +	DESTDIR=${TARGET_DIR} INSTALL_ARG="-no_chown -no_symlink" build=br \
> +	  $(MAKE1) -C $(@D) install
> +	chmod u+s ${TARGET_DIR}/usr/sbin/exim

I've replaced both {TARGET_DIR} by (TARGET_DIR)

I've committed with those changes.

However, upon startup, I get an exim failure, would be good to have a
look:

Starting exim...
1970-01-01 00:00:06 Exim configuration error in line 541 of /etc/exim/configure:
  router dnslookup: cannot find router driver "dnslookup"

My defconfig is:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-basic-2014.02-rc1.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_13=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_PACKAGE_EXIM=y

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2014-04-05 16:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 16:54 [Buildroot] [PATCH 0/2] Adding exim Luca Ceresoli
2014-03-06 16:54 ` [Buildroot] [PATCH 1/2] system/skeleton: add mail group Luca Ceresoli
2014-03-06 17:13   ` Yann E. MORIN
2014-03-07 15:04     ` Luca Ceresoli
2014-03-29 16:21       ` Yann E. MORIN
2014-03-29 16:56         ` Sagaert Johan
2014-03-30 13:36           ` Luca Ceresoli
2014-04-05 16:32   ` Thomas Petazzoni
2014-04-05 21:36     ` Luca Ceresoli
2014-03-06 16:54 ` [Buildroot] [PATCH 2/2] exim: new package Luca Ceresoli
2014-03-06 17:38   ` Bernd Kuhls
2014-03-07 14:53     ` Luca Ceresoli
2014-03-07 20:52       ` Bernd Kuhls
2014-04-05 16:35   ` Thomas Petazzoni [this message]
2014-04-05 22:11     ` Luca Ceresoli
2014-04-06  8:37       ` Thomas Petazzoni
2014-04-06 15:31         ` Luca Ceresoli
2014-04-09 15:46           ` Luca Ceresoli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140405183515.473bebd4@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox