hi there, i am trying to make a port of textpattern. this is a regular php+mysql web application cms.
naturally i went had a look at other web application Makefiles already in the ports. i noticed that most of them (wordpress, smarty, horde) install into /var/www/ instead of /var/www/htdocs and symlink back. twiki on the other hand does use htdocs. http://www.openbsd.org/checklist.html says nothing about web pages/applications in its openbsd file locations at point 14. is there a reason for not using htdocs? anyway, wordpress being very close to txp i used is template. but at the moment i got stuck with SUBST_VARS from the wordpress Makefile v1.6: ------------------------------%<----------------- PREFIX= /var/www/ INSTDIR= ${PREFIX}/wordpress SUBST_VARS= INSTDIR do-install: @cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} ------------------------------%<----------------- it puzzled me, that INSTDIR is defined, but not used anywhere. so i thought it's a magic variable or something. bsd.port.mk says it is not. so i looked at SUBST_VARS: SUBST_VARS Make variables whole values get substituted to create the actual package information. Always holds ARCH, FLAVOR_EXT, HOMEPAGE, MACHINE_ARCH, MAINTAINER, PREFIX, and SYSCONFDIR. The special construct `${FLAVORS}' can be used in the pack- ing-list to specify the current list of dash separated fla- vors the port is compiled with (useful for cross-dependen- cies in MULTI_PACKAGES). Add other variables as needed. ugh. call me stupid, but that first sentence is some kind of strange english to me, i don't understand what this means except that it always holds the mentioned variables. but what's the effect of adding other vars like INSTDIR? what is it good for? the other invisible wall ahead of me: i tried to make wordpress install directly into /var/www/htdocs by changing PREFIX accordingly, and the wordpress installation fails. is this the reason packages are installed into /var/www instead of /var/www/htdocs? -f -- can't have everything. where would you put it?
