Portage overlay
From CenterIM
There now is an easy way for gentoo users to keep up with development. If you haven't already layman do a quick
emerge layman
then
echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf
and your layman is ready to use
now you need to edit /etc/layman/layman.cfg and add the line with the overlay metadata. It should look like that then:
<snip> overlays : http://transacid.de/overlay.xml http://www.gentoo.org/proj/en/overlays/layman-global.txt </snip>
now layman can receive the information. to import the overlay the last thing is:
layman -L layman -a centerim
Now use your usual commands to update your system. One last thing: The ebuilds are in ~x86 so you probably have to put it into /etc/portage/package.keywords
It's probably useful to add "layman --sync-all" to the script that is running "emerge --sync" for you, to update the overlay as well
[edit] Alternative without using layman
If you don't want to use layman, here is a litte tutorial how to get the newest mobshot and emerge it afterwards: Go to http://www.centerim.org/download/mobshots an search for the newest mobshot. Copy that URL:
wget http://www.centerim.org/download/mobshots/centerim-4.22.1-<build>-<some number>.tar.gz
Because gentoo search for s.th. like "centerim_pYYYYMMDD" we have to extract it, change the directory and rename the file:
tar xfz centerim-4.22.1-<build>-<some number>.tar.gz mv centerim-4.22.1-<build>-<some number>.tar.gz centerim-4.22.1
Now you should know the build-date of the downloaded mobshot. In the directory-listing of the download-directory on centerim.org you should see it. Now we build again the archive:
tar cfz centerim-<date of build, e.g. 20071130>.tar.gz centerim-4.22.1
Copy it to the gentoo-distfiles-location
cp centerim-<date of build, e.g. 20071130>.tar.gz /usr/portage/distfiles/
Now we have to create an ebuild. We just have to copy an old one and change some lines inside. First we change the directory
cd /usr/portage/net-im/centerim
Now we copy the last ebuild, currently it's centerim-4.22.1_20071103.ebuild
cp centerim-4.22.1_p<YYYYMMDD>.ebuild centerim-4.22.1_p<date of build, e.g. 20071130>.ebuild
Now we edit the 'new' file, and comment all lines beginnig with "epatch" in the function "src_unpack" out. Here an example, before the edit:
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-imotr-config.patch
epatch "${FILESDIR}"/${PN}-ack-sbl.patch
}
and afterwards:
src_unpack() {
unpack ${A}
cd "${S}"
#epatch "${FILESDIR}"/${PN}-imotr-config.patch
#epatch "${FILESDIR}"/${PN}-ack-sbl.patch
}
Save and close the file. Now you have to create the Manifest-files
ebuild centerim-4.22.1_p<date of build, e.g. 20071130>.ebuild digest
Afterwards you should be able to emerge the brandnew mobshot:
emerge --pretend net-im/centerim
You see a new version with the versionnumber "date of build, e.g. 20071130". Enjoy
