--- /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
--- /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
+
--- /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 <security-officer@FreeBSD.org> 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
+