* Renamed NetFSServer to netfs_server and added .rdef for running it in the

background.
 * Renamed NetFSServerPrefs to netfs_server_prefs.
 * Fixed copyright years in authentication_server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-01-19 16:57:59 +00:00
parent 63fad9a172
commit bf365f13aa
7 changed files with 118 additions and 92 deletions
@@ -15,7 +15,7 @@ resource app_version {
internal = 0, internal = 0,
short_info = "authentication_server", short_info = "authentication_server",
long_info = "authentication_server ©2004-2009 Haiku, Inc" long_info = "authentication_server ©2004-2010 Haiku, Inc"
}; };
resource vector_icon array { resource vector_icon array {
@@ -6,9 +6,9 @@ SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) headers shared ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) shared ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) shared ] ;
DEFINES += USER=1 ; DEFINES += USER=1 ;
DEFINES += DEBUG_APP="\\\"NetFSServerPrefs\\\"" ; DEFINES += DEBUG_APP="\\\"netfs_server_prefs\\\"" ;
Application NetFSServerPrefs Application netfs_server_prefs
: DebugSupport.cpp : DebugSupport.cpp
NetFSServerRosterDefs.cpp NetFSServerRosterDefs.cpp
@@ -20,8 +20,8 @@ static const uint32 kWritePermission
// usage // usage
static const char* kUsage = static const char* kUsage =
"Usage: NetFSServerPrefs -h | --help\n" "Usage: netfs_server_prefs -h | --help\n"
" NetFSServerPrefs <command>\n" " netfs_server_prefs <command>\n"
"options:\n" "options:\n"
" -h, --help - print this text\n" " -h, --help - print this text\n"
"\n" "\n"
@@ -411,7 +411,7 @@ no_more_args(int argc, int argi)
int int
main(int argc, char** argv) main(int argc, char** argv)
{ {
BApplication app("application/x-vnd.yellowbites.NetFSServerPrefs"); BApplication app("application/x-vnd.haiku-netfs_server_prefs");
// parse first argument // parse first argument
int argi = 1; int argi = 1;
@@ -16,10 +16,11 @@ SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems
userlandfs shared ] ; userlandfs shared ] ;
DEFINES += USER=1 ; DEFINES += USER=1 ;
DEFINES += DEBUG_APP="\\\"NetFSServer\\\"" ; DEFINES += DEBUG_APP="\\\"netfs_server\\\"" ;
Application NetFSServer Application netfs_server
: DebugSupport.cpp :
DebugSupport.cpp
driver_settings.c driver_settings.c
DriverSettings.cpp DriverSettings.cpp
@@ -83,5 +84,8 @@ Application NetFSServer
UserSecurityContext.cpp UserSecurityContext.cpp
Volume.cpp Volume.cpp
VolumeManager.cpp VolumeManager.cpp
: be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSUPC++) libshared.a :
be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSUPC++) libshared.a
:
netfs_server.rdef
; ;
@@ -41,11 +41,11 @@
#include "VolumeManager.h" #include "VolumeManager.h"
static const char* kSettingsDirName = "netfs"; static const char* kSettingsDirName = "netfs";
static const char* kSettingsFileName = "NetFSServer"; static const char* kSettingsFileName = "netfs_server";
// usage // usage
static const char* kUsage = static const char* kUsage =
"Usage: NetFSServer <options>\n" "Usage: netfs_server <options>\n"
"options:\n" "options:\n"
" --dont-broadcast - don't use broadcasting to announce the server's\n" " --dont-broadcast - don't use broadcasting to announce the server's\n"
" availability to clients\n" " availability to clients\n"
@@ -186,7 +186,8 @@ private:
// constructor // constructor
NetFSServer::NetFSServer(bool useBroadcasting) NetFSServer::NetFSServer(bool useBroadcasting)
: BApplication(kNetFSServerSignature), :
BApplication(kNetFSServerSignature),
fSecurityContext(NULL), fSecurityContext(NULL),
fConnectionListenerFactory(), fConnectionListenerFactory(),
fConnectionListener(NULL), fConnectionListener(NULL),
@@ -0,0 +1,21 @@
/*
* netfs_server.rdef
*/
resource app_signature "application/x-vnd.haiku-netfs_server";
resource app_flags B_EXCLUSIVE_LAUNCH|B_BACKGROUND_APP;
resource app_version {
major = 1,
middle = 0,
minor = 0,
variety = B_APPV_ALPHA,
internal = 0,
short_info = "netfs_server",
long_info = "netfs_server ©2004-2010 Haiku, Inc"
};
@@ -3,4 +3,4 @@
#include "NetFSServerRosterDefs.h" #include "NetFSServerRosterDefs.h"
const char* kNetFSServerSignature const char* kNetFSServerSignature
= "application/x-vnd.yellowbites.netfs-server"; = "application/x-vnd.haiku-netfs_server";