# HG changeset patch # User Tomas Zeman # Date 1324897727 -3600 # Node ID 1401fa2311ac2fce111ffd53c76eb3829841f0e1 # Parent f1c52a4d5ca314c5f5afbcc9016a3586e4413d9b# Parent 24a81ad5593d537a3df913691cf40ca9f99973a5 branch merge diff -r 24a81ad5593d -r 1401fa2311ac freebsd/portsnap-hg/hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/hgignore Mon Dec 26 12:08:47 2011 +0100 @@ -0,0 +1,6 @@ +syntax: glob +*~ +.*.swp +INDEX* +distfiles +packages diff -r 24a81ad5593d -r 1401fa2311ac freebsd/portsnap-hg/howto --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/howto Mon Dec 26 12:08:47 2011 +0100 @@ -0,0 +1,29 @@ +Howto import ports (updated by portsnap) into mercurial repo: + +(assumed under user portsnap with homedir /portsnap) + + * Repository: + +hg init ~/ports +hg add .hgignore #see hgignore file + + * Portsnap conf: + +~/.portsnaprc #see portsnaprc + + * Initial import: + +PS="portsnap -f /portsnap/.portsnaprc" +PSDIR=/portsnap/ports +$PS fetch +$PS extract +cd $PSDIR && hg addremove && hg ci ... + + * Regular updates (crontab): + +PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin +PSDIR=/portsnap/ports +PS="portsnap -f /portsnap/.portsnaprc" +PSLOG=/portsnap/log/portsnap.log +13 */6 * * * cd $PSDIR && $PS cron && $PS update && hg addremove && hg ci -m 'Update' >> $PSLOG + diff -r 24a81ad5593d -r 1401fa2311ac freebsd/portsnap-hg/portsnaprc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/portsnaprc Mon Dec 26 12:08:47 2011 +0100 @@ -0,0 +1,18 @@ +# Default directory where compressed snapshots are stored. +WORKDIR=/portsnap/var/db/portsnap + +# Default location of the ports tree (target for "update" and "extract"). +PORTSDIR=/portsnap/ports + +SERVERNAME=portsnap.FreeBSD.org + +# Trusted keyprint. Changing this is a Bad Idea unless you've received +# a PGP-signed email from telling you to +# change it and explaining why. +KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 + +# List of INDEX files to build and the DESCRIBE file to use for each +INDEX INDEX-6 DESCRIBE.6 +INDEX INDEX-7 DESCRIBE.7 +INDEX INDEX-8 DESCRIBE.8 +