Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
205d7ee9
D
Dak
项目概览
喜羊羊3508
/
Dak
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
205d7ee9
编写于
12月 12, 2010
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated for new version
Signed-off-by:
N
Joerg Jaspert
<
joerg@debian.org
>
上级
ae6fc2b2
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
62 addition
and
80 deletion
+62
-80
config/debian-security/apt.conf
config/debian-security/apt.conf
+1
-15
config/debian-security/apt.conf.buildd
config/debian-security/apt.conf.buildd
+2
-16
config/debian-security/cron.buildd
config/debian-security/cron.buildd
+24
-24
config/debian-security/cron.daily
config/debian-security/cron.daily
+6
-7
config/debian-security/cron.unchecked
config/debian-security/cron.unchecked
+22
-11
config/debian-security/cron.weekly
config/debian-security/cron.weekly
+4
-4
config/debian-security/map.sh
config/debian-security/map.sh
+1
-1
config/debian-security/vars
config/debian-security/vars
+2
-2
未找到文件。
config/debian-security/apt.conf
浏览文件 @
205d7ee9
...
...
@@ -9,26 +9,12 @@ Dir
Default
{
Packages
::
Compress
"
.
gzip bzip2"
;
Packages
::
Compress
"gzip bzip2"
;
Sources
::
Compress
"gzip bzip2"
;
DeLinkLimit
0
;
FileMode
0664
;
}
tree
"dists/oldstable/updates"
{
FileList
"/srv/security-master.debian.org/dak-database/dists/oldstable_updates/$(SECTION)_binary-$(ARCH).list"
;
SourceFileList
"/srv/security-master.debian.org/dak-database/dists/oldstable_updates/$(SECTION)_source.list"
;
Sections
"main contrib non-free"
;
Architectures
"alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc source"
;
BinOverride
"override.etch.$(SECTION)"
;
ExtraOverride
"override.etch.extra.$(SECTION)"
;
SrcOverride
"override.etch.$(SECTION).src"
;
Contents
" "
;
Packages
::
Compress
"gzip bzip2"
;
Sources
::
Compress
"gzip bzip2"
;
};
tree
"dists/stable/updates"
{
FileList
"/srv/security-master.debian.org/dak-database/dists/stable_updates/$(SECTION)_binary-$(ARCH).list"
;
...
...
config/debian-security/apt.conf.buildd
浏览文件 @
205d7ee9
...
...
@@ -9,25 +9,12 @@ Dir
Default
{
Packages::Compress "
. gzip bzip2
";
Sources::Compress "
. gzip bzip2
";
Packages::Compress "
gzip
";
Sources::Compress "
gzip
";
DeLinkLimit 0;
FileMode 0664;
}
bindirectory "etch"
{
Packages "etch/Packages";
Sources "etch/Sources";
Contents " ";
BinOverride "override.etch.all3";
SrcOverride "override.etch.all3.src";
BinCacheDB "packages-accepted-etch.db";
PathPrefix "";
Packages::Extensions ".deb .udeb";
};
bindirectory "lenny"
{
Packages "lenny/Packages";
...
...
@@ -53,4 +40,3 @@ bindirectory "squeeze"
PathPrefix "";
Packages::Extensions ".deb .udeb";
};
config/debian-security/cron.buildd
浏览文件 @
205d7ee9
...
...
@@ -2,48 +2,49 @@
#
# Executed after cron.unchecked
ARCHS_oldstable
=
"alpha amd64 arm hppa i386 ia64 mips mipsel powerpc sparc s390"
ARCHS_stable
=
"alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc sparc s390"
ARCHS_testing
=
"alpha amd64 armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 mips mipsel powerpc sparc s390"
DISTS
=
"oldstable stable testing"
SSH_SOCKET
=
~/.ssh/buildd.debian.org.socket
set
-e
export
SCRIPTVARS
=
/org/security-master.debian.org/dak/config/debian-security/vars
set
-u
export
SCRIPTVARS
=
/srv/security-master.debian.org/dak/config/debian-security/vars
.
$SCRIPTVARS
SSH_SOCKET
=
~/.ssh/buildd.debian.org.socket
DISTS
=
$(
dak admin s list
)
if
[
-e
$ftpdir
/Archive_Maintenance_In_Progress
]
;
then
exit
0
fi
cd
$masterdir
for
d
in
$DISTS
;
do
eval
SOURCES_
$d
=
`
stat
-c
"%Y"
$base
/buildd/
$d
/Sources.gz
`
eval
PACKAGES_
$d
=
`
stat
-c
"%Y"
$base
/buildd/
$d
/Packages.gz
`
for
dist
in
$DISTS
;
do
eval
SOURCES_
$dist
=
`
stat
-c
"%Y"
$base
/buildd/
$dist
/Sources.gz
`
eval
PACKAGES_
$dist
=
`
stat
-c
"%Y"
$base
/buildd/
$dist
/Packages.gz
`
done
cd
$configdir
apt-ftparchive
-qq
-o
APT::FTPArchive::Contents
=
off generate apt.conf.buildd
dists
=
for
d
in
$DISTS
;
do
eval
NEW_SOURCES_
$d
=
`
stat
-c
"%Y"
$base
/buildd/
$d
/Sources.gz
`
eval
NEW_PACKAGES_
$d
=
`
stat
-c
"%Y"
$base
/buildd/
$d
/Packages.gz
`
old
=
SOURCES_
$d
new
=
NEW_
$old
if
[
${
!new
}
-gt
${
!old
}
]
;
then
for
dist
in
$DISTS
;
do
eval
NEW_SOURCES_
$dist
=
`
stat
-c
"%Y"
$base
/buildd/
$dist
/Sources.gz
`
eval
NEW_PACKAGES_
$dist
=
`
stat
-c
"%Y"
$base
/buildd/
$dist
/Packages.gz
`
old
=
SOURCES_
$dist
new
=
NEW_
$old
if
[
${
!new
}
-gt
${
!old
}
]
;
then
if
[
-z
"
$dists
"
]
;
then
dists
=
"
$d
"
dists
=
"
$d
ist
"
else
dists
=
"
$dists
$d
"
dists
=
"
$dists
$d
ist
"
fi
continue
fi
old
=
PACKAGES_
$d
old
=
PACKAGES_
$d
ist
new
=
NEW_
$old
if
[
${
!new
}
-gt
${
!old
}
]
;
then
if
[
${
!new
}
-gt
${
!old
}
]
;
then
if
[
-z
"
$dists
"
]
;
then
dists
=
"
$d
"
dists
=
"
$d
ist
"
else
dists
=
"
$dists
$d
"
dists
=
"
$dists
$d
ist
"
fi
continue
fi
...
...
@@ -61,4 +62,3 @@ if [ ! -z "$dists" ]; then
ssh wbadm@buildd
-S
$SSH_SOCKET
trigger.security
$d
done
fi
config/debian-security/cron.daily
浏览文件 @
205d7ee9
#!/bin/sh
#!/bin/
ba
sh
#
# Executed daily via cron, out of dak's crontab.
set
-e
export
SCRIPTVARS
=
/
org
/security-master.debian.org/dak/config/debian-security/vars
export
SCRIPTVARS
=
/
srv
/security-master.debian.org/dak/config/debian-security/vars
.
$SCRIPTVARS
################################################################################
...
...
@@ -69,10 +69,9 @@ apt-ftparchive -q clean apt.conf.buildd
symlinks
-d
-r
$ftpdir
pg_dump obscurity
>
/org/security-master.debian.org/dak-backup/dump_
$(
date
+%Y.%m.%d-%H:%M:%S
)
# Vacuum the database
set
+e
echo
"VACUUM; VACUUM ANALYZE;"
| psql obscurity 2>&1 | egrep
-v
"^NOTICE: Skipping
\"
pg_.*only table or database owner can VACUUM it
$|
^VACUUM$"
set
-e
find
-maxdepth
1
-mindepth
1
-type
f
-name
'dump_*'
\!
-name
'*.bz2'
\!
-name
'*.gz'
-mmin
+720 |
while
read
dumpname
;
do
bzip2
-9fv
"
$dumpname
"
done
################################################################################
config/debian-security/cron.unchecked
浏览文件 @
205d7ee9
#! /bin/sh
#! /bin/
ba
sh
set
-e
export
SCRIPTVARS
=
/org/security-master.debian.org/dak/config/debian-security/vars
set
-u
export
SCRIPTVARS
=
/srv/security-master.debian.org/dak/config/debian-security/vars
.
$SCRIPTVARS
# And use one locale, no matter what the caller has set
export
LANG
=
C
export
LC_ALL
=
C
report
=
$queuedir
/REPORT
reportdis
=
$queuedir
/REPORT.disembargo
timestamp
=
$(
date
"+%Y-%m-%d %H:%M"
)
doanything
=
false
cd
$newstage
changes
=
$(
find
.
-maxdepth
1
-mindepth
1
-type
f
-name
\*
.changes |
sed
-e
"s,./,,"
| xargs
)
if
[
-n
"
$changes
"
]
;
then
echo
"
$timestamp
"
:
${
changes
:-
"Nothing to do in newstage"
}
>>
$report
dak process-upload
-a
-d
"
$newstage
"
>>
$report
fi
cd
$unchecked
changes
=
$(
find
.
-maxdepth
1
-mindepth
1
-type
f
-name
\*
.changes |
sed
-e
"s,./,,"
| xargs
)
if
[
-n
"
$changes
"
]
;
then
doanything
=
true
echo
"
$timestamp
"
:
"
$changes
"
>>
$report
dak process-unchecked
-a
$changes
>>
$report
echo
"--"
>>
$report
doanything
=
true
echo
"
$timestamp
"
:
${
changes
:-
"Nothing to do in unchecked"
}
>>
$report
dak process-upload
-a
-d
"
$unchecked
"
>>
$report
fi
cd
$disembargo
changes
=
$(
find
.
-maxdepth
1
-mindepth
1
-type
f
-name
\*
.changes |
sed
-e
"s,./,,"
| xargs
)
if
[
-n
"
$changes
"
]
;
then
doanything
=
true
echo
"
$timestamp
"
:
"
$changes
"
>>
$reportdis
dak process-unchecked
-a
$changes
>>
$reportdis
echo
"--"
>>
$reportdis
doanything
=
true
echo
"
$timestamp
"
:
${
changes
:-
"Nothing to do in disembargo"
}
>>
$reportdis
dak process-upload
-a
-d
"
$disembargo
"
>>
$reportdis
fi
if
!
$doanything
;
then
...
...
@@ -33,4 +44,4 @@ if ! $doanything; then
exit
0
fi
sh
$masterdir
/cron.buildd
$masterdir
/cron.buildd
config/debian-security/cron.weekly
浏览文件 @
205d7ee9
#!/bin/sh
#!/bin/
ba
sh
#
# Executed weekly via cron, out of dak's crontab.
set
-e
export
SCRIPTVARS
=
/
org
/security-master.debian.org/dak/config/debian-security/vars
export
SCRIPTVARS
=
/
srv
/security-master.debian.org/dak/config/debian-security/vars
.
$SCRIPTVARS
################################################################################
...
...
@@ -11,9 +11,9 @@ export SCRIPTVARS=/org/security-master.debian.org/dak/config/debian-security/var
# Weekly generation of release files, then pushing mirrors.
# Used as we have a "Valid-until" field in our release files of 10 days. In case
# we dont have a security update in that time...
cd
$
master
dir
cd
$
config
dir
dak generate-releases
/
org
/security-master.debian.org/dak/config/debian-security/make-mirror.sh
/
srv
/security-master.debian.org/dak/config/debian-security/make-mirror.sh
sudo
-u
archvsync
-H
/home/archvsync/signal_security
...
...
config/debian-security/map.sh
浏览文件 @
205d7ee9
#!/bin/bash
dak make-pkg-file-mapping | bzip2
-9
>
/
org
/security-master.debian.org/ftp/indices/package-file.map.bz2
dak make-pkg-file-mapping | bzip2
-9
>
/
srv
/security-master.debian.org/ftp/indices/package-file.map.bz2
config/debian-security/vars
浏览文件 @
205d7ee9
...
...
@@ -21,8 +21,8 @@ logdir=$base/log/cron/
queuedir=$base/queue/
unchecked=$queuedir/unchecked/
newstage=$queuedir/newstage/
disembargo=$queuedir/unchecked-disembargo/
accepted=$queuedir/accepted/
done=$queuedir/done/
mirrordir=$base/mirror/
...
...
@@ -36,7 +36,7 @@ uploaddir=/pub/UploadQueue/
ftpgroup=debadmin
components="main non-free contrib"
suites=
"stable testing"
suites=
$(dak admin s list)
override_types="deb dsc udeb"
TMPDIR=${base}/tmp
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录