1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/databases/msql3/Makefile

70 lines
2.0 KiB
Makefile
Raw Normal View History

1997-07-14 12:35:19 +00:00
# New ports collection makefile for: msql2
# Date created: December 17th 1996
# Whom: jfitz
#
1999-08-25 05:28:01 +00:00
# $FreeBSD$
1996-08-29 10:20:55 +00:00
#
PORTNAME= msql
2001-10-21 18:41:45 +00:00
PORTVERSION= 2.0.12
2002-08-24 14:51:19 +00:00
PORTREVISION= 2
CATEGORIES= databases
MAINTAINER= ports@FreeBSD.org
2001-01-27 21:38:54 +00:00
INSTALLS_SHLIB= YES
USE_PERL5= YES
2001-01-27 21:38:54 +00:00
2001-10-21 18:41:45 +00:00
# Not free for commercial use.
1997-07-14 12:35:19 +00:00
NO_PACKAGE= YES
RESTRICTED= "restrictive copyright (no commercial use)"
1997-07-14 12:35:19 +00:00
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
2001-01-27 08:55:25 +00:00
post-patch:
2001-01-27 21:38:54 +00:00
cd ${FILESDIR}; \
cp slibinstall.mm slibrary_unix.mm ${WRKSRC}/src/makegen
2001-01-27 08:55:25 +00:00
1997-07-14 12:35:19 +00:00
do-configure:
2001-01-27 08:55:25 +00:00
cd ${WRKSRC}; ${MAKE} target
cd ${WRKSRC}/targets/freebsd; ${SETENV} ${MAKE_ENV} ./setup
2001-01-27 08:55:25 +00:00
@${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/customize_scripts
1997-07-14 12:35:19 +00:00
pre-install:
2001-01-27 08:55:25 +00:00
@${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/check_old_version
2001-10-21 18:41:45 +00:00
PKG_PREFIX=${PREFIX} ./pkg-install ${PKGNAME} PRE-INSTALL
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
2001-01-27 08:55:25 +00:00
@for file in msqladmin msqlimport msqlexport; do\
${CHGRP} msql ${PREFIX}/bin/$$file; \
1997-07-14 12:35:19 +00:00
done
${CHGRP} msql ${PREFIX}/sbin/msql2d
@for file in RELEASE_NOTES MSQL_BOOK INSTALL; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/share/doc/msql; \
done
1999-08-22 19:01:07 +00:00
@${CHMOD} 751 ${PREFIX}/etc/msql2/
2001-06-01 06:05:18 +00:00
@${CHOWN} -R msql:msql ${PREFIX}/etc/msql2/
@${MKDIR} ${PREFIX}/etc/rc.d
1997-07-14 12:35:19 +00:00
@if [ ! -f ${PREFIX}/etc/rc.d/msql2.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/msql2.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/msql2.sh \
${PREFIX}/etc/rc.d/msql2.sh; \
fi
1997-07-14 12:35:19 +00:00
.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>