equal
deleted
inserted
replaced
|
1 Howto import ports (updated by portsnap) into mercurial repo: |
|
2 |
|
3 (assumed under user portsnap with homedir /portsnap) |
|
4 |
|
5 * Repository: |
|
6 |
|
7 hg init ~/ports |
|
8 hg add .hgignore #see hgignore file |
|
9 |
|
10 * Portsnap conf: |
|
11 |
|
12 ~/.portsnaprc #see portsnaprc |
|
13 |
|
14 * Initial import: |
|
15 |
|
16 PS="portsnap -f /portsnap/.portsnaprc" |
|
17 PSDIR=/portsnap/ports |
|
18 $PS fetch |
|
19 $PS extract |
|
20 cd $PSDIR && hg addremove && hg ci ... |
|
21 |
|
22 * Regular updates (crontab): |
|
23 |
|
24 PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin |
|
25 PSDIR=/portsnap/ports |
|
26 PS="portsnap -f /portsnap/.portsnaprc" |
|
27 PSLOG=/portsnap/log/portsnap.log |
|
28 13 */6 * * * cd $PSDIR && $PS cron && $PS update && hg addremove && hg ci -m 'Update' >> $PSLOG |
|
29 |