blob: 1d2dd188fc21b53df95590b68937824274616508 (
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
52
53
54
55
56
57
|
# New ports collection makefile for: msql3
# Date created: 24 May 2004
# Whom: Andrey Slusar <vasallia@ukr.net>
#
# $FreeBSD$
#
PORTNAME= msql
PORTVERSION= 3.5
CATEGORIES= databases
MAINTAINER= vasallia@ukr.net
COMMENT= Version 3 of the Mini SQL relational database system
INSTALLS_SHLIB= YES
USE_PERL5= YES
USE_REINPLACE= YES
# Not free for commercial use.
RESTRICTED= "restrictive copyright (no commercial use)"
MAKE_ENV+= WRKSRC=${WRKSRC}
post-patch:
cd ${FILESDIR}; \
${REINPLACE_CMD} -e "s|'bison -y' byacc|byacc 'bison -y'|g" \
${WRKSRC}/conf/configure
do-configure:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./setup
@${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/customize_scripts
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/run_daemon ${PREFIX}/bin
@for f in msqladmin msqlimport msqlexport; do\
${CHGRP} msql ${PREFIX}/bin/${f}; \
done
${CHGRP} msql ${PREFIX}/sbin/msql3d
@${CHMOD} 751 ${PREFIX}/etc/msql3/
@${CHOWN} -R msql:msql ${PREFIX}/etc/msql3/
@${MKDIR} ${PREFIX}/etc/rc.d
@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; \
fi
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
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"
.endif
.include <bsd.port.post.mk>
|