2004-07-17 23:19:58 +02:00
# New ports collection makefile for: msql3
# Date created: 24 May 2004
2005-12-15 21:34:46 +01:00
# Whom: Andrey Slusar <anray@FreeBSD.org>
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
2007-04-15 15:05:31 +02:00
PORTVERSION = 3.8
1996-11-17 04:18:45 +01:00
CATEGORIES = databases
1995-04-11 22:44:46 +02:00
2005-12-15 21:34:46 +01:00
MAINTAINER = anray@FreeBSD.org
2004-07-17 23:19:58 +02:00
COMMENT = Version 3 of the Mini SQL relational database system
1996-08-09 16:05:14 +02:00
2004-07-21 13:24:41 +02:00
CONFLICTS = msql-2*
2004-04-10 19:26:55 +02:00
INSTALLS_SHLIB = YES
2002-09-01 18:07:59 +02:00
USE_PERL5 = YES
2001-01-27 22:38:54 +01:00
2004-07-22 08:12:22 +02:00
LATEST_LINK = msql3
2001-10-21 20:41:45 +02:00
# Not free for commercial use.
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 }
2004-07-22 08:12:22 +02:00
MSQLDATA = directory.mm dll_os2.mm install.mm lex.mm libinstall.mm \
library_os2.mm library_unix.mm makegen makegen.cf object.mm \
program.mm touch.mm yacc.mm
DOCS = README RELEASE_NOTES BUGS doc/License doc/Manual \
doc/Perl doc/acl.txt
2001-01-27 09:55:25 +01:00
post-patch :
2001-01-27 22:38:54 +01:00
cd ${ FILESDIR } ; \
2004-07-17 23:19:58 +02:00
${ REINPLACE_CMD } -e "s|'bison -y' byacc|byacc 'bison -y'|g" \
${ WRKSRC } /conf/configure
2001-01-27 09:55:25 +01:00
1997-07-14 14:35:19 +02:00
do-configure :
2004-07-17 23:19:58 +02:00
cd ${ WRKSRC } ; ${ 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 :
2003-12-14 16:03:30 +01:00
@${ SETENV } PKG_PREFIX = ${ PREFIX } ${ SH } ${ PKGINSTALL } ${ PKGNAME } PRE-INSTALL
1995-01-14 12:01:06 +01:00
1996-06-03 03:56:15 +02:00
post-install :
2004-07-22 08:12:22 +02:00
${ INSTALL_SCRIPT } ${ WRKSRC } /scripts/run_daemon ${ PREFIX } /bin
. f o r f i n m s q l a d m i n m s q l i m p o r t m s q l export
${ CHGRP } msql ${ PREFIX } /bin/${ f }
. e n d f o r
${ CHGRP } msql ${ PREFIX } /sbin/msql3d
${ CHMOD } 751 ${ PREFIX } /etc/msql3/
${ CHOWN } -R msql:msql ${ PREFIX } /etc/msql3/
${ MKDIR } ${ PREFIX } /etc/rc.d
2004-07-17 23:19:58 +02:00
@if [ ! -f ${ PREFIX } /etc/rc.d/msql3.sh ] ; then \
${ ECHO_MSG } " Installing ${ PREFIX } /etc/rc.d/msql3.sh startup file. " ; \
${ INSTALL_SCRIPT } -m 751 ${ FILESDIR } /msql3.sh \
${ PREFIX } /etc/rc.d/msql3.sh; \
1996-10-04 02:38:38 +02:00
fi
2004-07-22 08:12:22 +02:00
${ MKDIR } ${ DATADIR } /makegen
. f o r i i n $ { M S Q L D A T A }
${ INSTALL_SCRIPT } ${ WRKSRC } /src/makegen/${ i } ${ DATADIR } /makegen
. e n d f o r
${ INSTALL_SCRIPT } ${ WRKSRC } /src/site.mm ${ DATADIR } /makegen
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ DOCSDIR }
. f o r i i n $ { D O C S }
${ INSTALL_DATA } ${ WRKSRC } /${ i } ${ DOCSDIR }
. e n d f o r
. 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 } )
2007-04-15 15:05:31 +02:00
IGNORE = " - You must manually obtain ${ DISTFILES } from 'http://www.hughes.com.au/download/' and place it in ${ DISTDIR } . The distribution requires registration prior to use "
1999-08-21 21:28:11 +02:00
. 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 >