Custom web proxy to do arbitrary URL rewriting. The proxy never
returns anything except 302s (and the occasional 500/501 if
something goes wrong). Configuration of URL rewriting is via a
JavaScript file loaded using the Debian libjs0 library, which means
the knowledge of which URLs need to be rewritten only needs to be
stored in one place (the same config file can double as the proxy's
configuration and a Mozilla .pac to select it where appropriate).


git-svn-id: svn://svn.tartarus.org/sgt@4942 cda61777-01e9-0310-a592-d414129be87e
Trivial typo in error message.


git-svn-id: svn://svn.tartarus.org/sgt@4980 cda61777-01e9-0310-a592-d414129be87e
Exec the subcommand as a list of words, rather than as a single `sh
-c' job.


git-svn-id: svn://svn.tartarus.org/sgt@4981 cda61777-01e9-0310-a592-d414129be87e
Remove my home.pac and work.pac sample scripts, and replace them
with a centralised ick-config.js plus shell scripts that append the
site-specific parts of each configuration.


git-svn-id: svn://svn.tartarus.org/sgt@4982 cda61777-01e9-0310-a592-d414129be87e
Oops; somehow managed to fail to make this one executable.


git-svn-id: svn://svn.tartarus.org/sgt@4983 cda61777-01e9-0310-a592-d414129be87e
Cope with LJ urls of the form http://<username>.livejournal.com/... .


git-svn-id: svn://svn.tartarus.org/sgt@5153 cda61777-01e9-0310-a592-d414129be87e
Add a couple of extra #includes, required when compiling on the Mac.


git-svn-id: svn://svn.tartarus.org/sgt@5326 cda61777-01e9-0310-a592-d414129be87e
Makefile improvements: `make clean' target, plus an optional include
of `make.vars' so I can define platform-specific CFLAGS and LFLAGS
easily.


git-svn-id: svn://svn.tartarus.org/sgt@5327 cda61777-01e9-0310-a592-d414129be87e
Man page, --help, --licence, --version.


git-svn-id: svn://svn.tartarus.org/sgt@5342 cda61777-01e9-0310-a592-d414129be87e
Yet another URL syntax used for LJs, which therefore needs rewriting.


git-svn-id: svn://svn.tartarus.org/sgt@5773 cda61777-01e9-0310-a592-d414129be87e
Linux 2.6 appears to be more enthusiastic than 2.4 was about
delivering SIGPIPE, which kills off ick-proxy completely unless
we protect ourselves against it. So let's do that.


git-svn-id: svn://svn.tartarus.org/sgt@6776 cda61777-01e9-0310-a592-d414129be87e
Update my ick-proxy configuration for LJ's new layout.


git-svn-id: svn://svn.tartarus.org/sgt@6777 cda61777-01e9-0310-a592-d414129be87e
Compensate for dodgy internal DNS.


git-svn-id: svn://svn.tartarus.org/sgt@7697 cda61777-01e9-0310-a592-d414129be87e
Continue fiddling with my LJ rewriting rules.


git-svn-id: svn://svn.tartarus.org/sgt@7698 cda61777-01e9-0310-a592-d414129be87e
Revamp of ick-proxy's configuration mechanism. I've designed and
implemented a toy language for simple string processing, and a
translator from that into Javascript. ick-proxy itself is now no
longer dependent on embedding a third-party JS interpreter, which
should help its portability.

The man page is hopelessly outdated by this change, but so far all
I've got round to doing is adding a BUGS section saying so. Ahem.


git-svn-id: svn://svn.tartarus.org/sgt@7850 cda61777-01e9-0310-a592-d414129be87e
Forgot to check in this header file last night.


git-svn-id: svn://svn.tartarus.org/sgt@7853 cda61777-01e9-0310-a592-d414129be87e
Rename the new -p option to -f, because it clashed with the existing
-p option, ahem.


git-svn-id: svn://svn.tartarus.org/sgt@7854 cda61777-01e9-0310-a592-d414129be87e
Substantial rewrite, introducing multi-user daemon mode and also
separating the Unix-specific details of actually sending and
receiving network data from the cross-platform policy of what data
needs to be sent and received. We should now be usable as a
systemwide daemon on a Mac, and eminently ready for the writing of a
Windows front end.


git-svn-id: svn://svn.tartarus.org/sgt@7855 cda61777-01e9-0310-a592-d414129be87e
Fix embarrassing segfault.


git-svn-id: svn://svn.tartarus.org/sgt@7856 cda61777-01e9-0310-a592-d414129be87e
Add the -u option to drop privileges when running as a daemon.


git-svn-id: svn://svn.tartarus.org/sgt@7857 cda61777-01e9-0310-a592-d414129be87e