Gentoo Archives: gentoo-portage-dev

From: "Yannick Le Saint (kyncani)" <y.lesaint@××××.fr>
To: gentoo-portage-dev@g.o
Subject: [gentoo-portage-dev] Local post_install script
Date: Mon, 08 Dec 2003 04:14:32
Message-Id: 1070878448.4786.33.camel@kyncani.lesaint
1 What about having local post_install scripts (something like debian
2 hooks, if i remember well) ?
3
4 For example, it would be sooo cool to have a
5 /etc/portage/portage.d/sys-kernel/vanilla-sources/post_install file of
6 my own which would have access of every variable you can have in an
7 ebuild.
8
9 This is how my post_install script for vanilla-sources would look like
10 :
11
12 cd /usr/src || die
13 rm -f linux &>/dev/null
14 ln -s linux-$KV linux || die
15 cp -f /etc/kernels/myconfig /etc/kernels/config-$KV || die
16 nice -n 20 genkernel || die
17
18
19
20 --
21 gentoo-portage-dev@g.o mailing list