Skip to content

Commit

Permalink
Fixed /ect/dput.cf
Browse files Browse the repository at this point in the history
  • Loading branch information
gornostal committed May 5, 2019
1 parent 5372cb0 commit f8eca02
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ RUN apt-get update && \
COPY [ "requirements.txt", "data/preferences/package.json", "./" ]
COPY [ "docs/requirements.txt", "./docs/" ]

# Caching node_modules to make builds faster
# update /etc/dput.cf to use sftp for upload to ppa.launchpad.net
COPY [ "scripts/dput.cf", "/etc" ]

# Caching node_modules to make builds faster
RUN pip3 install -r requirements.txt && \
pip3 install -r docs/requirements.txt && \
yarn && \
mv node_modules /var && \
printf "\n[ppa]\nmethod = sftp\nlogin = agornostal" >> /etc/dput.cf
mv node_modules /var
108 changes: 108 additions & 0 deletions scripts/dput.cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Example dput.cf that defines the host that can be used
# with dput for uploading.

[DEFAULT]
login = *
method = ftp
hash = md5
allow_unsigned_uploads = 0
allow_dcut = 0
run_lintian = 0
run_dinstall = 0
check_version = 0
scp_compress = 0
post_upload_command =
pre_upload_command =
passive_ftp = 1
default_host_main = ubuntu
allowed_distributions = (?!UNRELEASED)
progress_indicator = 2

[ftp-master]
fqdn = ftp.upload.debian.org
incoming = /pub/UploadQueue/
login = anonymous
allow_dcut = 1
method = ftp
# Please, upload your package to the proper archive
# http://www.debian.org/doc/manuals/developers-reference/pkgs.html#bug-security-upload
allowed_distributions = (?!UNRELEASED|.*-security)

# http://lists.debian.org/debian-project/2009/05/msg00036.html
[ftp-eu]
fqdn = ftp.eu.upload.debian.org
method = ftp
incoming = /pub/UploadQueue/
login = anonymous
allow_dcut = 1
# Please, upload your package to the proper archive
# http://www.debian.org/doc/manuals/developers-reference/pkgs.html#bug-security-upload
allowed_distributions = (?!UNRELEASED|.*-security)

# http://lists.debian.org/debian-devel-announce/2008/09/msg00007.html
[ssh-upload]
login = *
# login = another_username
fqdn = ssh.upload.debian.org
method = scp
incoming = /srv/upload.debian.org/UploadQueue/
allow_dcut = 1
# Please, upload your package to the proper archive
# http://www.debian.org/doc/manuals/developers-reference/pkgs.html#bug-security-upload
allowed_distributions = (?!UNRELEASED|.*-security)

# And if you want to override one of the defaults, add it here.
# For example, comment out the next line
# post_upload_command = /path/to/some/script
# pre_upload_command = /path/to/some/script

[security-master]
fqdn = ftp.security.upload.debian.org
method = ftp
incoming = /pub/SecurityUploadQueue
login = anonymous
allow_dcut = 1
# This has been added at the request of the security team.
# Please be sure to know what you are doing before taking it out.
pre_upload_command = /usr/share/dput/helper/security-warning

[security-master-unembargoed]
fqdn = ftp.security.upload.debian.org
method = ftp
incoming = /pub/OpenSecurityUploadQueue
login = anonymous
allow_dcut = 1
# This has been added at the request of the security team.
# Please be sure to know what you are doing before taking it out.
pre_upload_command = /usr/share/dput/helper/security-warning

[ubuntu]
fqdn = upload.ubuntu.com
method = ftp
incoming = /ubuntu
login = anonymous

[ppa]
fqdn = ppa.launchpad.net
incoming = ~%(ppa)s
method = sftp
login = agornostal

[mentors]
method = ftp
fqdn = mentors.debian.net
incoming = .
login = anonymous

[local]
method = local
incoming = ~/public_html/debian/mini-dinstall/incoming
run_dinstall = 0
post_upload_command = /usr/bin/mini-dinstall --batch


# Local variables:
# coding: utf-8
# mode: conf
# End:
# vim: fileencoding=utf-8 filetype=config :

0 comments on commit f8eca02

Please sign in to comment.