updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / eix / eix.install
blob114db198bd66d668e6f58b53e9ec1284865b9cb1
1 post_install() {
2         pfile=/etc/passwd
3         grep "^portage:" $pfile >/dev/null 2>&1  # ensure it's not already used
4         if [ $? -ne 0 ]; then
5                 useradd -d /var/tmp/portage -mU -s /bin/false -u 250 portage >/dev/null 2>&1
6                 gpasswd -a root portage >/dev/null 2>&1
7         fi
8         echo "Usage:"
9         echo
10         echo "Please Add you to the \"portage\" group"
11         echo "Setup the \"PORTDIR\" in /etc/make.conf"
12         echo "use \"emerge-sync\" to sync the portage directory"
13         echo "use \"update-eix\" to create database"
14         echo "use \"eix\" to search package"
15         echo
17         echo
18         echo "Security Warning:"
19         echo
20         echo "Since >=eix-0.12.0, eix uses by default OVERLAY_CACHE_METHOD=\"parse|ebuild*\""
21         echo "This is rather reliable, but ebuilds may be executed by user \"portage\". Set"
22         echo "OVERLAY_CACHE_METHOD=parse in /etc/eixrc if you do not trust the ebuilds."
23         if test -d /var/log && ! test -x /var/log || test -e /var/log/eix-sync.log
24         then
25                 echo
26                 echo "eix-sync no longer supports redirection to /var/log/eix-sync.log"
27                 echo "You can remove that file."
28         fi
31 post_upgrade() {
32         post_install