Code: Select all
mittlerweile hab ich v.0.3.1 released ... s.u.Code: Select all
[21:44:27] [root@dude.zion]
[~] $ emerge net-misc/whois
Calculating dependencies ...done! \
>>> emerge (1 of 1) net-misc/whois-4.6.6-r3 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/whois_4.6.6.tar.gz
DISToverlay
* WARNING Performing DEEPSCAN. This may take some time on large filesystems...
* searching for whois_4.6.6.tar.gz...
scanning /data/mp3 ... file not found.
* /mnt/dvd is not mounted in filesystem. Trying to mount ...
* /mnt/dvd could not be mounted.
scanning /mnt/dvd ... file not found.
* /mnt/burn is not mounted in filesystem. Trying to mount ...
* /mnt/burn could not be mounted.
scanning /mnt/burn ... file not found.
scanning /mnt/dist ... file found!
* make a link from file to distfiles
....Code: Select all
[21:52:27] [root@dude.zion]
[~] $ emerge net-misc/whois
Calculating dependencies ...done! \
>>> emerge (1 of 1) net-misc/whois-4.6.6-r3 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/whois_4.6.6.tar.gz
DISToverlay
* WARNING Performing DEEPSCAN. This may take some time on large filesystems...
* searching for whois_4.6.6.tar.gz...
scanning /data/mp3 ... file not found.
* /mnt/dvd is not mounted in filesystem. Trying to mount ...
* /mnt/dvd could not be mounted.
* Exiting from previous errors (IGNORE_MOUNT_FAIL)
* Requested file is not in distfiles overlay.
* Fetching file from original URI
http://gentoo.osuosl.org/distfiles/whois_4.6.6.tar.gz
....Code: Select all
DISTDIRS="/data/mp3:/mnt/dvd:/mnt/burn:/mnt/dist"
#FETCHCOMMAND='/usr/bin/wget --waitretry=5 -O ${DISTDIR}/${FILE} ${URI}'
FETCHCOMMAND='/usr/local/bin/dist_overlay.sh --search ${URI}'
DIST_FETCH="/usr/bin/wget -t 1 --waitretry=5 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
DIST_CHECK_MOUNT=true
DIST_DEEPSCAN=trueCode: Select all
# download distfile
function download_distfile {
file_uri="$1"
file_name="$2"
${DIST_FETCH} -O ${DISTDIR}/$file_name $file_uri
}Code: Select all
[04:01:13] [root@dude.zion]
[~] $ dist_overlay.sh --clean
DISToverlay
Cleaning up dead links in /usr/portage/distfiles...
* Deleting symlink whois... Sure? (y|n) y
* Deleting symlink whoisficken... Sure? (y|n) y
Nothing left to do; exiting.Code: Select all
if ${DIST_COPY} ; then Code: Select all
if [ ${DIST_COPY} ]; thenCode: Select all
DIST_COPY=trueCode: Select all
# DIST_DEEPSCAN for searching in subdirectories
if ( ${DIST_DEEPSCAN} ); then
DIST_FIND_RESULT=`find "$DIR" ${DIST_DEEPSCAN_OPTS} -name "$NEW_FILE"`
if [ -n "$DIST_FIND_RESULT" ]; then
LENGTH1=`expr length "$DIST_FIND_RESULT"`
LENGTH2=`expr length "$NEW_FILE"`
LENGTH=`expr $LENGTH1 - $LENGTH2`
LENGTH=`expr $LENGTH - 1`
DIR=`echo $DIST_FIND_RESULT | cut -c -$LENGTH`
get_distfile $NEW_FILE $DIR
fi
Code: Select all
if [ ${DIST_COPY} ]; thenCode: Select all
if [ ${DIST_COPY} ]; then
write_log "(COPY) $1 ($DISTDIR)"
echo -e "${GREEN} * ${NORMAL} copy file to distfiles\n\n"
cp $2/$1 $DISTDIR
else
write_log "(SYMLINK) $1 ($DISTDIR -> $2)"
echo -e "${GREEN} * ${NORMAL} make a link from distfiles to file\n\n"
ln -sf $2/$1 $DISTDIR/$1
fi
Code: Select all
if ( ${DIST_COPY} ); then