View previous topic :: View next topic |
Author |
Message |
Frautoincnam Guru
Joined: 19 May 2017 Posts: 314
|
Posted: Sun Sep 22, 2024 9:34 pm Post subject: [solved] custom ebuild from GIT source |
|
|
Solved by replacing https by git: EGIT_REPO_URI="git://git.code.sf.net/p/${PN}/rkh_code"
Hi,
I'm trying to create an ebuild for rkhunter.
But I have never done an ebuild with a GIT branch as source.
I have read a lot of things on the subject, but still I can't get it, so if someone can give me a little help please...
I can get git sources with:
Code: | git clone --branch develop https://git.code.sf.net/p/rkhunter/rkh_code |
So I wrote the ebuild like:
Code: | EAPI=8
inherit bash-completion-r1 git-r3
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers"
HOMEPAGE="http://rkhunter.sf.net/"
EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/rkh_code"
EGIT_OVERRIDE_BRANCH_RKHUNTER_RKH_CODE="develop" |
But I get an error:
Code: | # ebuild rkhunter-9999.ebuild clean unpack
>>> Unpacking source...
* Repository id: rkhunter_rkh_code.git
* Using EGIT_OVERRIDE_BRANCH_RKHUNTER_RKH_CODE=develop
* No support will be provided.
* Fetching https://git.code.sf.net/p/rkhunter/rkh_code ...
git fetch https://git.code.sf.net/p/rkhunter/rkh_code +refs/heads/develop:refs/heads/develop
git: 'remote-https' is not a git command. See 'git --help'. |
I don't understand this error message at all...
(same error with EGIT_BRANCH="develop")
What's my error please?
Thanks in advance.
Last edited by Frautoincnam on Sun Sep 22, 2024 10:19 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10650 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Sep 22, 2024 9:56 pm Post subject: |
|
|
Well, first of all, can you get to the URL https://git.code.sf.net/p/rkhunter/rkh_code in a browser? I can't at the moment.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Frautoincnam Guru
Joined: 19 May 2017 Posts: 314
|
Posted: Sun Sep 22, 2024 9:58 pm Post subject: |
|
|
No, but I can get the code with:
Code: | git clone --branch develop https://git.code.sf.net/p/rkhunter/rkh_code |
I followed this answer to find source code |
|
Back to top |
|
|
Jimmy Jazz Guru
Joined: 04 Oct 2004 Posts: 333 Location: Strasbourg
|
Posted: Mon Sep 23, 2024 9:58 pm Post subject: |
|
|
Frautoincnam wrote: |
No, but I can get the code with:
Code: | git clone --branch develop https://git.code.sf.net/p/rkhunter/rkh_code |
I followed this answer to find source code |
use EGIT_BRANCH=develop instead _________________ « La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code: |
+----+----+----+
| |::::| |
| |::::| |
+----+----+----+ |
motto: WeLCRO
WritE Less Code, Repeat Often |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22435
|
Posted: Mon Sep 23, 2024 11:15 pm Post subject: |
|
|
OP already tried that. OP's output indicates that the correct branch name is picked, but git fails to retrieve it.
OP: what is the output of emerge --pretend --verbose dev-vcs/git? |
|
Back to top |
|
|
|