Browse Source

new package: wordpress
- wordpress-2.9.2-ja Japanese edition
http://ja.wordpress.org/
- Japanese setup document



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@869 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 14 years ago
parent
commit
2fa6e31540
2 changed files with 284 additions and 0 deletions
  1. 56 0
      w/wordpress/README.ja.wordpress
  2. 228 0
      w/wordpress/wordpress-vl.spec

+ 56 - 0
w/wordpress/README.ja.wordpress

@@ -0,0 +1,56 @@
+WordPress (ワードプレス) は、データベース駆動のオープンソースのブログ/CMS プラ
+ットフォームです。オンラインブログ(weblogやジャーナルともよばれます)を簡単に公開
+することができるように設計されています。
+
+このパッケージをインストール後、ブログを利用するためにいくつかの設定を手動で行う
+必要があります。
+
+1. MySQL に Wordpress のためのデータベースを作成する
+
+まず初めに MySQL データベースにユーザ名とパスワードを使って接続し、Wordpress の
+データベースとユーザ/パスワードを作成します。ここでは localhost の MySQLに接続
+する例を示します。
+
+例)
+  # mysql -u root -p
+  mysql> create database wordpress;
+  Query OK, 1 row affected (0.00 sec)
+
+  mysql> grant all privileges on wordpress.* to wordpress identified by 'wordpress';
+  Query OK, 0 rows affected (0.00 sec)
+
+  mysql> flush privileges;
+  Query OK, 0 rows affected (0.00 sec)
+
+  mysql> exit
+  Bye
+  #
+
+環境に応じて "grant" のユーザ名などを以下の様に変更する必要があるかもしれません。
+ mysql> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress'; 
+ または
+ mysql> grant all privileges on wordpress.* to wordpress@'%' identified by 'wordpress';
+
+これで空のデータベース "wordpress" と、ユーザ "wordpress" がパスワード "wordpress"
+で作成されます。また "wordpress" ユーザには "wordpress" データベースに対して全ての
+権限を与えています。もちろん利用環境に応じて別のデータベース名やユーザ名、パスワード
+を設定し利用することもできます。 ここで指定したデータは次の wordpress 設定ファイルに
+おいて指定することになります。
+
+2. Wordpress 設定ファイルの編集
+
+次に Wordpress の設定ファイル "/etc/wordpress/wp-config.php" を前項で設定したデータ
+に応じて編集する必要があります。これらの設定値は設定ファイルの先頭付近にありますので、
+適切に設定してください。
+
+3. webインタフェースを利用したインストール後処理
+
+上記のデータベース設定が終えて Webサーバを起動したあと、Web ブラウザで次の URL に
+アクセスしてその指示に従って下さい。ここでは Apache HTTP サーバで標準の設定の場合
+を想定しています。
+
+http://localhost/wordpress/wp-admin/install.php
+
+ただしくセットアップが終了すると、管理ツールにおいてデータベース内容の設定や、
+ブログの管理・更新を行うことができるようになります。
+

+ 228 - 0
w/wordpress/wordpress-vl.spec

@@ -0,0 +1,228 @@
+Summary: WordPress blogging software
+Summary(ja): WordPress ブログソフトウエア
+URL: http://www.wordpress.org
+Name: wordpress
+Version: 2.9.2
+Group: Applications/Publishing
+Release: 1%{?_dist_release}
+License: GPLv2
+#Source0: http://wordpress.org/%{name}-%{version}.tar.gz
+Source0: http://ja.wordpress.org/wordpress-%{version}-ja.tar.gz
+Source1: wordpress-httpd-conf
+Source2: README.wordpress
+Source3: README.ja.wordpress
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Requires: php5
+BuildArch: noarch
+
+%description
+Wordpress is an online publishing / weblog package that makes it very easy,
+almost trivial, to get information out to people on the web.
+
+%prep
+%setup -q -n wordpress
+# disable wp_version_check, updates are always installed via rpm
+sed -i -e "s,\(.*\)'wp_version_check'\(.*\),#\1'wp_version_check'\2,g" \
+	wp-includes/update.php
+# disable update_nag() function
+sed -i -e "s,\(.*\)'update_nag'\(.*\),#\1'update_nag'\2,g; \
+	s,\(.*\)\$msg .=\(.*\),\1\$msg .= '';,g;" \
+	wp-admin/includes/update.php
+# fix file encoding
+sed -i -e 's/\r//' license.txt
+
+%install
+mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/wordpress
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/wordpress
+install -m 0644 -D -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/wordpress.conf
+cp -pr * ${RPM_BUILD_ROOT}%{_datadir}/wordpress
+cat wp-config-sample.php | sed -e "s|dirname(__FILE__).'/'|'/usr/share/wordpress/'|g" > \
+	${RPM_BUILD_ROOT}%{_sysconfdir}/wordpress/wp-config.php
+/bin/ln -sf ../../../etc/wordpress/wp-config.php ${RPM_BUILD_ROOT}%{_datadir}/wordpress/wp-config.php
+/bin/cp %{SOURCE2} ./README.vine
+/bin/cp %{SOURCE3} ./README.ja.vine
+# Remove empty files to make rpmlint happy
+find ${RPM_BUILD_ROOT} -type f -empty -exec rm -f {} \;
+# These are docs, remove them from here, docify them later
+rm -f ${RPM_BUILD_ROOT}%{_datadir}/wordpress/{license.txt,readme.html}
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%post
+if [ "$1" -eq 1 ]; then
+  if [ "$LANG"="ja_JP.UTF-8" ]; then
+    echo "Wordpress: MySQL に Wordpress データベースを作成する必要があります。"
+    echo "Wordpress: %{_docdir}/%{name}-%{version}/README.ja を参照して初期設定を行って下さい。"
+  else
+    echo "Wordpress: You may need to setup your MySQL database for Wordpress."
+    echo "Wordpress: Please read "%{_docdir}/%{name}-%{version}/README.ja" to initial setup."
+  fi
+fi
+
+%files
+%defattr(-,root,root,-)
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/wordpress.conf
+%dir %{_datadir}/wordpress
+%{_datadir}/wordpress/wp-admin
+%{_datadir}/wordpress/wp-content
+%{_datadir}/wordpress/wp-includes
+%{_datadir}/wordpress/index.php
+%doc license.txt
+%doc readme.html
+%doc README.fedora
+%{_datadir}/wordpress/wp-atom.php
+%{_datadir}/wordpress/wp-app.php
+%{_datadir}/wordpress/wp-blog-header.php
+%{_datadir}/wordpress/wp-comments-post.php
+%{_datadir}/wordpress/wp-commentsrss2.php
+%{_datadir}/wordpress/wp-config-sample.php
+%{_datadir}/wordpress/wp-config.php
+%config(noreplace) %{_sysconfdir}/wordpress/wp-config.php
+%{_datadir}/wordpress/wp-cron.php
+%{_datadir}/wordpress/wp-feed.php
+%{_datadir}/wordpress/wp-links-opml.php
+%{_datadir}/wordpress/wp-load.php
+%{_datadir}/wordpress/wp-login.php
+%{_datadir}/wordpress/wp-mail.php
+%{_datadir}/wordpress/wp-pass.php
+%{_datadir}/wordpress/wp-rdf.php
+%{_datadir}/wordpress/wp-register.php
+%{_datadir}/wordpress/wp-rss.php
+%{_datadir}/wordpress/wp-rss2.php
+%{_datadir}/wordpress/wp-settings.php
+%{_datadir}/wordpress/wp-trackback.php
+%{_datadir}/wordpress/xmlrpc.php
+%dir %{_sysconfdir}/wordpress
+
+%changelog
+* Tue Apr 20 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.9.2-1
+- initial build for Vine Linux based on fedora package
+- update to 2.9.2 japanese version
+
+* Mon Nov 16 2009 Adrian Reber <adrian@lisas.de> - 2.8.6-2
+- updated to 2.8.6 (Security Release)
+
+* Wed Oct 21 2009 Adrian Reber <adrian@lisas.de> - 2.8.5-1
+- updated to 2.8.5 (Hardening Release)
+
+* Sun Aug 30 2009 Adrian Reber <adrian@lisas.de> - 2.8.4-1
+- updated to 2.8.4 (security fixes were already available with 2.8.3-2)
+
+* Tue Aug 11 2009 Adrian Reber <adrian@lisas.de> - 2.8.3-2
+- another security update to fix "Remote admin reset password":
+  http://lists.grok.org.uk/pipermail/full-disclosure/2009-August/070137.html
+
+* Mon Aug 03 2009 Adrian Reber <adrian@lisas.de> - 2.8.3-1
+- updated to 2.8.3 for security fixes
+
+* Tue Jul 28 2009 Adrian Reber <adrian@lisas.de> - 2.8.2-1
+- updated to 2.8.2 for security fixes - BZ 512900
+- fixed "wrong-script-end-of-line-encoding" of license.txt
+- correctly disable auto update check
+- fixed an error message from 'find' during the build
+
+* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Fri Jul 10 2009 Adrian Reber <adrian@lisas.de> - 2.8.1-1
+- updated to 2.8.1 for security fixes - BZ 510745
+
+* Mon Jun 22 2009 Adrian Reber <adrian@lisas.de> - 2.8-1
+- updated to 2.8
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 11 2009 Adrian Reber <adrian@lisas.de> - 2.7.1-1
+- updated to 2.7.1
+
+* Wed Nov 26 2008 Adrian Reber <adrian@lisas.de> - 2.6.5-2
+- updated to 2.6.5
+
+* Fri Oct 24 2008 Adrian Reber <adrian@lisas.de> - 2.6.3-1
+- updated to 2.6.3
+
+* Tue Sep 09 2008 Adrian Reber <adrian@lisas.de> - 2.6.2-1
+- updated to 2.6.2
+
+* Sun Aug 24 2008 Adrian Reber <adrian@lisas.de> - 2.6.1-1
+- updated to 2.6.1
+
+* Mon Jul 21 2008 Adrian Reber <adrian@lisas.de> - 2.6-1
+- updated to 2.6
+
+* Sat Apr 26 2008 Adrian Reber <adrian@lisas.de> - 2.5.1-1
+- updated to 2.5.1 for security fixes - BZ 444396
+
+* Fri Feb  8 2008 John Berninger <john at ncphotography dot com> - 2.3.3-0
+- update to 2.3.3 for security fixes - BZ 431547
+
+* Sun Dec 30 2007 Adrian Reber <adrian@lisas.de> - 2.3.2-1
+- updated to 2.3.2 (bz 426431, Draft Information Disclosure)
+
+* Tue Oct 30 2007 Adrian Reber <adrian@lisas.de> - 2.3.1-1
+- updated to 2.3.1 (bz 357731, wordpress XSS issue)
+
+* Mon Oct 15 2007 Adrian Reber <adrian@lisas.de> - 2.3-1
+- updated to 2.3
+- disabled wordpress-core-update
+
+* Tue Sep 11 2007 Adrian Reber <adrian@lisas.de> - 2.2.3-0
+- updated to 2.2.3 (security release)
+
+* Wed Aug 29 2007 John Berninger <john at ncphotography dot com> - 2.2.2-0
+- update to upstream 2.2.2
+- license tag update
+
+* Mon Apr 16 2007 john Berninger <jwb at redhat dot com> - 2.1.3-1
+- update to 2.1.3 final - bz235912
+
+* Mon Mar 26 2007 John Berninger <jwb at redhat dot com> - 2.1.3-rc2
+- update to 2.1.3rc2 for bz 233703
+
+* Sat Mar  3 2007 John Berninger <jwb at redhat dot com> - 2.1.2-0
+- update to 2.1.2 - backdoor exploit introduced upstream in 2.1.1 - bz 230825
+
+* Tue Feb 27 2007 John Berninger <jwb at redhat dot com> - 2.1.1-0
+- update to 2.1.1 to fix vuln in bz 229991
+
+* Wed Jan 31 2007 John Berninger <jwb at redhat dot com> - 2.1-0
+- update to v2.1 to fix multiple bz/vuln's
+
+* Sun Dec  3 2006 John Berninger <jwb at redhat dot com> - 2.0.5-2
+- Remove mysql-server dependency
+
+* Sun Dec  3 2006 John Berninger <jwb at redhat dot com> - 2.0.5-1
+- Update to upstream 2.0.5 to fix vuln in bz 213985
+
+* Thu Oct 26 2006 John Berninger <jwb at redhat dot com> - 2.0.4-1
+- Doc fix for BZ 207822
+
+* Sat Aug 12 2006 John Berninger <jwb at redhat dot com> - 2.0.4-0
+- Upstream security vulns - bz 201989
+
+* Sun Jul 23 2006 John Berninger <jwb at redhat dot com> - 2.0.3-4
+- Fix broken upgrade path from FE4
+
+* Tue Jul  4 2006 John Berninger <jwb at redhat dot com> - 2.0.3-3
+- Add a README.fedora file
+- Add php-mysql requires
+
+* Tue Jun 20 2006 John Berninger <jwb at redhat dot com> - 2.0.3-2
+- Remove use of installprefix macro
+- %%{_datadir}/wordpress/wp-config.php is not a config file
+- Symlink is relative
+
+* Mon Jun 19 2006 John Berninger <jwb at redhat dot com> - 2.0.3-1
+- Changes from Jarod Wilson as below
+- Update to 2.0.3
+- Rearrange to use /usr/share/wordpress and /etc/wordpress
+- Remove patch (included upstream)
+- Remove empty files to make rpmlint happy
+
+* Tue May 30 2006 John Berninger <jwb at redhat dot com> - 2.0.2-1
+- Added patch for \n cache injection - upstream changeset #3797
+
+* Sat May 27 2006 John Berninger <jwb at redhat dot com> - 2.0.2-0
+- Initial build