summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca>2010-07-05 14:39:32 +0000
committertaca <taca>2010-07-05 14:39:32 +0000
commitfacb0f21368652d02c73f528966ef9d24033204c (patch)
treea36b136c8d6a264236c43fd5488903f2bc0a961d
parent91c86761baef537f643b3da36a8cc2b37780bed0 (diff)
downloadpkgsrc-facb0f21368652d02c73f528966ef9d24033204c.tar.gz
Importing common framework for contao, successor name of typolight.
-rw-r--r--www/contao/Makefile.common37
-rw-r--r--www/contao/Makefile.example41
-rw-r--r--www/contao/files/README24
-rw-r--r--www/contao/files/contao.conf17
-rw-r--r--www/contao/options.mk12
5 files changed, 131 insertions, 0 deletions
diff --git a/www/contao/Makefile.common b/www/contao/Makefile.common
new file mode 100644
index 00000000000..a1591a981ed
--- /dev/null
+++ b/www/contao/Makefile.common
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2010/07/05 14:39:32 taca Exp $
+#
+# used by www/contao29/Makefile
+# used by www/contao29-example/Makefile
+# used by www/contao29-translations/Makefile
+#
+
+CT_VER?= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
+CT_PKGVER= ${CT_VERSION:S/.RC/rc/}
+
+FILES_SUBST+= PAX=${PAX} CT_EGDIR=${CT_EGDIR:Q} CT_WEBDIR=${CT_WEBDIR:Q} \
+ WWWGRP=${APACHE_GROUP:Q} WWWOWN=${APACHE_USER:Q}
+MESSAGE_SUBST+= CT_VER=${CT_VER}
+PLIST_SUBST+= CT_DOCDIR=${CT_DOCDIR:Q} CT_EGDIR=${CT_EGDIR:Q} \
+ CT_WEBDIR=${CT_WEBDIR:Q}
+
+PRINT_PLIST_AWK+= /^${CT_WEBDIR:S|/|\\/|g}/ \
+ { gsub(/${CT_WEBDIR:S|/|\\/|g}/, "$${CT_WEBDIR}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^${CT_DOCDIR:S|/|\\/|g}/ \
+ { gsub(/${CT_DOCDIR:S|/|\\/|g}/, "$${CT_DOCDIR}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^${CT_EGDIR:S|/|\\/|g}/ \
+ { gsub(/${CT_EGDIR:S|/|\\/|g}/, "$${CT_EGDIR}"); \
+ print; next; }
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_SYSCONFSUBDIR?= contao${CT_VER}
+
+CT_DOCDIR?= share/doc/contao${CT_VER}
+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/contao/Makefile.example b/www/contao/Makefile.example
new file mode 100644
index 00000000000..11a9d821002
--- /dev/null
+++ b/www/contao/Makefile.example
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile.example,v 1.1.1.1 2010/07/05 14:39:32 taca Exp $
+#
+# used by www/contao29-example/Makefile
+#
+
+DISTNAME= contao-${CT_VERSION}
+PKGNAME= contao${CT_VER}-example-${CT_PKGVER}
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= http://www.contao.org/
+COMMENT= Sample site data for Contao Open Source CMS
+
+DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}
+
+DISTINFO_FILE= ${.CURDIR}/../../www/contao${CT_VER}/distinfo
+
+USE_TOOLS= pax
+NO_BUILD= yes
+NO_CONFIGURE= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WWW_EG_FILES= music_academy.css tl_files/music_academy
+WWW_FILE?= templates/music_academy.sql
+
+.for f in ${WWW_EG_FILES} ${WWW_FILE}
+EXTRACT_ELEMENTS+= ${DISTNAME}/${f}
+.endfor
+
+PKG_GROUPS_VARS+= APACHE_GROUP
+PKG_USERS_VARS+= APACHE_USER
+
+INSTALLATION_DIRS+= ${CT_WEBDIR}/templates
+
+do-install:
+ cd ${WRKSRC}; \
+ pax -rw -pm ${WWW_EG_FILES} ${DESTDIR}${PREFIX}/${CT_EGDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} ${WWW_FILE} \
+ ${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates
diff --git a/www/contao/files/README b/www/contao/files/README
new file mode 100644
index 00000000000..05c60c446d0
--- /dev/null
+++ b/www/contao/files/README
@@ -0,0 +1,24 @@
+$NetBSD: README,v 1.1.1.1 2010/07/05 14:39:32 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/contao/files/contao.conf b/www/contao/files/contao.conf
new file mode 100644
index 00000000000..8f8a6c576ea
--- /dev/null
+++ b/www/contao/files/contao.conf
@@ -0,0 +1,17 @@
+# $NetBSD: contao.conf,v 1.1.1.1 2010/07/05 14:39:32 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>
diff --git a/www/contao/options.mk b/www/contao/options.mk
new file mode 100644
index 00000000000..6bd0483ac00
--- /dev/null
+++ b/www/contao/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1.1.1 2010/07/05 14:39:32 taca Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.contao${CT_VER}
+PKG_SUPPORTED_OPTIONS= contao-liveupdate
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcontao-liveupdate)
+FILES_SUBST+= CT_UPDATE=YES
+.else
+FILES_SUBST+= CT_UPDATE=NO
+.endif