summaryrefslogtreecommitdiff
path: root/german/wordpress/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-06-05 16:27:47 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-06-05 16:27:47 +0000
commit155356e72c05a71f332658075a03803eafaf7e97 (patch)
tree73f4a9db7f2efabe47b7af7d0eacd2157e576e2c /german/wordpress/Makefile
parentFix plist (diff)
German-localized version of wordpress.
WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. More simply, Wordpress is what you use when you want to work with your blogging software, not fight it. PR: ports/98448 Submitted by: miwi Approved by: krion (mentor)
Notes
Notes: svn path=/head/; revision=164473
Diffstat (limited to 'german/wordpress/Makefile')
-rw-r--r--german/wordpress/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/german/wordpress/Makefile b/german/wordpress/Makefile
new file mode 100644
index 000000000000..a93ead031f7f
--- /dev/null
+++ b/german/wordpress/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: wordpress
+# Date created: 2006-06-03
+# Whom: Martin Wilke <miwi@FreeBSD.org>
+# (based on wordpress by Elvis Chiang)
+#
+# $FreeBSD$
+#
+
+PORTNAME= wordpress
+PORTVERSION= 2.0.3
+CATEGORIES= german www
+MASTER_SITES= http://files.wordpress.de/uploads/
+DISTNAME= wp_de_20
+PKGNAMEPREFIX= de-
+
+MAINTAINER= miwi@FreeBSD.org
+COMMENT= A state-of-the-art semantic personal publishing platform
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_ZIP= YES
+USE_PHP= mysql pcre xml
+NO_BUILD= YES
+WANT_PHP_WEB= YES
+WORDPRESS?= www/wordpress
+PLIST_SUB+= WORDPRESS=${WORDPRESS}
+PLIST= ${WRKDIR}/pkg-plist
+
+PORTDOCS= license.txt readme.html liesmich.html
+
+pre-everything::
+ @${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
+ @${ECHO_CMD} ""
+ @sleep 1
+
+pre-install:
+ cd ${WRKSRC} && ${FIND} -s * -type f | \
+ ${SED} -e 's|^|${WORDPRESS}/|' > ${PLIST} \
+ && ${FIND} -d * -type d | \
+ ${SED} -e 's|^|@dirrm ${WORDPRESS}/|' >> ${PLIST} \
+ && ${ECHO_CMD} @dirrm ${WORDPRESS} >> ${PLIST} \
+ && ${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
+ if [! -f ${WRKSRC}/wp-config-sample.php]; then ${CP} \
+ ${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
+
+do-install:
+ -@${MKDIR} ${PREFIX}/${WORDPRESS}
+ @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${WORDPRESS}
+ @${CHMOD} 755 ${PREFIX}/${WORDPRESS}
+ ${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESS}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
+.endfor
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>