diff --git a/gosa-si/debian/rules b/gosa-si/debian/rules
index d74e36f0e4e81166bf898265bd8f557afd459fa5..f0f05e28f32c5a6e96c7eff774387d0e453f6d9c 100755 (executable)
--- a/gosa-si/debian/rules
+++ b/gosa-si/debian/rules
# Create a copy, remove svn stuff
-mkdir debian/tmp
- -for i in `ls | grep -v debian`; do \
+ -for i in *; do \
cp -R $$i debian/tmp ; \
done
-find debian/tmp -name '*.svn' -type d -exec rm -rf {} \; 2> /dev/null
+ -for i in gosa-si-client gosa-si-server modules/GosaPackages.pm modules/SIPackages.pm modules/TestModule.pm server/events/*; do sed -i 's/use GosaSupportDaemon;/use GOSA::GosaSupportDaemon;/g;s/use DBsqlite;/use GOSA::DBsqlite;/g' debian/tmp/$$i; done
+
+ -sed -i 's!"/etc/gosa-si/modules";!use lib "/usr/lib/gosa-si/modules";!g' debian/tmp/gosa-si-server
+
+ -sed -i 's!"/etc/gosa-si/server/events";!"/usr/lib/gosa-si/server/events";!g' debian/tmp/modules/GosaPackages.pm
+
touch install-stamp
patch: patch-stamp
dh_testdir
dh_testroot
- dh_install
+ dh_install --sourcedir=debian/tmp
dh_installdocs
dh_installcron
dh_installexamples
dh_installchangelogs
#dh_installdebconf
dh_installinit --init-script=gosa-si
+
+ chmod 640 debian/gosa-si-server/etc/gosa-si/server.conf debian/gosa-si-client/etc/gosa-si/client.conf debian/gosa-si-server/etc/gosa-si/bus.conf
+
dh_link
dh_strip
dh_compress