View Source

Brief page of guides and config for the OPF debian repository server. 

Was built following the guide @ [http://www.debian-administration.org/articles/286|http://www.debian-administration.org/articles/286]

This is the distributions file:
{code}
Origin: Open Planets Foundation
Label: Debian Repository
Suite: stable
Codename: stable
Version: 3.1
Architectures: i386 amd64 all source
Components: main non-free contrib
Description: Debian Repository for the Open Planets Foundation
SignWith: 594F7FBA

Origin: Open Planets Foundation
Label: Debian Repository
Suite: unstable
Codename: unstable
Architectures: i386 amd64 all source
Components: main non-free contrib
Description: Debian Repository for the Open Planets Foundation
SignWith: 594F7FBA
{code}
You also need a _conf/options_ file with the following in it:

{code}
ask-passphrase
{code}
{note}
In order to make the reprepro work you will need the OPF Repository Private GPG Key, that has very restricted access, you could create your own and change the SignWith line above.
{note}


The FTP server is vsftpd with the following config file in /etc/vsftpd.conf

{code}
listen=YES
anonymous_enable=YES
local_enable=NO
write_enable=YES
anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=davetaz
anon_root=/home/deb.openplanetsfoundation.org
chroot_local_user=YES


pasv_min_port=10000
pasv_max_port=10021


secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
{code}NOTE: The incoming directory needs to be chgrp'd to the ftp user and be writeable. The root dir above MUST NOT be. 

Below this point are very specific instructions for how to admin the OPF Debian Repository.

{code}
Required User: davetaz
Import Command: reprepro -b . include stable /home/deb.openplanetsfoundation.org/incoming/package_version.changes
or
Import Command: reprepro --ignore=undefinedtarget -b . include stable /home/deb.openplanetsfoundation.org/incoming/package_version.changes
{code}