opensmtpd: add missing patch
This commit is contained in:
parent
2e2dc6923e
commit
3d28296aa7
2 changed files with 40 additions and 2 deletions
39
srcpkgs/opensmtpd/patches/cross-no-varrun-check.patch
Normal file
39
srcpkgs/opensmtpd/patches/cross-no-varrun-check.patch
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
--- configure.ac.orig 2018-01-16 18:25:01.896527503 +0100
|
||||||
|
+++ configure.ac 2018-01-16 18:25:27.827424062 +0100
|
||||||
|
@@ -1310,36 +1310,6 @@ AC_SUBST([sockdir])
|
||||||
|
|
||||||
|
# Where to place smtpd.pid
|
||||||
|
piddir=/var/run
|
||||||
|
-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([using $piddir from paths.h])
|
||||||
|
- ],
|
||||||
|
- [
|
||||||
|
- AC_MSG_RESULT([using $piddir from default value])
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
|
||||||
|
AC_ARG_WITH([path-pidfile],
|
||||||
|
[ --with-path-pidfile=PATH Specify path to smtpd.pid directory (default=/var/run)],
|
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'opensmtpd'
|
# Template file for 'opensmtpd'
|
||||||
pkgname=opensmtpd
|
pkgname=opensmtpd
|
||||||
version=6.0.3p1
|
version=6.0.3p1
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
||||||
--with-path-socket=/run --with-mantype=doc --with-pie --with-table-db
|
--with-path-socket=/run --with-mantype=doc --with-pie --with-table-db
|
||||||
--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt
|
--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt
|
||||||
--with-path-mbox=/var/mail
|
|
||||||
--with-maildir=/var/mail
|
--with-maildir=/var/mail
|
||||||
ac_cv_func_arc4random=yes
|
ac_cv_func_arc4random=yes
|
||||||
ac_cv_func_arc4random_buf=yes
|
ac_cv_func_arc4random_buf=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue