diff options
author | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-04 00:38:38 +0000 |
---|---|---|
committer | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-04 00:38:38 +0000 |
commit | a87698a36aa039560b51c2cb3fd344ed23d11c16 (patch) | |
tree | 6d88b97901cd5aa15844b6b98800514e5b12e44c /databases/msql3/Makefile | |
parent | Reorganize official patches (diff) |
Use INSTALL_ aliases in post-install:
Create rc.d-style local startup script
Fix omissions in pkg/PLIST
Remove erroneous PREFIX in Makefile (and modify PLIST to match)
Remove IS_INTERACTIVE (assume installation will run as root)
Use union diffs instead of context diffs.
Diffstat (limited to 'databases/msql3/Makefile')
-rw-r--r-- | databases/msql3/Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/databases/msql3/Makefile b/databases/msql3/Makefile index ad4462b8fa2a..88830dfdb64a 100644 --- a/databases/msql3/Makefile +++ b/databases/msql3/Makefile @@ -1,31 +1,37 @@ # New ports collection makefile for: msql -# Version required: 1.0.14 +# Version required: 1.0.16 # Date created: 14 January 1995 # Whom: mr (original) # -# $Id$ +# $Id: Makefile,v 1.12 1996/08/29 10:20:55 asami Exp $ # DISTNAME= msql-1.0.16 CATEGORIES+= databases MASTER_SITES= ftp://bond.edu.au/pub/Minerva/msql/ -MAINTAINTER= jfitz@freebsd.org +MAINTAINTER= jfitz@FreeBSD.ORG -IS_INTERACTIVE= yes -PREFIX= /usr/local/Minerva +#IS_INTERACTIVE= yes NO_MTREE= yes RESTRICTED= "restrictive copyright (no commercial use)" post-install: .for file in Commercial License mSQL-Invoice.txt msql-pwr.README msql-pwr.gif msql-pwr2.gif - cp ${WRKSRC}/doc/${file} ${PREFIX}/doc + ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/Minerva/doc .endfor .if !defined(NOPORTDOCS) .for file in HISTORY acl.txt mSQL-1.0.11.ps - cp ${WRKSRC}/doc/${file} ${PREFIX}/doc + ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/Minerva/doc .endfor .endif - cp ${WRKSRC}/scripts/run_daemon ${PREFIX} + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/run_daemon ${PREFIX}/Minerva + @ ${MKDIR} -p ${PREFIX}/etc/rc.d + @ if [ ! -f ${PREFIX}/etc/rc.d/msql.sh ]; then \ + echo "Installing ${PREFIX}/etc/rc.d/msql.sh startup file."; \ + echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/msql.sh; \ + echo "[ -x ${PREFIX}/Minerva/bin/msqld ] && ${PREFIX}/Minerva/bin/msqld & && echo -n ' msql'" >> ${PREFIX}/etc/rc.d/msql.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/msql.sh; \ + fi .include <bsd.port.mk> |