net/dante: try to unbreak the port's build on 15-CURRENT (+)

- Due to the way this code wraps around some standard library's
  functions, it cannot be compiled with -D_FORTIFY_SOURCE=2, so
  disable the naive check in the configure script
- Optionize UPnP support and remove SASL dependency for now as
  it does nothing alone; it could be introduced later together
  with proper LDAP support

Reported by:	pkg-fallout
This commit is contained in:
Alexey Dokuchaev 2024-12-29 15:44:52 +00:00
parent 7cf4e7081d
commit b16b5fd495

View file

@ -12,12 +12,8 @@ WWW= https://www.inet.no/dante/
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libminiupnpc.so:net/miniupnpc \
libsasl2.so:security/cyrus-sasl2
USES= libtool localbase
USES= libtool localbase ssl
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
CONFIGURE_ARGS= --with-socks-conf=${PREFIX}/etc/socks.conf \
--with-sockd-conf=${PREFIX}/etc/sockd.conf
INSTALL_TARGET= install-strip
@ -25,7 +21,15 @@ USE_LDCONFIG= yes
USE_RC_SUBR= sockd
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES UPNP
OPTIONS_DEFAULT= UPNP
UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc
UPNP_CONFIGURE_OFF= --without-upnp
post-patch:
@${REINPLACE_CMD} -e '/FORTIFY_SOURCE gives error/,+28d' \
${WRKSRC}/configure
post-install:
.for x in s d