freebsd-ports/www/hydra/Makefile
Tijl Coosemans 6bc6f3a9e0 - Update security/gnutls to 3.4.10.
- Rename the LIBDANE option DANE because that's the name of the protocol
  supported by libgnutls-dane and gnutls-cli.  Also clarify the option
  description.
- Add an IDN option.
- libgnutls-openssl has been removed in 3.4.  Some ports used this library
  in their LIB_DEPENDS but no port actually required it.
- Some old API functions have been removed.  Ports that used these have been
  updated or patched to use the new API.
- Add a patch to print/cups to prevent overlinking of libgnutls.so.
- Bump PORTREVISION on dependent ports.

net-im/jabber: This port used the old API to give users fine grained
control over which crypto algorithms were used via a configuration file.
It's not immediately obvious how to port this to the new API so the port
always uses the defaults now.

www/hydra: Mark BROKEN.  This uses more removed calls than the other ports,
is said to be alpha quality and not fully functional and has been abandoned
10 years ago.

PR:		207768
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-27 14:57:59 +00:00

55 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= hydra
PORTVERSION= 0.1.8
PORTREVISION= 10
CATEGORIES= www
MASTER_SITES= http://hydra.hellug.gr/download/
PKGNAMESUFFIX= -web
MAINTAINER= ports@FreeBSD.org
COMMENT= High performance multi-threaded web server
LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
BROKEN= Needs to be ported to GnuTLS 3.4; abandoned upstream
USES= perl5 pkgconfig shebangfix
SHEBANG_FILES= src/webindex.pl
USE_RC_SUBR= hydra
USE_PERL5= run
GNU_CONFIGURE= yes
CFLAGS+= -DENABLE_SSL -DHAVE_LIBGNUTLS
CPPFLAGS+= $$(pkg-config --cflags gnutls)
LDFLAGS+= $$(pkg-config --libs gnutls)
PLIST_SUB= LOGDIR="${LOGDIR}"
SUB_FILES= pkg-deinstall
SUB_LIST= LOGDIR="${LOGDIR}"
CONFLICTS_INSTALL= hydra-[0-9]*
LOGDIR?= /var/log/hydra
post-patch:
@${REINPLACE_CMD} -e \
'/LDFLAGS/s| -g"|"|' ${WRKSRC}/configure
.for f in src/defines.h examples/hydra.conf
@${REINPLACE_CMD} -e \
's|%%PREFIX%%|${PREFIX}|g ; \
s|%%LOGDIR%%|${LOGDIR}|g ; \
s|%%WWWOWN%%|${WWWOWN}|g ; \
s|%%WWWGRP%%|${WWWGRP}|g' ${WRKSRC}/${f}
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${LOGDIR}
.for f in hydra.conf mime.types
(cd ${WRKSRC}/examples && ${INSTALL_DATA} ${f} \
${STAGEDIR}${ETCDIR}/${f}.sample)
.endfor
.include <bsd.port.mk>