ports/185220: [MAINTAINER] www/MT: update to 5.2.9,1
Takefu
takefu at airport.fm
Fri Dec 27 05:10:00 UTC 2013
>Number: 185220
>Category: ports
>Synopsis: [MAINTAINER] www/MT: update to 5.2.9,1
>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 Dec 27 05:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Takefu
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
FOX Amateur Radio Club
>Environment:
System: FreeBSD RELENG84-ix86.localIPv4.airport.fm 8.4-RELEASE-p4 FreeBSD 8.4-RELEASE-p4 #0: Wed Sep 25 14:55:36 JST 2013
>Description:
- Update to 5.2.9,1
www/MT
russian/MT
- fix
StageDir
Database Option
Generated with FreeBSD Port Tools 0.99_11 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:
--- MT-5.2.9,1.patch begins here ---
diff -ruN /usr/ports/www/MT/Makefile ./Makefile
--- /usr/ports/www/MT/Makefile 2013-09-21 08:36:50.000000000 +0900
+++ ./Makefile 2013-12-27 11:45:38.000000000 +0900
@@ -2,11 +2,12 @@
# $FreeBSD: www/MT/Makefile 327776 2013-09-20 23:36:50Z bapt $
PORTNAME= MT
-PORTVERSION= 5.2.7
+PORTVERSION= 5.2.9
PORTEPOCH= 1
CATEGORIES?= www
MASTER_SITES?= http://www.movabletype.org/downloads/stable/\
- http://www.movabletype.org/downloads/archives/5.x/
+ http://www.movabletype.org/downloads/archives/5.x/\
+ http://www.movabletype.jp/downloads/stable/
DISTNAME?= MTOS-${PORTVERSION}
MAINTAINER?= takefu at airport.fm
@@ -18,33 +19,28 @@
p5-Image-Size>=0:${PORTSDIR}/graphics/p5-Image-Size
NO_OPTIONS_SORT= yes
-OPTIONS_DEFINE= APACHE MYSQL SSL TLS\
- OPTIONAL_MODULES ADDITIONAL_MODULES\
- PGSQL ORACLE ODBC SQLITE2 SQLITE PSGI
+OPTIONS_DEFINE= APACHE SSL TLS PSGI\
+ OPTIONAL_MODULES ADDITIONAL_MODULES
OPTIONS_DEFAULT= MYSQL OPTIONAL_MODULES
+OPTIONS_SINGLE= DB
+OPTIONS_SINGLE_DB= MYSQL PGSQL ORACLE ODBC SQLITE2 SQLITE
OPTIONAL_MODULES_DESC= Optional Perl Modules
ADDITIONAL_MODULES_DESC=Additional Perl modules
PSGI_DESC= Perl Web Server Gateway Interface
-
+DB_DESC= Choose Database
PGSQL_DESC= PostgreSQL database support[obsolete]
SQLITE_DESC= SQLite3 database support[obsolete]
SQLITE2_DESC= SQLite2 database support[obsolete]
-NO_STAGE= yes
.include <bsd.port.options.mk>
DATADIR= www/data
CGIDIR= www/cgi-bin/mt
-PLIST_SUB+= DATADIR=${DATADIR}\
- CGIDIR=${CGIDIR}\
- DB_DIR=${DB_DIR}
+PLIST_SUB+= DATADIR=${DATADIR} CGIDIR=${CGIDIR} DB_DIR=${DB_DIR}
SUB_FILES+= pkg-install
-SUB_LIST+= DATADIR=${DATADIR}\
- CGIDIR=${CGIDIR}\
+SUB_LIST+= DATADIR=${DATADIR} CGIDIR=${CGIDIR} DB_DIR=${DB_DIR}\
PACKAGENAME=${PKGNAMEPREFIX}${PORTNAME}\
- DB_DIR=${DB_DIR}\
- WWWOWN=${WWWOWN}\
- WWWGRP=${WWWGRP}
+ WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} STAGEDIR=${STAGEDIR}
USES= perl5
USE_PERL5= run
@@ -95,25 +91,25 @@
RUN_DEPENDS+= p5-Net-SMTP-TLS>=0:${PORTSDIR}/mail/p5-Net-SMTP-TLS
. endif
.endif
-.if ${PORT_OPTIONS:MMYSQL} && empty(PORT_OPTIONS:MPGSQL)
+.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= server
DB_DIR?= ${BASEDIR}/var/db/mysql/WEBLOG_DATABASEDIR
RUN_DEPENDS+= p5-DBD-mysql>=2.9005:${PORTSDIR}/databases/p5-DBD-mysql
.endif
-.if ${PORT_OPTIONS:MPGSQL} && empty(PORT_OPTIONS:MMYSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= server
RUN_DEPENDS+= p5-DBD-Pg>=1.32:${PORTSDIR}/databases/p5-DBD-Pg
.endif
-.if empty${PORT_OPTIONS:MPGSQL} && empty(PORT_OPTIONS:MMYSQL)
+.if empty(PORT_OPTIONS:MPGSQL) && empty(PORT_OPTIONS:MMYSQL)
DB_DIR?= ${PREFIX}/${CGIDIR}/db
-. if ${PORT_OPTIONS:MSQLITE} && empty(PORT_OPTIONS:MSQLITE2)
+. if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE= yes
RUN_DEPENDS+= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
-. elif ${PORT_OPTIONS:MSQLITE2} && empty(PORT_OPTIONS:MSQLITE)
+. endif
+. if ${PORT_OPTIONS:MSQLITE2}
USE_SQLITE= 2
RUN_DEPENDS+= p5-DBD-SQLite2>=0:${PORTSDIR}/databases/p5-DBD-SQLite2
. endif
-WITH_DEFAULTDB= yes
.endif
.if ${PORT_OPTIONS:MORACLE}
RUN_DEPENDS+= p5-DBD-Oracle>=0.19:${PORTSDIR}/databases/p5-DBD-Oracle
@@ -125,7 +121,14 @@
USE_APACHE_RUN= 22+
SUB_FILES+= MT.conf
SUB_LIST+= APACHEETCDIR=${PREFIX}/${APACHEETCDIR}
-PLIST_SUB+= APACHE=""
+.include <bsd.port.pre.mk>
+. if ${APACHE_VERSION} == 24
+PLIST_SUB+= APACHE="" APACHE24=""
+SUB_LIST+= APACHE24=""
+. else
+PLIST_SUB+= APACHE="" APACHE24="\#"
+SUB_LIST+= APACHE24="\#"
+. endif
.else
PLIST_SUB+= APACHE="@comment "
.endif
@@ -159,17 +162,18 @@
do-install:
@cd ${WRKSRC} && ${FIND} * -name "*.orig" -delete
@${ECHO_MSG} "Installing cgi under ${PREFIX}/${CGIDIR}/"
- @${MKDIR} ${PREFIX}/${CGIDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${CGIDIR}
@cd ${WRKSRC} && ${CP} -R *.cgi mt.psgi mt-config.cgi-original \
alt-tmpl default_templates extlib import lib php plugins \
search_templates themes tmpl tools COPYING index.html readme.html \
- ${PREFIX}/${CGIDIR}
+ ${STAGEDIR}${PREFIX}/${CGIDIR}
@${ECHO_MSG} "Installing data under ${PREFIX}/${DATADIR}/"
- @${MKDIR} ${PREFIX}/${DATADIR}
- @cd ${WRKSRC} && ${CP} -R mt-static ${PREFIX}/${DATADIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}
+ @cd ${WRKSRC} && ${CP} -R mt-static ${STAGEDIR}${PREFIX}/${DATADIR}
post-install:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL ${WITH_DEFAULTDB}
+ @${SETENV} PKG_PREFIX=${PREFIX} STAGE=${STAGEDIR}\
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL ${DB_DIR}
@${ECHO_MSG} "*****************************************************************"
@${ECHO_CMD} ""
@${ECHO_MSG} "You have just installed the movabletype."
@@ -184,9 +188,9 @@
@${ECHO_CMD} ""
@${CAT} ${WRKDIR}/MT.conf
@${ECHO_CMD} ""
- @${MKDIR} ${PREFIX}/${APACHEETCDIR}/Includes
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes
@${INSTALL_DATA} ${WRKDIR}/MT.conf \
- ${PREFIX}/${APACHEETCDIR}/Includes/MT.conf
+ ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes/MT.conf
.else
@${ECHO_CMD} ""
.endif
diff -ruN /usr/ports/www/MT/distinfo ./distinfo
--- /usr/ports/www/MT/distinfo 2013-07-07 04:58:51.000000000 +0900
+++ ./distinfo 2013-12-12 10:17:49.000000000 +0900
@@ -1,2 +1,4 @@
-SHA256 (MTOS-5.2.7.tar.gz) = 74078416b80aa5314fd6e85c7fa562d1f77a0e236a0137338c50c88b27185653
-SIZE (MTOS-5.2.7.tar.gz) = 7965020
+SHA256 (MTOS-5.2.9.tar.gz) = 14d0dfeec17c28a77da101d9d69e17e45cb4f1fae322ac7529fb2378f5d76e52
+SIZE (MTOS-5.2.9.tar.gz) = 7965907
+SHA256 (MTOS-5.2.9-ru.tar.gz) = cd088a6f330292ed37efa8b3f0c2d4d13b22e54f274bf0237932ad6b44533254
+SIZE (MTOS-5.2.9-ru.tar.gz) = 8095257
diff -ruN /usr/ports/www/MT/files/MT.conf.in ./files/MT.conf.in
--- /usr/ports/www/MT/files/MT.conf.in 2013-02-24 01:54:51.000000000 +0900
+++ ./files/MT.conf.in 2013-12-26 13:24:08.000000000 +0900
@@ -13,6 +13,8 @@
Options None
Order allow,deny
Allow from all
+%%APACHE24%% Require all granted
+%%APACHE24%% SetHandler cgi-script
</Directory>
<Directory "%%PREFIX%%/%%DATADIR%%/mt-static">
Options None
diff -ruN /usr/ports/www/MT/files/pkg-install.in ./files/pkg-install.in
--- /usr/ports/www/MT/files/pkg-install.in 2013-02-24 01:54:51.000000000 +0900
+++ ./files/pkg-install.in 2013-12-27 11:42:24.000000000 +0900
@@ -4,21 +4,21 @@
;;
POST-INSTALL)
- if [ -n "$3" ]; then
- mkdir -p -m 755 %%DB_DIR%%
- chown -R %%WWWOWN%%:%%WWWGRP%% %%DB_DIR%%
+ if [ "X"$3 != "X" ]; then
+ mkdir -p -m 755 ${STAGE}%%DB_DIR%%
+ chown -R %%WWWOWN%%:%%WWWGRP%% ${STAGE}%%DB_DIR%%
fi
chown -R %%WWWOWN%%:%%WWWGRP%%\
- %%PREFIX%%/%%CGIDIR%%\
- %%PREFIX%%/%%DATADIR%%
+ ${STAGE}%%PREFIX%%/%%CGIDIR%%\
+ ${STAGE}%%PREFIX%%/%%DATADIR%%
;;
*)
;;
esac
-mkdir -p -m 755 %%PREFIX%%/%%CGIDIR%%/import\
- %%PREFIX%%/%%CGIDIR%%/alt-tmpl\
- %%PREFIX%%/%%CGIDIR%%/extlib/MT/L10N\
- %%PREFIX%%/%%CGIDIR%%/php/extlib/smarty/demo/templates_c\
- %%PREFIX%%/%%CGIDIR%%/php/plugins\
- %%PREFIX%%/%%DATADIR%%/mt-static/support
+mkdir -p -m 755 ${STAGE}%%PREFIX%%/%%CGIDIR%%/import\
+ ${STAGE}%%PREFIX%%/%%CGIDIR%%/alt-tmpl\
+ ${STAGE}%%PREFIX%%/%%CGIDIR%%/extlib/MT/L10N\
+ ${STAGE}%%PREFIX%%/%%CGIDIR%%/php/extlib/smarty/demo/templates_c\
+ ${STAGE}%%PREFIX%%/%%CGIDIR%%/php/plugins\
+ ${STAGE}%%PREFIX%%/%%DATADIR%%/mt-static/support
exit
diff -ruN /usr/ports/www/MT/pkg-plist ./pkg-plist
--- /usr/ports/www/MT/pkg-plist 2013-07-07 04:58:51.000000000 +0900
+++ ./pkg-plist 2013-12-27 11:42:14.000000000 +0900
@@ -3571,7 +3571,7 @@
@dirrm %%CGIDIR%%/php/lib
@dirrm %%CGIDIR%%/php/tmpl
@dirrm %%CGIDIR%%/php
- at dirrmtry %%CGIDIR%%/db
+ at dirrmtry %%DB_DIR%%
@dirrm %%CGIDIR%%
@dirrm %%DATADIR%%/mt-static/js/flash
@dirrm %%DATADIR%%/mt-static/js/editor/editor
--- MT-5.2.9,1.patch ends here ---
--- ru-MT-5.2.9,1.patch begins here ---
diff -ruN /usr/ports/russian/MT/Makefile ./Makefile
--- /usr/ports/russian/MT/Makefile 2013-09-21 07:46:16.000000000 +0900
+++ ./Makefile 2013-12-12 10:14:23.000000000 +0900
@@ -7,8 +7,6 @@
COMMENT= Russian localization of the MovableType publishing system
-IGNORE= source file not found
-
MASTERDIR= ${.CURDIR}/../../www/MT
MT_LANG= ${PKGNAMEPREFIX:S,-,,U}
CONFLICTS= MT-[2-5].* de-MT-[2-5].* fr-MT-[2-5].* ja-MT-[2-5].*
@@ -16,5 +14,4 @@
MT_DOCS_URL= https://github.com/saahov/movabletype/wiki
MT_UPGRADE_URL= http://movable-type.ru/wiki/%D0%9E%D0%B1%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_Movable_Type
-NO_STAGE= yes
.include "${MASTERDIR}/Makefile"
--- ru-MT-5.2.9,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list