1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/databases/msql3/Makefile
David E. O'Brien 3880720e3a Note the PR.
PR:		ports/5868
1998-02-27 11:50:28 +00:00

60 lines
2.0 KiB
Makefile

# New ports collection makefile for: msql2
# Version required: 2.0.3
# Date created: December 17th 1996
# Whom: jfitz
#
# $Id: Makefile,v 1.25 1998/02/27 11:42:55 obrien Exp $
#
DISTNAME= msql-2.0.3
CATEGORIES= databases
MASTER_SITES= http://www2.nerosworld.com/msql/ \
http://hughes.com.au/software/msql2/
MAINTAINER= jfitz@FreeBSD.ORG
BROKEN= "PR 5868 : PLIST broken, not PREFIX clean"
# Not free for commercial use. Must create a user on the local system
NO_PACKAGE= YES
RESTRICTED= "restrictive copyright (no commercial use)"
MAKE_ENV+= WRKSRC=${WRKSRC}
# 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
do-configure:
cd ${WRKSRC}; make target
cd ${WRKSRC}/targets/freebsd; sh setup
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/customize_scripts
pre-install:
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/check_old_version
@${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
post-install:
@${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
@for file in RELEASE_NOTES MSQL_BOOK INSTALL; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/share/doc/msql; \
done
@/bin/chmod 751 ${PREFIX}/etc/msql2/
@/usr/sbin/chown -R msql.msql ${PREFIX}/etc/msql2/
@${MKDIR} ${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; \
${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; \
chmod 751 ${PREFIX}/etc/rc.d/msql2.sh; \
fi
.if !defined(BATCH)
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
.endif
.include <bsd.port.mk>