]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove INSPIRCD_SOCKETENGINE_NAME and INSPIRCD_SYSTEM.
authorPeter Powell <petpow@saberuk.com>
Sun, 15 Oct 2017 01:15:35 +0000 (02:15 +0100)
committerPeter Powell <petpow@saberuk.com>
Sun, 15 Oct 2017 10:57:05 +0000 (11:57 +0100)
- INSPIRCD_SOCKETENGINE_NAME is not really something that needs to
  be user facing. If opers want to know this kind of internal info
  then they can look at the build configuration.

- INSPIRCD_SYSTEM causes problems for reproducible builds and is
  only accurate for the state of the system when InspIRCd is built
  which is not useful in the slightest.

make/configure.pm
make/template/config.h
src/logger.cpp
src/modules/m_httpd_stats.cpp
src/server.cpp
win/CMakeLists.txt

index 82d14f5649d7f0f847de376bf8c3cbcc3bed68b5..baf67eb38fbf304eaa3b782b05b7044ccb069280 100644 (file)
@@ -90,7 +90,6 @@ sub __get_template_settings($$$) {
        $settings{CONFIGURE_DIRECTORY} = CONFIGURE_DIRECTORY;
        $settings{CONFIGURE_CACHE_FILE} = CONFIGURE_CACHE_FILE;
        $settings{SYSTEM_NAME} = lc $^O;
-       chomp($settings{SYSTEM_NAME_VERSION} = `uname -sr 2>/dev/null`);
 
        return %settings;
 }
index 660678b38f0389c8b932a6583dca92a722b60d56..c1e8bd0fcb72c8bf051743b9a73e5f2b0b031faa 100644 (file)
 
 #define INSPIRCD_BRANCH   "InspIRCd-@VERSION_MAJOR@.@VERSION_MINOR@"
 #define INSPIRCD_VERSION  "InspIRCd-@VERSION_FULL@"
-#define INSPIRCD_SYSTEM   "@SYSTEM_NAME_VERSION@"
 
 #define INSPIRCD_CONFIG_PATH "@CONFIG_DIR@"
 #define INSPIRCD_DATA_PATH   "@DATA_DIR@"
 #define INSPIRCD_LOG_PATH    "@LOG_DIR@"
 #define INSPIRCD_MODULE_PATH "@MODULE_DIR@"
 
-#define INSPIRCD_SOCKETENGINE_NAME "@SOCKETENGINE@"
-
 #ifndef _WIN32
  %target include/config.h
  %define HAS_CLOCK_GETTIME
index e3e95632583b9600cf45d5fbe65ecaa4d65160f9..6fa972c739228621579a4c3ef5e9bd74ac9337fa 100644 (file)
@@ -50,8 +50,7 @@
  */
 
 const char LogStream::LogHeader[] =
-       "Log started for " INSPIRCD_VERSION " (" MODULE_INIT_STR ")"
-       " - compiled on " INSPIRCD_SYSTEM;
+       "Log started for " INSPIRCD_VERSION " (" MODULE_INIT_STR ")";
 
 LogManager::LogManager()
        : Logging(false)
index 41d85a3b48160ead7bf2a590e006440ff2270107..de5a61e4dc29972e07ea6e8ead15d6b7f8ef45e3 100644 (file)
@@ -105,7 +105,7 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener
                                data << "<usercount>" << ServerInstance->Users->GetUsers().size() << "</usercount>";
                                data << "<channelcount>" << ServerInstance->GetChans().size() << "</channelcount>";
                                data << "<opercount>" << ServerInstance->Users->all_opers.size() << "</opercount>";
-                               data << "<socketcount>" << (SocketEngine::GetUsedFds()) << "</socketcount><socketmax>" << SocketEngine::GetMaxFds() << "</socketmax><socketengine>" INSPIRCD_SOCKETENGINE_NAME "</socketengine>";
+                               data << "<socketcount>" << (SocketEngine::GetUsedFds()) << "</socketcount><socketmax>" << SocketEngine::GetMaxFds() << "</socketmax>";
                                data << "<uptime><boot_time_t>" << ServerInstance->startup_time << "</boot_time_t></uptime>";
 
                                data << "<isupport>";
index f18c9c86ca7fedd031ecf171d81111485b173b32..1a92c13a0dbe44eaf6538717ec0290aba0bc894c 100644 (file)
@@ -64,8 +64,8 @@ void InspIRCd::Rehash(const std::string& uuid)
 std::string InspIRCd::GetVersionString(bool getFullVersion)
 {
        if (getFullVersion)
-               return INSPIRCD_VERSION " " + Config->ServerName + " :" INSPIRCD_SYSTEM " [" INSPIRCD_SOCKETENGINE_NAME "," + Config->sid + "]";
-       return INSPIRCD_BRANCH " " + Config->ServerName + " :" + Config->CustomVersion;
+               return INSPIRCD_VERSION ". " + Config->ServerName + " :[" + Config->sid + "] " + Config->CustomVersion;
+       return INSPIRCD_BRANCH ". " + Config->ServerName + " :" + Config->CustomVersion;
 }
 
 std::string UIDGenerator::GenerateSID(const std::string& servername, const std::string& serverdesc)
index b5812b0c2d98714419ee713f053bcd3ea45d6591..e53f6c6d3c45ebf0ab999113352fe77027e87e25 100644 (file)
@@ -12,9 +12,6 @@ set(EXTRA_LIBS "" CACHE PATH "Extra library paths")
 
 set(INSPIRCD_BASE "${CMAKE_CURRENT_SOURCE_DIR}/../")
 
-set(SYSTEM_NAME_VERSION ${CMAKE_SYSTEM})
-set(SOCKETENGINE "select")
-
 # Build with multiple processes
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")