From 7bba61403463040b03c621cbfca9b4e458b9d065 Mon Sep 17 00:00:00 2001 From: Yang Min Date: Mon, 23 Sep 2024 19:33:42 +0800 Subject: [PATCH] add quilt format --- debian/changelog | 144 +++++++++++++++++++++++++++++++ debian/control | 50 +++++++++++ debian/copyright | 16 ++++ debian/libpam-biometric.install | 10 +++ debian/libpam-biometric.manpages | 3 + debian/libpam-biometric.postinst | 54 ++++++++++++ debian/libpam-biometric.prerm | 6 ++ debian/rules | 8 ++ debian/source/format | 1 + debian/source/include-binaries | 9 ++ debian/ukui-polkit.install | 4 + debian/watch | 3 + 12 files changed, 308 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libpam-biometric.install create mode 100644 debian/libpam-biometric.manpages create mode 100644 debian/libpam-biometric.postinst create mode 100644 debian/libpam-biometric.prerm create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/include-binaries create mode 100644 debian/ukui-polkit.install create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5aca379 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,144 @@ +ukui-biometric-auth (4.20.0.0-ok0.1) huanghe; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动说明:添加quilt格式 + * 其他改动影响域:无 + + -- Yang Min Mon, 23 Sep 2024 19:29:25 +0800 + +ukui-biometric-auth (4.10.0.0-ok9) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动说明:添加维文翻译 + * 其他改动影响域:无 + + -- Yang Min Tue, 27 Aug 2024 17:13:35 +0800 + +ukui-biometric-auth (4.10.0.0-ok8) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动说明:更新desktop文件名 + * 其他改动影响域:无 + + -- Kevin Duan Tue, 23 Apr 2024 10:31:46 +0800 + +ukui-biometric-auth (4.10.0.0-ok7) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动说明:更新维文翻译 + * 其他改动影响域:无,commit id:c67110c + + -- Kevin Duan Tue, 23 Apr 2024 10:31:46 +0800 + +ukui-biometric-auth (4.10.0.0-ok6~042313) nile; urgency=medium + + * BUG号:#I90LU8【次要】【提权】需要提权框进行授权时(如添加新用户、生物特征管理工具中录入指纹提权),授权框出现在左上角不居中 + * 需求号:无 + * 其他改动说明:无 + * 其他改动影响域:无,commit id:c67110c + + -- Yang Min Tue, 23 Apr 2024 10:31:46 +0800 + +ukui-biometric-auth (4.10.0.0-ok5~0105) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:Task190787 子 UKUI&Kylin应用捐赠事宜 / biometric-auth- & screensaver合规性修改 + * commit id:d24cb3a + + -- Yang Min Fri, 05 Jan 2024 17:37:41 +0800 + +ukui-biometric-auth (4.10.0.0-ok4~1212) nile; urgency=medium + + * BUG号:I8KQ18 【主要】【需求24683】【登录选项】登录界面不显示扫码登录 + * 需求号:无 + * 其他修改说明:无 + + -- Yang Min Tue, 12 Dec 2023 16:07:16 +0800 + +ukui-biometric-auth (4.10.0.0-ok3~1127) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:修复未汉化问题 + + -- Yang Min Mon, 27 Nov 2023 17:41:11 +0800 + +ukui-biometric-auth (4.10.0.0-ok2~1117) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:处理编译依赖问题 + + -- Yang Min Fri, 17 Nov 2023 10:06:56 +0800 + +ukui-biometric-auth (4.10.0.0-ok1~1116) nile; urgency=medium + + * BUG号:无 + * 需求号:task#180727 更新多语言翻译 + * 其他修改说明:增加用户个性化设置接口和单点登录接口 + + -- Yang Min Thu, 16 Nov 2023 14:45:37 +0800 + +ukui-biometric-auth (4.0.0.0-ok1~0426) yangtze; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:合并V101、V101-tablet代码 + + -- Yang Min Wed, 26 Apr 2023 21:58:51 +0800 + +ukui-biometric-auth (3.22.0.0-ok7~0420) yangtze; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:修复glib2.0头文件引用不规范导致的编译问题 + + -- Yang Min Thu, 20 Apr 2023 16:16:16 +0800 + +ukui-biometric-auth (3.22.0.0-ok6~0420) yangtze; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他修改说明:解决libpam-biometric与libkysdk-log库同时加载时程序崩溃问题 + + -- Yang Min Thu, 20 Apr 2023 11:09:41 +0800 + +ukui-biometric-auth (3.22.0.0-ok5~0417) yangtze; urgency=medium + + * BUG号:167371 【提权】A用户添加生物识别特征,B用户登录使用A用户进行提权时没有生物识别选项 + * 需求号:无 + * 其他修改说明:无 + + -- Yang Min Mon, 17 Apr 2023 14:09:28 +0800 + +ukui-biometric-auth (3.22.0.0-ok4~0413) yangtze; urgency=medium + + * BUG号:I643GT 【提权】授权窗口无图标 + * 需求号:无 + * 其他修改说明:无 + + -- Yang Min Thu, 13 Apr 2023 17:59:37 +0800 + +ukui-biometric-auth (3.22.0.0-ok3~1101) yangtze; urgency=medium + + * 其他修改说明:修复编包问题,重新编包 + + -- Yang Min Tue, 01 Nov 2022 11:21:52 +0800 + +ukui-biometric-auth (3.22.0.0-ok1~1024) yangtze; urgency=medium + + * BUG号:143415 【安全套件】卫士通Ukey绑定后授权提示信息乱码 + + -- Yang Min Mon, 24 Oct 2022 09:33:25 +0800 + +ukui-biometric-auth (1.2.0.1kylin60-ok2~0707) yangtze; urgency=medium + + * Bug: + - #127121 点击重启服务没反应 + + -- Xie Wei Fri, 20 May 2022 16:33:24 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..31e5126 --- /dev/null +++ b/debian/control @@ -0,0 +1,50 @@ +Source: ukui-biometric-auth +Section: admin +Priority: optional +Maintainer: Kylin Team +Uploaders: handsome_feng +Build-Depends: cmake (>= 2.6), + debhelper-compat (= 12), + libglib2.0-dev, + libgsettings-qt-dev, + libopencv-dev, + libpam-dev, + libpolkit-qt5-1-dev, + libqt5svg5-dev, + pkg-config, + qtbase5-dev, + qttools5-dev, + qttools5-dev-tools, + libkysdk-sysinfo-dev, + libukui-log4qt-dev, + libssl-dev, + liblightdm-qt5-3-dev, + libkysdk-waylandhelper-dev, + libkf5windowsystem-dev (>= 5.92.0-ok5), + libx11-dev +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Homepage: https://github.com/ukui/ukui-biometric-auth +Vcs-Git: https://github.com/ukui/ukui-biometric.git +Vcs-Browser: https://github.com/ukui/ukui-biometric-auth + +Package: libpam-biometric +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Suggests: biometric-auth +Breaks: ukui-polkit (<<1.0.3) +Replaces: ukui-polkit (<<1.0.3) +Description: Insertable authentication module for PAM + The indispensable part for biometric authentication in + ukui desktop environment. + This package contains a modules for PAM. + +Package: ukui-polkit +Architecture: any +Depends: policykit-1, ${misc:Depends}, ${shlibs:Depends} +Suggests: biometric-auth +Provides: polkit-1-auth-agent +Description: UKUI authentication agent for PolicyKit-1 + The ukui-polkit package supports general authentication and + biometric authentication that the service is provided by the + biometric-auth package. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..42c595e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ukui-biometric-auth +Upstream-Contact: yanghao@kylinos.cn +Source: https://github.com/ukui/ukui-biometric-auth + +Files: * +Copyright: 2023, KylinSoftCo., Ltd. +License: GPL-3+ + +License: GPL-3+ + 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; version 3 dated June, 2007, or (at + your option) any later version. + On Debian systems, the complete text of version 3 of the GNU General + Public License can be found in '/usr/share/common-licenses/GPL-3'. diff --git a/debian/libpam-biometric.install b/debian/libpam-biometric.install new file mode 100644 index 0000000..6ce65fb --- /dev/null +++ b/debian/libpam-biometric.install @@ -0,0 +1,10 @@ +/usr/share/ukui-biometric/ukui-biometric.conf +/usr/share/dbus-1/system-services/org.ukui.UniauthBackend.service +/etc/dbus-1/system.d/org.ukui.UniauthBackend.conf +/lib/security/* +/usr/bin/* +/usr/share/pam-configs/* +/usr/share/polkit-1/actions/*.policy +/usr/share/ukui-biometric/i18n_qm/*.qm +/usr/share/ukui-biometric/i18n_qm/bioauth-bin/*.qm +/usr/share/ukui-biometric/images/ diff --git a/debian/libpam-biometric.manpages b/debian/libpam-biometric.manpages new file mode 100644 index 0000000..ce85cd2 --- /dev/null +++ b/debian/libpam-biometric.manpages @@ -0,0 +1,3 @@ +man/bioauth.1 +man/bioctl.1 +man/biodrvctl.1 diff --git a/debian/libpam-biometric.postinst b/debian/libpam-biometric.postinst new file mode 100644 index 0000000..46f1a0d --- /dev/null +++ b/debian/libpam-biometric.postinst @@ -0,0 +1,54 @@ +#!/bin/sh +set -e +#DEBHELPER# + +pam-auth-update --package + +#update default conf +config_file=/etc/biometric-auth/ukui-biometric.conf + +delimeter='=' + +get_opt(){ + file=$1 + section=$2 + key=$3 + val=$(awk -F "$delimeter" '/\['${section}'\]/{a=1}(a==1 && "'${key}'"==$1){print $2;exit}' ${file}) + echo ${val} +} + +is_key_exist(){ + file=$1 + section=$2 + key=$3 + is_exist=$(awk -F "$delimeter" '/\['${section}'\]/{a=1}(a==1 && "'${key}'"==$1){print '1';exit}' ${file}) + echo ${is_exist} +} + +set_opt(){ + file=$1 + section=$2 + key=$3 + val=$4 + contain_section=$(awk '/\['${section}'\]/ {print NR}' ${file}) + if [ ${#contain_section} -gt 0 ]; then + is_exist=$(is_key_exist $file $section $key) + if [ "${is_exist}" = "1" ]; then + awk -F "$delimeter" '/\['${section}'\]/{a=1}(a==1 && "'${key}'"==$1){gsub($2,"'${val}'");a=0} {print $0}' ${file} 1<>${file} + else + sed -i "s/\[${section}\]/\[${section}\]\n${key}\=${val}/g" ${file} + fi + else + echo -e "\n[${section}]\n${key}=${val}" >> ${file} + sed -i "s/\-e//g" ${file} + fi +} + +if [ ! -f ${config_file} ]; then + mkdir -p /etc/biometric-auth + cp /usr/share/ukui-biometric/ukui-biometric.conf ${config_file} +else + set_opt ${config_file} General UseFirstDevice true + set_opt ${config_file} General MaxFailedTimes 5 + set_opt ${config_file} Functions EnableQRCode true +fi diff --git a/debian/libpam-biometric.prerm b/debian/libpam-biometric.prerm new file mode 100644 index 0000000..f9e3f3a --- /dev/null +++ b/debian/libpam-biometric.prerm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +pam-auth-update --package --remove pam-biometric diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ca7ef12 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export QT_SELECT := qt5 +export NO_PKG_MANGLE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/include-binaries b/debian/source/include-binaries new file mode 100644 index 0000000..1b127ca --- /dev/null +++ b/debian/source/include-binaries @@ -0,0 +1,9 @@ +images/FingerPrint.gif +images/FingerPrint.png +images/FingerVein.gif +images/FingerVein.png +images/icon.png +images/Iris.gif +images/Iris.png +images/VoicePrint.gif +images/VoicePrint.png diff --git a/debian/ukui-polkit.install b/debian/ukui-polkit.install new file mode 100644 index 0000000..e6f5054 --- /dev/null +++ b/debian/ukui-polkit.install @@ -0,0 +1,4 @@ +/etc/xdg/* +/usr/share/applications/* +/usr/lib/* +/usr/share/ukui-biometric/i18n_qm/polkit/*.qm diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b981626 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/ukui-biometric-auth-$1\.tar\.gz/ \ + https://github.com/ukui/ukui-biometric-auth/releases .*/v?(\d\S+)\.tar\.gz