Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] custom ebuild from GIT source
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Frautoincnam
Guru
Guru


Joined: 19 May 2017
Posts: 313

PostPosted: Sun Sep 22, 2024 9:34 pm    Post subject: [solved] custom ebuild from GIT source Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10649
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Sep 22, 2024 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Frautoincnam
Guru
Guru


Joined: 19 May 2017
Posts: 313

PostPosted: Sun Sep 22, 2024 9:58 pm    Post subject: Reply with quote

John R. Graham wrote:
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.

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum