Browse Source

add more info about how the backend works...

This should make it much easier for people to run their own version
if they'd like to..
main
John-Mark Gurney 4 years ago
parent
commit
543f5673ea
Signed by: jmg GPG Key ID: 205F0B33DD006ADA
2 changed files with 38 additions and 0 deletions
  1. +27
    -0
      README.md
  2. +11
    -0
      snapwrap.sh

+ 27
- 0
README.md View File

@@ -55,3 +55,30 @@ downloaded. Another index is also maintained which only contains the
currently available to d/l snapshots. This may contain snapshots that currently available to d/l snapshots. This may contain snapshots that
no longer exist, as it is only updated/checked when a new snapshot is no longer exist, as it is only updated/checked when a new snapshot is
released. released.

The procmail rc lines that I use:
```
:0c
* Delivered-To: (freebsd-)?announce@([^@\.]*\.)*freebsd.org
| $HOME/bin/snapwrap.sh

:0
* Delivered-To: (freebsd-)?snapshots@([^@\.]*\.)*freebsd.org
{
:0c
ml/snapshots

:0
| $HOME/bin/snapwrap.sh

}
```

The first rule is used for RELEASE announcements. They are copied (`c`)
so that a later rule can file them in the proper mailbox. The second rule
is for the snapshots, and smiilarly organized, but the mailbox filing
happens here.

The snapwrap.sh script is included in the repo, but the command to deploy
the database to the FreeBSD.org servers has been deleted, but it is a
simple: `tar -cf - <files> | ssh freefall tar -xf -` type command.

+ 11
- 0
snapwrap.sh View File

@@ -0,0 +1,11 @@
#!/bin/sh

set -e

cd ~jmg/public_html/FreeBSD-snap

tmpfile="$(mktemp snapmail.XXXXXXX)"

cat > "$tmpfile"

sh addinfo.sh "$tmpfile" && rm "$tmpfile"

Loading…
Cancel
Save