From 861727c9f8925de12331c2ac43a43b01387b0652 Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Sat, 27 Nov 2010 19:17:06 +0700 Subject: [PATCH] add WordPress --- web/wordpress/wordpress.SlackBuild | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 web/wordpress/wordpress.SlackBuild diff --git a/web/wordpress/wordpress.SlackBuild b/web/wordpress/wordpress.SlackBuild new file mode 100755 index 00000000..8647f966 --- /dev/null +++ b/web/wordpress/wordpress.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=trunk$(date +%Y.%m.%d_%H.%M) +BUILD=1 +PACKAGER=cyco +ARCH=$(uname -m) + +REPOSITORIES=/home/cycojesus/projets/packages/repositories + +TMP=/tmp/$PACKAGER +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES +( cd $REPOSITORIES + if [ -e $REPOSITORIES/$PRGNAM ] ; then + ( cd $REPOSITORIES/$PRGNAM + svn up + ) + else + svn co http://core.svn.wordpress.org/trunk/ $REPOSITORIES/$PRGNAM + fi +) + +mkdir -p $PKG/srv/www/htdocs +cp -R $REPOSITORIES/$PRGNAM $PKG/srv/www/htdocs/ +find $PKG/srv/www/htdocs -name \.svn\* -exec rm -fr {} \; + +( cd $PKG + mkdir -p install + cat < install/slack-desc +$PRGNAM: $PRGNAM (Blog/CMs engine) +$PRGNAM: +$PRGNAM: WordPress is web software you can use to create a beautiful website or blog. +$PRGNAM: We like to say that WordPress is both free and priceless at the same time. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://wordpress.org/ +$PRGNAM: +EOF + + chown -R root:root * + + makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz +)