Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[TOOL][PORTAGE] Sync-overlay - sync vari overlay e ebuilds.

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
13 posts • Page 1 of 1
Author
Message
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

[TOOL][PORTAGE] Sync-overlay - sync vari overlay e ebuilds.

  • Quote

Post by FonderiaDigitale » Thu May 20, 2004 4:50 pm

[UPDATE] 05.07.2004: new version.

ok, dopo 4 giorni di infausta reinstallazione mio malgrado :evil: lo "Scriptaro" torna alla riscossa :roll:

Stavolta Suor Germana propone uno script per gli smanettoni come me (e chi usa ~x86 pesantemente): questo fa un sync verso il tree di portage principale, verso breakmygentoo, verso un overlay di un certo robmoss2k che contiene molte fix per gcc 3.4, e verso 1 ebuild di uno script di configurazione wireless che uso e che viene aggiornato spesso.
edit:dimenticavo di dire, che una volta syncato, lo script mostra gli ebuild nuovi e aggiornati rispetto all'ultimo aggiornamento :D
Dovrete avere esearch installato (sta in portage).

si lancia con

Code: Select all

script -v
o --verbose, se si e' in console, altrimenti senza nulla, ad. esempio per metterlo in cron.

ovviamente presume che abbiate PORTDIR_OVERLAY settata :)

[UPDATE]: il repository di redeeman sta sul suo pc, che spegne di notte (GMT+1). non vi preoccupate quindi se e' offline, riprovate di giorno.

auguri.

Code: Select all

#!/bin/sh
################################################################################################
# script to sync various ebuild against local portage tree.
# author: Giovanni Ferri <fonderiadigitale@gechi.it>
# License: GPL-2
# The repositories listed here are not guaranteed to work all the time.
# If you experience errors, please check they're still alive.
#
# Please note that this script does not check (yet!) that syncing was performed correctly.
# Anyway, it shouldn't hurt your overlay tree.
################################################################################################

ver="0.2"
source /etc/make.conf
if [ -z "${PORTDIR_OVERLAY}" ]; then
	echo "Make sure that you have defined \$PORTDIR_OVERLAY in your /etc/make.conf"
	exit 0
elif [ ! -d ${PORTDIR_OVERLAY} ]; then
	echo "Please check that ${PORTDIR_OVERLAY} exists in your disk. and is a directory."
	exit 0
fi
# parse options
quiet="-q"
case "$1" in
	-v|--verbose) verbose=on;shift;;
	-vv|--really-verbose) verbose=on;unset quiet;reallyverbose=on;shift;;
	-e|--erase-backup) erase=on;shift;;
	-b|--backup)	shift
			if [ -n "$1" ]; then
				backupfile="$1"
			else
				echo "Specify a file to write the backup to."
				exit 1
			fi
			shift;;
	-m|--mail)	[ -z "${backupfile}" ] && shift
			if [ -n "$1" ]; then
				mailaddress="$1"
			else
				echo "Please specify a mail recipient to send result to.";exit 0
			fi;;
	[a-Z]*|[0-9]*)	echo "sync-overlay v${ver} [-v|--verbose] [-vv|--really-verbose] [-m|--mailto <email-address>]"
			echo "                    [-b|--backup <tar.bz2 file>] [-e|--erase]"
			exit 0;;
esac

if [ -n "${backupfile}" ]; then
	if [ -f "${backupfile}" ]; then
		if [ -n "${erase}" ]; then
			echo "Backup file exists! Be sure not to erase an existing backup.(-e to overwrite)"
			exit 0
		fi
	fi
	[ -n "${verbose}" ] && echo -n "Backing up ${PORTDIR_OVERLAY} to ${backupfile}.."
	[ -n "${reallyverbose}" ] && x="v"
	[ -f ${backupfile} ] && rm -f ${backupfile}
	cd /;tar cjp${x}f ${backupfile} ${PORTDIR_OVERLAY}
	echo -ne "..done.\n`ls -hl --color ${backupfile}`"
	exit 0
fi

[ -n "${verbose}" ] && echo "Syncing overlays..."

#bmg
rsync ${quiet} -ar rsync://rsync.breakmygentoo.net/bmg-overlay /usr/portage/overlay

#robmoss2k local tree
cd /usr/portage/overlay
wget  ${quiet} -o /dev/null http://home.jesus.ox.ac.uk/~rmoss/portage/local/tarball-local.tar.bz2
tar jxfp tarball-local.tar.bz2
cp -aR local/* .
rm -rf local tarball-local.tar.bz2
[ -n "${verbose}" ] && echo "RobMoss2k Overlay synced."

# wireless config
cd /usr/portage/overlay/net-wireless/wireless-config
wget -m -np -nd ${quiet} -t3 -l1 -Aebuild http://rsm.demon.co.uk/~roy/downloads.php
[ -n "${verbose}" ] && echo "Wireless-config ebuild synced."

# freevo

if [ -n "${reallyverbose}" ]
then
  /usr/local/scripts/portage/rsync-freevo
else
  /usr/local/scripts/portage/rsync-freevo > /dev/null
fi
[ -n "${verbose}" ] && echo "Freevo Ebuilds synced."

# redeeman local tree - big!

cd ${PORTDIR_OVERLAY}
if [ -n "${reallyverbose}" ]
then
  svn co http://redeeman.kaspersandberg.com/fluidportage/trunk/
else
  svn co http://redeeman.kaspersandberg.com/fluidportage/trunk/ > /dev/null
fi
cp -a trunk/* . > /dev/null
rm -rf trunk > /dev/null

[ -n "${verbose}" ] && echo "Redeeman Overlay synced."

# Esyncing total result

[ -n "${verbose}" ] && echo "Building Portage esearch index for your overlay tree..."

if [ -n "${mailaddress}" ]; then
	esync -n | mail -s "Portage Overlay tree Syncing result" ${mailaddress}
elif [ -z "${verbose}" ]; then
	esync > /usr/portage/updates.log &
else
	esync > /usr/portage/updates.log
	less /usr/portage/updates.log
fi
Last edited by FonderiaDigitale on Mon Jul 05, 2004 10:06 pm, edited 4 times in total.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu May 20, 2004 4:55 pm

Bello script. Voglio solo aggiungere che gli ebuild di breakmygentoo ogni tanto possono cusare qualche problema quindi occhi a quello che fate.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Thu May 20, 2004 4:58 pm

si appunto, e' il tree unstable (~x86) se lo usate, lo fate a vostro uso e consumo, ma sopratutto poi non c'e' assistenza degli sviluppatori.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu May 20, 2004 5:05 pm

FonderiaDigitale wrote: ma sopratutto poi non c'e' assistenza degli sviluppatori.
Esattamente questo quello che intendevo.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Sat Jun 26, 2004 11:58 pm

vorrei sapere se qualcuno lo (usa|usava), in caso affermativo rilascio una nuova versione.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Wed Jun 30, 2004 10:11 pm

uppo l'ultima volta perche forse e' andato perso, poi butto le modifiche (se a nessuno interessa)
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Jun 30, 2004 10:13 pm

FonderiaDigitale wrote:uppo l'ultima volta perche forse e' andato perso, poi butto le modifiche (se a nessuno interessa)
Io direi che puoi metterle lo stesso visto che quest'estate appena ho tempo metto una bella macchina di test e questo script lo usero'
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Mon Jul 05, 2004 10:07 pm

updated.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
jdoe
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Mon Jun 02, 2003 6:29 pm
Location: Italy - Florence - Empoli
Contact:
Contact jdoe
Website

  • Quote

Post by jdoe » Mon Jul 05, 2004 11:58 pm

nn usa gensync per bmg?
sarebbe molto + comodo no?

John
me
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Tue Jul 06, 2004 12:07 am

non e' adatto per diverse cose. ad esempio ci sono alcuni archivi che si sincano con subversion, e non con rsync.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
jdoe
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Mon Jun 02, 2003 6:29 pm
Location: Italy - Florence - Empoli
Contact:
Contact jdoe
Website

  • Quote

Post by jdoe » Tue Jul 06, 2004 11:48 am

si ma per i repository di breakmygentoo intendevo...
me
Top
Delta9
n00b
n00b
Posts: 35
Joined: Sun Mar 07, 2004 10:08 pm

  • Quote

Post by Delta9 » Mon Aug 30, 2004 4:41 pm

Sbaglio o questo script non utilizza $PORT_OVERLAY che per i repository di redeeman? Per gli altri, mi sembra metta tutto in /usr/portage/overlay.
È normale che siano lì?

Aggiunta: Non si potrebbe aggiungere l'ebuild del Gekit, in modo da aggiornarla automaticamente?
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Mon Aug 30, 2004 7:20 pm

per la seconda richiesta, e' gia' nel gekit.
per la prima, sto per rilasciare una nuova versione aggiornata :)
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
Post Reply
  • Print view

13 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy