Link with -lwrap to make the Apache module actually function and load

correctly.

Submitted by:	Maikel Verheijen <maikel@ladot.com>
This commit is contained in:
Pete Fritchman 2002-08-05 16:48:38 +00:00
parent 7e12c5c287
commit d69eaa9d5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64052

View file

@ -7,6 +7,7 @@
PORTNAME= mod_hosts_access
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.klomp.org/mod_hosts_access/
@ -16,9 +17,10 @@ BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
APXS?= ${LOCALBASE}/sbin/apxs
APXS_FLAGS?= -S LDFLAGS_SHLIB="-shared -lwrap"
do-build:
@cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c
@cd ${WRKSRC} && ${APXS} ${APXS_FLAGS} -c ${PORTNAME}.c
do-install:
${APXS} -i -A -n ${PORTNAME:S/mod_//g} ${WRKSRC}/${PORTNAME}.so