mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
546041ba31
options `start' and `stop' now (unless I have forgotten any). This allows us to call the scripts from /etc/rc.shutdown with the correct option. The (42 or so) ports that already DTRT before are unchanged.
61 lines
1.9 KiB
Makefile
61 lines
1.9 KiB
Makefile
# New ports collection makefile for: msql2
|
|
# Date created: December 17th 1996
|
|
# Whom: jfitz
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= msql
|
|
PORTVERSION= 2.0.4.1
|
|
CATEGORIES= databases
|
|
|
|
MAINTAINER= jfitz@FreeBSD.org
|
|
|
|
# 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; ${SETENV} ${MAKE_ENV} ./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
|
|
@${CHMOD} 751 ${PREFIX}/etc/msql2/
|
|
@${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."; \
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/msql2d.sh \
|
|
${PREFIX}/etc/rc.d/msql2d.sh; \
|
|
fi
|
|
.if !defined(BATCH)
|
|
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
IGNORE="- You must manually obtain ${DISTFILES} from 'http://www.Hughes.com.au' and place it in ${DISTDIR}. The distribution requires registration prior to use"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|