|
|
1eaaa3 |
diff -up ypserv-2.32/acinclude.m4.aliases ypserv-2.32/acinclude.m4
|
|
|
1eaaa3 |
--- ypserv-2.32/acinclude.m4.aliases 2005-04-07 14:38:44.000000000 +0200
|
|
|
1eaaa3 |
+++ ypserv-2.32/acinclude.m4 2013-11-18 09:57:05.082162773 +0100
|
|
|
1eaaa3 |
@@ -92,3 +92,18 @@ AC_DEFUN([TYPE_SOCKLEN_T],
|
|
|
1eaaa3 |
fi
|
|
|
1eaaa3 |
AC_MSG_RESULT($ac_cv___attribute__)
|
|
|
1eaaa3 |
])
|
|
|
1eaaa3 |
+
|
|
|
1eaaa3 |
+
|
|
|
1eaaa3 |
+dnl
|
|
|
1eaaa3 |
+dnl Find where aliases file is located
|
|
|
1eaaa3 |
+dnl It can be in /etc/aliases or /etc/mail/aliases
|
|
|
1eaaa3 |
+dnl If file path is specified in argument and file path exists, it is used.
|
|
|
1eaaa3 |
+dnl
|
|
|
1eaaa3 |
+AC_DEFUN([FIND_ALIASES_PATH], [
|
|
|
1eaaa3 |
+AC_MSG_CHECKING(for aliases file path)
|
|
|
1eaaa3 |
+tmp_aliases="$1"
|
|
|
1eaaa3 |
+test -f /etc/mail/aliases && tmp_aliases="/etc/mail/aliases"
|
|
|
1eaaa3 |
+test -f /etc/aliases && tmp_aliases="/etc/aliases"
|
|
|
1eaaa3 |
+AC_MSG_RESULT($tmp_aliases)
|
|
|
1eaaa3 |
+AC_SUBST(ALIASES, $tmp_aliases)
|
|
|
1eaaa3 |
+])
|
|
|
1eaaa3 |
diff -up ypserv-2.32/configure.ac.aliases ypserv-2.32/configure.ac
|
|
|
1eaaa3 |
--- ypserv-2.32/configure.ac.aliases 2013-11-18 09:51:17.094758957 +0100
|
|
|
1eaaa3 |
+++ ypserv-2.32/configure.ac 2013-11-18 09:52:07.859844276 +0100
|
|
|
1eaaa3 |
@@ -151,7 +151,7 @@ fi
|
|
|
1eaaa3 |
AC_SUBST(MAKE)
|
|
|
1eaaa3 |
|
|
|
1eaaa3 |
dnl Check for aliases path
|
|
|
1eaaa3 |
-AC_PATH_PROG(ALIASES, aliases, /etc/mail/aliases, /etc/mail:/etc)
|
|
|
1eaaa3 |
+FIND_ALIASES_PATH(/etc/aliases)
|
|
|
1eaaa3 |
|
|
|
1eaaa3 |
dnl Should we use a gethostbyname after gethostname to use FQDN ? default yes
|
|
|
1eaaa3 |
AC_ARG_ENABLE(fqdn, AS_HELP_STRING([--disable-fqdn],
|