View previous topic :: View next topic |
Author |
Message |
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 10:14 am Post subject: [SOLVED] Q: Custom repo, version bump |
|
|
Hello,
I added my own custom repo for Firejail 0.9.54, and wondering if it's the correct way to do it.
Code: | root #mkdir -p /usr/local/portage/{metadata,profiles}
root #chown -R portage:portage /usr/local/portage
echo localrepo > /usr/local/portage/profiles/localrepo |
FILE /usr/local/portage/metadata/layout.conf
Quote: | masters = gentoo
auto-sync = false |
FILE /etc/portage/repos.conf/localrepo.conf
Quote: | [localrepo]
location = /usr/local/portage |
Code: |
root #mkdir -p /usr/local/portage/sys-apps/firejail
root #cd /usr/portage/sys-apps/firejail
root #cp Manifest metadata.xml firejail-0.9.52.ebuild /usr/local/portage/sys-apps/firejail/
root #cp -R files /usr/local/portage/sys-apps/firejail/
root #cd /usr/local/portage/sys-apps/firejail/
root #mv firejail-0.9.52.ebuild firejail-0.9.54.ebuild
root#cd files/
root#mv 0.9.52-contrib-fix.patch 0.9.54-contrib-fix.patch
root #ebuild firejail-0.9.54.ebuild manifest |
I then downloaded firejail-0.9.54.tar.xz and firejail-0.9.54.tar.xz.asc and verified it, and copied it to /usr/portage/distfiles.
Emerged with emerge =firejail-0.9.54, which worked fine.
Wonder beacuse... For a version bump the wiki has this:
Code: | user $mkdir -v /usr/local/portage/bobs-repository/app-emulation
user $cd /usr/local/portage/bobs-repository/app-emulation
user $cp -r /usr/portage/app-emulation/docker .
user $cd docker/
user $cp docker-1.11.0.ebuild docker-1.12.6.ebuild
user $repoman --digest=y -d full (use 'ebuild docker-1.12.6.ebuild manifest' instead)
Now test the installation:
root #emerge --ask =app-emulation/docker-1.12.6 |
But doing that as a user doesn't work.
Last edited by ayeyes on Mon Jun 11, 2018 4:26 pm; edited 3 times in total |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5941
|
Posted: Mon Jun 11, 2018 10:45 am Post subject: |
|
|
try adding yourself to the portage group. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 11:05 am Post subject: |
|
|
bunder wrote: | try adding yourself to the portage group. |
Thanks Is adding myself to portage safe security wise?
Should I restore a snapshot from before I did Code: | ebuild firejail-0.9.54.ebuild manifest | as root? |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 3:01 pm Post subject: |
|
|
Have added myself to the group 'portage', and '/usr/local/portage' is owned by 'portage', but I get permission denied when trying the create the directory '/usr/local/portage/some-dir.
Logged out before trying.
Code: | $groups charles
wheel audio video users portage wheel audio video users portage charles |
Last edited by ayeyes on Mon Jun 11, 2018 3:05 pm; edited 2 times in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10719 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 11, 2018 3:05 pm Post subject: |
|
|
It's just a permissions issue. Post the output of Code: | ls -ld /usr/local/portage | please.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 3:06 pm Post subject: |
|
|
John R. Graham wrote: | It's just a permissions issue. Post the output of Code: | ls -ld /usr/local/portage | please.
- John |
Thanks
Code: | drwxr-xr-x 1 portage portage 48 Jun 11 09:29 /usr/local/portage |
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10719 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 11, 2018 3:12 pm Post subject: |
|
|
So this says that members of the portage group do not have write permission to that directory. Use chmod to fix that if you want your regular user to be able to create files and directories there.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 3:17 pm Post subject: |
|
|
John R. Graham wrote: | So this says that members of the portage group do not have write permission to that directory. Use chmod to fix that if you want your regular user to be able to create files and directories there.
- John |
Thank you John.
Which permission should I give it?
Last edited by ayeyes on Mon Jun 11, 2018 4:23 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31439 Location: here
|
Posted: Mon Jun 11, 2018 3:20 pm Post subject: |
|
|
ayeyes wrote: | Which permission should I give it? |
Write permission on group (775) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Mon Jun 11, 2018 3:21 pm Post subject: |
|
|
fedeliallalinea wrote: | ayeyes wrote: | Which permission should I give it? |
Write permission on group (775) |
Thank you fedeliallalinea.
Worked now. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23049
|
Posted: Tue Jun 12, 2018 1:45 am Post subject: |
|
|
ayeyes wrote: | Thanks Is adding myself to portage safe security wise? | Maybe. Do you ever run as yourself any programs you would not trust to run as root? |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Fri Jun 15, 2018 8:49 pm Post subject: |
|
|
Hu wrote: | ayeyes wrote: | Thanks Is adding myself to portage safe security wise? | Maybe. Do you ever run as yourself any programs you would not trust to run as root? |
Yes! eselect list, lsblk, findmnt and more. Paranoia. Created a portage user. |
|
Back to top |
|
|
|