]> granicus.if.org Git - pdns/commitdiff
lots
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 1 Feb 2003 13:18:22 +0000 (13:18 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 1 Feb 2003 13:18:22 +0000 (13:18 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@142 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/docs/pdns.sgml
pdns/odbcbackend.dsp
pdns/pdns.dsp
pdns/pdnsmsg.dsp
pdns/release-scripts/pdns.nsi
pdns/zone2sql.dsp

index 09e75ad315f2b90ea186ea8eef689edefe8e490c..065d6248cdd083ae9446ad62f054279ba451dbe3 100644 (file)
@@ -11,7 +11,7 @@
       </affiliation>
     </author>
     
-    <PubDate>v2.1 $Date: 2003/01/31 12:42:28 $</PubDate>
+    <PubDate>v2.1 $Date: 2003/02/01 13:18:22 $</PubDate>
     
     <Abstract>
        <para>  
@@ -6366,6 +6366,14 @@ GRANT ALL ON records_id_seq TO pdns;
                 </para>
               </listitem>
             </varlistentry>
+            <varlistentry>
+              <term>gmysql-host (only for MySQL!)</term>
+              <listitem>
+                <para>
+                 Filename where the MySQL connection socket resides. Often <filename>/tmp/mysql.sock</filename> or <filename>/var/run/mysqld/mysqld.sock</filename>. 
+                </para>
+              </listitem>
+            </varlistentry>
             <varlistentry>
               <term>gpgsql-password</term>
               <listitem>
index eddf2ac6d8006bb4f508b399a5810f773fdcc058..e6822629b7c7db83af7206e46982e1fec4760dfe 100644 (file)
@@ -85,7 +85,7 @@ LIB32=link.exe -lib
 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
 # Begin Source File\r
 \r
-SOURCE=..\modules\odbcbackend\odbcbackend.cc
+SOURCE=..\modules\odbcbackend\odbcbackend.cc\r
 # End Source File\r
 # End Group\r
 # Begin Group "Header Files"\r
@@ -93,7 +93,39 @@ SOURCE=..\modules\odbcbackend\odbcbackend.cc
 # PROP Default_Filter "h;hpp;hxx;hm;inl"\r
 # Begin Source File\r
 \r
-SOURCE=..\modules\odbcbackend\odbcbackend.hh
+SOURCE=.\ahuexception.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\dns.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\dnsbackend.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\dnspacket.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\logger.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\misc.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\modules\odbcbackend\odbcbackend.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\qtype.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\utility.hh\r
 # End Source File\r
 # End Group\r
 # End Target\r
index f507951c783386b115c46745255962e34f957bef..2b586ec0c396ba41d9157c30a6aa48e1a80776de 100644 (file)
@@ -129,7 +129,7 @@ SOURCE=.\ntservice.cc
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\modules\odbcbackend\odbcbackend.cc
+SOURCE=..\modules\odbcbackend\odbcbackend.cc\r
 # End Source File\r
 # Begin Source File\r
 \r
@@ -149,22 +149,18 @@ SOURCE=.\qtype.cc
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\randombackend.cc\r
+SOURCE=.\resolver.cc\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\resolver.cc\r
+SOURCE=.\session.cc\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\session.cc\r
+SOURCE=.\sillyrecords.cc\r
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\sillyrecords.cc
-# End Source File
-# Begin Source File
-
 SOURCE=.\statbag.cc\r
 # End Source File\r
 # Begin Source File\r
@@ -281,7 +277,7 @@ SOURCE=.\ntservice.hh
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\modules\odbcbackend\odbcbackend.hh
+SOURCE=..\modules\odbcbackend\odbcbackend.hh\r
 # End Source File\r
 # Begin Source File\r
 \r
@@ -293,6 +289,10 @@ SOURCE=.\packethandler.hh
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\pdnsmsg.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\pdnsservice.hh\r
 # End Source File\r
 # Begin Source File\r
@@ -301,6 +301,10 @@ SOURCE=.\qtype.hh
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\recbcomm.hh\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\resolver.hh\r
 # End Source File\r
 # Begin Source File\r
index 5c46913a6997b30afab178960ed5717d8eaf1c93..9e424feb35ccc78fbe835ba06e04de143c688241 100644 (file)
@@ -43,7 +43,7 @@ RSC=rc.exe
 # PROP Ignore_Export_Lib 1\r
 # PROP Target_Dir ""\r
 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PDNSMSG_EXPORTS" /YX /FD /c\r
-# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PDNSMSG_EXPORTS" /YX /FD /TP /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PDNSMSG_EXPORTS" /YX /FD /TP /c\r
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
 # ADD BASE RSC /l 0x409 /d "NDEBUG"\r
@@ -54,7 +54,7 @@ BSC32=bscmake.exe
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pdnsmsg.res /nologo /dll /machine:I386\r
-# SUBTRACT LINK32 /pdb:none
+# SUBTRACT LINK32 /pdb:none\r
 \r
 !ELSEIF  "$(CFG)" == "pdnsmsg - Win32 Debug"\r
 \r
@@ -81,7 +81,7 @@ BSC32=bscmake.exe
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pdnsmsg.res /nologo /dll /debug /machine:I386 /pdbtype:sept\r
-# SUBTRACT LINK32 /pdb:none
+# SUBTRACT LINK32 /pdb:none\r
 \r
 !ENDIF \r
 \r
@@ -104,6 +104,10 @@ SOURCE=.\pdnsmsg.cc
 # Begin Group "Resource Files"\r
 \r
 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"\r
+# Begin Source File\r
+\r
+SOURCE=.\pdnsmsg.rc\r
+# End Source File\r
 # End Group\r
 # Begin Source File\r
 \r
index 65c556d251db61f1c90bac0264590c1b0afea1a1..412daca0cb979b4472882a57592601ef4f2b8fbd 100644 (file)
@@ -1,29 +1,30 @@
 # General info:\r
 !ifdef Debug\r
-OutFile      "Debug\pdns-install.exe"
+OutFile      "Debug\pdns-install.exe"\r
+Name         "PowerDNS 2.9.5 (DEBUG)"\r
 !else\r
-OutFile      "Release\pdns-install.exe"
+OutFile      "Release\pdns-install.exe"\r
+Name         "PowerDNS 2.9.5"\r
 !endif\r
 \r
-Name         "PowerDNS 2.9.3"
 BrandingText " "\r
-Icon         "release-scripts\pdns.ico"
+Icon         "release-scripts\pdns.ico"\r
 WindowIcon   "on"\r
 BGGradient   0080c0 0080c0 ffffff\r
 CRCCheck     "on"\r
 \r
 # Install info:\r
-InstallDir   "$PROGRAMFILES\PowerDNS\"
-InstallDirRegKey HKLM SOFTWARE\PowerDNS ""
-
-ComponentText  "This will install PowerDNS for Windows onto your computer."
-InstType       "Full"
-InstType       "Minimal"
-LicenseText    "Please read the PowerDNS license before installing."
-LicenseData    "..\LICENSE"
-EnabledBitmap  "release-scripts\enabled.bmp"
-DisabledBitmap "release-scripts\disabled.bmp"
-
+InstallDir   "$PROGRAMFILES\PowerDNS\"\r
+InstallDirRegKey HKLM SOFTWARE\PowerDNS ""\r
+\r
+ComponentText  "This will install PowerDNS for Windows onto your computer."\r
+InstType       "Full"\r
+InstType       "Minimal"\r
+LicenseText    "Please read the PowerDNS license before installing."\r
+LicenseData    "..\LICENSE"\r
+EnabledBitmap  "release-scripts\enabled.bmp"\r
+DisabledBitmap "release-scripts\disabled.bmp"\r
+\r
 \r
 # Directory info:\r
 DirShow             "show"\r
@@ -31,185 +32,195 @@ DirText             "Select directory to install PowerDNS:"
 AllowRootDirInstall "true"\r
 \r
 # Install page info:\r
-AutoCloseWindow   "true"
-#UninstallIcon   "release-scripts\pdns.ico"
-ShowInstDetails   "nevershow"
-ShowUninstDetails "nevershow"
+AutoCloseWindow   "true"\r
+#UninstallIcon   "release-scripts\pdns.ico"\r
+ShowInstDetails   "nevershow"\r
+ShowUninstDetails "nevershow"\r
 \r
 # Compiler info:\r
 SetCompress  "auto"\r
 \r
 # Install section:\r
-Section   "PowerDNS Executeable (required)"
+Section   "PowerDNS Executeable (required)"\r
 SectionIn "RO"\r
 \r
-SetOutPath $INSTDIR
-
+SetOutPath $INSTDIR\r
+\r
 # Check if the directory exists.\r
-IfFileExists "$INSTDIR\*.*" NoDir
+IfFileExists "$INSTDIR\*.*" NoDir\r
 NoDir:\r
   CreateDirectory "$INSTDIR"\r
 \r
 # Add files.\r
-SetOverwrite on
-
+SetOverwrite on\r
+\r
 !ifdef Debug\r
 File /oname=$INSTDIR\pdns.exe "Debug\pdns.exe"\r
-File /oname=$INSTDIR\pdnsmsg.dll "Debug\pdnsmsg.dll"
-File /oname=$INSTDIR\zone2sql.exe "Debug\zone2sql.exe"
-
+File /oname=$INSTDIR\pdnsmsg.dll "Debug\pdnsmsg.dll"\r
+File /oname=$INSTDIR\zone2sql.exe "Debug\zone2sql.exe"\r
+File /oname=$INSTDIR\pdns_control.exe "Debug\pdns_control.exe"\r
+File /oname=$INSTDIR\pdns_recursor.exe "Debug\pdns_recursor.exe"\r
+\r
 !else\r
 File /oname=$INSTDIR\pdns.exe "Release\pdns.exe"\r
-File /oname=$INSTDIR\pdnsmsg.dll "Release\pdnsmsg.dll"
-File /oname=$INSTDIR\zone2sql.exe "Release\zone2sql.exe"
-
+File /oname=$INSTDIR\pdnsmsg.dll "Release\pdnsmsg.dll"\r
+File /oname=$INSTDIR\zone2sql.exe "Release\zone2sql.exe"\r
+File /oname=$INSTDIR\pdns_control.exe "Release\pdns_control.exe"\r
+File /oname=$INSTDIR\pdns_recursor.exe "Release\pdns_recursor.exe"\r
+\r
 !endif\r
 \r
-File /oname=$INSTDIR\pdns.ico "release-scripts\pdns.ico"
-
-WriteUninstaller $INSTDIR\uninst-pdns.exe
-
-
-SetOverwrite ifnewer
-File /oname=$INSTDIR\pthreadVCE.dll C:\WIN2000\System32\pthreadVCE.dll
-File /oname=$INSTDIR\msvcrt.dll C:\WIN2000\System32\msvcrt.dll
-
-
-WriteRegStr HKLM SOFTWARE\PowerDNS "" $INSTDIR
-
-WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS" \
-                   "DisplayName" "PowerDNS Nameserver (remove only)"
-WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS" \
-                   "UninstallString" "$INSTDIR\uninst-pdns.exe"
-
-# Create default pdns configuration file.
-IfFileExists "$INSTDIR\pdns.conf" NoConfWrite
-  FileOpen $R1 "$INSTDIR\pdns.conf" "w"
-  
-  FileWrite $R1 "# PDNS configuration file.$\r$\n$\r$\n"
-
-  FileWrite $R1 "# Use NT logging when running as a service:$\r$\n"
-  FileWrite $R1 "use-ntlog=yes$\r$\n$\r$\n"
-
-  FileWrite $R1 "# Backends to launch at startup:$\r$\n"
-  FileWrite $R1 "launch=odbc$\r$\n$\r$\n"
-
-  FileWrite $R1 "odbc-datasource=PowerDNS$\r$\n"
-  FileWrite $R1 "odbc-user=PowerDNS$\r$\n"
-  FileWrite $R1 "odbc-pass=PowerDNS$\r$\n"
-  FileWrite $R1 "odbc-table=records$\r$\n$\r$\n"
-
-  FileWrite $R1 "# Launch a statistical webserver:$\r$\n"
-  FileWrite $R1 "webserver=yes$\r$\n"
-  FileWrite $R1 "webserver-port=8081$\r$\n$\r$\n"
-
-  FileWrite $R1 "# EOF$\r$\n"
-
-  FileClose $R1
-
-  FileOpen $R2 "$INSTDIR\pdns.exe.local" "w"
-  FileClose $R2
-
-NoConfWrite:
-
-SectionEnd
-
-
-# Start menu section:
-Section "Start menu + shortcuts"
-  SectionIn 1
-
-  CreateDirectory "$SMPROGRAMS\PowerDNS"
-
-  SetOutPath $SMPROGRAMS\PowerDNS
-\r
-  WriteINIStr "$SMPROGRAMS\PowerDNS\PowerDNS Homepage.url" \
-              "InternetShortcut" "URL" "http://www.powerdns.com/"
-
-  WriteINIStr "$SMPROGRAMS\PowerDNS\PowerDNS Documentation.url" \
-              "InternetShortcut" "URL" "http://downloads.powerdns.com/documentation/html/"
-
-  CreateShortCut "$SMPROGRAMS\PowerDNS\PowerDNS.lnk" \
-                 "$INSTDIR\pdns.exe" "--launch=odbc --odbc-datasource=powerdns --odbc-user=powerdns --odbc-pass=powerdns --webserver" \
-                 "$INSTDIR\pdns.ico"
-
-  CreateShortCut "$SMPROGRAMS\PowerDNS\Uninstall PowerDNS.lnk" \
-                 "$INSTDIR\uninst-pdns.exe"
-
-
-
-  SetOutPath $INSTDIR
-  
-SectionEnd
-
-
-# Example section.
-Section "Example zone"
-  SectionIn 1
-
-  IfFileExists $INSTDIR\powerdns.mdb Ask
-    Goto OverwriteZone
-
-Ask:
-  MessageBox MB_YESNO "powerdns.mdb already exists, overwrite?" IDNO StatusEnd
-    SetOverwrite on
-
-OverwriteZone:
-  File /oname=$INSTDIR\powerdns.mdb "..\modules\odbcbackend\powerdns.mdb"
-
-StatusEnd:
+File /oname=$INSTDIR\pdns.ico "release-scripts\pdns.ico"\r
+\r
+WriteUninstaller $INSTDIR\uninst-pdns.exe\r
+\r
+FileOpen $R2 "$INSTDIR\pdns.exe.local" "w"\r
+FileClose $R2\r
+FileOpen $R2 "$INSTDIR\zone2sql.exe.local" "w"\r
+FileClose $R2\r
+FileOpen $R2 "$INSTDIR\pdns_control.exe.local" "w"\r
+FileClose $R2\r
+FileOpen $R2 "$INSTDIR\pdns_recursor.exe.local" "w"\r
+FileClose $R2\r
+\r
+\r
+SetOverwrite ifnewer\r
+File /oname=$INSTDIR\pthreadVCE.dll C:\WINNT\System32\pthreadVCE.dll\r
+File /oname=$INSTDIR\msvcrt.dll C:\WINNT\System32\msvcrt.dll\r
+\r
+\r
+WriteRegStr HKLM SOFTWARE\PowerDNS "" $INSTDIR\r
+\r
+WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS" \\r
+                   "DisplayName" "PowerDNS Nameserver (remove only)"\r
+WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS" \\r
+                   "UninstallString" "$INSTDIR\uninst-pdns.exe"\r
+\r
+# Create default pdns configuration file.\r
+IfFileExists "$INSTDIR\pdns.conf" NoConfWrite\r
+  FileOpen $R1 "$INSTDIR\pdns.conf" "w"\r
+  \r
+  FileWrite $R1 "# PDNS configuration file.$\r$\n$\r$\n"\r
+\r
+  FileWrite $R1 "# Use NT logging when running as a service:$\r$\n"\r
+  FileWrite $R1 "use-ntlog=yes$\r$\n$\r$\n"\r
+\r
+  FileWrite $R1 "# Backends to launch at startup:$\r$\n"\r
+  FileWrite $R1 "launch=odbc$\r$\n$\r$\n"\r
+\r
+  FileWrite $R1 "odbc-datasource=PowerDNS$\r$\n"\r
+  FileWrite $R1 "odbc-user=PowerDNS$\r$\n"\r
+  FileWrite $R1 "odbc-pass=PowerDNS$\r$\n"\r
+  FileWrite $R1 "odbc-table=records$\r$\n$\r$\n"\r
+\r
+  FileWrite $R1 "# Launch a statistical webserver:$\r$\n"\r
+  FileWrite $R1 "webserver=yes$\r$\n"\r
+  FileWrite $R1 "webserver-port=8081$\r$\n$\r$\n"\r
+\r
+  FileWrite $R1 "# EOF$\r$\n"\r
+\r
+  FileClose $R1\r
+\r
+NoConfWrite:\r
+\r
+SectionEnd\r
+\r
+\r
+# Start menu section:\r
+Section "Start menu + shortcuts"\r
+  SectionIn 1\r
+\r
+  CreateDirectory "$SMPROGRAMS\PowerDNS"\r
+\r
+  WriteINIStr "$SMPROGRAMS\PowerDNS\PowerDNS Homepage.url" \\r
+              "InternetShortcut" "URL" "http://www.powerdns.com/"\r
+\r
+  WriteINIStr "$SMPROGRAMS\PowerDNS\PowerDNS Documentation.url" \\r
+              "InternetShortcut" "URL" "http://downloads.powerdns.com/documentation/html/"\r
+\r
+  CreateShortCut "$SMPROGRAMS\PowerDNS\PowerDNS.lnk" \\r
+                 "$INSTDIR\pdns.exe" "" \\r
+                 "$INSTDIR\pdns.ico"\r
+\r
+  CreateShortCut "$SMPROGRAMS\PowerDNS\Uninstall PowerDNS.lnk" \\r
+                 "$INSTDIR\uninst-pdns.exe"\r
+  \r
+SectionEnd\r
+\r
+\r
+# Example section.\r
+Section "Example zone"\r
+  SectionIn 1\r
+\r
+  IfFileExists $INSTDIR\powerdns.mdb Ask\r
+    Goto OverwriteZone\r
+\r
+Ask:\r
+  MessageBox MB_YESNO "powerdns.mdb already exists, overwrite?" IDNO StatusEnd\r
+    SetOverwrite on\r
+\r
+OverwriteZone:\r
+  File /oname=$INSTDIR\powerdns.mdb "..\modules\odbcbackend\powerdns.mdb"\r
+\r
+StatusEnd:\r
 SectionEnd\r
 \r
-
-# Uninstall section.
-Section "Uninstall"
-  MessageBox MB_YESNO "Are you sure you want to uninstall PowerDNS?" IDYES Proceed
-    Quit
-  
-Proceed: 
-  IfFileExists $INSTDIR\pdns.exe Skip
-    MessageBox MB_YESNO "It does not appear that PowerDNS is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)" IDYES FSkip
-      Quit
-
-Skip:
-  ExecWait '"$INSTDIR\pdns.exe" --unregister-service'
-
-FSkip:
-
-  DeleteRegKey HKLM "System\CurrentControlSet\Services\PDNS"
-  DeleteRegKey HKLM "System\CurrentControlSet\Services\Eventlog\Application\PDNS"
-  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS"
-  DeleteRegKey HKLM "SOFTWARE\PowerDNS"
-
-  RMDir /r $SMPROGRAMS\PowerDNS
-
-  Delete $INSTDIR\uninst-pdns.exe
-  Delete $INSTDIR\pdns.ico
-  Delete $INSTDIR\pdns.exe
-  Delete $INSTDIR\pdns.exe.local
-  Delete $INSTDIR\pthreadVCE.dll
-  Delete $INSTDIR\msvcrt.dll
-  Delete $INSTDIR\pdnsmsg.dll
-
-  RMDir $INSTDIR
-
-SectionEnd
-
-
-
+\r
+# Uninstall section.\r
+Section "Uninstall"\r
+  MessageBox MB_YESNO "Are you sure you want to uninstall PowerDNS?" IDYES Proceed\r
+    Quit\r
+  \r
+Proceed: \r
+  IfFileExists $INSTDIR\pdns.exe Skip\r
+    MessageBox MB_YESNO "It does not appear that PowerDNS is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)" IDYES FSkip\r
+      Quit\r
+\r
+Skip:\r
+  ExecWait '"$INSTDIR\pdns.exe" --unregister-service'\r
+\r
+FSkip:\r
+\r
+  DeleteRegKey HKLM "System\CurrentControlSet\Services\PDNS"\r
+  DeleteRegKey HKLM "System\CurrentControlSet\Services\Eventlog\Application\PDNS"\r
+  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerDNS"\r
+  DeleteRegKey HKLM "SOFTWARE\PowerDNS"\r
+\r
+  RMDir /r $SMPROGRAMS\PowerDNS\r
+\r
+  Delete $INSTDIR\pthreadVCE.dll\r
+  Delete $INSTDIR\msvcrt.dll\r
+  Delete $INSTDIR\pdnsmsg.dll\r
+  Delete $INSTDIR\uninst-pdns.exe\r
+  Delete $INSTDIR\pdns.ico\r
+  Delete $INSTDIR\pdns.exe\r
+  Delete $INSTDIR\pdns.exe.local\r
+  Delete $INSTDIR\zone2sql.exe\r
+  Delete $INSTDIR\zone2sql.exe.local\r
+  Delete $INSTDIR\pdns_control.exe\r
+  Delete $INSTDIR\pdns_control.exe.local\r
+  Delete $INSTDIR\pdns_recursor.exe\r
+  Delete $INSTDIR\pdns_recursor.exe.local\r
+\r
+  RMDir $INSTDIR\r
+\r
+SectionEnd\r
+\r
+\r
+\r
 Function .onInstSuccess\r
-
-  Sleep 500
-
-  MessageBox MB_YESNO "Do you want to register PDNS as a NT service?" IDNO NoReg
+\r
+  Sleep 500\r
+\r
+  MessageBox MB_YESNO "Do you want to register PDNS as a NT service?" IDNO NoReg\r
     Exec '"$INSTDIR\pdns.exe" --register-service'\r
 \r
-NoReg:
-  Sleep 500
-
-  MessageBox MB_YESNO "Installation successful!$\r$\n$\r$\nTo use the ODBC functionality in PowerDNS you need to create a ODBC data source.$\r$\nFor more information about the ODBC backend please examine the documentation.$\r$\n$\r$\nDo you want to create a data source now?" IDNO NoODBC
-    Exec '"rundll32.exe" shell32.dll,Control_RunDLL odbccp32.cpl'
-
-NoODBC:
-
+NoReg:\r
+  Sleep 500\r
+\r
+  MessageBox MB_YESNO "Installation successful!$\r$\n$\r$\nTo use the ODBC functionality in PowerDNS you need to create a ODBC data source.$\r$\nFor more information about the ODBC backend please examine the documentation.$\r$\n$\r$\nDo you want to create a data source now?" IDNO NoODBC\r
+    Exec '"rundll32.exe" shell32.dll,Control_RunDLL odbccp32.cpl'\r
+\r
+NoODBC:\r
+\r
 FunctionEnd
\ No newline at end of file
index 3831f1cbacbfa71899a761c0f1772f15d3ec6b63..8f0d18e0b8339abdb05e7b2e330bbb90855836d3 100644 (file)
@@ -50,7 +50,8 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pthreadVCE.lib ws2_32.lib /nologo /subsystem:console /machine:I386 /force\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pthreadVCE.lib ws2_32.lib /nologo /subsystem:console /machine:I386\r
+# SUBTRACT LINK32 /force\r
 \r
 !ELSEIF  "$(CFG)" == "zone2sql - Win32 Debug"\r
 \r
@@ -74,8 +75,8 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pthreadVCE.lib ws2_32.lib /nologo /subsystem:console /debug /machine:I386 /force /pdbtype:sept
-# SUBTRACT LINK32 /incremental:no
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib pthreadVCE.lib ws2_32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# SUBTRACT LINK32 /incremental:no /force\r
 \r
 !ENDIF \r
 \r
@@ -108,10 +109,10 @@ SOURCE=.\ntservice.cc
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\qtype.cc
-# End Source File
-# Begin Source File
-
+SOURCE=.\qtype.cc\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\statbag.cc\r
 # End Source File\r
 # Begin Source File\r
@@ -145,18 +146,28 @@ SOURCE=.\backends\bind\bindlexer.l
 \r
 !IF  "$(CFG)" == "zone2sql - Win32 Release"\r
 \r
-# Begin Custom Build
-ProjDir=.
-InputPath=.\backends\bind\bindlexer.l
-
-"bindlexer.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       flex -i -s -o$(ProjDir)/backends/bind/bindlexer.cc $(InputPath)
-
-# End Custom Build
-
+# Begin Custom Build\r
+ProjDir=.\r
+InputPath=.\backends\bind\bindlexer.l\r
+\r
+"bindlexer.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+       erase /Q bindlexer.cc \r
+       flex -i -s -o$(ProjDir)/backends/bind/bindlexer.cc $(InputPath) \r
+       \r
+# End Custom Build\r
+\r
 !ELSEIF  "$(CFG)" == "zone2sql - Win32 Debug"\r
 \r
 # PROP Ignore_Default_Tool 1\r
+# Begin Custom Build\r
+ProjDir=.\r
+InputPath=.\backends\bind\bindlexer.l\r
+\r
+"bindlexer.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+       erase /Q bindlexer.cc \r
+       flex -i -s -o$(ProjDir)/backends/bind/bindlexer.cc $(InputPath) \r
+       \r
+# End Custom Build\r
 \r
 !ENDIF \r
 \r
@@ -167,18 +178,40 @@ SOURCE=.\backends\bind\bindparser.yy
 \r
 !IF  "$(CFG)" == "zone2sql - Win32 Release"\r
 \r
-# Begin Custom Build
-ProjDir=.
-InputPath=.\backends\bind\bindparser.yy
-
-"bindparser.tab.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       bison -o$(ProjDir)/backends/bind/bindparser.tab.cc -d $(InputPath)
-
-# End Custom Build
-
+# Begin Custom Build\r
+ProjDir=.\r
+InputPath=.\backends\bind\bindparser.yy\r
+\r
+BuildCmds= \\r
+       erase /Q bindparser.tab.* \\r
+       bison -o$(ProjDir)/backends/bind/bindparser.tab.cc -d $(InputPath) \\r
+       \r
+\r
+"bindparser.tab.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+   $(BuildCmds)\r
+\r
+"bindparser.tab.hh" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+   $(BuildCmds)\r
+# End Custom Build\r
+\r
 !ELSEIF  "$(CFG)" == "zone2sql - Win32 Debug"\r
 \r
 # PROP Ignore_Default_Tool 1\r
+# Begin Custom Build\r
+ProjDir=.\r
+InputPath=.\backends\bind\bindparser.yy\r
+\r
+BuildCmds= \\r
+       erase /Q bindparser.tab.* \\r
+       bison -o$(ProjDir)/backends/bind/bindparser.tab.cc -d $(InputPath) \\r
+       \r
+\r
+"bindparser.tab.cc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+   $(BuildCmds)\r
+\r
+"bindparser.tab.hh" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+   $(BuildCmds)\r
+# End Custom Build\r
 \r
 !ENDIF \r
 \r