* [gentoo-dev] local package.mask / or unmask
@ 2002-09-10 3:08 Tom Prado
2002-09-10 20:31 ` Rigo Ketelings
0 siblings, 1 reply; 3+ messages in thread
From: Tom Prado @ 2002-09-10 3:08 UTC (permalink / raw
To: gentoo-dev
Hello all,
There's probably something in the documentation describing how to do
this but I couldn't seem to find anything anywhere. I have
modifications to my /usr/portage/profiles/package.mask but everytime I
emerge rsync, I loose them all and have to reapply. Is there a way to
have a local package.mask file that I can use to both mask specific
versions of packages and unmask others that are currently masked in the
central one? I tried creating one in /usr/portage.local/profiles (after
setting PORTDIR_OVERLAY in /etc/make.conf) but that didn't seem to have
any effect.
Thank you for your time,
Tom Prado
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] local package.mask / or unmask
2002-09-10 3:08 [gentoo-dev] local package.mask / or unmask Tom Prado
@ 2002-09-10 20:31 ` Rigo Ketelings
2002-09-10 20:57 ` Tom Prado
0 siblings, 1 reply; 3+ messages in thread
From: Rigo Ketelings @ 2002-09-10 20:31 UTC (permalink / raw
To: Tom Prado; +Cc: gentoo-dev
There's a script out there (forums I believe I found it) that will tell
you what new ebuilds there are, every time you rsync....A little hack
overwrites package.mask with your local one (set by the script)....Be
carefull though...Once new ebuilds start crawling in (ALWAYS tested in
package.mask first; but not for you....if you're using this script
anyway ;-)
It also has functionality for a different thirdpartymirrors file and
reservers a package.mask.rsynced (=Current package.mask) in
$PORTDIR_OVERLAY
I named it 'er' after the proces emerge rsync ;-)
Have fun,
Rigo
<SNIP SCRIPT ER>
#!/bin/sh
BASE=/var/cache
USE_COLORS=yes
CHANGE_PACKAGE_MASK=yes
PORTDIR_OVERLAY=/home/lemar/portage
MIRROR_LIST=thirdpartymirrors.nl
# end user configuration section
. /etc/make.globals
BEFORE=$BASE/ebuild-rsync.before
AFTER=$BASE/ebuild-rsync.after
NEW=$BASE/ebuild-rsync.new
REMOVED=$BASE/ebuild-rsync.removed
if [ "$USE_COLORS" == "yes" ]; then
RED="\033[;31m"
GREEN="\033[;32m"
NORMAL="\033[m"
fi
function portagetree () {
find $PORTDIR -type d -mindepth 2 -maxdepth 2
}
# do it
portagetree >$BEFORE
emerge $@ rsync
portagetree >$AFTER
diff $BEFORE $AFTER | grep ">" | sed "s/> //g" > $NEW
diff $BEFORE $AFTER | grep "<" | sed "s/< //g" > $REMOVED
# cleanup
rm $BEFORE $AFTER
# display new ebuilds
if ! diff -q $NEW /dev/null >/dev/null; then
echo
echo Nieuwe ebuilds:
echo
for i in $(cat $NEW); do
. $(ls $i/*.ebuild --sort=time | head -n 1)
echo -e $GREEN${i##$PORTDIR/}$NORMAL: $DESCRIPTION
done
fi
if [ "$CHANGE_PACKAGE_MASK==yes" ]; then
cp $PORTDIR/profiles/package.mask $PORTDIR_OVERLAY/package.mask.rsynced
cp $PORTDIR_OVERLAY/package.mask $PORTDIR/profiles/package.mask
cp $PORTDIR_OVERLAY/$MIRROR_LIST $PORTDIR/profiles/thirdpartymirrors
fi
# display removed ebuilds
if ! diff -q $REMOVED /dev/null >/dev/null; then
echo
echo Verwijderde ebuilds:
echo
for i in $(cat $REMOVED); do
echo -e $RED${i##$PORTDIR/}$NORMAL
done
fi
</SNIP SCRIPT ER>
Op di 10-09-2002, om 05:08 schreef Tom Prado:
> Hello all,
>
> There's probably something in the documentation describing how to do
> this but I couldn't seem to find anything anywhere. I have
> modifications to my /usr/portage/profiles/package.mask but everytime I
> emerge rsync, I loose them all and have to reapply. Is there a way to
> have a local package.mask file that I can use to both mask specific
> versions of packages and unmask others that are currently masked in the
> central one? I tried creating one in /usr/portage.local/profiles (after
> setting PORTDIR_OVERLAY in /etc/make.conf) but that didn't seem to have
> any effect.
>
> Thank you for your time,
> Tom Prado
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] local package.mask / or unmask
2002-09-10 20:31 ` Rigo Ketelings
@ 2002-09-10 20:57 ` Tom Prado
0 siblings, 0 replies; 3+ messages in thread
From: Tom Prado @ 2002-09-10 20:57 UTC (permalink / raw
Cc: gentoo-dev
Thanks! This will work nicely.
Tom
On 10 Sep 2002, Rigo Ketelings wrote:
> There's a script out there (forums I believe I found it) that will tell
> you what new ebuilds there are, every time you rsync....A little hack
> overwrites package.mask with your local one (set by the script)....Be
> carefull though...Once new ebuilds start crawling in (ALWAYS tested in
> package.mask first; but not for you....if you're using this script
> anyway ;-)
>
> It also has functionality for a different thirdpartymirrors file and
> reservers a package.mask.rsynced (=Current package.mask) in
> $PORTDIR_OVERLAY
>
> I named it 'er' after the proces emerge rsync ;-)
>
> Have fun,
>
> Rigo
>
<- snipped ->
>
> Op di 10-09-2002, om 05:08 schreef Tom Prado:
> > Hello all,
> >
> > There's probably something in the documentation describing how to do
> > this but I couldn't seem to find anything anywhere. I have
> > modifications to my /usr/portage/profiles/package.mask but everytime I
> > emerge rsync, I loose them all and have to reapply. Is there a way to
> > have a local package.mask file that I can use to both mask specific
> > versions of packages and unmask others that are currently masked in the
> > central one? I tried creating one in /usr/portage.local/profiles (after
> > setting PORTDIR_OVERLAY in /etc/make.conf) but that didn't seem to have
> > any effect.
> >
> > Thank you for your time,
> > Tom Prado
> >
> >
> > _______________________________________________
> > gentoo-dev mailing list
> > gentoo-dev@gentoo.org
> > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-10 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10 3:08 [gentoo-dev] local package.mask / or unmask Tom Prado
2002-09-10 20:31 ` Rigo Ketelings
2002-09-10 20:57 ` Tom Prado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox