Blame SOURCES/ypserv-2.24-aliases.patch

b93bcb
diff -up ./acinclude.m4.aliases ./acinclude.m4
b93bcb
--- ./acinclude.m4.aliases	2005-04-07 14:38:44.000000000 +0200
b93bcb
+++ ./acinclude.m4	2013-05-06 18:32:54.423541141 +0200
b93bcb
@@ -92,3 +92,18 @@ AC_DEFUN([TYPE_SOCKLEN_T],
b93bcb
     AC_DEFINE([socklen_t], [int], [Define if socklen_t is missing])
b93bcb
   fi
b93bcb
 ])
b93bcb
+
b93bcb
+
b93bcb
+dnl
b93bcb
+dnl Find where aliases file is located
b93bcb
+dnl It can be in /etc/aliases or /etc/mail/aliases
b93bcb
+dnl If file path is specified in argument and file path exists, it is used.
b93bcb
+dnl 
b93bcb
+AC_DEFUN([FIND_ALIASES_PATH], [
b93bcb
+AC_MSG_CHECKING(for aliases file path)
b93bcb
+tmp_aliases="$1"
b93bcb
+test -f /etc/mail/aliases && tmp_aliases="/etc/mail/aliases"
b93bcb
+test -f /etc/aliases && tmp_aliases="/etc/aliases"
b93bcb
+AC_MSG_RESULT($tmp_aliases)
b93bcb
+AC_SUBST(ALIASES, $tmp_aliases)
b93bcb
+])
b93bcb
diff -up ./configure.in.aliases ./configure.in
b93bcb
--- ./configure.in.aliases	2013-04-11 11:26:22.000000000 +0200
b93bcb
+++ ./configure.in	2013-05-06 18:32:54.482541191 +0200
b93bcb
@@ -151,7 +151,7 @@ fi
b93bcb
 AC_SUBST(MAKE)
b93bcb
 
b93bcb
 dnl Check for aliases path
b93bcb
-AC_PATH_PROG(ALIASES, aliases, /etc/mail/aliases, /etc/mail:/etc)
b93bcb
+FIND_ALIASES_PATH(/etc/aliases)
b93bcb
 
b93bcb
 
b93bcb