Date: Fri, 21 Feb 2003 22:47:17 -0600 (CST) From: "Scot W. Hetzel" <hetzels@westbend.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Kris Kennaway <kris@obsecurity.org> Subject: ports/48555: www/frontpage* - File permissions changed after install Message-ID: <200302220447.h1M4lHlA017208@WBIw009.westbend.net>
next in thread | raw e-mail | index | archive | help
>Number: 48555 >Category: ports >Synopsis: www/frontpage* - File permissions changed after install >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Feb 21 20:50:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Scot W. Hetzel >Release: FreeBSD 4.7-STABLE i386 >Organization: West Bend Internet >Environment: System: FreeBSD WBIw009.westbend.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Feb 17 22:11:48 CST 2003 root@WBIw009.westbend.net:/usr/obj/usr/src/src4/sys/GENERIC-SMP i386 >Description: The language frontpage ports are changing the ownership and permissions of files already installed by the main frontpage ports. >How-To-Repeat: Install www/frontpage, then install any of the frontpage-* language ports. >Fix: The problem is that the frontpage-* language ports run the fp_set_perm.sh script after the extentions have been installed into the PREFIX/frontpage directory. The www/frontpage port relied on the fp_install.sh script to set these permissions. I fixed this problem by running the fp_set_perm.sh script after the www/frontpage has finished installing. The patch also removes the extra file created by the REINPLACE_CMD in both www/frontpage and www/frontpage-ar. Index: frontpage/Makefile =================================================================== RCS file: /home/ncvs/ports/www/frontpage/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- frontpage/Makefile 21 Feb 2003 14:00:04 -0000 1.6 +++ frontpage/Makefile 22 Feb 2003 04:16:34 -0000 @@ -117,6 +117,9 @@ @${ECHO_MSG} "===> Untaring FrontPage Extensions to ${PREFIX}" @(cd ${PREFIX} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS}) @${REINPLACE_CMD} -e 's:IMAGESDIR:../images/:g' ${PREFIX}/${FPCSS} + @if [ -f ${PREFIX}/${FPCSS} ]; then \ + ${RM} ${PREFIX}/${FPCSS}.bak ; \ + fi @${RM} ${PREFIX}/${FPHTTPD}/httpd @${MKDIR} ${MOD_FPDOCDIR} @${CP} ${PREFIX}/${README} ${MOD_FPDOCDIR}/index.html @@ -125,5 +128,6 @@ post-install: @${CAT} ${PKGMESSAGE} + @${PREFIX}/${FPSETPERM} .include <bsd.port.post.mk> Index: frontpage-ar/Makefile =================================================================== RCS file: /home/ncvs/ports/www/frontpage-ar/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- frontpage-ar/Makefile 21 Feb 2003 14:00:05 -0000 1.7 +++ frontpage-ar/Makefile 22 Feb 2003 04:08:19 -0000 @@ -52,6 +52,9 @@ .endfor .for _FP_LCID in ${FP_LCID} @${REINPLACE_CMD} -e 's:IMAGESDIR:../images/:g' ${FP_DIR}/admin/${_FP_LCID}/webadmin.css + @if [ -f ${FP_DIR}/admin/${_FP_LCID}/webadmin.css.bak ] ; then \ + ${RM} ${FP_DIR}/admin/${_FP_LCID}/webadmin.css.bak ; \ + fi @if [ ! -f ${FP_DIR}/help/${_FP_LCID}/wsgindex.htm ]; then \ ${CP} ${FP_DIR}/help/${_FP_LCID}/wsgIndex.htm ${FP_DIR}/help/${_FP_LCID}/wsgindex.htm ; \ fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302220447.h1M4lHlA017208>