Date: Thu, 2 Jul 1998 16:40:39 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "FreeBSD-Ports" <FreeBSD-Ports@FreeBSD.ORG> Subject: Help with conditional make target Message-ID: <00ad01bda602$0e376a20$c3e0d9cf@westbend.net>
next in thread | raw e-mail | index | archive | help
I am trying to add a conditional make target to my port as a problem was discovered with the options that can be specified to the port. When the port is built as follows: make configure ; make install -DSUEXEC The port will fail when trying to compress the suexec.8 man page, because the port wasn't configured to install it. To fix the problem I added the following code to the ports Makefile: .if defined(SUEXEC) HTTPD_USER?=www USER_DIR?=public_html CONFIGURE_ARGS+= --enable-suexec \ --suexec-caller=${HTTPD_USER} \ --suexec-userdir=${USER_DIR} MAN8+= suexec.8 # check if suexec support was used to configure the # apache server, as we should compress the man page. .elif exists(${WRKDIR}/.suexec-install) <- This test fails and suexec.8 doesn't get added MAN8+= suexec.8 .endif .if defined(SUEXEC) post-configure: @${TOUCH} ${TOUCH_FLAGS} ${WRKDIR}/.suexec-install .endif # if suexec support is being requested, check if we were configured to build it. .if (defined(SUEXEC) && !exists(${WRKDIR}/.suexec-install)) pre-install: @${ECHO} "WARNING: Unable to install suexec support as it was not built" @${ECHO} "WARNING: If you wish to continue, don't use -DSUEXEC" @${ECHO} "WARNING: Otherwise, re-build the server with suexec support" @${ECHO} "WARNING: make clean" @${ECHO} "WARNING: make configure -DSUEXEC HTTPD_USR=<user> USER_DIR=<us rweblocation>" @${ECHO} "WARNING: make build ; make install -DSUEXEC" @${ECHO} "${MAN8} @${FALSE} .else pre-install: @${ECHO} ${MAN8} .endif But for some reason the pre-install test is failing when the port is compiled as follows: make configure -DSUEXEC ; make install -DSUEXEC or make clean; make install -DSUEXEC exists(${WRKDIR}/.suexec-install) fails to locate the file. When I check the work directory, the .suexec-install file is listed. Any I deal as to why it would fail. Or how I can fix the missing suexec.8 file during man page compression. Thanks, Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ad01bda602$0e376a20$c3e0d9cf>