pkgsrc/www/wordpress/Makefile
morr 0ab33eee7f Update to wordpress-3.1.
Changes:
* Internal Linking - click a button for an internal link and it allows
you to search for a post or browse a list of existing content and select it
for inclusion.
* Admin Bar - contains various links to useful admin screens. By default,
the admin bar is displayed when a user is logged in and visiting the site
and is not displayed in admin screens for single blog installs. For multisite
installs, the admin bar is displayed both when visiting the site and in the
admin screens.
* Streamlined Writing Interface - new users of WordPress will find the write
screen much less cluttered than before, as more of the options are hidden by
default. You can click on Screen Options in the top right to bring them back.
* Post Formats - meta information that can be used by themes to customize
presentation of a post. Read more in the article Post Formats.
* Network Admin - move Super Admin menus and related pages out of the regular
admin and into a new Network Admin screen.
* List-type Admin Screens - sortable columns for list-type screens and better
pagination.
* Exporter/Importer Overhaul - many under the hood changes including adding
author information, better handling for taxonomies and terms, and proper
support for navigation menus.
* Custom Content Type Improvements - allows developers to generate archive
pages, and have better menu and capability controls.
* Advanced Queries - allows developers to query multiple taxonomies and custom
fields.
* Refreshed Blue Admin Color Scheme - puts the focus more squarely on your
content.

More changes at http://codex.wordpress.org/Version_3.1
2011-02-27 10:30:16 +00:00

64 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2011/02/27 10:30:16 morr Exp $
DISTNAME= wordpress-${VERSION}
VERSION= 3.1
CATEGORIES= www
MASTER_SITES= http://wordpress.org/
MAINTAINER= morr@NetBSD.org
HOMEPAGE= http://wordpress.org/
COMMENT= Blogging tool written in php
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"
.include "options.mk"
NO_BUILD= yes
WRKSRC= ${WRKDIR}/wordpress
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
PKG_GROUPS_VARS= WWW_GROUP
PKG_USERS_VARS= WWW_USER
BUILD_DEFS+= WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP
EGDIR= ${PREFIX}/share/examples/wordpress
DOCDIR= ${PREFIX}/share/doc/wordpress
WPHOME= ${PREFIX}/share/wordpress
FILES_SUBST+= WPHOME=${WPHOME}
MESSAGE_SUBST+= DOCDIR=${DOCDIR}
CONF_FILES+= ${EGDIR}/wordpress.conf ${PKG_SYSCONFDIR}/wordpress.conf
CONF_FILES_PERMS+= ${EGDIR}/wp-config-sample.php ${WPHOME}/wp-config.php \
${WWW_USER} ${WWW_GROUP} 0640
OWN_DIRS_PERMS+= ${WPHOME}/wp-content/uploads \
${WWW_USER} ${WWW_GROUP} 0750
INSTALLATION_DIRS+= ${DOCDIR} ${WPHOME} ${EGDIR}
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.3:../../databases/php-mysql
do-install:
${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/wp-config-sample.php ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${FILESDIR}/wordpress.conf ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/readme.html
${RM} ${WRKSRC}/license.txt
${RM} ${WRKSRC}/wp-config-sample.php
cd ${WRKSRC} && pax -rw -pmp . ${DESTDIR}${WPHOME}
${TOUCH} ${DESTDIR}${WPHOME}/wp-content/plugins/index.html
${FIND} ${DESTDIR}${WPHOME} \
-type d -exec ${CHMOD} ${PKGDIRMODE} "{}" \;
${FIND} ${DESTDIR}${WPHOME} \
-type f -exec ${CHMOD} ${SHAREMODE} "{}" \;
.include "../../mk/bsd.pkg.mk"