summaryrefslogtreecommitdiff
path: root/databases/msql/Makefile
blob: c8dfffe98950b03984e951cfa40cf30fe6d85e07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	msql2
# Version required:	2.0b3
# Date created:		December 17th 1996
# Whom:			jfitz
#
# $Id$
#

DISTNAME=	msql-2.0-B3
PKGNAME=	msql-2.0b3
CATEGORIES=	databases
MASTER_SITES=	ftp://ftp.worldone.com/pub/msql/ \
		http://www2.nerosworld.com/msql/ \
		http://hughes.com.au/software/msql2/

MAINTAINTER=	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}

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}/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
		@/bin/chmod 751 ${PREFIX}/etc/msql2/
		@/usr/sbin/chown -R msql.msql ${PREFIX}/etc/msql2/
		@${MKDIR} -p ${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/run_daemon ] && su -l msql -c '${PREFIX}/bin/run_daemon msql2d' & && 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>