summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/contao/Makefile.common18
-rw-r--r--www/contao211/files/README24
-rw-r--r--www/contao211/files/contao.conf17
3 files changed, 52 insertions, 7 deletions
diff --git a/www/contao/Makefile.common b/www/contao/Makefile.common
index d49ef9547f6..dfa26bf5bab 100644
--- a/www/contao/Makefile.common
+++ b/www/contao/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.35 2013/05/23 14:58:34 taca Exp $
+# $NetBSD: Makefile.common,v 1.36 2013/06/27 15:48:29 taca Exp $
#
# used by www/contao/Makefile.example"
# used by www/contao211/Makefile
@@ -15,18 +15,24 @@ CT_VERS?= 211
.if ${CT_VERS} == "211"
CT_VERSION= ${CT211_VERSION}
-CT_FILES= tl_files
.elif ${CT_VERS} == "30"
CT_VERSION= ${CT300_VERSION}
-CT_FILES= files
-CT_DIST_SUBDIR= contao-20120109
.elif ${CT_VERS} == "31"
CT_VERSION= ${CT310_VERSION}
-CT_FILES= files
.else
.error "Illegal version specified: ${CT_VERS}"
.endif
+.if ${CT_VERS} == "211"
+CT_FILES= tl_files
+.else
+. if ${CT_VERS} == "30"
+CT_DIST_SUBDIR= contao-20120109
+. endif
+CT_FILES= files
+FILESDIR= ${.CURDIR}/../../www/contao/files
+.endif
+
CT_VER= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
CT_VERBASE= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1.\2/}
CT_PKGVER= ${CT_VERSION:S/.RC/rc/}
@@ -56,5 +62,3 @@ CT_EGDIR?= share/examples/contao${CT_VER}
CT_WEBDIR?= share/contao${CT_VER}
BUILD_DEFS+= APACHE_USER CT_DOCDIR CT_EGDIR CT_WEBDIR
-
-FILESDIR= ${.CURDIR}/../../www/contao/files
diff --git a/www/contao211/files/README b/www/contao211/files/README
new file mode 100644
index 00000000000..199fc8fda6a
--- /dev/null
+++ b/www/contao211/files/README
@@ -0,0 +1,24 @@
+$NetBSD: README,v 1.1 2013/06/27 15:48:29 taca Exp $
+
+1. First, create a database for Contao Open Source CMS.
+
+ # mysqladmin -p -u <administrator> create <dbname>.
+
+2. Next, create a user for accessing that database.
+
+ # mysql -p -u <administrator> <dbname>
+ mysql> grant select, insert, update, delete, create, drop,
+ index, alter, create temporary tables, lock tables on
+ <dbname>.* to '<dbuser>'@'localhost'
+ identified by '<dbpass>' ;
+
+3. Edit ${PKG_SYSCONFDIR}/contao.conf and include from httpd.conf.
+
+ Include ${PKG_SYSCONFDIR}/contao.conf
+
+ Then reload or restart apache.
+
+4. Start setup from Contao installer. If your setup Contao's
+ URL as http://www.example.org/, the installer's URL will be
+ http://www.example.org/contao/install.php.
+
diff --git a/www/contao211/files/contao.conf b/www/contao211/files/contao.conf
new file mode 100644
index 00000000000..2d4f6a37a50
--- /dev/null
+++ b/www/contao211/files/contao.conf
@@ -0,0 +1,17 @@
+# $NetBSD: contao.conf,v 1.1 2013/06/27 15:48:29 taca Exp $
+
+#
+# If you set DocumentRoot to "@PREFIX@/@CT_WEBDIR@",
+# Set DocuemntRoot of Apache to it.
+# If you want to access contao via sub directory, uncomment
+# below line. (http://www.example.org/subdir/)
+#
+#Alias /subdir "@PREFIX@/@CT_WEBDIR@"
+
+<Directory "@PREFIX@/@CT_WEBDIR@">
+ DirectoryIndex index.php index.html
+ Options Indexes SymLinksIfOwnerMatch FollowSymLinks
+ AllowOverride All
+ Order allow,deny
+ Allow from all
+</Directory>