Code

- Added triggers
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Oct 2010 09:13:59 +0000 (09:13 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Oct 2010 09:13:59 +0000 (09:13 +0000)
- Added changelog for 2.6.11-2
- Closes debian bug 591046, 591043

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20077 594d385d-05f5-0310-b6e9-bd551577e9d8

40 files changed:
gosa-core/debian/changelog
gosa-core/debian/gosa-apache.conf
gosa-core/debian/gosa-dev.install
gosa-core/debian/gosa-plugin-addressbook.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-connectivity.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dhcp.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dns.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-fai.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-gofax.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-gofon.install
gosa-core/debian/gosa-plugin-gofon.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-goto.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-kolab.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-ldapmanager.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-log.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-mail.install
gosa-core/debian/gosa-plugin-mail.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-mit-krb5.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-nagios.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-netatalk.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-opengroupware.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-openxchange.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-opsi.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpgw.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpscheduleit.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pptp.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pureftpd.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-rolemanagement.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-rsyslog.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-samba.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-scalix.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-squid.install
gosa-core/debian/gosa-plugin-squid.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-ssh.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-sudo.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-systems.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-uw-imap.triggers [new file with mode: 0644]
gosa-core/debian/gosa-plugin-webdav.triggers [new file with mode: 0644]
gosa-core/debian/gosa.postinst
gosa-core/debian/gosa.triggers

index fee0c85fb8318b6ee9bc9fea95d32b857542997d..17f593dd9346c861b2d03cb993e233eb80aaa3bb 100644 (file)
@@ -1,5 +1,20 @@
+gosa (2.6.11-2) unstable; urgency=low
+
+  * Corrected wrong dirs on gosa-plugin-mail 
+  * Corrected wrong dirs on gosa-plugin-gofon
+  * Added missing scripts in gosa-dev package
+  * Added missing README.squid to gosa-plugin-squid package
+  * Added patch for security in using gosa hook for password
+
+ -- Benoit Mortier <benoit.mortier@opensides.be>  Sun, 17 Oct 2010 16:00:00 +0200
+
 gosa (2.6.11-1) unstable; urgency=low
 
+  [ Cajus Pollmeier ]
+  * New upstream release
+
+  [ Benoit Mortier ]
+
   * Samba schema file is incompatible with Samba shipped with lenny
     (Closes: #582899)
   * package explicitly depends on preform MPM (Closes: #591043)
index cd38aebf8c401c2490fa9acb9ced8b31ad20f742..491030fb130d8db70abed6efc031df9e662b3c85 100644 (file)
@@ -16,13 +16,13 @@ Alias /gosa /usr/share/gosa/html
 </Location>
 </IfModule>
 
-<IfModule mod_fcgid.c>
-   PHP_Fix_Pathinfo_Enable 1
-   <Location /gosa>
-     Options +ExecCGI
-     AddHandler fcgid-script .php
-     FCGIWrapper /var/www/php-fcgi/php-fcgi-starter .php
-     include /etc/gosa/gosa.secrets
-   </Location>
-</IfModule>
+#<IfModule mod_fcgid.c>
+#   PHP_Fix_Pathinfo_Enable 1
+#   <Location /gosa>
+#     Options +ExecCGI
+#     AddHandler fcgid-script .php
+#     FCGIWrapper /var/www/php-fcgi/php-fcgi-starter .php
+#     include /etc/gosa/gosa.secrets
+#   </Location>
+#</IfModule>
 
index 47693d6b6177f0af5e1b2e19ec6050e613ae2716..df34a70010dd2695121e94e6ec3c0feab41af432 100644 (file)
@@ -1,3 +1,5 @@
-gosa-core/update-locale       /usr/bin
-gosa-core/update-pdf-help     /usr/bin
-gosa-core/dh-make-gosa        /usr/bin
+gosa-core/update-locale                        /usr/bin
+gosa-core/update-pdf-help              /usr/bin
+gosa-core/update-online-help           /usr/bin
+gosa-core/dh-make-gosa                 /usr/bin
+gosa-core/contrib/extract-locale       /usr/bin
diff --git a/gosa-core/debian/gosa-plugin-addressbook.triggers b/gosa-core/debian/gosa-plugin-addressbook.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-connectivity.triggers b/gosa-core/debian/gosa-plugin-connectivity.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-dhcp.triggers b/gosa-core/debian/gosa-plugin-dhcp.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-dns.triggers b/gosa-core/debian/gosa-plugin-dns.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-fai.triggers b/gosa-core/debian/gosa-plugin-fai.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-gofax.triggers b/gosa-core/debian/gosa-plugin-gofax.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
index 4ca6cdf3e142207b209131844ccfeac7d7b2d566..968994c286f5051bddcf8fcc47e60a4e31cb4036 100644 (file)
@@ -4,4 +4,4 @@ gofon/help/guide.xml    /usr/share/gosa/doc/plugins/gofon
 gofon/locale           /usr/share/gosa/locale/plugins/gofon
 gofon/contrib          /usr/share/doc/gosa-plugin-gofon
 gofon/html/images      /usr/share/gosa/html/plugins/gofon
-gofon/etc              /etc/gosa
+gofon/etc/asterisk/*.conf      /etc/gosa/asterisk
diff --git a/gosa-core/debian/gosa-plugin-gofon.triggers b/gosa-core/debian/gosa-plugin-gofon.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-goto.triggers b/gosa-core/debian/gosa-plugin-goto.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-kolab.triggers b/gosa-core/debian/gosa-plugin-kolab.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-ldapmanager.triggers b/gosa-core/debian/gosa-plugin-ldapmanager.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-log.triggers b/gosa-core/debian/gosa-plugin-log.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
index b95effc7734e028763e0025b8ff38dcb4b986cae..5a5cbf04ce52be709d3a51929995a4176d0292d0 100644 (file)
@@ -5,4 +5,5 @@ mail/help/guide.xml             /usr/share/gosa/doc/plugins/mail
 mail/locale                    /usr/share/gosa/locale/plugins/mail
 mail/contrib                   /usr/share/doc/gosa-plugin-mail
 mail/html/images               /usr/share/gosa/html/plugins/mail
-mail/etc/                      /etc/gosa
+mail/etc/*.txt                 /etc/gosa
+mail/etc/vacation              /etc/gosa
diff --git a/gosa-core/debian/gosa-plugin-mail.triggers b/gosa-core/debian/gosa-plugin-mail.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-mit-krb5.triggers b/gosa-core/debian/gosa-plugin-mit-krb5.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-nagios.triggers b/gosa-core/debian/gosa-plugin-nagios.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-netatalk.triggers b/gosa-core/debian/gosa-plugin-netatalk.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-opengroupware.triggers b/gosa-core/debian/gosa-plugin-opengroupware.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-openxchange.triggers b/gosa-core/debian/gosa-plugin-openxchange.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-opsi.triggers b/gosa-core/debian/gosa-plugin-opsi.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-phpgw.triggers b/gosa-core/debian/gosa-plugin-phpgw.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-phpscheduleit.triggers b/gosa-core/debian/gosa-plugin-phpscheduleit.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-pptp.triggers b/gosa-core/debian/gosa-plugin-pptp.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-pureftpd.triggers b/gosa-core/debian/gosa-plugin-pureftpd.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-rolemanagement.triggers b/gosa-core/debian/gosa-plugin-rolemanagement.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-rsyslog.triggers b/gosa-core/debian/gosa-plugin-rsyslog.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-samba.triggers b/gosa-core/debian/gosa-plugin-samba.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-scalix.triggers b/gosa-core/debian/gosa-plugin-scalix.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
index 55df972357a1d2d43ae54808f1993a9c2817b762..7209f6d3e504567ef22060c7788e6d1029c8d9eb 100644 (file)
@@ -2,3 +2,4 @@ squid/personal          /usr/share/gosa/plugins
 squid/help/guide.xml   /usr/share/gosa/doc/plugins/squid
 squid/locale           /usr/share/gosa/locale/plugins/squid
 squid/contrib          /usr/share/doc/gosa-plugin-squid
+squid/README.squid     /usr/share/doc/gosa-plugin-squid/contrib
diff --git a/gosa-core/debian/gosa-plugin-squid.triggers b/gosa-core/debian/gosa-plugin-squid.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-ssh.triggers b/gosa-core/debian/gosa-plugin-ssh.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-sudo.triggers b/gosa-core/debian/gosa-plugin-sudo.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-systems.triggers b/gosa-core/debian/gosa-plugin-systems.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-uw-imap.triggers b/gosa-core/debian/gosa-plugin-uw-imap.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
diff --git a/gosa-core/debian/gosa-plugin-webdav.triggers b/gosa-core/debian/gosa-plugin-webdav.triggers
new file mode 100644 (file)
index 0000000..9b7a598
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa-plugins
index c5be1424318a1c5d28c3ca5c84625770b6bbcb9d..8aa3db73fb2be2ce4716e1d26f01a754a77a6501 100644 (file)
@@ -106,6 +106,30 @@ chmod 770 -R /var/spool/gosa
 chown root.$WEBGROUP -R /var/cache/gosa
 chmod 770 -R /var/cache/gosa
 
-update-gosa
+# Activating triggers
+echo DEBUG: triggertest postinst called, $# args: "$@"
+
+if [ "$1" = "configure" ]; then
+  # in the general case, update-foo and update-bar should always be called
+  # when the central package is updated
+  update-gosa
+
+elif [ "$1" = "triggered" ]; then
+  # since the example ships two triggers, we should determine how to act
+  # based on which trigger was activated.
+  for triggername in $2; do
+    echo DEBUG: processing trigger "'$triggername'"
+    case "$triggername" in
+    "/usr/share/gosa")
+      update-gosa
+      ;;
+    *)
+      echo "unhandled/unknown trigger!"
+      exit 1
+      ;;
+    esac
+  done
+fi
+
 
 exit 0
index 920f3cb05110bbfda495738a54cf1027e318ff24..63f118fe89c2f397f3e1bcd93dbefef1e75fdc9b 100644 (file)
@@ -1,2 +1,2 @@
-interest update-gosa
-interest /usr/share/gosa/plugins
+interest       /usr/share/gosa/
+interest       update-gosa-plugins