1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/databases/msql3/Makefile
Baptiste Daroussin 7057d2c5ae Fix badly set PKGNAMESUFFIX
Pointyhat to:	bapt
2013-11-08 13:07:45 +00:00

75 lines
2.1 KiB
Makefile

# Created by: Andrey Slusar <anray@FreeBSD.org>
# $FreeBSD$
PORTNAME= msql
PORTVERSION= 3.8
CATEGORIES= databases
PKGNAMESUFFIX= 3
MAINTAINER= ports@FreeBSD.org
COMMENT= Version 3 of the Mini SQL relational database system
CONFLICTS= msql-2*
USES= perl5
USE_LDCONFIG= YES
USERS= ${PORTNAME}
GROUPS= ${USERS}
# Not free for commercial use.
RESTRICTED= restrictive copyright (no commercial use)
MAKE_ENV+= WRKSRC=${WRKSRC}
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
NO_STAGE= yes
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
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/run_daemon ${PREFIX}/bin
.for f in msqladmin msqlimport msqlexport
${CHGRP} ${GROUPS} ${PREFIX}/bin/${f}
.endfor
${CHGRP} ${GROUPS} ${PREFIX}/sbin/msql3d
${CHMOD} 751 ${PREFIX}/etc/msql3/
${CHOWN} -R ${USERS}:${GROUPS} ${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
${MKDIR} ${DATADIR}/makegen
.for i in ${MSQLDATA}
${INSTALL_SCRIPT} ${WRKSRC}/src/makegen/${i} ${DATADIR}/makegen
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/src/site.mm ${DATADIR}/makegen
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= may not be redistributed because of licensing reasons. Please visit http://www.hughes.com.au/download/ to accept their license and download ${DISTFILES} into ${DISTDIR}
.endif
.include <bsd.port.post.mk>