pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/contao Importing common framework for contao, succ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b270bdf528a7
branches: trunk
changeset: 577264:b270bdf528a7
user: taca <taca%pkgsrc.org@localhost>
date: Mon Jul 05 14:39:32 2010 +0000
description:
Importing common framework for contao, successor name of typolight.
diffstat:
www/contao/Makefile.common | 37 +++++++++++++++++++++++++++++++++++++
www/contao/Makefile.example | 41 +++++++++++++++++++++++++++++++++++++++++
www/contao/files/README | 24 ++++++++++++++++++++++++
www/contao/files/contao.conf | 17 +++++++++++++++++
www/contao/options.mk | 12 ++++++++++++
5 files changed, 131 insertions(+), 0 deletions(-)
diffs (151 lines):
diff -r 98e3db2ebc60 -r b270bdf528a7 www/contao/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao/Makefile.common Mon Jul 05 14:39:32 2010 +0000
@@ -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 -r 98e3db2ebc60 -r b270bdf528a7 www/contao/Makefile.example
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao/Makefile.example Mon Jul 05 14:39:32 2010 +0000
@@ -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@localhost
+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 -r 98e3db2ebc60 -r b270bdf528a7 www/contao/files/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao/files/README Mon Jul 05 14:39:32 2010 +0000
@@ -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 -r 98e3db2ebc60 -r b270bdf528a7 www/contao/files/contao.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao/files/contao.conf Mon Jul 05 14:39:32 2010 +0000
@@ -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 -r 98e3db2ebc60 -r b270bdf528a7 www/contao/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao/options.mk Mon Jul 05 14:39:32 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index