summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-07-01 19:20:44 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-07-01 19:20:44 +0000
commitdfbca07ce47bf3a08df7fd973919be565c52e194 (patch)
treec2daff2e01477e4604d01396718f0d19d347a61f /gnustep-apps
parentMove TODO inside the ebuilds (diff)
downloadgnustep-dfbca07ce47bf3a08df7fd973919be565c52e194.tar.gz
gnustep-dfbca07ce47bf3a08df7fd973919be565c52e194.tar.bz2
gnustep-dfbca07ce47bf3a08df7fd973919be565c52e194.zip
Install apache module and default configuration file
Switch to gnustep-base (no need for gui) svn path=/overlay/; revision=369
Diffstat (limited to 'gnustep-apps')
-rw-r--r--gnustep-apps/sogo/Manifest2
-rw-r--r--gnustep-apps/sogo/sogo-1.0_rc6.ebuild47
2 files changed, 45 insertions, 4 deletions
diff --git a/gnustep-apps/sogo/Manifest b/gnustep-apps/sogo/Manifest
index 95632b4..61e0c89 100644
--- a/gnustep-apps/sogo/Manifest
+++ b/gnustep-apps/sogo/Manifest
@@ -1,3 +1,3 @@
AUX sogo-foundation_include.patch 296 RMD160 c12185f556ccb3e3c922a9ffe7f1c4f72337aea6 SHA1 3eaabf94cbce392e81a81b74f55b2256712ce168 SHA256 5d230c040c5919acf29c4ddc45306dc38344048eae0fce0580140880a6c6537f
DIST SOGo-1.0rc6.1.tar.gz 1304442 RMD160 07cbec5672670ff6355687565470bb4265ba7d36 SHA1 81954756dc641c1d9fee23be312f150dea7a5661 SHA256 80477c1949965fbc30a3d01f72b6aa701d7e1b9e8739d529f39c80edcb56a4e6
-EBUILD sogo-1.0_rc6.ebuild 900 RMD160 77cf88160682227b23120232378c45cde8ec6eeb SHA1 5c309963c99d59eb856efb1cf236b573f232d6d1 SHA256 ebcbabc1ccddce22c6cce8c791a43e96164c3195a61cd1e01705c9e5b7f38fa0
+EBUILD sogo-1.0_rc6.ebuild 2059 RMD160 791712c5c75ea76dd928ef11740cf9c1bf8c10f1 SHA1 a6c8ab78c055ce8506299bcf454ee8b9f2218794 SHA256 bc2822e9d8d63b98943a8d3ca6552e310e7f7c86e914e0149ea51f449195856c
diff --git a/gnustep-apps/sogo/sogo-1.0_rc6.ebuild b/gnustep-apps/sogo/sogo-1.0_rc6.ebuild
index 6c6a944..bc8789f 100644
--- a/gnustep-apps/sogo/sogo-1.0_rc6.ebuild
+++ b/gnustep-apps/sogo/sogo-1.0_rc6.ebuild
@@ -3,12 +3,10 @@
# $Header: $
#TODO:
-# * switch to gnustep-base
-# * Provide default configuration file for apache
# * create user, fill defaults
# * complete DEPEND
-inherit gnustep-2
+inherit depend.apache gnustep-base
MY_PN="SOGo"
MY_PV="1.0rc6.1"
@@ -23,6 +21,7 @@ IUSE=""
DEPEND="gnustep-libs/sope"
RDEPEND="${DEPEND}"
+need_apache2
S=${WORKDIR}/${MY_PN}
@@ -40,3 +39,45 @@ src_compile() {
./configure
egnustep_make
}
+
+src_install() {
+ gnustep-base_src_install
+ dodir "${APACHE_MODULES_CONFDIR}"
+ cat <<EOF >"${D}/${APACHE_MODULES_CONFDIR}"/47_sogo.conf
+<IfDefine SOPE>
+LoadModule ngobjweb_module modules/mod_ngobjweb.so
+
+Alias /sogo.woa/WebServerResources/ \
+ ${GNUSTEP_SYSTEM_LIBRARY}/SOGo-0.9/WebServerResources/
+Alias /SOGo.woa/WebServerResources/ \
+ ${GNUSTEP_SYSTEM_LIBRARY}/SOGo-0.9/WebServerResources/
+
+AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
+ ${GNUSTEP_SYSTEM_LIBRARY}/SOGo-0.9/\$1.SOGo/Resources/\$2
+
+<LocationMatch "^/SOGo*">
+ AddDefaultCharset UTF-8
+ SetHandler ngobjweb-adaptor
+ SetAppPort 18888
+</LocationMatch>
+
+<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*png">
+ SetHandler default-handler
+</LocationMatch>
+
+<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*gif">
+ SetHandler default-handler
+</LocationMatch>
+
+<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*css">
+ SetHandler default-handler
+</LocationMatch>
+
+<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*js">
+ SetHandler default-handler
+</LocationMatch>
+
+</IfDefine>
+EOF
+
+}