# #
########################################################
+SAMBA_COPYRIGHT_STRING="Copyright Andrew Tridgell and the Samba Team 1992-2023"
+
########################################################
# This are the main SAMBA version numbers #
# #
return 0
-def SAMBA_MKVERSION(bld, target, source='VERSION'):
+def SAMBA_MKVERSION(bld, target, source='VERSION buildtools/wafsamba/samba_version.py'):
'''generate the version.h header for Samba'''
# We only force waf to re-generate this file if we are installing,
def __str__(self):
string="/* Autogenerated by waf */\n" +\
+ "#define SAMBA_COPYRIGHT_STRING \"%s\"\n" % self.SAMBA_COPYRIGHT_STRING +\
"#define SAMBA_VERSION_MAJOR %u\n" % self.MAJOR +\
"#define SAMBA_VERSION_MINOR %u\n" % self.MINOR +\
"#define SAMBA_VERSION_RELEASE %u\n" % self.RELEASE
/* The following definitions come from lib/version.c */
const char *samba_version_string(void);
+const char *samba_copyright_string(void);
#endif /* _PARAM_H */
+++ /dev/null
-/*
- Unix SMB/CIFS implementation.
-
- Copyright (C) Björn Jacke 2023
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- 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.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __LIB_UTIL_COPYRIGHT_H__
-#define __LIB_UTIL_COPYRIGHT_H__
-
-/* logged when starting the various Samba daemons */
-#define COPYRIGHT_STARTUP_MESSAGE "Copyright Andrew Tridgell and the Samba Team 1992-2023"
-
-#endif /* __LIB_UTIL_COPYRIGHT_H__ */
-
-
typedef char fstring[FSTRING_LEN];
#endif
-/* copyright define */
-#include "../lib/util/copyright.h"
-
/* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
#include "../lib/util/debug.h"
/* The following definitions come from lib/version.c */
const char *samba_version_string(void);
+const char *samba_copyright_string(void);
/* The following definitions come from lib/wins_srv.c */
{
return SAMBA_VERSION_STRING;
}
+
+const char *samba_copyright_string(void)
+{
+ return SAMBA_COPYRIGHT_STRING;
+}
reopen_logs();
- DBG_STARTUP_NOTICE("nmbd version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- samba_version_string());
+ DBG_STARTUP_NOTICE("nmbd version %s started.\n%s\n",
+ samba_version_string(),
+ samba_copyright_string());
if (lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC
&& !lp_parm_bool(-1, "server role check", "inhibit", false)) {
reopen_logs();
- DBG_STARTUP_NOTICE("%s version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- progname,
- samba_version_string());
+ DBG_STARTUP_NOTICE("%s version %s started.\n%s\n",
+ progname,
+ samba_version_string(),
+ samba_copyright_string());
(void)winbind_off();
ok = init_guest_session_info(frame);
reopen_logs();
- DBG_STARTUP_NOTICE("%s version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- progname,
- samba_version_string());
+ DBG_STARTUP_NOTICE("%s version %s started.\n%s\n",
+ progname,
+ samba_version_string(),
+ samba_copyright_string());
msg_ctx = global_messaging_context();
if (msg_ctx == NULL) {
reopen_logs();
- DBG_STARTUP_NOTICE("smbd version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- samba_version_string());
+ DBG_STARTUP_NOTICE("smbd version %s started.\n%s\n",
+ samba_version_string(),
+ samba_copyright_string());
DEBUG(2,("uid=%d gid=%d euid=%d egid=%d\n",
(int)getuid(),(int)getgid(),(int)geteuid(),(int)getegid()));
reopen_logs();
- DBG_STARTUP_NOTICE("winbindd version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- samba_version_string());
+ DBG_STARTUP_NOTICE("winbindd version %s started.\n%s\n",
+ samba_version_string(),
+ samba_copyright_string());
/* After parsing the configuration file we setup the core path one more time
* as the log file might have been set in the configuration and cores's
''')
bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
- source='lib/version.c',
- deps='samba-util')
+ source='lib/version.c')
bld.SAMBA3_SUBSYSTEM('SLCACHE',
source='libsmb/samlogon_cache.c',
#endif
#include "../lib/util/attr.h"
-/* copyright define */
-#include "../lib/util/copyright.h"
-
/* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
#include "../lib/util/debug.h"
#include "../lib/util/samba_util.h"
so set our umask to 0 */
umask(0);
- DBG_STARTUP_NOTICE("%s version %s started.\n"
- COPYRIGHT_STARTUP_MESSAGE "\n",
- binary_name,
- SAMBA_VERSION_STRING);
+ DBG_STARTUP_NOTICE("%s version %s started.\n%s\n",
+ binary_name,
+ SAMBA_VERSION_STRING,
+ SAMBA_COPYRIGHT_STRING);
if (sizeof(uint16_t) < 2 ||
sizeof(uint32_t) < 4 ||