Code

rules, *.dirs: Install configuration to /etc.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 Feb 2011 13:08:27 +0000 (14:08 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 Feb 2011 13:08:27 +0000 (14:08 +0100)
debian/libkohana2-modules-php.dirs
debian/libkohana2-php.dirs
debian/rules

index dee1ba6752ded1f68b5b9212c6aa02e60dcb2645..da6ef243e580ec4bf93f3f69df6b1293ba0e532e 100644 (file)
@@ -1 +1,2 @@
+etc/kohana2/modules
 usr/share/php/kohana2
index dee1ba6752ded1f68b5b9212c6aa02e60dcb2645..b376843d790094979c22a630e6bc9d8858daaf9c 100644 (file)
@@ -1 +1,2 @@
+etc/kohana2/system
 usr/share/php/kohana2
index a8ede19ee6a6fb942e98f22d9e302153856d5418..c4ad8a3538fa9d67a55f537496571f424d441311 100755 (executable)
@@ -33,6 +33,22 @@ install: build
        # install modules
        cp -a modules debian/libkohana2-modules-php/usr/share/php/kohana2/
 
+       # move config to /etc
+       mv debian/libkohana2-php/usr/share/php/kohana2/system/config \
+               debian/libkohana2-php/etc/kohana2/system
+       ln -s /etc/kohana2/system/config \
+               debian/libkohana2-php/usr/share/php/kohana2/system/config
+
+       ( \
+               set -e; \
+               cd debian/libkohana2-modules-php/usr/share/php/kohana2/modules; \
+               for config in */config; do \
+                       mkdir ../../../../../etc/kohana2/modules/$${config%\/*}; \
+                       mv $$config ../../../../../etc/kohana2/modules/$${config%\/*}; \
+                       ln -s /etc/kohana2/modules/$$config $$config; \
+               done \
+       )
+
        # remove DejaVu-Fonts and create symlink
        rm -rf debian/libkohana2-php/usr/share/php/kohana2/system/fonts