Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
34e37634
D
Dak
项目概览
喜羊羊3508
/
Dak
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
34e37634
编写于
3月 04, 2017
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow ftpsync/archvsync autobyhand handling
上级
66037573
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
90 addition
and
0 deletion
+90
-0
config/debian/dak.conf
config/debian/dak.conf
+7
-0
scripts/debian/byhand-ftpsync
scripts/debian/byhand-ftpsync
+83
-0
未找到文件。
config/debian/dak.conf
浏览文件 @
34e37634
...
...
@@ -178,6 +178,13 @@ AutomaticByHandPackages {
Script
"/srv/ftp-master.debian.org/dak/scripts/debian/byhand-debian-faq"
;
};
"ftpsync"
{
Source
"archvsync"
;
Section
"byhand"
;
Extension
"tar.gz"
;
Script
"/srv/ftp-master.debian.org/dak/scripts/debian/byhand-ftpsync"
;
};
"debian-installer-images"
{
Source
"debian-installer"
;
Section
"raw-installer"
;
...
...
scripts/debian/byhand-ftpsync
0 → 100755
浏览文件 @
34e37634
#! /bin/bash
#
# byhand-debian-faq - automatic BYHAND handling for debian-faq
#
# This file is part of dak.
#
# Copyright 2017, Joerg Jaspert <joerg@debian.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
set
-e
set
-u
export
SCRIPTVARS
=
/srv/ftp-master.debian.org/dak/config/debian/vars
.
${
SCRIPTVARS
}
scriptname
=
byhand-ftpsync
if
[
$#
-lt
5
]
;
then
echo
"usage:
${
scriptname
}
<byhand-file> <version> <arch> <changes-file> <suite>"
>
&2
exit
1
fi
byhand_path
=
"
${
1
}
"
byhand_file
=
"
${
byhand_path
##*/
}
"
version
=
"
${
2
}
"
architecture
=
"
${
3
}
"
changes
=
"
${
4
}
"
suite
=
"
${
5
}
"
GNUPGHOME
=
"
${
base
}
/s3kr1t/dot-gnupg"
case
"
${
suite
}
"
in
unstable|sid
)
:
# okay
;;
*
)
echo
"
$0
: not targeted at unstable"
>
&2
exit
1
;;
esac
# Check validity of version number
# Expected: YYYYMMDD
if
!
echo
"
$VERSION
"
|
grep
-Eq
"^[0-9]{8}$"
;
then
error
"Invalid version: '
$VERSION
'"
fi
if
[[
!
"
${
byhand_file
}
"
=
~ ^ftpsync-20[0-9]
{
6
}
.tar.gz
$
]]
;
then
echo
"
$0
: unknown file '
${
byhand_file
}
'"
>
&2
exit
1
fi
target
=
"
${
ftpdir
}
/project/ftpsync/"
if
[
!
-d
"
${
target
}
"
]
;
then
mkdir
-p
"
${
target
}
"
fi
# Use --remove-destination to avoid problems with the fact that the target may
# be a hardlink and in that case we'd update multiple suites together
cp
--remove-destination
"
${
byhand_path
}
"
"
${
target
}
"
cd
${
target
}
chmod
0644
"
${
byhand_file
}
"
ln
-sf
${
target
}
ftpsync-current.tar.gz
echo
${
version
}
>
LATEST.VERSION
for
csum
in
md5sum sha512sum
;
do
/usr/bin/
${
csum
}
*
|
grep
-v
'sum'
>
${
csum
}
SIGNINGKEY
=
2B90D010
GNUPGHOME
=
${
GNUPGHOME
}
gpg
--no-options
--batch
--no-tty
--armour
--default-key
${
SIGNINGKEY
}
--clearsign
-o
"
${
TARGET
}
/
${
csum
}
.txt"
"
${
TARGET
}
/
${
csum
}
"
mv
"
${
TARGET
}
/
${
csum
}
.txt"
"
${
TARGET
}
/
${
csum
}
"
done
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录