Bug 96301 - [patch] Upgrade instiki to 0.11.0
Summary: [patch] Upgrade instiki to 0.11.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 05:50 UTC by Alastair Rankine
Modified: 2006-05-01 15:34 UTC (History)
0 users

See Also:


Attachments
instiki-0.11.0.patch (136.85 KB, patch)
2006-04-25 05:50 UTC, Alastair Rankine
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Rankine 2006-04-25 05:50:13 UTC
The enclosed patch upgrades the instiki port to version 0.11.0. Also
it fixes some problems with the startup script.

Fix: The enclosed patch fixes some problems with the startup script and
also upgrades the port to 0.11.0.

In this release, the storage has moved to an SQL database. Several are
supported, but I have picked SQLite (and introduced a dependency on
it). This is likely to be OK for most purposes, but I may enhance the
port to allow selection of other databases (eg MySQL, PostgreSQL) in
future.

However the change in storage method means that migration of data from
a previous installation involves manual intervention, and
unfortunately requires the previous installation to be present prior
to exporting the data.

The following is suggested text for the /usr/ports/UPDATING file:

-=- UPDATING text follows -=-

The instiki port has changed storage methods to use an SQL
database. The README contains instructions on how to migrate existing
wiki data to the new storage methods. The following is a copy of the
relevant information, tailored for FreeBSD port users:

1. cd /usr/ports/www/instiki; make extract
2. Execute 
      ruby work/instiki-0.11.0/script/import_storage \
          -t /usr/local/instiki/storage/2500 \
          -i /usr/local/instiki \
          -d sqlite \
          -o [some location]/instiki_import.sql
3. This will produce instiki_import.sql file in the specified location.
   Open it in a text editor and inspect carefully.
4. Upgrade your instiki port normally (eg portupgrade)
5. Connect to your production database, eg:
       sqlite3 /usr/local/instiki/db/production.db.sqlite3
   and have it execute instiki_import.sql, eg:
       .read [some location]/instiki_import.sql
6. Execute
       ruby /usr/local/instiki/script/reset_references production
   (this script parses all pages for crosslinks between them, so it
   may take a few minutes)

-=- end UPDATING -=-
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-25 05:52:40 UTC
Class Changed
From-To: update->maintainer-update

Fix category (submitter is maintainer)
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2006-04-26 09:30:24 UTC
State Changed
From-To: open->feedback

This port leaves one file behind when uninstalled: 

/usr/local/instiki/db/production.db.sqlite3 

should I add it to the pkg-plist? 


Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2006-04-26 09:30:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-01 15:34:00 UTC
State Changed
From-To: feedback->closed

Committed, thanks!