- Download zip file and place it on the readynas
- unzip *-master.zip
- cd to extracted dir
- cat git-2.21.0_2.21.0-1_sparc.parta* > git-2.21.0_2.21.0-1_sparc.deb
- dpkg --force-overwrite -i openssl-1.0.2r.deb
- dpkg --force-overwrite -i curl-7.64.1_7.deb
- dpkg --force-overwrite -i git-2.21.0_2.2.deb
- git config --global http.sslVerify false
- openssl:
- ./config enable-shared enable-egd
- curl:
- LDFLAGS="-L/usr/local/ssl/ -L/usr/local/ssl/lib/ -Wl,-rpath,/usr/local/ssl/,-rpath,/usr/local/ssl/lib/" LIBS="-ldl" ./configure --with-ssl=/usr/local/ssl/ --with-libssl-prefix=/usr/local/ssl/ --disable-ldap --enable-libcurl-option
- check config.log if correct openssl 1.0.2r version is used. (Backup your old openssl files, remove them and copy from new openssl installation /usr/local/ssl/include/ header files to the old install dir /usr/include/openssl/
- make
- test curl with
curl https://orf.at/ -k
- git:
- nano Makefile +2533
- replace "$(QUIET_MSGFMT)mkdir -p
$(dir $ @) &&$(MSGFMT) -o $ @$<" with "$ (QUIET_MSGFMT)mkdir -p$(dir $ @) && touch $@" - LDFLAGS="-L/usr/local/ssl/ -L/usr/local/ -L/usr/local/bin/ -Wl,-rpath,/usr/local/ssl/,-rpath,/usr/local/lib/" LIBS="-ldl" ./configure --with-curl=/usr/local/ --with-openssl=/usr/local/ssl/
- NO_TCLTK=1 make
- git config --global core.editor "nano" (if you have installed nano)
- git config --global http.sslVerify false
Sign on to SSH as root: ssh root@your_nas_ip Create the folder for your repository: mkdir /c/git/what_ever && cd /c/git/what_ever Initialise the repository: git – bare init Exit SSH (exit)
SetEnv GIT_PROJECT_ROOT /c/git
SetEnv GIT_HTTP_EXPORT_ALL
# ScriptAlias /git/ /opt/git-2.21.0/libexec/git-core/git-http-backend/
RewriteCond %{QUERY_STRING} service=git-receive-pack [OR]
RewriteCond %{REQUEST_URI} /git-receive-pack$
RewriteRule ^/gitweb/ - [E=AUTHREQUIRED:yes]
AliasMatch ^/gitweb/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /c/git/$1
AliasMatch ^/gitweb/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /c/git/$1
ScriptAliasMatch \
"(?x)^/gitweb/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/opt/git-2.21.0/libexec/git-core/git-http-backend/$1
<LocationMatch "^/gitweb/">
Order Deny,Allow
Deny from env=AUTHREQUIRED
AuthType Basic
AuthName "Git Access"
#Require group committers
Satisfy Any
</LocationMatch>
Alias /GITSCM /c/var/www/GITSCM
<Location /GITSCM>
Order deny,allow
Options ExecCGI
# AuthType Basic
# Require valid-user
Allow from all
</Location>
ScriptAlias /gitweb /c/var/www/GITSCM/gitweb/gitweb.cgi
<Directory "/c/var/www/GITSCM/gitweb">
Options Indexes FollowSymlinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>