1997-07-14 14:35:19 +02:00
|
|
|
# New ports collection makefile for: msql2
|
1998-08-30 17:57:34 +02:00
|
|
|
# Version required: 2.0.4.1
|
1997-07-14 14:35:19 +02:00
|
|
|
# Date created: December 17th 1996
|
|
|
|
# Whom: jfitz
|
1995-01-14 12:01:06 +01:00
|
|
|
#
|
1999-04-14 02:03:19 +02:00
|
|
|
# $Id: Makefile,v 1.29 1999/04/08 19:05:44 billf Exp $
|
1996-08-29 12:20:55 +02:00
|
|
|
#
|
1995-01-14 12:01:06 +01:00
|
|
|
|
1998-08-30 17:57:34 +02:00
|
|
|
DISTNAME= msql-2.0.4.1
|
1996-11-17 04:18:45 +01:00
|
|
|
CATEGORIES= databases
|
1998-08-30 17:57:34 +02:00
|
|
|
MASTER_SITES= http://www.hughes.com.au/software/msql2/
|
1995-04-11 22:44:46 +02:00
|
|
|
|
1997-11-27 00:30:11 +01:00
|
|
|
MAINTAINER= jfitz@FreeBSD.ORG
|
1996-08-09 16:05:14 +02:00
|
|
|
|
1997-07-14 14:35:19 +02:00
|
|
|
# Not free for commercial use. Must create a user on the local system
|
|
|
|
NO_PACKAGE= YES
|
1996-06-03 03:56:15 +02:00
|
|
|
RESTRICTED= "restrictive copyright (no commercial use)"
|
1997-07-14 14:35:19 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= WRKSRC=${WRKSRC}
|
|
|
|
|
1997-07-14 14:43:38 +02:00
|
|
|
# Uncomment this if you're upgrading from <= b4 to >= b5 and have already
|
|
|
|
# dumped your databases (or just build with -DOVERWRITE_DB)
|
|
|
|
#OVERWRITE_DB= YES
|
|
|
|
|
1997-07-14 14:35:19 +02:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; make target
|
1998-08-30 17:57:34 +02:00
|
|
|
cd ${WRKSRC}/targets/freebsd; ${SETENV} ${MAKE_ENV} ./setup
|
1997-07-14 14:35:19 +02:00
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/customize_scripts
|
|
|
|
|
|
|
|
pre-install:
|
1997-07-14 14:43:38 +02:00
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/check_old_version
|
1997-07-14 14:35:19 +02:00
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
|
1995-01-14 12:01:06 +01:00
|
|
|
|
1996-06-03 03:56:15 +02:00
|
|
|
post-install:
|
1997-07-14 14:35:19 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/run_daemon ${PREFIX}/bin
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/share/doc/msql
|
|
|
|
@for file in msql2d msqladmin msqlimport msqlexport; do\
|
|
|
|
/usr/bin/chgrp msql ${PREFIX}/bin/$$file; \
|
|
|
|
done
|
1997-07-14 14:47:08 +02:00
|
|
|
@for file in RELEASE_NOTES MSQL_BOOK INSTALL; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/share/doc/msql; \
|
|
|
|
done
|
1997-07-14 14:35:19 +02:00
|
|
|
@/bin/chmod 751 ${PREFIX}/etc/msql2/
|
|
|
|
@/usr/sbin/chown -R msql.msql ${PREFIX}/etc/msql2/
|
1997-11-27 00:30:11 +01:00
|
|
|
@${MKDIR} ${PREFIX}/etc/rc.d
|
1997-07-14 14:35:19 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/msql2.sh ]; then \
|
1997-11-27 00:30:11 +01:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/msql2.sh startup file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/msql2.sh; \
|
1998-02-13 11:54:49 +01:00
|
|
|
${ECHO} "[ -x ${PREFIX}/bin/msql2d ] && su -l msql -c 'exec ${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && echo -n ' msql2'" >> ${PREFIX}/etc/rc.d/msql2.sh; \
|
1997-07-14 14:35:19 +02:00
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/msql2.sh; \
|
1996-10-04 02:38:38 +02:00
|
|
|
fi
|
1997-07-14 14:35:19 +02:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
|
|
|
.endif
|
1995-01-14 12:01:06 +01:00
|
|
|
|
1996-06-03 03:56:15 +02:00
|
|
|
.include <bsd.port.mk>
|