--- /dev/null
+--- opensmtpd-201310231634p1/mk/makemap/Makefile.am~ 2013-10-23 16:41:36.000000000 +0300
++++ opensmtpd-201310231634p1/mk/makemap/Makefile.am 2013-11-03 01:28:42.542110133 +0200
+@@ -43,6 +43,12 @@
+ 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= makemap.8.out newaliases.8.out
+ MANPAGES_IN= $(smtpd_srcdir)/makemap.8
+ MANPAGES_IN+= $(smtpd_srcdir)/newaliases.8
# Conditional build:
%bcond_without pam # build without PAM support
-%define rel 0.2
+%define rel 0.3
%define prerelease 201310231634
Summary: Free implementation of the server-side SMTP protocol as defined by RFC 5321
Name: opensmtpd
Source3: %{name}.pam
Source4: aliases
Patch0: chroot-path.patch
+Patch1: makemap-paths.patch
URL: http://www.opensmtpd.org/
+BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: db-devel
%prep
%setup -q %{?prerelease: -n %{name}-%{prerelease}p1}
%patch0 -p1
+%patch1 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--sysconfdir=%{_sysconfdir}/mail \
--libexecdir=%{_libdir}/%{name} \