libmilter: enable ipv6

This commit is contained in:
John Regan 2017-03-24 08:11:47 -05:00
parent a42c94f6af
commit 7060e4a7e7

View file

@ -1,7 +1,7 @@
# Template file for 'libmilter'
pkgname=libmilter
version=1.0.2
revision=2
revision=3
_pkgname=sendmail
_version=8.15.2
hostmakedepends="m4"
@ -9,7 +9,7 @@ short_desc="Implementation of the sendmail Mail Filter API"
maintainer="John Regan <john@jrjrtech.com>"
license="Sendmail"
homepage="https://www.milter.org/developers/api/"
distfiles="ftp://ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
distfiles="ftp://ftp.mirrorservice.org/sites/ftp.sendmail.org/pub/${_pkgname}/${_pkgname}.${_version}.tar.gz"
checksum=24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439
wrksrc="${_pkgname}-${_version}"
@ -21,10 +21,12 @@ define(\`confLD',\`${LD}')
define(\`confCCOPTS',\`${CFLAGS} ${CPPFLAGS}')
define(\`confLDOPTS',\`${LDFLAGS}')
define(\`confRANLIB',\`${RANLIB}')
APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNETINET6=1')
EOF
case "$XBPS_TARGET_MACHINE" in
*-musl)
echo "APPENDDEF(\`confLIBSEARCH', \`crypt')" >> devtools/Site/site.config.m4
echo "APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNEEDSGETIPNODE=1')" >> devtools/Site/site.config.m4
;;
*)
echo "APPENDDEF(\`confLIBSEARCH', \`crypt nsl')" >> devtools/Site/site.config.m4