# HG changeset patch # User Tomas Zeman # Date 1320304543 -3600 # Node ID f1c52a4d5ca314c5f5afbcc9016a3586e4413d9b # Parent 09e889dbc36d62ce29cf8b16d70f241cdd7c628d FreeBSD ports (via portsnap) -> mercurial diff -r 09e889dbc36d -r f1c52a4d5ca3 freebsd/portsnap-hg/hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/hgignore Thu Nov 03 08:15:43 2011 +0100 @@ -0,0 +1,6 @@ +syntax: glob +*~ +.*.swp +INDEX* +distfiles +packages diff -r 09e889dbc36d -r f1c52a4d5ca3 freebsd/portsnap-hg/howto --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/howto Thu Nov 03 08:15:43 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 09e889dbc36d -r f1c52a4d5ca3 freebsd/portsnap-hg/portsnaprc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freebsd/portsnap-hg/portsnaprc Thu Nov 03 08:15:43 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 +