Commit 74396948 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Thomas Petazzoni
Browse files

exim: new package



[Thomas:
 - use $(INSTALL) instead of install
 - add AR and RANLIB variables in the local makefiles, so that the
   cross toolchain ar and ranlib utilities are used instead of the
   native ones.
 - move the init script initialization to the EXIM_INSTALL_INIT_SYSV
   variable.
 - Use parenthesis instead of curly braces to reference TARGET_DIR.]

Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent fa7697dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -897,6 +897,7 @@ source "package/dnsmasq/Config.in"
source "package/dropbear/Config.in"
source "package/ebtables/Config.in"
source "package/ethtool/Config.in"
source "package/exim/Config.in"
source "package/foomatic-filters/Config.in"
source "package/fping/Config.in"
source "package/gesftpserver/Config.in"

package/exim/Config.in

0 → 100644
+9 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_EXIM
	bool "exim"
	select BR2_PACKAGE_PCRE
	select BR2_PACKAGE_BERKELEYDB
	help
	  Exim is a message transfer agent (MTA) developed at the University of
	  Cambridge for use on Unix systems connected to the Internet.

	  http://www.exim.org/
+15 −0
Original line number Diff line number Diff line
BIN_DIRECTORY=/usr/sbin
CONFIGURE_FILE=/etc/exim/configure
EXIM_USER=ref:exim
EXIM_GROUP=mail
SPOOL_DIRECTORY=/var/spool/exim
ROUTER_ACCEPT=yes
TRANSPORT_LMTP=yes
LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes
PCRE_LIBS=-lpcre
FIXED_NEVER_USERS=root
HEADERS_CHARSET="ISO-8859-1"
HAVE_ICONV=no
SYSLOG_LOG_PID=yes
TMPDIR="/tmp"

package/exim/S86exim

0 → 100644
+26 −0
Original line number Diff line number Diff line
#!/bin/sh
#
# Start/stop exim
#

PIDFILE=/var/lock/exim/exim-daemon.pid

case "$1" in
  start)
	echo "Starting exim..."
	start-stop-daemon -S -x exim -- -bd
	;;
  stop)
	echo -n "Stopping exim..."
	start-stop-daemon -K -o -p $PIDFILE
	;;
  restart|reload)
	"$0" stop
	"$0" start
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?
+23 −0
Original line number Diff line number Diff line
buildconfig is meant to be executed on the host, so it has to be compiled
using $(HOSTCC), not $(CC).

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 OS/Makefile-Base |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/OS/Makefile-Base b/OS/Makefile-Base
index 29a6ad3..420ba60 100644
--- a/OS/Makefile-Base
+++ b/OS/Makefile-Base
@@ -114,8 +114,8 @@ allexim: config.h $(EXIM_MONITOR) exicyclog exinext exiwhat \
 
 # Targets for special-purpose configuration header builders
 buildconfig: buildconfig.c
-	@echo "$(CC) buildconfig.c"
-	$(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
+	@echo "$(HOSTCC) buildconfig.c"
+	$(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
 
 
 # Target for the exicyclog utility script
Loading