Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=18c84e068b4efcf7addb308f26f081fd802da7aa
commit 18c84e068b4efcf7addb308f26f081fd802da7aa
Author: VMiklos <[EMAIL PROTECTED]>
Date: Sat Sep 29 16:54:10 2007 +0200
syncpkgcd: add a manpage and document how to set up syncpkgcd on a machine
diff --git a/Makefile b/Makefile
index 8df64cb..a76f4f9 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ sysconfdir = /etc
docdir = /usr/share/doc/pacman-tools-$(VERSION)
FINCDIR = $(shell source /usr/lib/frugalware/fwmakepkg; echo $$Fincdir)
XML_PATH = /usr/share/sgml/docbook/dtd/xml-dtd-4.2
-DOCS = $(wildcard *.txt)
+DOCS = $(wildcard *.txt) $(wildcard syncpkgd/*.txt)
compile: genauthors apidocs fwmakepkg.3 docs
$(MAKE) -C mkiso
diff --git a/syncpkgd/syncpkgcd.py b/syncpkgd/syncpkgcd.py
index 172f06d..61ba25c 100644
--- a/syncpkgd/syncpkgcd.py
+++ b/syncpkgd/syncpkgcd.py
@@ -15,17 +15,9 @@ class Options:
self.help = False
self.uid = False
def usage(self, ret):
- print """Usage: syncpkgcd [OPTION]...
-syncpkgcd is a client daemon that fetches requests from a syncpkg daemon.
-
-Options:
- -d --daemon run as daemon in the background
- -l --logfile set the logfile (default: syncpkgcd.log)
- -p --pidfile set the pidfile (default: syncpkgcd.pid)
- -u --uid set the daemon's user id"""
+ os.system("man syncpkgcd")
sys.exit(ret)
-
class Syncpkgcd:
def __init__(self, options):
self.options = options
diff --git a/syncpkgd/syncpkgcd.txt b/syncpkgd/syncpkgcd.txt
new file mode 100644
index 0000000..2b384de
--- /dev/null
+++ b/syncpkgd/syncpkgcd.txt
@@ -0,0 +1,76 @@
+= syncpkgcd(1)
+
+== NAME
+
+syncpkgcd - a client daemon that fetches requests from a syncpkg daemon
+
+== SYNOPSIS
+
+syncpkgcd [options]
+
+== OPTIONS
+
+-d, --daemon::
+ Run as daemon in the background.
+
+-l, --logfile::
+ Set the logfile (default: syncpkgcd.log).
+
+-p, --pidfile::
+ Set the pidfile (default: syncpkgcd.pid).
+
+-u --uid::
+ Set the daemon's user id.
+
+== DESCRIPTION
+
+To set up syncpkgcd, you need the followings.
+
+* First, check your firewall: outgoing connections to `genesis.frugalware.org`
+should be allowed on ports 22 and 80.
+
+* Second, you need to edit the server_url, server_user and server_pass
variables
+in /etc/syncpkgcd/cconfig.py.
+
+* Now switch to the syncpkgd user, using:
+
+----
+# su - syncpkgd
+----
+
+* Generate an ssh key with no passphrase, using:
+
+----
+$ ssh-keygen -t dsa
+----
+
+NOTE: The `\~/.ssh/id_dsa.pub` file should be appended to
`\~/.ssh/authorized_keys` on
+the server with a `command="syncpkg-shell <nick>" ` prefix.
+
+* Add the followings to your `\~/.repoman.conf`:
+
+----
+repos=('stable' 'current')
+stable_servers=("[EMAIL PROTECTED]:/home/ftp/pub/frugalware/frugalware-stable")
+current_servers=("[EMAIL
PROTECTED]:/home/ftp/pub/frugalware/frugalware-current")
+fst_root=~/repos
+----
+
+* Now login to darcs.frugalware.org and git.frugalware.org manually so that the
+fingerprint of the servers will be added to the `\~/.ssh/known_hosts` file.
+
+* You need to create the <fst_root> directory:
+
+----
+$ mkdir -p ~/repos
+----
+
+* And now you can enable and start syncpkgcd:
+
+----
+# service syncpkgcd add
+# service syncpkgcd start
+----
+
+NOTE: You may want to check `/var/log/syncpkgcd.log` to see if everything
works as
+expected.
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git