void-packages/srcpkgs/opensmtpd/patches/cross-no-varrun-check.patch
2019-11-14 20:42:09 +01:00

43 lines
848 B
Diff

--- configure.ac.orig
+++ configure.ac
@@ -1340,40 +1340,6 @@
# Where to place smtpd.pid
piddir=/var/run
-AC_MSG_CHECKING([system pid directory])
-AC_RUN_IFELSE(
- [
- AC_LANG_PROGRAM([[
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef HAVE_PATHS_H
-#include <paths.h>
-#endif
-#define DATA "conftest.piddir"
- ]],
- [[
-#ifdef _PATH_VARRUN
-FILE *fd;
-int rc;
-
-if ((fd = fopen(DATA,"w")) == NULL) { exit(1); }
-if ((rc = fprintf(fd ,"%s\n", _PATH_VARRUN)) < 0) { exit(2); }
-exit(0);
-#else
-exit(-1);
-#endif
- ]])
- ], [
- piddir=`cat conftest.piddir`
- AC_MSG_RESULT([$piddir from paths.h])
- ],
- [
- AC_MSG_RESULT([$piddir from default value])
- ],
- [
- AC_MSG_RESULT([$piddir from default value])
- ]
-)
AC_ARG_WITH([path-pidfile],
[ --with-path-pidfile=PATH Specify path to smtpd.pid directory (default=/var/run)],