Signed-off-by: Mark Hymers <mhy@debian.org>
bzip2 -9fv "$dumpname"
done
bzip2 -9fv "$dumpname"
done
-#apt-ftparchive -q clean apt.conf
-#apt-ftparchive -q clean apt.conf.buildd
-
################################################################################
################################################################################
#dak generate-filelist
cd $configdir
$configdir/map.sh
#dak generate-filelist
cd $configdir
$configdir/map.sh
- #apt-ftparchive generate apt.conf
dak generate-packages-sources2 -a security
dak generate-releases -a security
/srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh
dak generate-packages-sources2 -a security
dak generate-releases -a security
/srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh
{
DatabaseHostname "security";
DakConfig "/org/security-master.debian.org/dak/config/debian-security/dak.conf";
{
DatabaseHostname "security";
DakConfig "/org/security-master.debian.org/dak/config/debian-security/dak.conf";
- AptConfig "/org/security-master.debian.org/dak/config/debian-security/apt.conf";
-}
\ No newline at end of file
-GO=(
- FUNC="aptftpcleanup"
- TIME="apt-ftparchive cleanup"
- ARGS=""
- ERR="false"
-)
-#stage $GO
-
# we need to wait for the background processes before the end of dinstall
wait
# we need to wait for the background processes before the end of dinstall
wait
AllowLocalConfig "false";
DatabaseHostname "ftp-master";
DakConfig "/srv/ftp-master.debian.org/dak/config/debian/dak.conf";
AllowLocalConfig "false";
DatabaseHostname "ftp-master";
DakConfig "/srv/ftp-master.debian.org/dak/config/debian/dak.conf";
- AptConfig "/srv/ftp-master.debian.org/dak/config/debian/apt.conf";
}
ries.debian.org
{
AllowLocalConfig "false";
DatabaseHostname "ftp-master";
DakConfig "/srv/ftp-master.debian.org/dak/config/debian/dak.conf";
}
ries.debian.org
{
AllowLocalConfig "false";
DatabaseHostname "ftp-master";
DakConfig "/srv/ftp-master.debian.org/dak/config/debian/dak.conf";
- AptConfig "/srv/ftp-master.debian.org/dak/config/debian/apt.conf";
dak stats pkg-nums > $webdir/pkg-nums
}
dak stats pkg-nums > $webdir/pkg-nums
}
-function aptftpcleanup() {
- log "Clean up apt-ftparchive's databases"
- cd $configdir
- apt-ftparchive -q clean apt.conf
-}
-
function cleantransactions() {
log "Cleanup transaction ids older than 3 months"
cd $base/backup/
function cleantransactions() {
log "Cleanup transaction ids older than 3 months"
cd $base/backup/
// Optional filename of dak's config file; if not present, this
// file is assumed to contain dak config info.
DakConfig "/org/ftp.debian.org/dak/config/debian/dak.conf";
// Optional filename of dak's config file; if not present, this
// file is assumed to contain dak config info.
DakConfig "/org/ftp.debian.org/dak/config/debian/dak.conf";
-
- // Optional filename of apt-ftparchive's config file; if not
- // present, the file is assumed to be 'apt.conf' in the same
- // directory as this file.
- AptConfig "/org/ftp.debian.org/dak/config/debian/apt.conf";
################################################################################
default_config = "/etc/dak/dak.conf" #: default dak config, defines host properties
################################################################################
default_config = "/etc/dak/dak.conf" #: default dak config, defines host properties
-default_apt_config = "/etc/dak/apt.conf" #: default apt config, not normally used
alias_cache = None #: Cache for email alias checks
key_uid_email_cache = {} #: Cache for email addresses from gpg key uids
alias_cache = None #: Cache for email alias checks
key_uid_email_cache = {} #: Cache for email addresses from gpg key uids
configured properly will happily send them to lots of people who
probably didn't want those emails.
configured properly will happily send them to lots of people who
probably didn't want those emails.
-o Don't use the debian dak.conf, apt.conf, cron.* etc. as starting
+o Don't use the debian dak.conf, cron.* etc. as starting
points for your own configuration files, they're highly Debian
specific. Start from scratch and refer to the security.debian.org
config files (-security) as they're a better example for a private
points for your own configuration files, they're highly Debian
specific. Start from scratch and refer to the security.debian.org
config files (-security) as they're a better example for a private
[Very incomplete - FIXME]
[Very incomplete - FIXME]
-o Write your own dak.conf and apt.conf files. dak looks for those
- config files in /etc/dak/. /etc/dak/dak.conf can define
- alternative configuration files with Config::host::DakConfig and
- Config::host::AptConfig (where "host" is the fully qualified domain
- name of your machine).
+o Write your own dak.conf file. dak looks for this
+ config file in /etc/dak/. /etc/dak/dak.conf can define an
+ alternative configuration file with Config::host::DakConfig
+ (where "host" is the fully qualified domain name of your machine).
o Create a PostgreSQL database on the host given in dak.conf's DB::Host
with the name specified in DB::Name.
o Run 'dak init-dirs': this will create all directories which are specified in
o Create a PostgreSQL database on the host given in dak.conf's DB::Host
with the name specified in DB::Name.
o Run 'dak init-dirs': this will create all directories which are specified in
o If you have an existing archive:
* Run 'dak init-archive'
otherwise:
o If you have an existing archive:
* Run 'dak init-archive'
otherwise:
* Create the following groups in postgres: ftpmaster ftpteam ftptrainee
* Run 'dak update-db' to upgrade the database schema.
* Run 'dak init-db': it will populate your database with the values from
* Create the following groups in postgres: ftpmaster ftpteam ftptrainee
* Run 'dak update-db' to upgrade the database schema.
* Run 'dak init-db': it will populate your database with the values from
* Run 'psql <DB::Name> < add_constraints.sql'.
o Copy all templates from the "templates" directory to to the directory
specified in Dir::Templates, and adapt them to your distribution.
* Run 'psql <DB::Name> < add_constraints.sql'.
o Copy all templates from the "templates" directory to to the directory
specified in Dir::Templates, and adapt them to your distribution.