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.
This commit is contained in:
parent
06c626f00f
commit
6d47ab8c2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20504
@ -3,7 +3,7 @@
|
||||
# Date created: Mon Mar 8 10:10:42 EET 1999
|
||||
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
||||
#
|
||||
# $Id: Makefile,v 1.5 1999/06/21 02:56:36 cpiazza Exp $
|
||||
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= jdk118-doc
|
||||
@ -17,7 +17,6 @@ IS_INTERACTIVE= "Requires manual fetch"
|
||||
VERSION= 1.1.8
|
||||
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
||||
NO_BUILD= yes
|
||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||
PLIST_SUB+= VERSION=${VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -34,14 +33,18 @@ do-fetch:
|
||||
@echo 'as described in'
|
||||
@echo ' http://java.sun.com/feedback/faq/downloading.html'
|
||||
@echo ''
|
||||
@exit 1
|
||||
@${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 -)
|
||||
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Date created: Mon Mar 8 10:10:42 EET 1999
|
||||
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
||||
#
|
||||
# $Id: Makefile,v 1.5 1999/06/21 02:56:36 cpiazza Exp $
|
||||
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= jdk118-doc
|
||||
@ -17,7 +17,6 @@ IS_INTERACTIVE= "Requires manual fetch"
|
||||
VERSION= 1.1.8
|
||||
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
||||
NO_BUILD= yes
|
||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||
PLIST_SUB+= VERSION=${VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -34,14 +33,18 @@ do-fetch:
|
||||
@echo 'as described in'
|
||||
@echo ' http://java.sun.com/feedback/faq/downloading.html'
|
||||
@echo ''
|
||||
@exit 1
|
||||
@${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 -)
|
||||
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Date created: Mon Mar 8 10:10:42 EET 1999
|
||||
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
||||
#
|
||||
# $Id: Makefile,v 1.5 1999/06/21 02:56:36 cpiazza Exp $
|
||||
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= jdk118-doc
|
||||
@ -17,7 +17,6 @@ IS_INTERACTIVE= "Requires manual fetch"
|
||||
VERSION= 1.1.8
|
||||
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
||||
NO_BUILD= yes
|
||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||
PLIST_SUB+= VERSION=${VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -34,14 +33,18 @@ do-fetch:
|
||||
@echo 'as described in'
|
||||
@echo ' http://java.sun.com/feedback/faq/downloading.html'
|
||||
@echo ''
|
||||
@exit 1
|
||||
@${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 -)
|
||||
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Date created: Mon Mar 8 10:10:42 EET 1999
|
||||
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
||||
#
|
||||
# $Id: Makefile,v 1.5 1999/06/21 02:56:36 cpiazza Exp $
|
||||
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= jdk118-doc
|
||||
@ -17,7 +17,6 @@ IS_INTERACTIVE= "Requires manual fetch"
|
||||
VERSION= 1.1.8
|
||||
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
||||
NO_BUILD= yes
|
||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||
PLIST_SUB+= VERSION=${VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -34,14 +33,18 @@ do-fetch:
|
||||
@echo 'as described in'
|
||||
@echo ' http://java.sun.com/feedback/faq/downloading.html'
|
||||
@echo ''
|
||||
@exit 1
|
||||
@${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 -)
|
||||
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Date created: Mon Mar 8 10:10:42 EET 1999
|
||||
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
||||
#
|
||||
# $Id: Makefile,v 1.5 1999/06/21 02:56:36 cpiazza Exp $
|
||||
# $Id: Makefile,v 1.6 1999/06/28 02:22:02 billf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= jdk118-doc
|
||||
@ -17,7 +17,6 @@ IS_INTERACTIVE= "Requires manual fetch"
|
||||
VERSION= 1.1.8
|
||||
WRKSRC= ${WRKDIR}/jdk${VERSION}
|
||||
NO_BUILD= yes
|
||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||
PLIST_SUB+= VERSION=${VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -34,14 +33,18 @@ do-fetch:
|
||||
@echo 'as described in'
|
||||
@echo ' http://java.sun.com/feedback/faq/downloading.html'
|
||||
@echo ''
|
||||
@exit 1
|
||||
@${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 -)
|
||||
@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user