Commit 8a79d259 authored by Charles Longeau's avatar Charles Longeau

fix a bunch of autotools warnings

parent 1e6bf6c6
SUBDIRS=openbsd-compat src
SUBDIRS = openbsd-compat src
ACLOCAL_AMFLAGS = -I m4
\ No newline at end of file
dnl AC_INIT([OpenSMTPD-portable],[4.9.0],[Charles Longeau <chl@openbsd.org>])
AC_INIT([OpenSMTPD-portable], m4_esyscmd(date +%Y%m%d%H%M%S | sed -e 's/^\(.*\)$/5.0-\1/' | tr -d '\n'),[Charles Longeau <chl@openbsd.org>])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
......
noinst_LIBRARIES = libopenbsd-compat.a
libopenbsd_compat_a_SOURCES = \
base64.c \
basename.c \
bsd-arc4random.c \
bsd-closefrom.c \
bsd-getpeereid.c \
bsd-waitpid.c \
daemon.c \
dirname.c \
entropy.c \
fgetln.c \
getopt.c \
fmt_scaled.c \
fparseln.c \
imsg.c \
imsg-buffer.c \
mktemp.c \
setresguid.c \
setproctitle.c \
strlcat.c \
strlcpy.c \
strmode.c \
strtonum.c \
strsep.c \
utimes.c \
vis.c \
xmalloc.c
libopenbsd_compat_a_SOURCES = \
base64.c basename.c bsd-arc4random.c bsd-closefrom.c \
bsd-getpeereid.c bsd-waitpid.c daemon.c dirname.c entropy.c \
fgetln.c getopt.c fmt_scaled.c fparseln.c imsg.c imsg-buffer.c \
mktemp.c setresguid.c setproctitle.c strlcat.c strlcpy.c \
strmode.c strtonum.c strsep.c utimes.c vis.c xmalloc.c
INCLUDES = -I$(top_srcdir)/src/
EXTRA_DIST = base64.h bsd-waitpid.h defines.h entropy.h imsg.h includes.h \
openbsd-compat.h sys-queue.h sys-tree.h utime.h vis.h xmalloc.h
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/openbsd-compat
......@@ -74,7 +74,7 @@
#include "defines.h"
#include "openbsd-compat/openbsd-compat.h"
#include "openbsd-compat.h"
#include "entropy.h"
......
# In OpenBSD, smptd's files are installed this way:
#
# /usr/bin/newaliases --> /usr/sbin/mailwrapper --> /usr/libexec/smtpd/makemap
# /usr/libexec/mail.local
# /usr/sbin/makemap --> /usr/sbin/mailwrapper --> /usr/libexec/smtpd/makemap
# /usr/sbin/smtpctl
# /usr/sbin/smtpd
#
#
# For OpenSMTPD portable, here's where files are installed:
# (assuming PREFIX=/usr/local)
#
# /usr/local/bin/newaliases --> /usr/local/libexec/opensmtpd-portable/makemap
# /usr/local/libexec/mail.local
# /usr/local/libexec/opensmtpd-portable/makemap
# /usr/local/sbin/smtpctl
# /usr/local/sbin/smtpd
if !HAVE_MAIL_LOCAL
SUBDIRS=libexec
SUBDIRS = libexec
endif
bin_PROGRAMS = makemap smtpd smtpctl
sbin_PROGRAMS = smtpd smtpctl
pkglibexec_PROGRAMS = makemap
makemap_SOURCES = parse.y makemap.c aliases.c expand.c map.c map_backend.c\
makemap_SOURCES = parse.y makemap.c aliases.c expand.c map.c map_backend.c\
map_backend_db.c map_backend_stdio.c log.c util.c
smtpd_SOURCES= aliases.c auth_backend.c bounce.c client.c \
smtpd_SOURCES = aliases.c auth_backend.c bounce.c client.c \
config.c control.c dns.c expand.c forward.c \
lka.c lka_session.c log.c map.c map_backend.c \
map_backend_db.c map_backend_stdio.c \
......@@ -18,25 +38,38 @@ smtpd_SOURCES= aliases.c auth_backend.c bounce.c client.c \
ramqueue.c queue_backend.c queue_fsqueue.c \
user_backend.c stats.c
smtpctl_SOURCES = smtpctl.c parser.c log.c enqueue.c queue_shared.c util.c\
smtpctl_SOURCES = smtpctl.c parser.c log.c enqueue.c queue_shared.c util.c\
client.c queue_backend.c queue_fsqueue.c stats.c
smtpctl_CFLAGS= -DCLIENT_NO_SSL
smtpctl_CFLAGS = -DCLIENT_NO_SSL
EXTRA_DIST = asr.h client.h dnsdefs.h dnsutil.h filter.h log.h \
parser.h smtpd.h
INCLUDES = -I$(top_srcdir)/openbsd-compat
INCLUDES = -I$(top_srcdir)/openbsd-compat/
LIBCOMPAT = $(top_builddir)/openbsd-compat/libopenbsd-compat.a
LIBCOMPAT=$(top_srcdir)/openbsd-compat/libopenbsd-compat.a
LDADD = $(LIBCOMPAT)
LDADD = $(LIBCOMPAT) -levent -lssl -lcrypt -lutil
dist_man_MANS = makemap.8 newaliases.8 smtpctl.8 smtpd.8 smtpd.conf.5
# need to define _GNU_SOURCE to get:
# EAI_NODATA defined
# {v,}asprintf
# setres{g,u}id
CFLAGS=-D_GNU_SOURCE
CFLAGS = -D_GNU_SOURCE
# makemap newaliases
# newaliases makemap
install-exec-hook:
rm -rf $(DESTDIR)$(bindir)/newaliases$(EXEEXT)
$(MKDIR_P) $(DESTDIR)$(bindir)
ln $(DESTDIR)$(bindir)/makemap$(EXEEXT) \
ln -f $(DESTDIR)$(pkglibexecdir)/makemap$(EXEEXT) \
$(DESTDIR)$(bindir)/newaliases$(EXEEXT)
ln -f $(DESTDIR)$(pkglibexecdir)/makemap$(EXEEXT) \
$(DESTDIR)$(sbindir)/makemap$(EXEEXT)
uninstall-hook:
rm $(DESTDIR)$(bindir)/newaliases$(EXEEXT) \
$(DESTDIR)$(sbindir)/makemap$(EXEEXT)
SUBDIRS=mail.local
SUBDIRS = mail.local
bin_PROGRAMS = mail.local
libexec_PROGRAMS = mail.local
mail_local_SOURCES = mail.local.c locking.c ../../log.c
mail_local_SOURCES = mail.local.c locking.c ../../log.c
INCLUDES = -I$(top_srcdir)/openbsd-compat/
EXTRA_DIST = mail.local.h pathnames.h
LIBCOMPAT=$(top_srcdir)/openbsd-compat/libopenbsd-compat.a
INCLUDES = -I$(top_srcdir)/openbsd-compat
LDADD = $(LIBCOMPAT) -levent -lssl -lcrypt -lutil
LIBCOMPAT = $(top_builddir)/openbsd-compat/libopenbsd-compat.a
LDADD = $(LIBCOMPAT)
# need to define _GNU_SOURCE to get:
# EAI_NODATA defined
# {v,}asprintf
# setres{g,u}id
CFLAGS=-D_GNU_SOURCE
CFLAGS = -D_GNU_SOURCE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment