mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Fix build
Reported by: miwi (Tcl/Tk 86 exp-run)
This commit is contained in:
parent
75addb92aa
commit
30695bbfe7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318148
@ -20,7 +20,7 @@ USE_PERL5= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSSL}
|
||||
.if !${PORT_OPTIONS:MSSL}
|
||||
CONFIGURE_ARGS= --without-openssl
|
||||
.else
|
||||
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
||||
@ -61,20 +61,14 @@ SUB_FILES= pkg-install
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
USE_RC_SUBR= zmailer
|
||||
|
||||
# local variable (we can't use ${SED} here)
|
||||
DOMAIN!= /bin/hostname | ${SED} -e "s:^"`/bin/hostname -s`"\.*::g"
|
||||
.if (${DOMAIN} == "")
|
||||
DOMAIN= "mydomain.com"
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
cd ${WRKSRC}/man && make install
|
||||
cd ${WRKSRC}/man && make ${INSTALL_TARGET}
|
||||
|
||||
post-install:
|
||||
@${SETENV} PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
# set up the initial mail.conf with reasonable settings.
|
||||
@${ECHO_CMD} "# Where am I?" > ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO_CMD} "orgdomain="${DOMAIN} >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO_CMD} "orgdomain="`/bin/hostname | cut -d '.' -f 2-` >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO_CMD} "# Who am I?" >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO_CMD} "hostname="`/bin/hostname -s`'.$$orgdomain' >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO_CMD} "# Who do I claim to be?" >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
|
20
mail/zmailer/files/patch-include_listutils.h
Normal file
20
mail/zmailer/files/patch-include_listutils.h
Normal file
@ -0,0 +1,20 @@
|
||||
--- include/listutils.h.orig 2007-06-29 01:06:06.000000000 +0200
|
||||
+++ include/listutils.h 2013-05-14 10:21:40.000000000 +0200
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
/* #undef __GNUC__ */
|
||||
|
||||
-#if defined(__GNUC__) && !defined(PROFILING) && defined(__OPTIMIZE__)
|
||||
+#if defined(__GNUC__) && !defined(PROFILING) && defined(__OPTIMIZE__) && 0
|
||||
|
||||
#ifndef EXTINLINE
|
||||
#define EXTINLINE extern __inline__
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
#else /* ---- not profiling ---- */
|
||||
|
||||
-#if defined(__GNUC__) && !defined(PROFILING) && defined(__OPTIMIZE__)
|
||||
+#if defined(__GNUC__) && !defined(PROFILING) && defined(__OPTIMIZE__) && 0
|
||||
|
||||
EXTINLINE conscell *copycell(conscell *X) {
|
||||
conscell *tmp = newcell();
|
11
mail/zmailer/files/patch-libsh_listmalloc.c
Normal file
11
mail/zmailer/files/patch-libsh_listmalloc.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libsh/listmalloc.c.orig 2013-05-14 09:22:34.000000000 +0200
|
||||
+++ libsh/listmalloc.c 2013-05-14 10:13:43.000000000 +0200
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
if (depth > deepest_dsw)
|
||||
deepest_dsw = depth;
|
||||
- if (depth > 20) *(long*)0 = 0; /* ZAP! */
|
||||
+ if (depth > 20) abort(); /* ZAP! */
|
||||
while (current && !(current->flags & DSW_MARKER)) {
|
||||
current->flags |= DSW_MARKER;
|
||||
if (!STRING(current))
|
Loading…
Reference in New Issue
Block a user