ports/54382: [patch] fix manual fetch logic for www/MT
Mark Linimon
linimon at lonesome.com
Fri Jul 11 15:20:08 UTC 2003
>Number: 54382
>Category: ports
>Synopsis: [patch] fix manual fetch logic for www/MT
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 11 08:20:06 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Mark Linimon
>Release: FreeBSD-4.7
>Organization:
FreeBSD
>Environment:
System: FreeBSD lonesome.lonesome.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 8 23:46:29 CST 2002 root at lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA i386
>Description:
The bento errorlogs report being unable to fetch this port.
This turns out to be due to the conditional logic being
included before the inclusion of bsd.port.pre.mk.
>How-To-Repeat:
make fetch
>Fix:
The following fix brings this port exactly into line with
the logic in java/jdk14, and, in addition, clarifies the
download instructions.
--- MT/Makefile.dist Fri Jul 11 09:57:24 2003
+++ MT/Makefile Fri Jul 11 10:14:54 2003
@@ -14,10 +14,6 @@
DISTNAME= ${PORTNAME}-${PORTVERSION}-full-lib
DOWNLOAD_URL?= http://www.movabletype.org/download.shtml
-.if !exists(${DISTDIR}/${DISTFILES})
-IGNORE= Please download the distfiles from ${DOWNLOAD_URL} and read \
- the license agreement before download.
-.endif
DATADIR= www/data/mt
CGIDIR= www/cgi-bin/mt
@@ -39,6 +35,16 @@
NO_BUILD= yes
.include <bsd.port.pre.mk>
+
+.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
+ECHO_MSG=/usr/bin/printf
+IGNORE= :\n\
+Because of licensing restrictions, you must fetch the source distribution\n\
+manually. Please access ${DOWNLOAD_URL}, follow\n\
+the registration instructions, select \"full version, with libraries\" and\n\
+\"gzipped tar\", download the file into ${DISTDIR}/, and then\n\
+run make again.\n
+.endif
do-install:
@cd ${WRKSRC} && ${FIND} * -name "*.orig" -delete
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list