From c31e267403499d1f204a16a3ad9da3181f54f7d2 Mon Sep 17 00:00:00 2001 From: sjaz Date: Thu, 6 Aug 2009 17:15:55 +0000 Subject: Remove legacy windows installer scripts not used on 1.9 & obsolete epona2anope converter. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2427 5417fbe8-f217-4b02-8779-1006273d7864 --- src/tools/Anope_Install_Script.nsi | 535 ------------------- src/tools/Anope_MySQL_Install_Script.nsi | 538 ------------------- src/tools/obsolete/epona2anope.c | 856 ------------------------------- 3 files changed, 1929 deletions(-) delete mode 100644 src/tools/Anope_Install_Script.nsi delete mode 100644 src/tools/Anope_MySQL_Install_Script.nsi delete mode 100644 src/tools/obsolete/epona2anope.c (limited to 'src/tools') diff --git a/src/tools/Anope_Install_Script.nsi b/src/tools/Anope_Install_Script.nsi deleted file mode 100644 index 14eb73b3b..000000000 --- a/src/tools/Anope_Install_Script.nsi +++ /dev/null @@ -1,535 +0,0 @@ -; Script generated by the HM NIS Edit Script Wizard. - -; HM NIS Edit Wizard helper defines -!define PRODUCT_NAME "Anope IRC Services" -!define PRODUCT_VERSION "1.7.22" -!define PRODUCT_PUBLISHER "Anope" -!define PRODUCT_WEB_SITE "http://www.anope.org" -!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\anope.exe" -!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" -!define PRODUCT_UNINST_ROOT_KEY "HKLM" - -; MUI 1.67 compatible ------ -!include "MUI.nsh" - -; MUI Settings -!define MUI_ABORTWARNING -!define MUI_ICON "anope-icon.ico" -!define MUI_UNICON "anope-icon.ico" - -; Language Selection Dialog Settings -!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" -!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" -!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" - -; Welcome page -!insertmacro MUI_PAGE_WELCOME -; License page -!define MUI_LICENSEPAGE_RADIOBUTTONS -!insertmacro MUI_PAGE_LICENSE "anope-1.7.22\docs\COPYING.txt" -; Directory page -!insertmacro MUI_PAGE_DIRECTORY -; Instfiles page -!insertmacro MUI_PAGE_INSTFILES -; Finish page -!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\docs\README.txt" -!insertmacro MUI_PAGE_FINISH - -; Uninstaller pages -!insertmacro MUI_UNPAGE_INSTFILES - -; Language files -!insertmacro MUI_LANGUAGE "Dutch" -!insertmacro MUI_LANGUAGE "English" -!insertmacro MUI_LANGUAGE "French" -!insertmacro MUI_LANGUAGE "German" -!insertmacro MUI_LANGUAGE "Italian" -!insertmacro MUI_LANGUAGE "Portuguese" -!insertmacro MUI_LANGUAGE "Spanish" - -; MUI end ------ - -Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "Anope-1.7.22.exe" -InstallDir "$PROGRAMFILES\Anope" -InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" -ShowInstDetails show -ShowUnInstDetails show - -Function .onInit - !insertmacro MUI_LANGDLL_DISPLAY -FunctionEnd - -Section "MainSection" SEC01 - SetOutPath "$INSTDIR" - File "anope-1.7.22\anope.exe" -File "anope-1.7.22\anope.bat" - SetShellVarContext all - CreateDirectory "$SMPROGRAMS\Anope" - CreateShortCut "$SMPROGRAMS\Anope\Anope IRC Services.lnk" "$INSTDIR\anope.exe" - CreateDirectory "$SMPROGRAMS\Anope\Advanced" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Debug and Window Logging).lnk" "$INSTDIR\anope.bat" "-debug -nofork" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Window Logging).lnk" "$INSTDIR\anope.bat" "-nofork" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (No Third Party Modules).lnk" "$INSTDIR\anope.bat" "-nothird" - CreateShortCut "$DESKTOP\Anope IRC Services.lnk" "$INSTDIR\anope.exe" - File "anope-1.7.22\anope.exe.manifest" - File "anope-1.7.22\Changes.conf.txt" - File "anope-1.7.22\Changes.lang.txt" - File "anope-1.7.22\Changes.mysql.txt" - File "anope-1.7.22\Changes.txt" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22\data\anopesmtp.exe" - File "anope-1.7.22\data\anopesmtp.exe.manifest" - SetOutPath "$INSTDIR\data\bin" - File "anope-1.7.22\data\bin\am" - File "anope-1.7.22\data\bin\anoperc.in" - File "anope-1.7.22\data\bin\cp-recursive" - File "anope-1.7.22\data\bin\langtool" - File "anope-1.7.22\data\bin\mydbgen" - File "anope-1.7.22\data\bin\register" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22\data\db-merger.exe" - File "anope-1.7.22\data\db-merger.exe.manifest" - File "anope-1.7.22\data\epona2anope.exe" - File "anope-1.7.22\data\epona2anope.exe.manifest" - File "anope-1.7.22\data\example.conf" - SetOutPath "$INSTDIR\data\languages" - File "anope-1.7.22\data\languages\cat" - File "anope-1.7.22\data\languages\de" - File "anope-1.7.22\data\languages\en_us" - File "anope-1.7.22\data\languages\es" - File "anope-1.7.22\data\languages\fr" - File "anope-1.7.22\data\languages\gr" - File "anope-1.7.22\data\languages\hun" - File "anope-1.7.22\data\languages\it" - File "anope-1.7.22\data\languages\nl" - File "anope-1.7.22\data\languages\pl" - File "anope-1.7.22\data\languages\pt" - File "anope-1.7.22\data\languages\ru" - File "anope-1.7.22\data\languages\tr" - SetOutPath "$INSTDIR\data\logs" - SetOutPath "$INSTDIR\data\backups" - SetOutPath "$INSTDIR\data\modules" - File "anope-1.7.22\data\modules\bahamut.dll" - File "anope-1.7.22\data\modules\bs_act.dll" - File "anope-1.7.22\data\modules\bs_assign.dll" - File "anope-1.7.22\data\modules\bs_badwords.dll" - File "anope-1.7.22\data\modules\bs_bot.dll" - File "anope-1.7.22\data\modules\bs_botlist.dll" - File "anope-1.7.22\data\modules\bs_fantasy.dll" - File "anope-1.7.22\data\modules\bs_fantasy_kick.dll" - File "anope-1.7.22\data\modules\bs_fantasy_kickban.dll" - File "anope-1.7.22\data\modules\bs_fantasy_owner.dll" - File "anope-1.7.22\data\modules\bs_fantasy_seen.dll" - File "anope-1.7.22\data\modules\bs_fantasy_unban.dll" - File "anope-1.7.22\data\modules\bs_help.dll" - File "anope-1.7.22\data\modules\bs_info.dll" - File "anope-1.7.22\data\modules\bs_kick.dll" - File "anope-1.7.22\data\modules\bs_say.dll" - File "anope-1.7.22\data\modules\bs_set.dll" - File "anope-1.7.22\data\modules\bs_unassign.dll" - File "anope-1.7.22\data\modules\charybdis.dll" - File "anope-1.7.22\data\modules\cs_access.dll" - File "anope-1.7.22\data\modules\cs_akick.dll" - File "anope-1.7.22\data\modules\cs_appendtopic.dll" - File "anope-1.7.22\data\modules\cs_ban.dll" - File "anope-1.7.22\data\modules\cs_clear.dll" - File "anope-1.7.22\data\modules\cs_drop.dll" - File "anope-1.7.22\data\modules\cs_enforce.dll" - File "anope-1.7.22\data\modules\cs_forbid.dll" - File "anope-1.7.22\data\modules\cs_getkey.dll" - File "anope-1.7.22\data\modules\cs_getpass.dll" - File "anope-1.7.22\data\modules\cs_help.dll" - File "anope-1.7.22\data\modules\cs_identify.dll" - File "anope-1.7.22\data\modules\cs_info.dll" - File "anope-1.7.22\data\modules\cs_invite.dll" - File "anope-1.7.22\data\modules\cs_kick.dll" - File "anope-1.7.22\data\modules\cs_list.dll" - File "anope-1.7.22\data\modules\cs_logout.dll" - File "anope-1.7.22\data\modules\cs_modes.dll" - File "anope-1.7.22\data\modules\cs_register.dll" - File "anope-1.7.22\data\modules\cs_sendpass.dll" - File "anope-1.7.22\data\modules\cs_set.dll" - File "anope-1.7.22\data\modules\cs_status.dll" - File "anope-1.7.22\data\modules\cs_suspend.dll" - File "anope-1.7.22\data\modules\cs_tban.dll" - File "anope-1.7.22\data\modules\cs_topic.dll" - File "anope-1.7.22\data\modules\cs_xop.dll" - File "anope-1.7.22\data\modules\dreamforge.dll" - File "anope-1.7.22\data\modules\enc_md5.dll" - File "anope-1.7.22\data\modules\enc_none.dll" - File "anope-1.7.22\data\modules\enc_old.dll" - File "anope-1.7.22\data\modules\he_help.dll" - File "anope-1.7.22\data\modules\hs_del.dll" - File "anope-1.7.22\data\modules\hs_delall.dll" - File "anope-1.7.22\data\modules\hs_group.dll" - File "anope-1.7.22\data\modules\hs_help.dll" - File "anope-1.7.22\data\modules\hs_list.dll" - File "anope-1.7.22\data\modules\hs_off.dll" - File "anope-1.7.22\data\modules\hs_on.dll" - File "anope-1.7.22\data\modules\hs_request.dll" - File "anope-1.7.22\data\modules\hs_set.dll" - File "anope-1.7.22\data\modules\hs_setall.dll" - File "anope-1.7.22\data\modules\hybrid.dll" - File "anope-1.7.22\data\modules\inspircd10.dll" - File "anope-1.7.22\data\modules\inspircd11.dll" - File "anope-1.7.22\data\modules\ms_cancel.dll" - File "anope-1.7.22\data\modules\ms_check.dll" - File "anope-1.7.22\data\modules\ms_del.dll" - File "anope-1.7.22\data\modules\ms_help.dll" - File "anope-1.7.22\data\modules\ms_info.dll" - File "anope-1.7.22\data\modules\ms_list.dll" - File "anope-1.7.22\data\modules\ms_read.dll" - File "anope-1.7.22\data\modules\ms_rsend.dll" - File "anope-1.7.22\data\modules\ms_send.dll" - File "anope-1.7.22\data\modules\ms_sendall.dll" - File "anope-1.7.22\data\modules\ms_set.dll" - File "anope-1.7.22\data\modules\ms_staff.dll" - File "anope-1.7.22\data\modules\ns_access.dll" - File "anope-1.7.22\data\modules\ns_alist.dll" - File "anope-1.7.22\data\modules\ns_drop.dll" - File "anope-1.7.22\data\modules\ns_forbid.dll" - File "anope-1.7.22\data\modules\ns_getemail.dll" - File "anope-1.7.22\data\modules\ns_getpass.dll" - File "anope-1.7.22\data\modules\ns_ghost.dll" - File "anope-1.7.22\data\modules\ns_group.dll" - File "anope-1.7.22\data\modules\ns_help.dll" - File "anope-1.7.22\data\modules\ns_identify.dll" - File "anope-1.7.22\data\modules\ns_info.dll" - File "anope-1.7.22\data\modules\ns_list.dll" - File "anope-1.7.22\data\modules\ns_logout.dll" - File "anope-1.7.22\data\modules\ns_maxemail.dll" - File "anope-1.7.22\data\modules\ns_recover.dll" - File "anope-1.7.22\data\modules\ns_register.dll" - File "anope-1.7.22\data\modules\ns_release.dll" - File "anope-1.7.22\data\modules\ns_saset.dll" - File "anope-1.7.22\data\modules\ns_sendpass.dll" - File "anope-1.7.22\data\modules\ns_set.dll" - File "anope-1.7.22\data\modules\ns_status.dll" - File "anope-1.7.22\data\modules\ns_suspend.dll" - File "anope-1.7.22\data\modules\ns_update.dll" - File "anope-1.7.22\data\modules\os_admin.dll" - File "anope-1.7.22\data\modules\os_akill.dll" - File "anope-1.7.22\data\modules\os_chankill.dll" - File "anope-1.7.22\data\modules\os_chanlist.dll" - File "anope-1.7.22\data\modules\os_clearmodes.dll" - File "anope-1.7.22\data\modules\os_defcon.dll" - File "anope-1.7.22\data\modules\os_global.dll" - File "anope-1.7.22\data\modules\os_help.dll" - File "anope-1.7.22\data\modules\os_ignore.dll" - File "anope-1.7.22\data\modules\os_info.dll" - File "anope-1.7.22\data\modules\os_jupe.dll" - File "anope-1.7.22\data\modules\os_kick.dll" - File "anope-1.7.22\data\modules\os_logonnews.dll" - File "anope-1.7.22\data\modules\os_mode.dll" - File "anope-1.7.22\data\modules\os_modinfo.dll" - File "anope-1.7.22\data\modules\os_modlist.dll" - File "anope-1.7.22\data\modules\os_modload.dll" - File "anope-1.7.22\data\modules\os_modunload.dll" - File "anope-1.7.22\data\modules\os_noop.dll" - File "anope-1.7.22\data\modules\os_oline.dll" - File "anope-1.7.22\data\modules\os_oper.dll" - File "anope-1.7.22\data\modules\os_opernews.dll" - File "anope-1.7.22\data\modules\os_quit.dll" - File "anope-1.7.22\data\modules\os_randomnews.dll" - File "anope-1.7.22\data\modules\os_raw.dll" - File "anope-1.7.22\data\modules\os_reload.dll" - File "anope-1.7.22\data\modules\os_restart.dll" - File "anope-1.7.22\data\modules\os_session.dll" - File "anope-1.7.22\data\modules\os_set.dll" - File "anope-1.7.22\data\modules\os_sgline.dll" - File "anope-1.7.22\data\modules\os_shutdown.dll" - File "anope-1.7.22\data\modules\os_sqline.dll" - File "anope-1.7.22\data\modules\os_staff.dll" - File "anope-1.7.22\data\modules\os_stats.dll" - File "anope-1.7.22\data\modules\os_svsnick.dll" - File "anope-1.7.22\data\modules\os_szline.dll" - File "anope-1.7.22\data\modules\os_umode.dll" - File "anope-1.7.22\data\modules\os_update.dll" - File "anope-1.7.22\data\modules\os_userlist.dll" - File "anope-1.7.22\data\modules\plexus2.dll" - File "anope-1.7.22\data\modules\plexus3.dll" - File "anope-1.7.22\data\modules\ptlink.dll" - File "anope-1.7.22\data\modules\rageircd.dll" - File "anope-1.7.22\data\modules\ratbox.dll" - File "anope-1.7.22\data\modules\shadowircd.dll" - File "anope-1.7.22\data\modules\solidircd.dll" - File "anope-1.7.22\data\modules\ultimate2.dll" - File "anope-1.7.22\data\modules\ultimate3.dll" - File "anope-1.7.22\data\modules\unreal31.dll" - File "anope-1.7.22\data\modules\unreal32.dll" - File "anope-1.7.22\data\modules\viagra.dll" - SetOutPath "$INSTDIR\data\modules\runtime" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22\data\tables.sql" - SetOutPath "$INSTDIR\docs" - File "anope-1.7.22\docs\BUGS.txt" - File "anope-1.7.22\docs\COPYING.txt" - File "anope-1.7.22\docs\DEFCON.txt" - File "anope-1.7.22\docs\EVENTS.txt" - File "anope-1.7.22\docs\FAQ.txt" - File "anope-1.7.22\docs\INSTALL.txt" - File "anope-1.7.22\docs\IRCD.txt" - File "anope-1.7.22\docs\MODULES.txt" - File "anope-1.7.22\docs\MYSQL.txt" - File "anope-1.7.22\docs\NEWS.txt" - File "anope-1.7.22\docs\OLDCHANGES.txt" - File "anope-1.7.22\docs\PROXY.txt" - File "anope-1.7.22\docs\README.txt" - File "anope-1.7.22\docs\WIN32.txt" -SectionEnd - -Section -AdditionalIcons - SetOutPath $INSTDIR - WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" - CreateShortCut "$SMPROGRAMS\Anope\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" - CreateShortCut "$SMPROGRAMS\Anope\Uninstall.lnk" "$INSTDIR\uninst.exe" -SectionEnd - -Section -Post - WriteUninstaller "$INSTDIR\uninst.exe" - WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\anope.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\anope.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" -SectionEnd - - -Function un.onUninstSuccess - HideWindow - MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." -FunctionEnd - -Function un.onInit -!insertmacro MUI_UNGETLANGUAGE - MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2 - Abort -FunctionEnd - -Section Uninstall - Delete "$INSTDIR\${PRODUCT_NAME}.url" - Delete "$INSTDIR\uninst.exe" - Delete "$INSTDIR\docs\WIN32.txt" - Delete "$INSTDIR\docs\README.txt" - Delete "$INSTDIR\docs\PROXY.txt" - Delete "$INSTDIR\docs\OLDCHANGES.txt" - Delete "$INSTDIR\docs\NEWS.txt" - Delete "$INSTDIR\docs\MYSQL.txt" - Delete "$INSTDIR\docs\MODULES.txt" - Delete "$INSTDIR\docs\IRCD.txt" - Delete "$INSTDIR\docs\INSTALL.txt" - Delete "$INSTDIR\docs\FAQ.txt" - Delete "$INSTDIR\docs\EVENTS.txt" - Delete "$INSTDIR\docs\DEFCON.txt" - Delete "$INSTDIR\docs\COPYING.txt" - Delete "$INSTDIR\docs\BUGS.txt" - Delete "$INSTDIR\data\tables.sql" - Delete "$INSTDIR\data\modules\viagra.dll" - Delete "$INSTDIR\data\modules\unreal32.dll" - Delete "$INSTDIR\data\modules\unreal31.dll" - Delete "$INSTDIR\data\modules\ultimate3.dll" - Delete "$INSTDIR\data\modules\ultimate2.dll" - Delete "$INSTDIR\data\modules\solidircd.dll" - Delete "$INSTDIR\data\modules\shadowircd.dll" - Delete "$INSTDIR\data\modules\ratbox.dll" - Delete "$INSTDIR\data\modules\rageircd.dll" - Delete "$INSTDIR\data\modules\ptlink.dll" - Delete "$INSTDIR\data\modules\plexus3.dll" - Delete "$INSTDIR\data\modules\plexus2.dll" - Delete "$INSTDIR\data\modules\os_userlist.dll" - Delete "$INSTDIR\data\modules\os_update.dll" - Delete "$INSTDIR\data\modules\os_umode.dll" - Delete "$INSTDIR\data\modules\os_szline.dll" - Delete "$INSTDIR\data\modules\os_svsnick.dll" - Delete "$INSTDIR\data\modules\os_stats.dll" - Delete "$INSTDIR\data\modules\os_staff.dll" - Delete "$INSTDIR\data\modules\os_sqline.dll" - Delete "$INSTDIR\data\modules\os_shutdown.dll" - Delete "$INSTDIR\data\modules\os_sgline.dll" - Delete "$INSTDIR\data\modules\os_set.dll" - Delete "$INSTDIR\data\modules\os_session.dll" - Delete "$INSTDIR\data\modules\os_restart.dll" - Delete "$INSTDIR\data\modules\os_reload.dll" - Delete "$INSTDIR\data\modules\os_raw.dll" - Delete "$INSTDIR\data\modules\os_randomnews.dll" - Delete "$INSTDIR\data\modules\os_quit.dll" - Delete "$INSTDIR\data\modules\os_opernews.dll" - Delete "$INSTDIR\data\modules\os_oper.dll" - Delete "$INSTDIR\data\modules\os_oline.dll" - Delete "$INSTDIR\data\modules\os_noop.dll" - Delete "$INSTDIR\data\modules\os_modunload.dll" - Delete "$INSTDIR\data\modules\os_modload.dll" - Delete "$INSTDIR\data\modules\os_modlist.dll" - Delete "$INSTDIR\data\modules\os_modinfo.dll" - Delete "$INSTDIR\data\modules\os_mode.dll" - Delete "$INSTDIR\data\modules\os_logonnews.dll" - Delete "$INSTDIR\data\modules\os_kick.dll" - Delete "$INSTDIR\data\modules\os_jupe.dll" - Delete "$INSTDIR\data\modules\os_info.dll" - Delete "$INSTDIR\data\modules\os_ignore.dll" - Delete "$INSTDIR\data\modules\os_help.dll" - Delete "$INSTDIR\data\modules\os_global.dll" - Delete "$INSTDIR\data\modules\os_defcon.dll" - Delete "$INSTDIR\data\modules\os_clearmodes.dll" - Delete "$INSTDIR\data\modules\os_chanlist.dll" - Delete "$INSTDIR\data\modules\os_chankill.dll" - Delete "$INSTDIR\data\modules\os_akill.dll" - Delete "$INSTDIR\data\modules\os_admin.dll" - Delete "$INSTDIR\data\modules\ns_update.dll" - Delete "$INSTDIR\data\modules\ns_suspend.dll" - Delete "$INSTDIR\data\modules\ns_status.dll" - Delete "$INSTDIR\data\modules\ns_set.dll" - Delete "$INSTDIR\data\modules\ns_sendpass.dll" - Delete "$INSTDIR\data\modules\ns_saset.dll" - Delete "$INSTDIR\data\modules\ns_release.dll" - Delete "$INSTDIR\data\modules\ns_register.dll" - Delete "$INSTDIR\data\modules\ns_recover.dll" - Delete "$INSTDIR\data\modules\ns_maxemail.dll" - Delete "$INSTDIR\data\modules\ns_logout.dll" - Delete "$INSTDIR\data\modules\ns_list.dll" - Delete "$INSTDIR\data\modules\ns_info.dll" - Delete "$INSTDIR\data\modules\ns_identify.dll" - Delete "$INSTDIR\data\modules\ns_help.dll" - Delete "$INSTDIR\data\modules\ns_group.dll" - Delete "$INSTDIR\data\modules\ns_ghost.dll" - Delete "$INSTDIR\data\modules\ns_getpass.dll" - Delete "$INSTDIR\data\modules\ns_getemail.dll" - Delete "$INSTDIR\data\modules\ns_forbid.dll" - Delete "$INSTDIR\data\modules\ns_drop.dll" - Delete "$INSTDIR\data\modules\ns_alist.dll" - Delete "$INSTDIR\data\modules\ns_access.dll" - Delete "$INSTDIR\data\modules\ms_staff.dll" - Delete "$INSTDIR\data\modules\ms_set.dll" - Delete "$INSTDIR\data\modules\ms_sendall.dll" - Delete "$INSTDIR\data\modules\ms_send.dll" - Delete "$INSTDIR\data\modules\ms_rsend.dll" - Delete "$INSTDIR\data\modules\ms_read.dll" - Delete "$INSTDIR\data\modules\ms_list.dll" - Delete "$INSTDIR\data\modules\ms_info.dll" - Delete "$INSTDIR\data\modules\ms_help.dll" - Delete "$INSTDIR\data\modules\ms_del.dll" - Delete "$INSTDIR\data\modules\ms_check.dll" - Delete "$INSTDIR\data\modules\ms_cancel.dll" - Delete "$INSTDIR\data\modules\inspircd11.dll" - Delete "$INSTDIR\data\modules\inspircd10.dll" - Delete "$INSTDIR\data\modules\hybrid.dll" - Delete "$INSTDIR\data\modules\hs_setall.dll" - Delete "$INSTDIR\data\modules\hs_set.dll" - Delete "$INSTDIR\data\modules\hs_request.dll" - Delete "$INSTDIR\data\modules\hs_on.dll" - Delete "$INSTDIR\data\modules\hs_off.dll" - Delete "$INSTDIR\data\modules\hs_list.dll" - Delete "$INSTDIR\data\modules\hs_help.dll" - Delete "$INSTDIR\data\modules\hs_group.dll" - Delete "$INSTDIR\data\modules\hs_delall.dll" - Delete "$INSTDIR\data\modules\hs_del.dll" - Delete "$INSTDIR\data\modules\he_help.dll" - Delete "$INSTDIR\data\modules\enc_old.dll" - Delete "$INSTDIR\data\modules\enc_none.dll" - Delete "$INSTDIR\data\modules\enc_md5.dll" - Delete "$INSTDIR\data\modules\dreamforge.dll" - Delete "$INSTDIR\data\modules\cs_xop.dll" - Delete "$INSTDIR\data\modules\cs_topic.dll" - Delete "$INSTDIR\data\modules\cs_tban.dll" - Delete "$INSTDIR\data\modules\cs_suspend.dll" - Delete "$INSTDIR\data\modules\cs_status.dll" - Delete "$INSTDIR\data\modules\cs_set.dll" - Delete "$INSTDIR\data\modules\cs_sendpass.dll" - Delete "$INSTDIR\data\modules\cs_register.dll" - Delete "$INSTDIR\data\modules\cs_modes.dll" - Delete "$INSTDIR\data\modules\cs_logout.dll" - Delete "$INSTDIR\data\modules\cs_list.dll" - Delete "$INSTDIR\data\modules\cs_kick.dll" - Delete "$INSTDIR\data\modules\cs_invite.dll" - Delete "$INSTDIR\data\modules\cs_info.dll" - Delete "$INSTDIR\data\modules\cs_identify.dll" - Delete "$INSTDIR\data\modules\cs_help.dll" - Delete "$INSTDIR\data\modules\cs_getpass.dll" - Delete "$INSTDIR\data\modules\cs_getkey.dll" - Delete "$INSTDIR\data\modules\cs_forbid.dll" - Delete "$INSTDIR\data\modules\cs_enforce.dll" - Delete "$INSTDIR\data\modules\cs_drop.dll" - Delete "$INSTDIR\data\modules\cs_clear.dll" - Delete "$INSTDIR\data\modules\cs_ban.dll" - Delete "$INSTDIR\data\modules\cs_appendtopic.dll" - Delete "$INSTDIR\data\modules\cs_akick.dll" - Delete "$INSTDIR\data\modules\cs_access.dll" - Delete "$INSTDIR\data\modules\charybdis.dll" - Delete "$INSTDIR\data\modules\bs_unassign.dll" - Delete "$INSTDIR\data\modules\bs_set.dll" - Delete "$INSTDIR\data\modules\bs_say.dll" - Delete "$INSTDIR\data\modules\bs_kick.dll" - Delete "$INSTDIR\data\modules\bs_info.dll" - Delete "$INSTDIR\data\modules\bs_help.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_unban.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_seen.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_owner.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_kickban.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_kick.dll" - Delete "$INSTDIR\data\modules\bs_fantasy.dll" - Delete "$INSTDIR\data\modules\bs_botlist.dll" - Delete "$INSTDIR\data\modules\bs_bot.dll" - Delete "$INSTDIR\data\modules\bs_badwords.dll" - Delete "$INSTDIR\data\modules\bs_assign.dll" - Delete "$INSTDIR\data\modules\bs_act.dll" - Delete "$INSTDIR\data\modules\bahamut.dll" - Delete "$INSTDIR\data\languages\tr" - Delete "$INSTDIR\data\languages\ru" - Delete "$INSTDIR\data\languages\pt" - Delete "$INSTDIR\data\languages\pl" - Delete "$INSTDIR\data\languages\nl" - Delete "$INSTDIR\data\languages\it" - Delete "$INSTDIR\data\languages\hun" - Delete "$INSTDIR\data\languages\gr" - Delete "$INSTDIR\data\languages\fr" - Delete "$INSTDIR\data\languages\es" - Delete "$INSTDIR\data\languages\en_us" - Delete "$INSTDIR\data\languages\de" - Delete "$INSTDIR\data\languages\cat" - Delete "$INSTDIR\data\example.conf" - Delete "$INSTDIR\data\epona2anope.exe.manifest" - Delete "$INSTDIR\data\epona2anope.exe" - Delete "$INSTDIR\data\db-merger.exe.manifest" - Delete "$INSTDIR\data\db-merger.exe" - Delete "$INSTDIR\data\bin\register" - Delete "$INSTDIR\data\bin\mydbgen" - Delete "$INSTDIR\data\bin\langtool" - Delete "$INSTDIR\data\bin\cp-recursive" - Delete "$INSTDIR\data\bin\anoperc.in" - Delete "$INSTDIR\data\bin\am" - Delete "$INSTDIR\data\anopesmtp.exe.manifest" - Delete "$INSTDIR\data\anopesmtp.exe" - Delete "$INSTDIR\Changes.txt" - Delete "$INSTDIR\Changes.mysql.txt" - Delete "$INSTDIR\Changes.lang.txt" - Delete "$INSTDIR\Changes.conf.txt" - Delete "$INSTDIR\anope.exe.manifest" - Delete "$INSTDIR\anope.exe" -Delete "$INSTDIR\anope.bat" - SetShellVarContext all - Delete "$SMPROGRAMS\Anope\Uninstall.lnk" - Delete "$SMPROGRAMS\Anope\Website.lnk" - Delete "$DESKTOP\Anope IRC Services.lnk" - Delete "$SMPROGRAMS\Anope\Anope IRC Services.lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Debug and Window Logging).lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Window Logging).lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (No Third Party Modules).lnk" - -RMDir "$SMPROGRAMS\Anope\Advanced" - RMDir "$SMPROGRAMS\Anope" - RMDir "$INSTDIR\docs" - RMDir "$INSTDIR\data\modules" -RMDir "$INSTDIR\data\backups" - RMDir "$INSTDIR\data\logs" - RMDir "$INSTDIR\data\languages" - RMDir "$INSTDIR\data\bin" - RMDir "$INSTDIR\data" - RMDir "$INSTDIR" - - DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" - DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" - SetAutoClose true -SectionEnd \ No newline at end of file diff --git a/src/tools/Anope_MySQL_Install_Script.nsi b/src/tools/Anope_MySQL_Install_Script.nsi deleted file mode 100644 index 5d2a70779..000000000 --- a/src/tools/Anope_MySQL_Install_Script.nsi +++ /dev/null @@ -1,538 +0,0 @@ -; Script generated by the HM NIS Edit Script Wizard. - -; HM NIS Edit Wizard helper defines -!define PRODUCT_NAME "Anope IRC Services" -!define PRODUCT_VERSION "1.7.22-MySQL" -!define PRODUCT_PUBLISHER "Anope" -!define PRODUCT_WEB_SITE "http://www.anope.org" -!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\anope.exe" -!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" -!define PRODUCT_UNINST_ROOT_KEY "HKLM" - -; MUI 1.67 compatible ------ -!include "MUI.nsh" - -; MUI Settings -!define MUI_ABORTWARNING -!define MUI_ICON "anope-icon.ico" -!define MUI_UNICON "anope-icon.ico" - -; Language Selection Dialog Settings -!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" -!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" -!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" - -; Welcome page -!insertmacro MUI_PAGE_WELCOME -; License page -!define MUI_LICENSEPAGE_RADIOBUTTONS -!insertmacro MUI_PAGE_LICENSE "anope-1.7.22-MySQL\docs\COPYING.txt" -; Directory page -!insertmacro MUI_PAGE_DIRECTORY -; Instfiles page -!insertmacro MUI_PAGE_INSTFILES -; Finish page -!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\docs\README.txt" -!insertmacro MUI_PAGE_FINISH - -; Uninstaller pages -!insertmacro MUI_UNPAGE_INSTFILES - -; Language files -!insertmacro MUI_LANGUAGE "Dutch" -!insertmacro MUI_LANGUAGE "English" -!insertmacro MUI_LANGUAGE "French" -!insertmacro MUI_LANGUAGE "German" -!insertmacro MUI_LANGUAGE "Italian" -!insertmacro MUI_LANGUAGE "Portuguese" -!insertmacro MUI_LANGUAGE "Spanish" - -; MUI end ------ - -Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "Anope-1.7.22-MySQL.exe" -InstallDir "$PROGRAMFILES\Anope" -InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" -ShowInstDetails show -ShowUnInstDetails show - -Function .onInit - !insertmacro MUI_LANGDLL_DISPLAY -FunctionEnd - -Section "MainSection" SEC01 - SetOutPath "$INSTDIR" - File "anope-1.7.22-MySQL\anope.exe" -File "anope-1.7.22\anope.bat" - SetShellVarContext all - CreateDirectory "$SMPROGRAMS\Anope" - CreateShortCut "$SMPROGRAMS\Anope\Anope IRC Services.lnk" "$INSTDIR\anope.exe" - CreateShortCut "$DESKTOP\Anope IRC Services.lnk" "$INSTDIR\anope.exe" - CreateDirectory "$SMPROGRAMS\Anope\Advanced" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Debug and Window Logging).lnk" "$INSTDIR\anope.bat" "-debug -nofork" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Window Logging).lnk" "$INSTDIR\anope.bat" "-nofork" - CreateShortCut "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (No Third Party Modules).lnk" "$INSTDIR\anope.bat" "-nothird" - - File "anope-1.7.22-MySQL\anope.exe.manifest" - File "anope-1.7.22-MySQL\Changes.conf.txt" - File "anope-1.7.22-MySQL\Changes.lang.txt" - File "anope-1.7.22-MySQL\Changes.mysql.txt" - File "anope-1.7.22-MySQL\Changes.txt" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22-MySQL\data\anopesmtp.exe" - File "anope-1.7.22-MySQL\data\anopesmtp.exe.manifest" - SetOutPath "$INSTDIR\data\bin" - File "anope-1.7.22-MySQL\data\bin\am" - File "anope-1.7.22-MySQL\data\bin\anoperc.in" - File "anope-1.7.22-MySQL\data\bin\cp-recursive" - File "anope-1.7.22-MySQL\data\bin\langtool" - File "anope-1.7.22-MySQL\data\bin\mydbgen" - File "anope-1.7.22-MySQL\data\bin\register" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22-MySQL\data\db-merger.exe" - File "anope-1.7.22-MySQL\data\db-merger.exe.manifest" - File "anope-1.7.22-MySQL\data\epona2anope.exe" - File "anope-1.7.22-MySQL\data\epona2anope.exe.manifest" - File "anope-1.7.22-MySQL\data\example.conf" - SetOutPath "$INSTDIR\data\languages" - File "anope-1.7.22-MySQL\data\languages\cat" - File "anope-1.7.22-MySQL\data\languages\de" - File "anope-1.7.22-MySQL\data\languages\en_us" - File "anope-1.7.22-MySQL\data\languages\es" - File "anope-1.7.22-MySQL\data\languages\fr" - File "anope-1.7.22-MySQL\data\languages\gr" - File "anope-1.7.22-MySQL\data\languages\hun" - File "anope-1.7.22-MySQL\data\languages\it" - File "anope-1.7.22-MySQL\data\languages\nl" - File "anope-1.7.22-MySQL\data\languages\pl" - File "anope-1.7.22-MySQL\data\languages\pt" - File "anope-1.7.22-MySQL\data\languages\ru" - File "anope-1.7.22-MySQL\data\languages\tr" - SetOutPath "$INSTDIR\data\logs" -SetOutPath "$INSTDIR\data\backups" - SetOutPath "$INSTDIR\data\modules" - File "anope-1.7.22-MySQL\data\modules\bahamut.dll" - File "anope-1.7.22-MySQL\data\modules\bs_act.dll" - File "anope-1.7.22-MySQL\data\modules\bs_assign.dll" - File "anope-1.7.22-MySQL\data\modules\bs_badwords.dll" - File "anope-1.7.22-MySQL\data\modules\bs_bot.dll" - File "anope-1.7.22-MySQL\data\modules\bs_botlist.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy_kick.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy_kickban.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy_owner.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy_seen.dll" - File "anope-1.7.22-MySQL\data\modules\bs_fantasy_unban.dll" - File "anope-1.7.22-MySQL\data\modules\bs_help.dll" - File "anope-1.7.22-MySQL\data\modules\bs_info.dll" - File "anope-1.7.22-MySQL\data\modules\bs_kick.dll" - File "anope-1.7.22-MySQL\data\modules\bs_say.dll" - File "anope-1.7.22-MySQL\data\modules\bs_set.dll" - File "anope-1.7.22-MySQL\data\modules\bs_unassign.dll" - File "anope-1.7.22-MySQL\data\modules\charybdis.dll" - File "anope-1.7.22-MySQL\data\modules\cs_access.dll" - File "anope-1.7.22-MySQL\data\modules\cs_akick.dll" - File "anope-1.7.22-MySQL\data\modules\cs_appendtopic.dll" - File "anope-1.7.22-MySQL\data\modules\cs_ban.dll" - File "anope-1.7.22-MySQL\data\modules\cs_clear.dll" - File "anope-1.7.22-MySQL\data\modules\cs_drop.dll" - File "anope-1.7.22-MySQL\data\modules\cs_enforce.dll" - File "anope-1.7.22-MySQL\data\modules\cs_forbid.dll" - File "anope-1.7.22-MySQL\data\modules\cs_getkey.dll" - File "anope-1.7.22-MySQL\data\modules\cs_getpass.dll" - File "anope-1.7.22-MySQL\data\modules\cs_help.dll" - File "anope-1.7.22-MySQL\data\modules\cs_identify.dll" - File "anope-1.7.22-MySQL\data\modules\cs_info.dll" - File "anope-1.7.22-MySQL\data\modules\cs_invite.dll" - File "anope-1.7.22-MySQL\data\modules\cs_kick.dll" - File "anope-1.7.22-MySQL\data\modules\cs_list.dll" - File "anope-1.7.22-MySQL\data\modules\cs_logout.dll" - File "anope-1.7.22-MySQL\data\modules\cs_modes.dll" - File "anope-1.7.22-MySQL\data\modules\cs_register.dll" - File "anope-1.7.22-MySQL\data\modules\cs_sendpass.dll" - File "anope-1.7.22-MySQL\data\modules\cs_set.dll" - File "anope-1.7.22-MySQL\data\modules\cs_status.dll" - File "anope-1.7.22-MySQL\data\modules\cs_suspend.dll" - File "anope-1.7.22-MySQL\data\modules\cs_tban.dll" - File "anope-1.7.22-MySQL\data\modules\cs_topic.dll" - File "anope-1.7.22-MySQL\data\modules\cs_xop.dll" - File "anope-1.7.22-MySQL\data\modules\dreamforge.dll" - File "anope-1.7.22-MySQL\data\modules\enc_md5.dll" - File "anope-1.7.22-MySQL\data\modules\enc_none.dll" - File "anope-1.7.22-MySQL\data\modules\enc_old.dll" - File "anope-1.7.22-MySQL\data\modules\he_help.dll" - File "anope-1.7.22-MySQL\data\modules\hs_del.dll" - File "anope-1.7.22-MySQL\data\modules\hs_delall.dll" - File "anope-1.7.22-MySQL\data\modules\hs_group.dll" - File "anope-1.7.22-MySQL\data\modules\hs_help.dll" - File "anope-1.7.22-MySQL\data\modules\hs_list.dll" - File "anope-1.7.22-MySQL\data\modules\hs_off.dll" - File "anope-1.7.22-MySQL\data\modules\hs_on.dll" - File "anope-1.7.22-MySQL\data\modules\hs_request.dll" - File "anope-1.7.22-MySQL\data\modules\hs_set.dll" - File "anope-1.7.22-MySQL\data\modules\hs_setall.dll" - File "anope-1.7.22-MySQL\data\modules\hybrid.dll" - File "anope-1.7.22-MySQL\data\modules\inspircd10.dll" - File "anope-1.7.22-MySQL\data\modules\inspircd11.dll" - File "anope-1.7.22-MySQL\data\modules\ms_cancel.dll" - File "anope-1.7.22-MySQL\data\modules\ms_check.dll" - File "anope-1.7.22-MySQL\data\modules\ms_del.dll" - File "anope-1.7.22-MySQL\data\modules\ms_help.dll" - File "anope-1.7.22-MySQL\data\modules\ms_info.dll" - File "anope-1.7.22-MySQL\data\modules\ms_list.dll" - File "anope-1.7.22-MySQL\data\modules\ms_read.dll" - File "anope-1.7.22-MySQL\data\modules\ms_rsend.dll" - File "anope-1.7.22-MySQL\data\modules\ms_send.dll" - File "anope-1.7.22-MySQL\data\modules\ms_sendall.dll" - File "anope-1.7.22-MySQL\data\modules\ms_set.dll" - File "anope-1.7.22-MySQL\data\modules\ms_staff.dll" - File "anope-1.7.22-MySQL\data\modules\ns_access.dll" - File "anope-1.7.22-MySQL\data\modules\ns_alist.dll" - File "anope-1.7.22-MySQL\data\modules\ns_drop.dll" - File "anope-1.7.22-MySQL\data\modules\ns_forbid.dll" - File "anope-1.7.22-MySQL\data\modules\ns_getemail.dll" - File "anope-1.7.22-MySQL\data\modules\ns_getpass.dll" - File "anope-1.7.22-MySQL\data\modules\ns_ghost.dll" - File "anope-1.7.22-MySQL\data\modules\ns_group.dll" - File "anope-1.7.22-MySQL\data\modules\ns_help.dll" - File "anope-1.7.22-MySQL\data\modules\ns_identify.dll" - File "anope-1.7.22-MySQL\data\modules\ns_info.dll" - File "anope-1.7.22-MySQL\data\modules\ns_list.dll" - File "anope-1.7.22-MySQL\data\modules\ns_logout.dll" - File "anope-1.7.22-MySQL\data\modules\ns_maxemail.dll" - File "anope-1.7.22-MySQL\data\modules\ns_recover.dll" - File "anope-1.7.22-MySQL\data\modules\ns_register.dll" - File "anope-1.7.22-MySQL\data\modules\ns_release.dll" - File "anope-1.7.22-MySQL\data\modules\ns_saset.dll" - File "anope-1.7.22-MySQL\data\modules\ns_sendpass.dll" - File "anope-1.7.22-MySQL\data\modules\ns_set.dll" - File "anope-1.7.22-MySQL\data\modules\ns_status.dll" - File "anope-1.7.22-MySQL\data\modules\ns_suspend.dll" - File "anope-1.7.22-MySQL\data\modules\ns_update.dll" - File "anope-1.7.22-MySQL\data\modules\os_admin.dll" - File "anope-1.7.22-MySQL\data\modules\os_akill.dll" - File "anope-1.7.22-MySQL\data\modules\os_chankill.dll" - File "anope-1.7.22-MySQL\data\modules\os_chanlist.dll" - File "anope-1.7.22-MySQL\data\modules\os_clearmodes.dll" - File "anope-1.7.22-MySQL\data\modules\os_defcon.dll" - File "anope-1.7.22-MySQL\data\modules\os_global.dll" - File "anope-1.7.22-MySQL\data\modules\os_help.dll" - File "anope-1.7.22-MySQL\data\modules\os_ignore.dll" - File "anope-1.7.22-MySQL\data\modules\os_info.dll" - File "anope-1.7.22-MySQL\data\modules\os_jupe.dll" - File "anope-1.7.22-MySQL\data\modules\os_kick.dll" - File "anope-1.7.22-MySQL\data\modules\os_logonnews.dll" - File "anope-1.7.22-MySQL\data\modules\os_mode.dll" - File "anope-1.7.22-MySQL\data\modules\os_modinfo.dll" - File "anope-1.7.22-MySQL\data\modules\os_modlist.dll" - File "anope-1.7.22-MySQL\data\modules\os_modload.dll" - File "anope-1.7.22-MySQL\data\modules\os_modunload.dll" - File "anope-1.7.22-MySQL\data\modules\os_noop.dll" - File "anope-1.7.22-MySQL\data\modules\os_oline.dll" - File "anope-1.7.22-MySQL\data\modules\os_oper.dll" - File "anope-1.7.22-MySQL\data\modules\os_opernews.dll" - File "anope-1.7.22-MySQL\data\modules\os_quit.dll" - File "anope-1.7.22-MySQL\data\modules\os_randomnews.dll" - File "anope-1.7.22-MySQL\data\modules\os_raw.dll" - File "anope-1.7.22-MySQL\data\modules\os_reload.dll" - File "anope-1.7.22-MySQL\data\modules\os_restart.dll" - File "anope-1.7.22-MySQL\data\modules\os_session.dll" - File "anope-1.7.22-MySQL\data\modules\os_set.dll" - File "anope-1.7.22-MySQL\data\modules\os_sgline.dll" - File "anope-1.7.22-MySQL\data\modules\os_shutdown.dll" - File "anope-1.7.22-MySQL\data\modules\os_sqline.dll" - File "anope-1.7.22-MySQL\data\modules\os_staff.dll" - File "anope-1.7.22-MySQL\data\modules\os_stats.dll" - File "anope-1.7.22-MySQL\data\modules\os_svsnick.dll" - File "anope-1.7.22-MySQL\data\modules\os_szline.dll" - File "anope-1.7.22-MySQL\data\modules\os_umode.dll" - File "anope-1.7.22-MySQL\data\modules\os_update.dll" - File "anope-1.7.22-MySQL\data\modules\os_userlist.dll" - File "anope-1.7.22-MySQL\data\modules\plexus2.dll" - File "anope-1.7.22-MySQL\data\modules\plexus3.dll" - File "anope-1.7.22-MySQL\data\modules\ptlink.dll" - File "anope-1.7.22-MySQL\data\modules\rageircd.dll" - File "anope-1.7.22-MySQL\data\modules\ratbox.dll" - File "anope-1.7.22-MySQL\data\modules\shadowircd.dll" - File "anope-1.7.22-MySQL\data\modules\solidircd.dll" - File "anope-1.7.22-MySQL\data\modules\ultimate2.dll" - File "anope-1.7.22-MySQL\data\modules\ultimate3.dll" - File "anope-1.7.22-MySQL\data\modules\unreal31.dll" - File "anope-1.7.22-MySQL\data\modules\unreal32.dll" - File "anope-1.7.22-MySQL\data\modules\viagra.dll" - SetOutPath "$INSTDIR\data\modules\runtime" - SetOutPath "$INSTDIR\data" - File "anope-1.7.22-MySQL\data\tables.sql" - SetOutPath "$INSTDIR\docs" - File "anope-1.7.22-MySQL\docs\BUGS.txt" - File "anope-1.7.22-MySQL\docs\COPYING.txt" - File "anope-1.7.22-MySQL\docs\DEFCON.txt" - File "anope-1.7.22-MySQL\docs\EVENTS.txt" - File "anope-1.7.22-MySQL\docs\FAQ.txt" - File "anope-1.7.22-MySQL\docs\INSTALL.txt" - File "anope-1.7.22-MySQL\docs\IRCD.txt" - File "anope-1.7.22-MySQL\docs\MODULES.txt" - File "anope-1.7.22-MySQL\docs\MYSQL.txt" - File "anope-1.7.22-MySQL\docs\NEWS.txt" - File "anope-1.7.22-MySQL\docs\OLDCHANGES.txt" - File "anope-1.7.22-MySQL\docs\PROXY.txt" - File "anope-1.7.22-MySQL\docs\README.txt" - File "anope-1.7.22-MySQL\docs\WIN32.txt" -SectionEnd - -Section -AdditionalIcons - SetOutPath $INSTDIR - WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" - CreateShortCut "$SMPROGRAMS\Anope\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" - CreateShortCut "$SMPROGRAMS\Anope\Uninstall.lnk" "$INSTDIR\uninst.exe" -SectionEnd - -Section -Post - WriteUninstaller "$INSTDIR\uninst.exe" - WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\anope.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\anope.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" -SectionEnd - - -Function un.onUninstSuccess - HideWindow - MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." -FunctionEnd - -Function un.onInit -!insertmacro MUI_UNGETLANGUAGE - MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2 - Abort -FunctionEnd - -Section Uninstall - Delete "$INSTDIR\${PRODUCT_NAME}.url" - Delete "$INSTDIR\uninst.exe" - Delete "$INSTDIR\docs\WIN32.txt" - Delete "$INSTDIR\docs\README.txt" - Delete "$INSTDIR\docs\PROXY.txt" - Delete "$INSTDIR\docs\OLDCHANGES.txt" - Delete "$INSTDIR\docs\NEWS.txt" - Delete "$INSTDIR\docs\MYSQL.txt" - Delete "$INSTDIR\docs\MODULES.txt" - Delete "$INSTDIR\docs\IRCD.txt" - Delete "$INSTDIR\docs\INSTALL.txt" - Delete "$INSTDIR\docs\FAQ.txt" - Delete "$INSTDIR\docs\EVENTS.txt" - Delete "$INSTDIR\docs\DEFCON.txt" - Delete "$INSTDIR\docs\COPYING.txt" - Delete "$INSTDIR\docs\BUGS.txt" - Delete "$INSTDIR\data\tables.sql" - Delete "$INSTDIR\data\modules\viagra.dll" - Delete "$INSTDIR\data\modules\unreal32.dll" - Delete "$INSTDIR\data\modules\unreal31.dll" - Delete "$INSTDIR\data\modules\ultimate3.dll" - Delete "$INSTDIR\data\modules\ultimate2.dll" - Delete "$INSTDIR\data\modules\solidircd.dll" - Delete "$INSTDIR\data\modules\shadowircd.dll" - Delete "$INSTDIR\data\modules\ratbox.dll" - Delete "$INSTDIR\data\modules\rageircd.dll" - Delete "$INSTDIR\data\modules\ptlink.dll" - Delete "$INSTDIR\data\modules\plexus3.dll" - Delete "$INSTDIR\data\modules\plexus2.dll" - Delete "$INSTDIR\data\modules\os_userlist.dll" - Delete "$INSTDIR\data\modules\os_update.dll" - Delete "$INSTDIR\data\modules\os_umode.dll" - Delete "$INSTDIR\data\modules\os_szline.dll" - Delete "$INSTDIR\data\modules\os_svsnick.dll" - Delete "$INSTDIR\data\modules\os_stats.dll" - Delete "$INSTDIR\data\modules\os_staff.dll" - Delete "$INSTDIR\data\modules\os_sqline.dll" - Delete "$INSTDIR\data\modules\os_shutdown.dll" - Delete "$INSTDIR\data\modules\os_sgline.dll" - Delete "$INSTDIR\data\modules\os_set.dll" - Delete "$INSTDIR\data\modules\os_session.dll" - Delete "$INSTDIR\data\modules\os_restart.dll" - Delete "$INSTDIR\data\modules\os_reload.dll" - Delete "$INSTDIR\data\modules\os_raw.dll" - Delete "$INSTDIR\data\modules\os_randomnews.dll" - Delete "$INSTDIR\data\modules\os_quit.dll" - Delete "$INSTDIR\data\modules\os_opernews.dll" - Delete "$INSTDIR\data\modules\os_oper.dll" - Delete "$INSTDIR\data\modules\os_oline.dll" - Delete "$INSTDIR\data\modules\os_noop.dll" - Delete "$INSTDIR\data\modules\os_modunload.dll" - Delete "$INSTDIR\data\modules\os_modload.dll" - Delete "$INSTDIR\data\modules\os_modlist.dll" - Delete "$INSTDIR\data\modules\os_modinfo.dll" - Delete "$INSTDIR\data\modules\os_mode.dll" - Delete "$INSTDIR\data\modules\os_logonnews.dll" - Delete "$INSTDIR\data\modules\os_kick.dll" - Delete "$INSTDIR\data\modules\os_jupe.dll" - Delete "$INSTDIR\data\modules\os_info.dll" - Delete "$INSTDIR\data\modules\os_ignore.dll" - Delete "$INSTDIR\data\modules\os_help.dll" - Delete "$INSTDIR\data\modules\os_global.dll" - Delete "$INSTDIR\data\modules\os_defcon.dll" - Delete "$INSTDIR\data\modules\os_clearmodes.dll" - Delete "$INSTDIR\data\modules\os_chanlist.dll" - Delete "$INSTDIR\data\modules\os_chankill.dll" - Delete "$INSTDIR\data\modules\os_akill.dll" - Delete "$INSTDIR\data\modules\os_admin.dll" - Delete "$INSTDIR\data\modules\ns_update.dll" - Delete "$INSTDIR\data\modules\ns_suspend.dll" - Delete "$INSTDIR\data\modules\ns_status.dll" - Delete "$INSTDIR\data\modules\ns_set.dll" - Delete "$INSTDIR\data\modules\ns_sendpass.dll" - Delete "$INSTDIR\data\modules\ns_saset.dll" - Delete "$INSTDIR\data\modules\ns_release.dll" - Delete "$INSTDIR\data\modules\ns_register.dll" - Delete "$INSTDIR\data\modules\ns_recover.dll" - Delete "$INSTDIR\data\modules\ns_maxemail.dll" - Delete "$INSTDIR\data\modules\ns_logout.dll" - Delete "$INSTDIR\data\modules\ns_list.dll" - Delete "$INSTDIR\data\modules\ns_info.dll" - Delete "$INSTDIR\data\modules\ns_identify.dll" - Delete "$INSTDIR\data\modules\ns_help.dll" - Delete "$INSTDIR\data\modules\ns_group.dll" - Delete "$INSTDIR\data\modules\ns_ghost.dll" - Delete "$INSTDIR\data\modules\ns_getpass.dll" - Delete "$INSTDIR\data\modules\ns_getemail.dll" - Delete "$INSTDIR\data\modules\ns_forbid.dll" - Delete "$INSTDIR\data\modules\ns_drop.dll" - Delete "$INSTDIR\data\modules\ns_alist.dll" - Delete "$INSTDIR\data\modules\ns_access.dll" - Delete "$INSTDIR\data\modules\ms_staff.dll" - Delete "$INSTDIR\data\modules\ms_set.dll" - Delete "$INSTDIR\data\modules\ms_sendall.dll" - Delete "$INSTDIR\data\modules\ms_send.dll" - Delete "$INSTDIR\data\modules\ms_rsend.dll" - Delete "$INSTDIR\data\modules\ms_read.dll" - Delete "$INSTDIR\data\modules\ms_list.dll" - Delete "$INSTDIR\data\modules\ms_info.dll" - Delete "$INSTDIR\data\modules\ms_help.dll" - Delete "$INSTDIR\data\modules\ms_del.dll" - Delete "$INSTDIR\data\modules\ms_check.dll" - Delete "$INSTDIR\data\modules\ms_cancel.dll" - Delete "$INSTDIR\data\modules\inspircd11.dll" - Delete "$INSTDIR\data\modules\inspircd10.dll" - Delete "$INSTDIR\data\modules\hybrid.dll" - Delete "$INSTDIR\data\modules\hs_setall.dll" - Delete "$INSTDIR\data\modules\hs_set.dll" - Delete "$INSTDIR\data\modules\hs_request.dll" - Delete "$INSTDIR\data\modules\hs_on.dll" - Delete "$INSTDIR\data\modules\hs_off.dll" - Delete "$INSTDIR\data\modules\hs_list.dll" - Delete "$INSTDIR\data\modules\hs_help.dll" - Delete "$INSTDIR\data\modules\hs_group.dll" - Delete "$INSTDIR\data\modules\hs_delall.dll" - Delete "$INSTDIR\data\modules\hs_del.dll" - Delete "$INSTDIR\data\modules\he_help.dll" - Delete "$INSTDIR\data\modules\enc_old.dll" - Delete "$INSTDIR\data\modules\enc_none.dll" - Delete "$INSTDIR\data\modules\enc_md5.dll" - Delete "$INSTDIR\data\modules\dreamforge.dll" - Delete "$INSTDIR\data\modules\cs_xop.dll" - Delete "$INSTDIR\data\modules\cs_topic.dll" - Delete "$INSTDIR\data\modules\cs_tban.dll" - Delete "$INSTDIR\data\modules\cs_suspend.dll" - Delete "$INSTDIR\data\modules\cs_status.dll" - Delete "$INSTDIR\data\modules\cs_set.dll" - Delete "$INSTDIR\data\modules\cs_sendpass.dll" - Delete "$INSTDIR\data\modules\cs_register.dll" - Delete "$INSTDIR\data\modules\cs_modes.dll" - Delete "$INSTDIR\data\modules\cs_logout.dll" - Delete "$INSTDIR\data\modules\cs_list.dll" - Delete "$INSTDIR\data\modules\cs_kick.dll" - Delete "$INSTDIR\data\modules\cs_invite.dll" - Delete "$INSTDIR\data\modules\cs_info.dll" - Delete "$INSTDIR\data\modules\cs_identify.dll" - Delete "$INSTDIR\data\modules\cs_help.dll" - Delete "$INSTDIR\data\modules\cs_getpass.dll" - Delete "$INSTDIR\data\modules\cs_getkey.dll" - Delete "$INSTDIR\data\modules\cs_forbid.dll" - Delete "$INSTDIR\data\modules\cs_enforce.dll" - Delete "$INSTDIR\data\modules\cs_drop.dll" - Delete "$INSTDIR\data\modules\cs_clear.dll" - Delete "$INSTDIR\data\modules\cs_ban.dll" - Delete "$INSTDIR\data\modules\cs_appendtopic.dll" - Delete "$INSTDIR\data\modules\cs_akick.dll" - Delete "$INSTDIR\data\modules\cs_access.dll" - Delete "$INSTDIR\data\modules\charybdis.dll" - Delete "$INSTDIR\data\modules\bs_unassign.dll" - Delete "$INSTDIR\data\modules\bs_set.dll" - Delete "$INSTDIR\data\modules\bs_say.dll" - Delete "$INSTDIR\data\modules\bs_kick.dll" - Delete "$INSTDIR\data\modules\bs_info.dll" - Delete "$INSTDIR\data\modules\bs_help.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_unban.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_seen.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_owner.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_kickban.dll" - Delete "$INSTDIR\data\modules\bs_fantasy_kick.dll" - Delete "$INSTDIR\data\modules\bs_fantasy.dll" - Delete "$INSTDIR\data\modules\bs_botlist.dll" - Delete "$INSTDIR\data\modules\bs_bot.dll" - Delete "$INSTDIR\data\modules\bs_badwords.dll" - Delete "$INSTDIR\data\modules\bs_assign.dll" - Delete "$INSTDIR\data\modules\bs_act.dll" - Delete "$INSTDIR\data\modules\bahamut.dll" - Delete "$INSTDIR\data\languages\tr" - Delete "$INSTDIR\data\languages\ru" - Delete "$INSTDIR\data\languages\pt" - Delete "$INSTDIR\data\languages\pl" - Delete "$INSTDIR\data\languages\nl" - Delete "$INSTDIR\data\languages\it" - Delete "$INSTDIR\data\languages\hun" - Delete "$INSTDIR\data\languages\gr" - Delete "$INSTDIR\data\languages\fr" - Delete "$INSTDIR\data\languages\es" - Delete "$INSTDIR\data\languages\en_us" - Delete "$INSTDIR\data\languages\de" - Delete "$INSTDIR\data\languages\cat" - Delete "$INSTDIR\data\example.conf" - Delete "$INSTDIR\data\epona2anope.exe.manifest" - Delete "$INSTDIR\data\epona2anope.exe" - Delete "$INSTDIR\data\db-merger.exe.manifest" - Delete "$INSTDIR\data\db-merger.exe" - Delete "$INSTDIR\data\bin\register" - Delete "$INSTDIR\data\bin\mydbgen" - Delete "$INSTDIR\data\bin\langtool" - Delete "$INSTDIR\data\bin\cp-recursive" - Delete "$INSTDIR\data\bin\anoperc.in" - Delete "$INSTDIR\data\bin\am" - Delete "$INSTDIR\data\anopesmtp.exe.manifest" - Delete "$INSTDIR\data\anopesmtp.exe" - Delete "$INSTDIR\Changes.txt" - Delete "$INSTDIR\Changes.mysql.txt" - Delete "$INSTDIR\Changes.lang.txt" - Delete "$INSTDIR\Changes.conf.txt" - Delete "$INSTDIR\anope.exe.manifest" - Delete "$INSTDIR\anope.exe" -Delete "$INSTDIR\anope.bat" - SetShellVarContext all - - Delete "$SMPROGRAMS\Anope\Uninstall.lnk" - Delete "$SMPROGRAMS\Anope\Website.lnk" - Delete "$DESKTOP\Anope IRC Services.lnk" - Delete "$SMPROGRAMS\Anope\Anope IRC Services.lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Debug and Window Logging).lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (Window Logging).lnk" - Delete "$SMPROGRAMS\Anope\Advanced\Anope IRC Services (No Third Party Modules).lnk" - -RMDir "$SMPROGRAMS\Anope\Advanced" - - RMDir "$SMPROGRAMS\Anope" - RMDir "$INSTDIR\docs" - RMDir "$INSTDIR\data\modules" - RMDir "$INSTDIR\data\logs" - RMDir "$INSTDIR\data\languages" - RMDir "$INSTDIR\data\bin" -RMDir "$INSTDIR\data\backups" - RMDir "$INSTDIR\data" - RMDir "$INSTDIR" - - DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" - DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" - SetAutoClose true -SectionEnd \ No newline at end of file diff --git a/src/tools/obsolete/epona2anope.c b/src/tools/obsolete/epona2anope.c deleted file mode 100644 index 946a0c731..000000000 --- a/src/tools/obsolete/epona2anope.c +++ /dev/null @@ -1,856 +0,0 @@ -/* - * IRC - Internet Relay Chat, epona2anope.c - * (C) Copyright 2005-2006, Florian Schulze (Certus) - * - * Based on the original code of Anope, (C) 2003-2005 Anope Team - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License (see it online - * at http://www.gnu.org/copyleft/gpl.html) as published by the Free - * Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This program tries to convert epona-1.4.15+ dbs to anope standard dbs. - * At the moment this only affects chanserv dbs. - * - * - Certus - * February 26, 2005 - * - * Added win32 fix. Who needs that anyways? :P - * - Certus - * July 20, 2006 - */ - - -#include -#include -#include -#include -#include -#include - -#ifndef _WIN32 -#include -#else -#include "sysconf.h" -#include -#endif - -/* Some SUN fixs */ -#ifdef __sun -/* Solaris specific code, types that do not exist in Solaris' - * * sys/types.h - * **/ -#undef u_int8_t -#undef u_int16_t -#undef u_int32_t -#undef u_int_64_t -#define u_int8_t uint8_t -#define u_int16_t uint16_t -#define u_int32_t uint32_t -#define u_int64_t uint64_t - -#ifndef INADDR_NONE -#define INADDR_NONE (-1) -#endif - -#endif - - -/* CONFIGURATION BLOCK */ - -#define CHAN_DB_EPONA "chan1.db" -#define CHAN_DB_ANOPE "chan.db" - -/* END OF CONFIGURATION BLOCK */ - -#ifndef _WIN32 -#define C_LBLUE "\033[1;34m" -#define C_NONE "\033[m" -#else -#define C_LBLUE "" -#define C_NONE "" -#endif - -#define getc_db(f) (fgetc((f)->fp)) -#define HASH(nick) ((tolower((nick)[0])&31)<<5 | (tolower((nick)[1])&31)) -#define HASH2(chan) ((chan)[1] ? ((chan)[1]&31)<<5 | ((chan)[2]&31) : 0) -#define read_buffer(buf,f) (read_db((f),(buf),sizeof(buf)) == sizeof(buf)) -#define write_buffer(buf,f) (write_db((f),(buf),sizeof(buf)) == sizeof(buf)) -#define read_db(f,buf,len) (fread((buf),1,(len),(f)->fp)) -#define write_db(f,buf,len) (fwrite((buf),1,(len),(f)->fp)) -#define read_int8(ret,f) ((*(ret)=fgetc((f)->fp))==EOF ? -1 : 0) -#define write_int8(val,f) (fputc((val),(f)->fp)==EOF ? -1 : 0) -#define SAFE(x) do { \ - if ((x) < 0) { \ - printf("Error, the database is broken, trying to continue... no guarantee.\n"); \ - } \ -} while (0) -#define READ(x) do { \ - if ((x) < 0) { \ - printf("Error, the database is broken, trying to continue... no guarantee.\n"); \ - exit(0); \ - } \ -} while (0) - -typedef int16_t int16; -typedef u_int16_t uint16; -typedef int32_t int32; -typedef u_int32_t uint32; -typedef struct memo_ Memo; -typedef struct dbFILE_ dbFILE; -typedef struct nickalias_ NickAlias; -typedef struct nickcore_ NickCore; -typedef struct chaninfo_ ChannelInfo; -typedef struct botinfo_ BotInfo; -typedef struct badword_ BadWord; -typedef struct hostcore_ HostCore; - -struct memo_ { - uint32 number; /* Index number -- not necessarily array position! */ - int16 flags; /* Flags */ - time_t time; /* When was it sent? */ - char sender[32]; /* Name of the sender */ - char *text; -}; - -struct dbFILE_ { - int mode; /* 'r' for reading, 'w' for writing */ - FILE *fp; /* The normal file descriptor */ - char filename[1024]; /* Name of the database file */ -}; - -typedef struct { - int16 memocount; /* Current # of memos */ - int16 memomax; /* Max # of memos one can hold*/ - Memo *memos; /* Pointer to original memos */ -} MemoInfo; - -typedef struct { - int16 in_use; /* 1 if this entry is in use, else 0 */ - int16 level; - NickCore *nc; /* Guaranteed to be non-NULL if in use, NULL if not */ - time_t last_seen; -} ChanAccess; - -typedef struct { - int16 in_use; /* Always 0 if not in use */ - int16 is_nick; /* 1 if a regged nickname, 0 if a nick!user@host mask */ - int16 flags; - union { - char *mask; /* Guaranteed to be non-NULL if in use, NULL if not */ - NickCore *nc; /* Same */ - } u; - char *reason; - char *creator; - time_t addtime; -} AutoKick; - -struct nickcore_ { - NickCore *next, *prev; - - char *display; /* How the nick is displayed */ - int unused; /* Used for nick collisions */ -}; - -struct chaninfo_ { - ChannelInfo *next, *prev; - - char name[64]; /* Channel name */ - char *founder; /* Who registered the channel */ - char *successor; /* Who gets the channel if the founder nick is dropped or expires */ - char founderpass[32]; /* Channel password */ - char *desc; /* Description */ - char *url; /* URL */ - char *email; /* Email address */ - time_t time_registered; /* When was it registered */ - time_t last_used; /* When was it used hte last time */ - char *last_topic; /* Last topic on the channel */ - char last_topic_setter[32]; /* Who set the last topic */ - time_t last_topic_time; /* When the last topic was set */ - uint32 flags; /* Flags */ - char *forbidby; /* if forbidden: who did it */ - char *forbidreason; /* if forbidden: why */ - int16 bantype; /* Bantype */ - int16 *levels; /* Access levels for commands */ - int16 accesscount; /* # of pple with access */ - ChanAccess *access; /* List of authorized users */ - int16 akickcount; /* # of akicked pple */ - AutoKick *akick; /* List of users to kickban */ - uint32 mlock_on, mlock_off; /* See channel modes below */ - uint32 mlock_limit; /* 0 if no limit */ - char *mlock_key; /* NULL if no key */ - char *mlock_flood; /* NULL if no +f */ - char *mlock_joinrate; /* NULL if no +j */ - char *mlock_redirect; /* NULL if no +L */ - char *entry_message; /* Notice sent on entering channel */ - MemoInfo memos; /* Memos */ - char *bi; /* Bot used on this channel */ - uint32 botflags; /* BS_* below */ - int16 *ttb; /* Times to ban for each kicker */ - int16 bwcount; /* Badword count */ - BadWord *badwords; /* For BADWORDS kicker */ - int16 capsmin, capspercent; /* For CAPS kicker */ - int16 floodlines, floodsecs; /* For FLOOD kicker */ - int16 repeattimes; /* For REPEAT kicker */ -}; - -struct botinfo_ { - BotInfo *next, *prev; - char *nick; /* Nickname of the bot */ - char *user; /* Its user name */ - char *host; /* Its hostname */ - char *real; /* Its real name */ - int16 flags; /* Bot flags */ - time_t created; /* Birth date */ - int16 chancount; /* Number of channels that use the bot. */ -}; - -struct badword_ { - int16 in_use; - char *word; - int16 type; -}; - -dbFILE *open_db_write(const char *service, const char *filename, int version); -dbFILE *open_db_read(const char *service, const char *filename, int version); -NickCore *findcore(const char *nick, int version); -ChannelInfo *cs_findchan(const char *chan); -char *strscpy(char *d, const char *s, size_t len); -int write_file_version(dbFILE * f, uint32 version); -int mystricmp(const char *s1, const char *s2); -int write_string(const char *s, dbFILE * f); -int write_ptr(const void *ptr, dbFILE * f); -int read_int16(int16 * ret, dbFILE * f); -int read_uint16(uint16 * ret, dbFILE * f); -int read_int32(int32 * ret, dbFILE * f); -int read_uint32(uint32 * ret, dbFILE * f); -int read_string(char **ret, dbFILE * f); -int write_int16(uint16 val, dbFILE * f); -int write_int32(uint32 val, dbFILE * f); -int read_ptr(void **ret, dbFILE * f); -void alpha_insert_chan(ChannelInfo * ci); -void close_db(dbFILE * f); - -ChannelInfo *chanlists[256]; -NickCore *nclists[1024]; - -int main(int argc, char *argv[]) -{ - dbFILE *f; - int i; - long countr = 0, countw = 0; - /* Unused variables - why? -GD - NickCore *nc, *ncnext; - */ - - printf("\n"C_LBLUE"Epona to Anope DB converter by Certus"C_NONE"\n\n"); - - /* Section I: Reading */ - if ((f = open_db_read("ChanServ", CHAN_DB_EPONA, 17))) { - ChannelInfo *ci, **last, *prev; - int c; - - printf("Trying to convert channel database...\n"); - - for (i = 0; i < 256; i++) { - int16 tmp16; - int32 tmp32; - int n_levels; - char *s; - int n_ttb; - /* Unused variable - why? -GD - int J; - */ - - last = &chanlists[i]; - prev = NULL; - - while ((c = getc_db(f)) == 1) { - int j; - - if (c != 1) { - printf("Invalid format in %s.\n", CHAN_DB_EPONA); - exit(0); - } - - ci = calloc(sizeof(ChannelInfo), 1); - *last = ci; - last = &ci->next; - ci->prev = prev; - prev = ci; - READ(read_buffer(ci->name, f)); - READ(read_string(&ci->founder, f)); - READ(read_string(&ci->successor, f)); - READ(read_buffer(ci->founderpass, f)); - READ(read_string(&ci->desc, f)); - if (!ci->desc) - ci->desc = strdup(""); - READ(read_string(&ci->url, f)); - READ(read_string(&ci->email, f)); - READ(read_int32(&tmp32, f)); - ci->time_registered = tmp32; - READ(read_int32(&tmp32, f)); - ci->last_used = tmp32; - READ(read_string(&ci->last_topic, f)); - READ(read_buffer(ci->last_topic_setter, f)); - READ(read_int32(&tmp32, f)); - ci->last_topic_time = tmp32; - READ(read_uint32(&ci->flags, f)); - /* Temporary flags cleanup */ - ci->flags &= ~0x80000000; - READ(read_string(&ci->forbidby, f)); - READ(read_string(&ci->forbidreason, f)); - READ(read_int16(&tmp16, f)); - ci->bantype = tmp16; - READ(read_int16(&tmp16, f)); - n_levels = tmp16; - ci->levels = calloc(36 * sizeof(*ci->levels), 1); - for (j = 0; j < n_levels; j++) { - if (j < 36) - READ(read_int16(&ci->levels[j], f)); - else - READ(read_int16(&tmp16, f)); - } - READ(read_int16(&ci->accesscount, f)); - if (ci->accesscount) { - ci->access = calloc(ci->accesscount, sizeof(ChanAccess)); - for (j = 0; j < ci->accesscount; j++) { - READ(read_int16(&ci->access[j].in_use, f)); - if (ci->access[j].in_use) { - READ(read_int16(&ci->access[j].level, f)); - READ(read_string(&s, f)); - if (s) { - ci->access[j].nc = findcore(s, 0); - free(s); - } - if (ci->access[j].nc == NULL) - ci->access[j].in_use = 0; - READ(read_int32(&tmp32, f)); - ci->access[j].last_seen = tmp32; - } - } - } else { - ci->access = NULL; - } - READ(read_int16(&ci->akickcount, f)); - if (ci->akickcount) { - ci->akick = calloc(ci->akickcount, sizeof(AutoKick)); - for (j = 0; j < ci->akickcount; j++) { - SAFE(read_int16(&ci->akick[j].flags, f)); - if (ci->akick[j].flags & 0x0001) { - SAFE(read_string(&s, f)); - if (ci->akick[j].flags & 0x0002) { - ci->akick[j].u.nc = findcore(s, 0); - if (!ci->akick[j].u.nc) - ci->akick[j].flags &= ~0x0001; - free(s); - } else { - ci->akick[j].u.mask = s; - } - SAFE(read_string(&s, f)); - if (ci->akick[j].flags & 0x0001) - ci->akick[j].reason = s; - else if (s) - free(s); - SAFE(read_string(&s, f)); - if (ci->akick[j].flags & 0x0001) { - ci->akick[j].creator = s; - } else if (s) { - free(s); - } - SAFE(read_int32(&tmp32, f)); - if (ci->akick[j].flags & 0x0001) - ci->akick[j].addtime = tmp32; - } - } - } else { - ci->akick = NULL; - } - READ(read_uint32(&ci->mlock_on, f)); - READ(read_uint32(&ci->mlock_off, f)); - READ(read_uint32(&ci->mlock_limit, f)); - READ(read_string(&ci->mlock_key, f)); - READ(read_string(&ci->mlock_flood, f)); - READ(read_string(&ci->mlock_joinrate, f)); - READ(read_string(&ci->mlock_redirect, f)); - READ(read_int16(&ci->memos.memocount, f)); - READ(read_int16(&ci->memos.memomax, f)); - if (ci->memos.memocount) { - Memo *memos; - memos = calloc(sizeof(Memo) * ci->memos.memocount, 1); - ci->memos.memos = memos; - for (j = 0; j < ci->memos.memocount; j++, memos++) { - READ(read_uint32(&memos->number, f)); - READ(read_int16(&memos->flags, f)); - READ(read_int32(&tmp32, f)); - memos->time = tmp32; - READ(read_buffer(memos->sender, f)); - READ(read_string(&memos->text, f)); - } - } - READ(read_string(&ci->entry_message, f)); - - /* BotServ options */ - READ(read_string(&ci->bi, f)); - READ(read_int32(&tmp32, f)); - ci->botflags = tmp32; - READ(read_int16(&tmp16, f)); - n_ttb = tmp16; - ci->ttb = calloc(2 * 8, 1); - for (j = 0; j < n_ttb; j++) { - if (j < 8) - READ(read_int16(&ci->ttb[j], f)); - else - READ(read_int16(&tmp16, f)); - } - for (j = n_ttb; j < 8; j++) - ci->ttb[j] = 0; - READ(read_int16(&tmp16, f)); - ci->capsmin = tmp16; - READ(read_int16(&tmp16, f)); - ci->capspercent = tmp16; - READ(read_int16(&tmp16, f)); - ci->floodlines = tmp16; - READ(read_int16(&tmp16, f)); - ci->floodsecs = tmp16; - READ(read_int16(&tmp16, f)); - ci->repeattimes = tmp16; - - READ(read_int16(&ci->bwcount, f)); - if (ci->bwcount) { - ci->badwords = calloc(ci->bwcount, sizeof(BadWord)); - for (j = 0; j < ci->bwcount; j++) { - SAFE(read_int16(&ci->badwords[j].in_use, f)); - if (ci->badwords[j].in_use) { - SAFE(read_string(&ci->badwords[j].word, f)); - SAFE(read_int16(&ci->badwords[j].type, f)); - } - } - } else { - ci->badwords = NULL; - } - countr++; - } /* getc_db() */ - *last = NULL; - } /* for() loop */ - close_db(f); - } - - /* II: Saving */ - { - if ((f = open_db_write("ChanServ", CHAN_DB_ANOPE, 16))) { - ChannelInfo *ci; - Memo *memos; - /* Unused variable - why? -GD - static time_t lastwarn = 0; - */ - - for (i = 0; i < 256; i++) { - int16 tmp16; - for (ci = chanlists[i]; ci; ci = ci->next) { - int j; - SAFE(write_int8(1, f)); - SAFE(write_buffer(ci->name, f)); - if (ci->founder) - SAFE(write_string(ci->founder, f)); -