1997-07-14 14:35:19 +02:00
# New ports collection makefile for: msql2
# Date created: December 17th 1996
# Whom: jfitz
1995-01-14 12:01:06 +01:00
#
1999-08-25 07:28:01 +02:00
# $FreeBSD$
1996-08-29 12:20:55 +02:00
#
1995-01-14 12:01:06 +01:00
2000-04-09 00:49:07 +02:00
PORTNAME = msql
2001-10-21 20:41:45 +02:00
PORTVERSION = 2.0.12
2002-08-24 16:51:19 +02:00
PORTREVISION = 2
1996-11-17 04:18:45 +01:00
CATEGORIES = databases
1995-04-11 22:44:46 +02:00
2000-10-23 23:03:11 +02:00
MAINTAINER = ports@FreeBSD.org
1996-08-09 16:05:14 +02:00
2001-01-27 22:38:54 +01:00
INSTALLS_SHLIB = YES
2002-09-01 18:07:59 +02:00
USE_PERL5 = YES
2001-01-27 22:38:54 +01:00
2001-10-21 20:41:45 +02:00
# Not free for commercial use.
1997-07-14 14:35:19 +02:00
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
2001-01-27 09:55:25 +01:00
post-patch :
2001-01-27 22:38:54 +01:00
cd ${ FILESDIR } ; \
cp slibinstall.mm slibrary_unix.mm ${ WRKSRC } /src/makegen
2001-01-27 09:55:25 +01:00
1997-07-14 14:35:19 +02:00
do-configure :
2001-01-27 09:55:25 +01:00
cd ${ WRKSRC } ; ${ MAKE } target
1998-08-30 17:57:34 +02:00
cd ${ WRKSRC } /targets/freebsd; ${ SETENV } ${ MAKE_ENV } ./setup
2001-01-27 09:55:25 +01:00
@${ SETENV } ${ MAKE_ENV } ${ PERL } ${ SCRIPTDIR } /customize_scripts
1997-07-14 14:35:19 +02:00
pre-install :
2001-01-27 09:55:25 +01:00
@${ SETENV } ${ MAKE_ENV } ${ PERL } ${ SCRIPTDIR } /check_old_version
2001-10-21 20:41:45 +02:00
PKG_PREFIX = ${ PREFIX } ./pkg-install ${ PKGNAME } PRE-INSTALL
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
2001-01-27 09:55:25 +01:00
@for file in msqladmin msqlimport msqlexport; do \
1997-07-14 14:35:19 +02:00
/usr/bin/chgrp msql ${ PREFIX } /bin/$$ file; \
done
2001-01-27 09:55:25 +01:00
/usr/bin/chgrp msql ${ PREFIX } /sbin/msql2d
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
1999-08-22 21:01:07 +02:00
@${ CHMOD } 751 ${ PREFIX } /etc/msql2/
2001-06-01 08:05:18 +02:00
@${ 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. " ; \
2001-01-23 15:43:49 +01:00
${ INSTALL_SCRIPT } -m 751 ${ FILESDIR } /msql2.sh \
${ PREFIX } /etc/rc.d/msql2.sh; \
1996-10-04 02:38:38 +02:00
fi
1997-07-14 14:35:19 +02:00
. i f ! d e f i n e d ( B A T C H )
@ /usr/bin/more -e ${ FILESDIR } /post-install-notes
. e n d i f
1995-01-14 12:01:06 +01:00
1999-08-21 21:28:11 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
IGNORE = " - You must manually obtain ${ DISTFILES } from 'http://www.Hughes.com.au' and place it in ${ DISTDIR } . The distribution requires registration prior to use "
. e n d i f
. i n c l u d e < b s d . p o r t . p o s t . m k >