]> Git repositories of Nishi - rbuild.git/commitdiff
add example config
authorNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 15:24:20 +0000 (15:24 +0000)
committerNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 15:24:20 +0000 (15:24 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@6 c68d3453-7f82-0740-9748-1d72386a946b

Server/main.c
example.conf [new file with mode: 0644]

index e01dc2ed69dc3aead73ab11d9df0b9d23fcecb5c..50ce8942cf7e1eec66d9ae8323ddf6074c0bc07c 100644 (file)
@@ -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 (file)
index 0000000..7aa54b1
--- /dev/null
@@ -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