1997-07-14 12:35:19 +00:00
|
|
|
# New ports collection makefile for: msql2
|
1997-07-14 12:45:30 +00:00
|
|
|
# Version required: 2.0b7.1
|
1997-07-14 12:35:19 +00:00
|
|
|
# Date created: December 17th 1996
|
|
|
|
# Whom: jfitz
|
1995-01-14 11:01:06 +00:00
|
|
|
#
|
1997-07-14 12:35:19 +00:00
|
|
|
# $Id$
|
1996-08-29 10:20:55 +00:00
|
|
|
#
|
1995-01-14 11:01:06 +00:00
|
|
|
|
1997-07-14 12:45:30 +00:00
|
|
|
DISTNAME= msql-2.0-B7.1
|
|
|
|
PKGNAME= msql-2.0b7.1
|
1996-11-17 03:18:45 +00:00
|
|
|
CATEGORIES= databases
|
1997-07-14 12:35:19 +00:00
|
|
|
MASTER_SITES= ftp://ftp.worldone.com/pub/msql/ \
|
|
|
|
http://www2.nerosworld.com/msql/ \
|
|
|
|
http://hughes.com.au/software/msql2/
|
1995-04-11 20:44:46 +00:00
|
|
|
|
1996-10-04 00:38:38 +00:00
|
|
|
MAINTAINTER= jfitz@FreeBSD.ORG
|
1996-08-09 14:05:14 +00:00
|
|
|
|
1997-07-14 12:35:19 +00:00
|
|
|
# Not free for commercial use. Must create a user on the local system
|
|
|
|
NO_PACKAGE= YES
|
1996-06-03 01:56:15 +00:00
|
|
|
RESTRICTED= "restrictive copyright (no commercial use)"
|
1997-07-14 12:35:19 +00:00
|
|
|
|
|
|
|
MAKE_ENV+= WRKSRC=${WRKSRC}
|
|
|
|
|
1997-07-14 12:43:38 +00: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 12:35:19 +00:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; make target
|
|
|
|
cd ${WRKSRC}/targets/freebsd; sh setup
|
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/customize_scripts
|
|
|
|
|
|
|
|
pre-install:
|
1997-07-14 12:43:38 +00:00
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/check_old_version
|
1997-07-14 12:35:19 +00:00
|
|
|
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
|
1995-01-14 11:01:06 +00:00
|
|
|
|
1996-06-03 01:56:15 +00:00
|
|
|
post-install:
|
1997-07-14 12:35:19 +00: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
|
|
|
|
@/bin/chmod 751 ${PREFIX}/etc/msql2/
|
|
|
|
@/usr/sbin/chown -R msql.msql ${PREFIX}/etc/msql2/
|
|
|
|
@${MKDIR} -p ${PREFIX}/etc/rc.d
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/msql2.sh ]; then \
|
|
|
|
echo "Installing ${PREFIX}/etc/rc.d/msql2.sh startup file."; \
|
|
|
|
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/msql2.sh; \
|
1997-07-14 12:44:42 +00:00
|
|
|
echo "[ -x ${PREFIX}/bin/msql2d ] && su -l msql -c '${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && echo -n ' msql2'" >> ${PREFIX}/etc/rc.d/msql2.sh; \
|
1997-07-14 12:35:19 +00:00
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/msql2.sh; \
|
1996-10-04 00:38:38 +00:00
|
|
|
fi
|
1997-07-14 12:35:19 +00:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
|
|
|
.endif
|
1995-01-14 11:01:06 +00:00
|
|
|
|
1996-06-03 01:56:15 +00:00
|
|
|
.include <bsd.port.mk>
|