diff options
-rw-r--r-- | www/MT/Makefile | 18 | ||||
-rw-r--r-- | www/MT/distinfo | 2 | ||||
-rw-r--r-- | www/MT/pkg-plist | 4 |
3 files changed, 20 insertions, 4 deletions
diff --git a/www/MT/Makefile b/www/MT/Makefile index 58c805358d86..1fc9ca73fb96 100644 --- a/www/MT/Makefile +++ b/www/MT/Makefile @@ -9,7 +9,9 @@ PORTNAME= MT PORTVERSION= 2.661 PORTREVISION= 1 CATEGORIES= www +.if defined(WITH_OLD_DISTFILE) DISTNAME= ${PORTNAME}-${PORTVERSION}-full-lib +.endif MAINTAINER= arved@FreeBSD.org COMMENT= A web-based personal publishing system like weblogs @@ -34,13 +36,21 @@ USE_PERL5_RUN= yes NO_BUILD= yes NO_PACKAGE= "License does not permit distribution" +.if defined(WITH_OLD_DISTFILE) +PLIST_SUB+= OLD="" +.else +WRKSRC= ${WRKDIR}/MT-${PORTVERSION}-full-lib +PLIST_SUB+= OLD="@comment " +.endif + .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. Unfortunately there is no offical download URL anymore.\n\ +manually. Goto http://www.movabletype.org/ register as if you are going\n\ +to download 3.x, and then choosing 2.661 from the list after you log on.\n\ Download the file into ${DISTDIR}/, and then run make again.\n .endif @@ -60,9 +70,13 @@ do-install: ${WRKSRC}/mt-load.cgi > ${PREFIX}/${CGIDIR}/mt-load.cgi @${ECHO_MSG} "Installing data ${PREFIX}/${DATADIR}" @${MKDIR} ${PREFIX}/${DATADIR} - @cd ${WRKSRC} && ${CP} -R LICENSE LICENSE-COMMERCIAL docs images \ + @cd ${WRKSRC} && ${CP} -R docs images \ index.html schemas styles.css \ ${PREFIX}/${DATADIR} +.if defined(WITH_OLD_DISTFILE) + @cd ${WRKSRC}; ${INSTALL_DATA} LICENSE LICENSE-COMMERCIAL \ + ${PREFIX}/${DATADIR} +.endif .if defined(WITH_DEFAULTDB) @${MKDIR} -m 755 ${DB_DIR} @${CHOWN} -R www:www ${DB_DIR} diff --git a/www/MT/distinfo b/www/MT/distinfo index d5dfa8684044..864662ab0d70 100644 --- a/www/MT/distinfo +++ b/www/MT/distinfo @@ -1,2 +1,4 @@ +MD5 (MT-2.661.tar.gz) = 07733e1617d4c8af892665d8b4197ddb +SIZE (MT-2.661.tar.gz) = 811477 MD5 (MT-2.661-full-lib.tar.gz) = 9756572c9a7892cdecd12ac70be96a20 SIZE (MT-2.661-full-lib.tar.gz) = 816641 diff --git a/www/MT/pkg-plist b/www/MT/pkg-plist index 9a5a6c58c678..a13e736dac36 100644 --- a/www/MT/pkg-plist +++ b/www/MT/pkg-plist @@ -243,8 +243,8 @@ %%CGIDIR%%/tmpl/cms/upload_confirm.tmpl %%CGIDIR%%/tmpl/cms/view_log.tmpl %%CGIDIR%%/tmpl/error.tmpl -%%DATADIR%%/LICENSE -%%DATADIR%%/LICENSE-COMMERCIAL +%%OLD%%%%DATADIR%%/LICENSE +%%OLD%%%%DATADIR%%/LICENSE-COMMERCIAL %%DATADIR%%/docs/755.gif %%DATADIR%%/docs/777.gif %%DATADIR%%/docs/box.gif |