catalinux / rgfs (public) (License: GPLv3) (since 2020-11-11) (hash sha1)
Allows mapping of RocketGit storage area into a local directory
List of commits:
Subject Hash Author Date (UTC)
Send env variable ce941b5564cb7601d6930b32688f083e22bbb67c Catalin(ux) M. BOIE 2021-01-30 10:51:31
Prevent a fd leak e439ecaf5fde8a53c969eadc3b32ec4558e16406 Catalin(ux) M. BOIE 2021-01-19 06:40:17
More debug b95edceb2abff793c9d2a19d62b6c1de8aa328bb Catalin(ux) M. BOIE 2021-01-16 11:53:51
Send first the name and after that the version b68e3cb967aa6a3edf5b64ac9b66c6fa67a1f990 Catalin(ux) M. BOIE 2021-01-16 10:21:57
Simplified variables sent 0f37c2cd6342c8be0f4615c8fe8979d1bb9cce8d Catalin(ux) M. BOIE 2021-01-14 04:48:11
Added job_id variable 9ab34e796d0f5494d97d1b9f9fff52e6a9f27e8c Catalin(ux) M. BOIE 2020-12-04 17:30:10
Create a function to send generic vars and use it 97fa7f7a9f4af7c9e7bf3579d1437dfc59c29825 Catalin(ux) M. BOIE 2020-11-30 17:45:17
Wrong lenght passed c642d9387496543f4fb824fad6cd2590328d83b4 Catalin(ux) M. BOIE 2020-11-30 17:33:08
Allow sending repo_id 160f9d2f3957ba5639377e8d5bdc15744dac78a2 Catalin(ux) M. BOIE 2020-11-30 13:36:55
More debugging 1b562b79df09000cb40d2e91aa069636e9fd5e55 Catalin(ux) M. BOIE 2020-11-27 07:04:43
Added support for uid and head 2c9ae749a048d990ce24aa389439056c8ab0e836 Catalin(ux) M. BOIE 2020-11-27 06:29:37
Added chmod 82a9f7db95a0327bd0d97a58a27ce6432fdf6790 Catalin(ux) M. BOIE 2020-11-16 18:53:49
implemented chown d3862312d2900e96957c0734b5f27d0851d2a19a Catalin(ux) M. BOIE 2020-11-16 18:31:35
Lots of improvements 4953574e14ffba41e05e897fb94771f0ac7bab44 Catalin(ux) M. BOIE 2020-11-15 16:46:04
Allow verbose debug cee91423dda669c580b84451d3b846b3e7ef3038 Catalin(ux) M. BOIE 2020-11-15 12:11:04
Small bug caused by an old way to pack path ad3501ea5b7b112f0760f5aca247275e974edaff Catalin(ux) M. BOIE 2020-11-15 11:59:55
Lots of improvements 9275d4bc7be78518ac7bd2c3aa9cfb946a2969ad Catalin(ux) M. BOIE 2020-11-15 10:40:44
Lots of cleanups 2998ff2dcb74565887986fb7167e65e4fdf6d173 Catalin(ux) M. BOIE 2020-11-14 19:23:09
added utimens b5c24acf3ff86a51a7a49fec1eaf8eb65ae77bbb Catalin(ux) M. BOIE 2020-11-14 16:09:29
Improved debug f9bdf71667d0c77d4fcb4fa6e7792fd2d4c60712 Catalin(ux) M. BOIE 2020-11-13 18:57:48
Commit ce941b5564cb7601d6930b32688f083e22bbb67c - Send env variable
Author: Catalin(ux) M. BOIE
Author date (UTC): 2021-01-30 10:51
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2021-01-30 10:51
Parent(s): e439ecaf5fde8a53c969eadc3b32ec4558e16406
Signing key:
Tree: bc521e92e8c46f47199285ae33944eff0776621b
File Lines added Lines deleted
duilder.conf 1 1
rgfs.c 13 2
File duilder.conf changed (mode: 100644) (index b569838..c0bddc5)
... ... RELEASE_SCRIPT="./duilder_release"
18 18 RELEASE_SCRIPT="/usr/local/bin/duilder_release" RELEASE_SCRIPT="/usr/local/bin/duilder_release"
19 19
20 20 CC_SWITCHES="-O3 -fstack-reuse=all -flto -Wtrampolines -Wl,-z,noexecstack" CC_SWITCHES="-O3 -fstack-reuse=all -flto -Wtrampolines -Wl,-z,noexecstack"
21 CC_SWITCHES="${CC_SWITCHES} -Wl,-z,now -Wl,-z,relro -Wl,-O1 -Wl,-z,noexecstack"
21 CC_SWITCHES="${CC_SWITCHES} -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack"
22 22 CC_SWITCHES="${CC_SWITCHES} -fPIE -pie -fstack-protector-all" CC_SWITCHES="${CC_SWITCHES} -fPIE -pie -fstack-protector-all"
23 23 CC_SWITCHES="${CC_SWITCHES} -Wcast-align -Wformat=2" CC_SWITCHES="${CC_SWITCHES} -Wcast-align -Wformat=2"
24 24 CC_SWITCHES="${CC_SWITCHES} -Wformat-security -fno-common" CC_SWITCHES="${CC_SWITCHES} -Wformat-security -fno-common"
File rgfs.c changed (mode: 100644) (index fa97fea..1e713b5)
... ... static char *rgfs_uid = NULL;
38 38 static char *rgfs_repo_id = NULL; static char *rgfs_repo_id = NULL;
39 39 static char *rgfs_head = NULL; static char *rgfs_head = NULL;
40 40 static char *rgfs_job_id = NULL; static char *rgfs_job_id = NULL;
41 static char *rgfs_env = NULL;
41 42
42 43 static gnutls_session_t session; static gnutls_session_t session;
43 44 static unsigned char connected = 0; static unsigned char connected = 0;
 
... ... static int rgfs_tls(void)
381 382 break; break;
382 383 } }
383 384
385 if (rgfs_env) {
386 r = rgfs_send_gen_var("env", rgfs_env);
387 if (r <= 0)
388 break;
389 }
390
384 391 ret = 0; ret = 0;
385 392 } while (0); } while (0);
386 393
 
... ... int main(int argc, char *argv[])
1286 1293 if (s) if (s)
1287 1294 rgfs_job_id = s; rgfs_job_id = s;
1288 1295
1296 s = getenv("RGFS_ENV");
1297 if (s)
1298 rgfs_env = s;
1299
1289 1300 xlog("name=%s server=%s port=%d url=%s pkg_repo_id=%s pkg_subrepo_id=%s" xlog("name=%s server=%s port=%d url=%s pkg_repo_id=%s pkg_subrepo_id=%s"
1290 " uid=%s repo_id=%s head=%s job_id=%s\n",
1301 " uid=%s repo_id=%s head=%s job_id=%s env=%s\n",
1291 1302 rgfs_name, rgfs_server, rgfs_port, rgfs_url, rgfs_pkg_repo_id, rgfs_name, rgfs_server, rgfs_port, rgfs_url, rgfs_pkg_repo_id,
1292 1303 rgfs_pkg_subrepo_id, rgfs_pkg_subrepo_id,
1293 rgfs_uid, rgfs_repo_id, rgfs_head, rgfs_job_id);
1304 rgfs_uid, rgfs_repo_id, rgfs_head, rgfs_job_id, rgfs_env);
1294 1305
1295 1306 if (gnutls_check_version("3.4.6") == NULL) { if (gnutls_check_version("3.4.6") == NULL) {
1296 1307 xlog("GnuTLS 3.4.6 or later is required!\n"); xlog("GnuTLS 3.4.6 or later is required!\n");
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rgfs

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rgfs

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rgfs

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main