Date: Sun, 30 May 1999 23:46:16 -0400 From: Dan Moschuk <dan@trinsec.com> To: ports@freebsd.org Subject: Small Makefile patch for MySQL Message-ID: <19990530234616.B52096@trinsec.com>
next in thread | raw e-mail | index | archive | help
Greetings, The following patch is a quick hack against the mysql322 Makefile to allow the building of a client-only install. I hope it can be useful. Regards, -Dan *** Makefile Thu May 20 11:44:07 1999 --- Makefile.old Thu May 20 11:34:01 1999 *************** *** 26,37 **** --without-perl \ --without-debug \ --without-readline \ ! --without-bench ! ! .if defined(CLIENT_ONLY) ! CONFIGURE_ARGS+= --without-server ! .endif ! CONFIGURE_ENV+= PERL=${PERL} \ PERL5=${PERL} \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ --- 26,33 ---- --without-perl \ --without-debug \ --without-readline \ ! --without-bench \ ! --without-server CONFIGURE_ENV+= PERL=${PERL} \ PERL5=${PERL} \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ *************** *** 76,85 **** post-install: ${MKDIR} ${PREFIX}/share/mysql/mysql ! .if !defined(PACKAGE_BUILDING) && !defined(CLIENT_ONLY) ${PREFIX}/bin/mysql_install_db .endif - .if !defined(CLIENT_ONLY) @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh --- 72,80 ---- post-install: ${MKDIR} ${PREFIX}/share/mysql/mysql ! .if !defined(PACKAGE_BUILDING) ${PREFIX}/bin/mysql_install_db .endif @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh *************** *** 90,96 **** @ ${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql.sh @ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh - .endif .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/mysql --- 85,90 ---- 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?19990530234616.B52096>