pkgsrc/net/ucspi-tcp/options.mk
sbd 43e5a1c9ed If the ipv6 option is turned on change references from "man" to ${PKGMANDIR}
in heir.c so manpages get installed in the right place.
2012-06-24 10:10:55 +00:00

29 lines
885 B
Makefile

# $NetBSD: options.mk,v 1.4 2012/06/24 10:10:55 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ucspi-tcp
PKG_SUPPORTED_OPTIONS+= inet6 ucspi-tcp-nodefaultrbl
PKG_SUGGESTED_OPTIONS+= inet6 ucspi-tcp-nodefaultrbl
.include "../../mk/bsd.options.mk"
PLIST_VARS+= inet6
.if !empty(PKG_OPTIONS:Minet6)
IPV6_PATCH= ucspi-tcp-0.88-ipv6.diff19.bz2
PATCHFILES+= ${IPV6_PATCH}
SITES.${IPV6_PATCH}= http://www.fefe.de/ucspi/
PATCH_DIST_STRIP.${IPV6_PATCH}= -p1
PLIST.inet6= yes
SUBST_CLASSES+= hier
SUBST_STAGE.hier= post-patch
SUBST_MESSAGE.hier= Fixing manpage path.
SUBST_FILES.hier= hier.c
SUBST_SED.hier= -e 's,man,${PKGMANDIR},'
.endif
.if !empty(PKG_OPTIONS:Mucspi-tcp-nodefaultrbl)
NODEFAULTRBL_PATCH= rblsmtpd-nodefaultrbl.patch
PATCHFILES+= ${NODEFAULTRBL_PATCH}
SITES.${NODEFAULTRBL_PATCH}= http://pyropus.ca/software/misc/
PATCH_DIST_STRIP.${NODEFAULTRBL_PATCH}= -p1
.endif