1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/java/jdk14-doc/Makefile
Chris Piazza 6d47ab8c2e Add a workaround to chown the files if the person installing
the port is root.  It was keeping the uid/gid of 10/143.

There might be a better solution than this in the long run
but it'll work for now.

PR:		12897
Reported by:	Jose Marques <jose@nobody.org>

Also some minor non-functional changes, exit 0 -> ${FALSE},
PKGMESSAGE to use | ${SED} instead of creating a new file.
1999-08-02 22:45:41 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: JDK documentation
# Version required: 1.1.8
# Date created: Mon Mar 8 10:10:42 EET 1999
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
#
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
#
DISTNAME= jdk118-doc
PKGNAME= jdk-doc-1.1.8
CATEGORIES= java
MAINTAINER= martti.kuparinen@ericsson.com
RESTRICTED= "This software is under license and export control."
IS_INTERACTIVE= "Requires manual fetch"
VERSION= 1.1.8
WRKSRC= ${WRKDIR}/jdk${VERSION}
NO_BUILD= yes
PLIST_SUB+= VERSION=${VERSION}
.include <bsd.port.pre.mk>
do-fetch:
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@echo ''
@echo 'You have to fetch the documentation from'
@echo ' http://java.sun.com/products/jdk/1.1/docs.html'
@echo ''
@echo 'Put ${DISTNAME}${EXTRACT_SUFX} in in ${DISTDIR}/ and run make again.'
@echo ''
@echo 'All this hassle is because of the license and export restrictions'
@echo 'as described in'
@echo ' http://java.sun.com/feedback/faq/downloading.html'
@echo ''
@${FALSE}
.endif
pre-install:
@if [ !`id -u` ]; then \
/usr/sbin/chown -R root:wheel ${WRKDIR}/*; \
fi
do-install:
${MKDIR} ${PREFIX}/jdk${VERSION}
(cd ${WRKSRC} && ${TAR} -cf - docs) \
| (cd ${PREFIX}/jdk${VERSION} && ${TAR} -xf -)
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
.include <bsd.port.post.mk>