Skip to content

Commit

Permalink
send paths defined by configure switches to all Makefile.am. Fix #348
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Longeau committed Nov 3, 2013
1 parent 5486874 commit 70c2943
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 8 additions & 0 deletions mk/pathnames
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ compat_srcdir = $(top_srcdir)/openbsd-compat

filters_srcdir = $(smtpd_srcdir)/filters
backends_srcdir = $(smtpd_srcdir)/backends

PATHS= -DSMTPD_CONFDIR=\"$(sysconfdir)\" \
-DPATH_CHROOT=\"$(PRIVSEP_PATH)\" \
-DPATH_SMTPCTL=\"$(sbindir)/smtpctl\" \
-DPATH_MAILLOCAL=\"$(pkglibexecdir)/mail.local\" \
-DPATH_FILTERS=\"$(pkglibexecdir)\" \
-DPATH_TABLES=\"$(pkglibexecdir)\"

6 changes: 0 additions & 6 deletions mk/smtpd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ LDADD= $(LIBCOMPAT)
CFLAGS+= -D_GNU_SOURCE
CPPFLAGS= -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@

PATHS= -DSMTPD_CONFDIR=\"$(sysconfdir)\" \
-DPATH_SMTPCTL=\"$(sbindir)/smtpctl\" \
-DPATH_MAILLOCAL=\"$(pkglibexecdir)/mail.local\" \
-DPATH_FILTERS=\"$(pkglibexecdir)\" \
-DPATH_TABLES=\"$(pkglibexecdir)\"

MANPAGES= aliases.5.out forward.5.out smtpd.8.out \
smtpd.conf.5.out table.5.out
MANPAGES_IN= $(smtpd_srcdir)/aliases.5
Expand Down
6 changes: 4 additions & 2 deletions smtpd/smtpd-defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
#define SMTPD_MAXLINESIZE 2048

#ifndef SMTPD_USER
#define SMTPD_USER "_smtpd"
#define SMTPD_USER "_smtpd"
#endif
#ifndef PATH_CHROOT
#define PATH_CHROOT "/var/empty"
#endif
#ifndef SMTPD_QUEUE_USER
#define SMTPD_QUEUE_USER "_smtpq"
#define SMTPD_QUEUE_USER "_smtpq"
#endif
#ifndef PATH_SPOOL
#define PATH_SPOOL "/var/spool/smtpd"
Expand Down

0 comments on commit 70c2943

Please sign in to comment.