]> zub.fei.tuke.sk Git - ldapvmail/commitdiff
recompiled for etch 0.4
authorPeter Popovec <popovec@fei.tuke.sk>
Tue, 16 Jan 2007 09:26:00 +0000 (10:26 +0100)
committerPeter Popovec <popovec@fei.tuke.sk>
Tue, 4 Jul 2006 06:40:00 +0000 (08:40 +0200)
some minor changes in web

debian/README [deleted file]
debian/changelog
debian/compat [new file with mode: 0644]
debian/conffiles [new file with mode: 0644]
debian/configs [deleted file]
debian/control
debian/dirs
debian/postinst.ex [deleted file]
debian/rules
doc/examples/courier/ReleaseNote-H-08-69-59906003-0605.pdf [deleted file]
web/usr/share/ldapVmail/k.php

diff --git a/debian/README b/debian/README
deleted file mode 100644 (file)
index 93228b4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-The Debian Package ldapvmail
-----------------------------
-
-NEWT based TUI and web interface for virtual mail system based on 
-postfix, courier and ldap
-
-Peter Popovec <popovec@fei.tuke.sk>, Sun, 30 Jan 2005 12:15:51 +0100
index afe7dec059795c7894f0c5fbe9d19012775446f2..300b898f5b0e631e8f39d1f67e2c05c723317ca1 100644 (file)
@@ -1,3 +1,10 @@
+ldapvmail (0.4) unstable; urgency=low
+
+  * recompiled for etch
+  * some minor changes in web 
+
+ -- Peter Popovec <popovec@fei.tuke.sk>  Tue, 16 Jan 2007 09:26:41 +0100
+
 ldapvmail (0.3.1) unstable; urgency=low
 
   * better error check in php ldap calls
@@ -10,7 +17,7 @@ ldapvmail (0.3) unstable; urgency=low
 
   * web interface first wersion
 
- -- Peter Popovec <popovec@zubok>  Fri,  23 Sep 2005 08:01:26 +0200
+ -- Peter Popovec <popovec@fei.tuke.sk>  Fri,  23 Sep 2005 08:01:26 +0200
 
 ldapvmail (0.2.1) unstable; urgency=low
 
@@ -18,7 +25,7 @@ ldapvmail (0.2.1) unstable; urgency=low
   * compilation warning clean
   * fix initialization for Balias and Bforward buttons  
 
- -- Peter Popovec <popovec@zubok>  Thu,  7 Apr 2005 13:55:05 +0200
+ -- Peter Popovec <popovec@fei.tuke.sk>  Thu,  7 Apr 2005 13:55:05 +0200
 
 ldapvmail (0.2) unstable; urgency=low
 
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644 (file)
index 0000000..b27dd7d
--- /dev/null
@@ -0,0 +1,2 @@
+/etc/ldapVmail/config.php
+/etc/ldapVmail/apache.conf
diff --git a/debian/configs b/debian/configs
deleted file mode 100644 (file)
index caa81c0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/etc/ldapVmail/config.php
index 5fe2e4ac5230abe8f2042af6f9e1238d5c9e1119..92dedff51f46ef3578b3b1c0f660671cc99032d7 100644 (file)
@@ -2,12 +2,12 @@ Source: ldapvmail
 Section: unknown
 Priority: optional
 Maintainer: Peter Popovec <popovec@fei.tuke.sk>
-Build-Depends: debhelper (>> 3.0.0)
-Standards-Version: 3.5.8
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
 
 Package: ldapvmail
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: TUI for virtual mail system based on postfix, courier and ldap
  NEWT based TUI for virtual mail  system based on postfix, courier and ldap
- Warning, this is alpha release !
\ No newline at end of file
+ Warning, this is alpha release !
index 7c764dbb4332046a05fc68ceb881709577eea0f5..74c50691aeecb532920b89775b31c7a98316e4c1 100644 (file)
@@ -1,2 +1,2 @@
 usr/bin
-usr/share/ldapVmail
+
diff --git a/debian/postinst.ex b/debian/postinst.ex
deleted file mode 100644 (file)
index fccddfa..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#export DEBCONF_DEBUG=developer
-
-. /usr/share/debconf/confmodule
-
-db_version 2.0
-
-# Following lend from phpmyadmin's postinst
-db_get ldapVmail/httpd
-webservers="$RET"
-
-for webserver in $webservers; do
-        webserver=${webserver%,}
-        if [ -e /etc/$webserver/httpd.conf ] && [ ! -e /etc/$webserver/ldapVmail.conf ]; then
-                mkdir -p /etc/$webserver/conf.d
-                ln -sf /etc/ldapVmail/apache.conf /etc/$webserver/conf.d/ldapVmail.conf
-                if [ -h /etc/$webserver/conf.d/ldapVmail ]; then
-                        rm -f /etc/$webserver/conf.d/ldapVmail
-                fi
-        fi
-done
-
index 04e72dcdefe9678ac8272791bc68b0d046ce403b..850bb35f241bf049f666d3c8519fd3172d7483ef 100755 (executable)
@@ -1,20 +1,23 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
 # Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatibility version to use.
-export DH_COMPAT=3
 
 
 
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
 endif
 
 configure: configure-stamp
@@ -32,9 +35,9 @@ build-stamp: configure-stamp
 
        # Add here commands to compile the package.
        $(MAKE)
-       #/usr/bin/docbook-to-man debian/ldapvmail.sgml > ldapvmail.1
+       #docbook-to-man debian/ldapvmail.sgml > ldapvmail.1
 
-       touch build-stamp
+       touch $@
 
 clean:
        dh_testdir
@@ -44,18 +47,19 @@ clean:
        # Add here commands to clean up after the build process.
        -$(MAKE) clean
 
-       dh_clean
+       dh_clean 
 
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_clean -k 
        dh_installdirs
 
        # Add here commands to install the package into debian/ldapvmail.
-       $(MAKE) install DESTDIR=$(CURDIR)/debian/ldapvmail
+       $(MAKE) DESTDIR=$(CURDIR)/debian/ldapvmail install
        (cd  web ; cp -a .  $(CURDIR)/debian/ldapvmail)
 
+
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.
@@ -64,27 +68,28 @@ binary-indep: build install
 binary-arch: build install
        dh_testdir
        dh_testroot
-#      dh_installdebconf       
+       dh_installchangelogs 
        dh_installdocs
        dh_installexamples
-       dh_installmenu
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
 #      dh_installlogrotate
 #      dh_installemacsen
 #      dh_installpam
 #      dh_installmime
+#      dh_python
 #      dh_installinit
-       dh_installcron
+#      dh_installcron
+#      dh_installinfo
        dh_installman
-       dh_installinfo
-#      dh_undocumented
-       dh_installchangelogs 
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
+#      dh_perl
 #      dh_makeshlibs
        dh_installdeb
-#      dh_perl
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
diff --git a/doc/examples/courier/ReleaseNote-H-08-69-59906003-0605.pdf b/doc/examples/courier/ReleaseNote-H-08-69-59906003-0605.pdf
deleted file mode 100644 (file)
index 38f3622..0000000
Binary files a/doc/examples/courier/ReleaseNote-H-08-69-59906003-0605.pdf and /dev/null differ
index 307aadccbcd4f7d612abee4b2ae88c37c704a9ca..2a1f80dd87c0e208f47acaa21a61de21aa03db4a 100644 (file)
@@ -4,8 +4,8 @@ function putHiddenVariables ($runtype)
 {
 global $dn,$uid,$mail,$alias,$forward;
 
-printf("<input type=\"hidden\" name=\"dn\" value=\"%s\">",base64_encode($dn));
-printf("<input type=\"hidden\" name=\"running\" value=\"%s\">",$runtype);
+printf("<input type=\"hidden\" name=\"dn\" value=\"%s\">\n",base64_encode($dn));
+printf("<input type=\"hidden\" name=\"running\" value=\"%s\">\n",$runtype);
 printf("<input type=\"hidden\" name=\"uid\" value=\"%s\">\n",base64_encode($uid));
 printf("<input type=\"hidden\" name=\"mail\" value=\"%s\">\n",base64_encode($mail));
  for($j=0;strlen($alias[$j])>0;$j++){
@@ -88,20 +88,21 @@ printf("<html>");
    $fcount=0;
  }
  $forward=$forward1;
- if($selfForward==0) {
+ if($fcount>0)
+   if($selfForward==0) {
     printf("<form method=\"post\" name=\"%s_selfForward\">",base64_encode($forward[$i]));
     printf("<input type=\"button\" value=\"Vypnut\" style=\"color:gray\" name=\"selfForward\">\n");
     printf("<input type=\"submit\" value=\"Zapnut\"  name=\"selfForward\">\n");
     putHiddenVariables("EDITform");
     printf("Aktualny stav: mail neostava v lokalnom mailboxe<br>");
- }
- else {
  }
  else {
     printf("<form method=\"post\" name=\"%s_selfForward\">",base64_encode($forward[$i]));
     printf("<input type=\"submit\" value=\"Vypnut\"  name=\"selfForward\">\n");
     printf("<input type=\"button\" value=\"Zapnut\" style=\"color:gray\" name=\"selfForward\">\n");
     putHiddenVariables("EDITform");
     printf("Aktualny stav: mail ostava v lokalnom mailboxe<br>");
- }
  }
  foreach($forward as $i => $value1) {
     if($forward[$i]!=$mail){
       printf("<form method=\"post\" name=\"%s\">",base64_encode($forward[$i]));
@@ -208,8 +209,9 @@ switch($_POST["running"]) {
 case "ADDnew" :
  $uid=$_POST["uid"];
  if(strlen($uid)>0) {
-  printf("<html>Novy uzivatel <b>%s</b>:<hr>",strip_tags($uid));
-  printf("<table><form method=\"post\" name=\"addnew\">\n");
+  printf("<html>Novy uzivatel <b>%s</b><hr>",strip_tags($uid));
+  printf("<form method=\"post\" name=\"addnew\">\n");
+  printf("Mail address: <input type=\"text\" value=\"$uid\" name=\"xmail\"><hr>\n");
   putHiddenVariables ("ADDgo");
   putAdminPassInput($LdapAdmin,"SAVE");
   printf("</html>");
@@ -221,6 +223,7 @@ case "ADDnew" :
 
 case "ADDgo":               
  getAllValuesFromForm ();
+ $mail=$_POST["xmail"];
  @ldap_close($ds); //rebind
  $ds=@ldap_connect($LdapHost);
  if($ds==FALSE){
@@ -232,14 +235,13 @@ case "ADDgo":
   continueForm1("Bad admin password\n");
   break;
  }
  unset ($entree);
  $entree["objectClass"][0]="top";
  $entree["objectClass"][1]="person";
  $entree["objectClass"][2]="organizationalPerson";
  $entree["objectClass"][3]="inetOrgPerson";
  $entree["objectClass"][4]="qmailUser";
- $entree["mail"]=$uid;
+ $entree["mail"]=$mail;
  $entree["uid"]=$uid;
  $entree["cn"]=$uid;
  $entree["sn"]=$uid;
@@ -249,7 +251,6 @@ case "ADDgo":
  $entree["mailmessagestore"]="/home/vmail/".$uid."/Maildir/";
  $dn="uid=".$uid.",".$netBase ;
  $r=@ldap_add($ds, $dn, $entree);
- $mail=$uid;
  if ($r==FALSE) 
    continueForm1(sprintf("Nie je mozne upravit data  uzivatela <b>%s</b>",strip_tags($uid)));
  else