From 061425d7ae2f6d3e95a6eb5102dca3cec3a28e03 Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 11 Oct 2024 15:24:20 +0000 Subject: [PATCH] add example config git-svn-id: file:///raid/svn-personal/rbuild/trunk@6 c68d3453-7f82-0740-9748-1d72386a946b --- Server/main.c | 2 +- example.conf | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 example.conf diff --git a/Server/main.c b/Server/main.c index e01dc2e..50ce894 100644 --- a/Server/main.c +++ b/Server/main.c @@ -15,7 +15,7 @@ int main(int argc, char** argv){ if(argv[i][0] == '-'){ if(strcmp(argv[i], "--inetd") == 0 || strcmp(argv[i], "-i") == 0){ run_inetd = CMTRUE; - }else if(strcmp(argv[i], "--auth") == 0 || strcmp(argv[i], "-a") == 0){ + }else if(strcmp(argv[i], "--config") == 0 || strcmp(argv[i], "-C") == 0){ i++; if(argv[i] == NULL){ fprintf(stderr, "Missing argument\n"); diff --git a/example.conf b/example.conf new file mode 100644 index 0000000..7aa54b1 --- /dev/null +++ b/example.conf @@ -0,0 +1,39 @@ +# $Id$ +# vim:syntax=dosini + +# Native GCC, but with crypt() authentication +# /etc/rbuild.crypt should contain lines like: +# username1:password_crypt1 +# username2:password_crypt2 +# username3:password_crypt3 +# ... +# You can create crypt()'d password with: +# - pwhash (NetBSD) +# - perl +# - etc +[native] +auth=crypt:/etc/rbuild.crypt +type=gnu + +# MinGW-w64, but with PAM authentication +[win64] +auth=pam +type=gnu +prefix=x86_64-w64-mingw32- + +# Borland C++ 5.5, but with plain authentication +# /etc/rbuild.plain should contain lines like: +# username1:password1 +# username2:password2 +# username3:password3 +# ... +[bcc55] +auth=plain:/etc/rbuild.plain +type=borland +base=C:/borland/bcc55 + +# Visual C++ 6.0, no authentication +[vc6] +auth=none +type=vc6 +base=C:/Program Files (x86)/Microsoft Visual Studio/VC98 -- 2.43.0