diff options
author | Guy Martin <gmsoft@gentoo.org> | 2006-02-05 09:24:08 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2006-02-05 09:24:08 +0000 |
commit | e97f0a112634bfb64c720e045e4d101544f8f049 (patch) | |
tree | ab4c5a2315196ce67fd60ff2eae926ef1549ef15 /net-misc/aiccu/files | |
parent | Driver dependency updates for hppa. (diff) | |
download | gentoo-2-e97f0a112634bfb64c720e045e4d101544f8f049.tar.gz gentoo-2-e97f0a112634bfb64c720e045e4d101544f8f049.tar.bz2 gentoo-2-e97f0a112634bfb64c720e045e4d101544f8f049.zip |
Fixed #96439, #96599 and #102061. Marked ~hppa.
(Portage version: 2.0.53)
Diffstat (limited to 'net-misc/aiccu/files')
-rw-r--r-- | net-misc/aiccu/files/digest-aiccu-2005.01.31-r1 | 1 | ||||
-rw-r--r-- | net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/aiccu/files/digest-aiccu-2005.01.31-r1 b/net-misc/aiccu/files/digest-aiccu-2005.01.31-r1 new file mode 100644 index 000000000000..7e95f6ad5cb9 --- /dev/null +++ b/net-misc/aiccu/files/digest-aiccu-2005.01.31-r1 @@ -0,0 +1 @@ +MD5 7c3da5feab3d59fb5a99a45203e0ca56 aiccu_2005.01.31.tar.gz 45672 diff --git a/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 b/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 new file mode 100644 index 000000000000..bc29e3eee919 --- /dev/null +++ b/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 @@ -0,0 +1,65 @@ +diff -urN aiccu_2005.01.31/common/aiccu.c aiccu-work/common/aiccu.c +--- aiccu_2005.01.31/common/aiccu.c 2005-01-11 13:16:09.000000000 +0100 ++++ aiccu-work/common/aiccu.c 2005-07-20 14:25:46.000000000 +0200 +@@ -18,6 +18,7 @@ + struct pl_rule aiccu_conf_rules[] = + { + /* Configuration */ ++ {"tic_server", PLRT_STRING, offsetof(struct AICCU_conf, tic_server)}, + {"username", PLRT_STRING, offsetof(struct AICCU_conf, username)}, + {"password", PLRT_STRING, offsetof(struct AICCU_conf, password)}, + {"ipv4_interface", PLRT_STRING, offsetof(struct AICCU_conf, ipv4_interface)}, +@@ -87,6 +88,12 @@ + + fprintf(f, "# AICCU Configuration (Automatically stored by aiccu %s)\n", AICCU_VER); + fprintf(f, "\n"); ++ if(g_aiccu->tic_server) ++ { ++ fprintf(f, "# TIC server\n"); ++ fprintf(f, "tic_server %s\n", g_aiccu->tic_server); ++ fprintf(f, "\n"); ++ } + fprintf(f, "# Login information\n"); + fprintf(f, "username %s\n", g_aiccu->username); + fprintf(f, "password %s\n", g_aiccu->password); +@@ -116,6 +123,8 @@ + void aiccu_FreeConfig() + { + if (!g_aiccu) return; ++ if (g_aiccu->tic_server) free(g_aiccu->tic_server); ++ g_aiccu->tic_server = NULL; + if (g_aiccu->username) free(g_aiccu->username); + g_aiccu->username = NULL; + if (g_aiccu->password) free(g_aiccu->password); +diff -urN aiccu_2005.01.31/common/aiccu.h aiccu-work/common/aiccu.h +--- aiccu_2005.01.31/common/aiccu.h 2005-01-31 20:05:52.000000000 +0100 ++++ aiccu-work/common/aiccu.h 2005-07-20 14:24:44.000000000 +0200 +@@ -73,6 +73,7 @@ + bool verbose; + + /* Only for AICCU */ ++ char *tic_server; + char *username; + char *password; + char *ipv4_interface; +diff -urN aiccu_2005.01.31/common/tic.c aiccu-work/common/tic.c +--- aiccu_2005.01.31/common/tic.c 2005-02-02 19:52:29.000000000 +0100 ++++ aiccu-work/common/tic.c 2005-07-20 14:26:08.000000000 +0200 +@@ -63,6 +63,7 @@ + bool tic_Login(struct TIC_conf *tic, char *username, char *password) + { + char buf[1024], sSignature[33], sChallenge[1024]; ++ char *server = g_aiccu->tic_server; + int i; + #ifndef _WIN32 + struct utsname utsname; +@@ -74,7 +75,7 @@ + #endif + + /* Connect to the TIC server */ +- tic->sock = connect_client(TIC_SERVER, TIC_PORT, AF_INET, SOCK_STREAM); ++ tic->sock = connect_client((server?server:TIC_SERVER), TIC_PORT, AF_INET, SOCK_STREAM); + if (tic->sock == -1) + { + dolog(LOG_ERR, "Couldn't connect to the TIC server\n"); + |