Re: How do I build my own package server?

看板FB_questions作者時間11年前 (2014/06/25 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/8 (看更多)
On 06/24/2014 08:55 AM, Bertram Scharpf wrote: > Hi, > > this is sort of what I did until now: > > Inside a jail: > > - SVN-Update "/usr/ports". > - Merge my own patch files for several packages. > - Find the outdated ports using a self-written tool. > - Do "make clean" and "make package" for them. > - Build a package list. > > On all other machines and jails: > > - Load the package list. > - Find the outdated packages. > - Do "pkg_delete" and "pkg_add" for them. > > Now, the pkg_* tools are no longer supported! Rewriting my update tools > would take at least two days and I have better things to do. On the > other side, I doubt whether it would go any faster learning some > portmaster or portupgrade tool until I find the features I need. > (Actually, I tried portmaster and soon was tired of seeing it > redundantly cleaning and recompiling ports.) > > Therefore my question: Is there any documentation how to build a package > server that can be understood in finite time? I have used poudirere[1] to great effect for this purpose. It produces a ready-to-use repository that I just rsync over to an HTTP server for use amongst my many jails. Once properly configured, my update cycle now consists of running, on the build server: poudriere bulk -j cdnjail -p cdn -f /usr/local/etc/poudriere/cdnjail-ports.list ....then rsync'ing the results to a webserver, followed by, on each jail: pkg upgrade ....and that's it. This has replaced hundreds of lines of bourne shell script that I used to use to maintain jails, and it is awesome*. * for me, your mileage may vary. [1] https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki > On the other side: I do not feel very well having loads of SQLite > databases in the base system. Can you articulate this feeling further? -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net <CyberLeo@CyberLeo.Net> Furry Peace! - http://www.fur.com/peace/ _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JgRpVdu (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1JgRpVdu (FB_questions)