Re: [gentoo-user] Ebuild hacking howto
On Sat, Feb 26, 2011 at 9:56 AM, Dale rdalek1...@gmail.com wrote: Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenņflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Dale :-) :-) Not going to beat a dead horse, but that is exactly one of the things it's supposed to do. The program itself works great, it just doesn't meet the requirements of the Gentoo devs.
Re: [gentoo-user] Ebuild hacking howto
On Sun, Feb 27, 2011 at 8:43 PM, Mark Shields laebsh...@gmail.com wrote: On Sat, Feb 26, 2011 at 9:56 AM, Dale rdalek1...@gmail.com wrote: Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenņflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Dale :-) :-) Not going to beat a dead horse, but that is exactly one of the things it's supposed to do. The program itself works great, it just doesn't meet the requirements of the Gentoo devs. Diego didn't mask it because webmin itself modified config files; of course that is what it is supposed to do. Rather, it was masked because the ebuild itself was dodging the sandbox protection. See Diego's blog for more info: http://blog.flameeyes.eu/2010/08/20/there-s-something-about-webmin
Re: [gentoo-user] Ebuild hacking howto
On Saturday 26 February 2011 00:43:43 Mark Shields wrote: Saw that you linked to the creating an updated ebuild from gentoo-wiki, so what I say may overlay quite a bit, but hear me out: It depends on how the ebuild is built. If it references the version by the ebuild file name, which is very common, you can create an overlay for the ebuild, copy the ebuild to it, rename the ebuild file to have the new version number as part of it, digest the ebuild, make sure the overlay is listed in your make.conf file, then try to emerge it. I did this with Webmin. Yes, I know it's masked and new versions have effectively been dropped from portage; but I use it, and it worked fine. Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Ebuild hacking howto
Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenòflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Dale :-) :-)
Re: [gentoo-user] Ebuild hacking howto
On Saturday 26 February 2011 14:56:35 Dale wrote: Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenòflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Yes, thank you. :) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Ebuild hacking howto
Am Sat, 26 Feb 2011 16:28:35 + schrieb Mick michaelkintz...@gmail.com: On Saturday 26 February 2011 14:56:35 Dale wrote: Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenòflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Yes, thank you. :) Note that you can find this information in /usr/portage/profile/package.mask. HTH -- Marc Joliet signature.asc Description: PGP signature
[gentoo-user] Ebuild hacking howto
Hello, Is the link below the best howto guide as to using an existing ebuild to hack a new ebuild? JFFNMS has been languishing despite repeated requests for a version bump; so I'm taking the plunge and going to update it on one of my systems. http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild Also, I found this guide: http://devmanual.gentoo.org/ and man 5 ebuild Any other documents I should reference before attempinging to update an ebuild on my own person overlay dir? Comments and ideas are most welcome James
Re: [gentoo-user] Ebuild hacking howto
On 02/25/2011 08:13 AM, James wrote: Hello, Is the link below the best howto guide as to using an existing ebuild to hack a new ebuild? JFFNMS has been languishing despite repeated requests for a version bump; so I'm taking the plunge and going to update it on one of my systems. http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild Also, I found this guide: http://devmanual.gentoo.org/ and man 5 ebuild Any other documents I should reference before attempinging to update an ebuild on my own person overlay dir? Comments and ideas are most welcome This has some good information: http://overlays.gentoo.org/proj/sunrise/wiki/CodingStandards and like it says at the bottom, many projects will have their own development documentation. Aside from that, help is always (well, when the devs are awake) available on IRC: #gentoo-dev-help (what it says) #gentoo-sunrise (most people here are writing/reviewing ebuilds)
Re: [gentoo-user] Ebuild hacking howto
On Fri, Feb 25, 2011 at 8:13 AM, James wirel...@tampabay.rr.com wrote: Hello, Is the link below the best howto guide as to using an existing ebuild to hack a new ebuild? JFFNMS has been languishing despite repeated requests for a version bump; so I'm taking the plunge and going to update it on one of my systems. http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild Also, I found this guide: http://devmanual.gentoo.org/ and man 5 ebuild Any other documents I should reference before attempinging to update an ebuild on my own person overlay dir? Comments and ideas are most welcome James Saw that you linked to the creating an updated ebuild from gentoo-wiki, so what I say may overlay quite a bit, but hear me out: It depends on how the ebuild is built. If it references the version by the ebuild file name, which is very common, you can create an overlay for the ebuild, copy the ebuild to it, rename the ebuild file to have the new version number as part of it, digest the ebuild, make sure the overlay is listed in your make.conf file, then try to emerge it. I did this with Webmin. Yes, I know it's masked and new versions have effectively been dropped from portage; but I use it, and it worked fine. Maybe I should break it down a little: Create the appropriate directory in an overlay dir. For Webmin, I had to create app-admin, then webmin: # mkdir -p /usr/local/portage/overlay/app-admin/webmin mark@allanon /usr/local/portage/overlay/app-admin/webmin $ pwd /usr/local/portage/overlay/app-admin/webmin I then copied webmin-1.510.ebuild from the official portage tree, /usr/portage/app-admin/webmin, to it's new location and filename: # cp /usr/portage/app-admin/webmin/webmin-1.510.ebuild /usr/local/portage/overlay/app-admin/webmin/webmin-1.530.ebuild Then digest the ebuild to generate a manifest, otherwise portage will complain when you try to emerge it: # cd /usr/local/portage/overlay/app-admin/webmin # ebuild webmin-1.530.ebuild digest Now add the overlay to your make.conf: PORTDIR_OVERLAY=/usr/local/portage/overlay If you're using EIX to sync/search portage, you'll need to run eix-update after doing this. Now try to emerge the newest Webmin, but first you have to unmask it. I like to use autounmask for that: Create your package.???* directories (or files) in /etc/portage (I like the dir option), if you don't already have them: # for a in keywords unmask use; do mkdir -p /etc/portage/package.${a}; done If you just want the files: # for a in keywords unmask use; do touch /etc/portage/package.${a}; done Emerge autounmask if you don't have it: # emerge app-portage/autounmask Then unmask Webmin 1.530: # autounmask =app-admin/webmin-1.530 Now we can emerge it! # emerge -av =app-admin/webmin-1.530 I've done this on 3 servers to get Webmin on them, and have used this setup every time. Chances are the ebuild you want to use may be this simple. Ok, so I scrolled down and saw your reply mentioning the program, jffnms. What I did with Webmin can all most be done exactly the same with jffnms, except you need to modify a line of the ebuild to point to *.tgz instead of *.tar.gz. When I did this, I was able to successfully fetch the gzipped tar file from Sourceforge. You can use sed to correct it: sed -i -e 's/.tar.gz/.tgz/g' /usr/local/portage/overlay/net-analyzer/jffnms/jffnms-0.8.5.ebuild Or download the ebuild I've attached, follow the link you references to create the overlay dir/add to make.conf, etc. That should work. Let me know how it goes. jffnms-0.8.5.ebuild Description: Binary data