Hello community, here is the log from the commit of package usbauth-notifier for openSUSE:Factory checked in at 2018-03-08 10:57:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/usbauth-notifier (Old) and /work/SRC/openSUSE:Factory/.usbauth-notifier.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "usbauth-notifier" Thu Mar 8 10:57:58 2018 rev:3 rq:583709 version:1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/usbauth-notifier/usbauth-notifier.changes 2018-02-21 14:12:27.812045882 +0100 +++ /work/SRC/openSUSE:Factory/.usbauth-notifier.new/usbauth-notifier.changes 2018-03-08 10:57:58.772294589 +0100 @@ -1,0 +2,7 @@ +Mon Feb 26 05:23:04 UTC 2018 - [email protected] + +- fix formatting of notifications +- fix group name in manpage/README +- use XDG autostart instead of xinitrc.d + +------------------------------------------------------------------- @@ -5,0 +13 @@ +- fix group creation within spec file ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ usbauth-notifier.spec ++++++ --- /var/tmp/diff_new_pack.xSJUxL/_old 2018-03-08 10:57:59.304275359 +0100 +++ /var/tmp/diff_new_pack.xSJUxL/_new 2018-03-08 10:57:59.304275359 +0100 @@ -58,21 +58,18 @@ %install %make_install -mkdir -p %{buildroot}%_sysconfdir/X11/xinit/xinitrc.d -cp data/90usbauth-notifier %{buildroot}%_sysconfdir/X11/xinit/xinitrc.d %files %defattr(-,root,root) %doc COPYING README -%dir /etc/X11/xinit -%dir /etc/X11/xinit/xinitrc.d -/etc/X11/xinit/xinitrc.d/90usbauth-notifier +%dir /etc/xdg/autostart +/etc/xdg/autostart/usbauth-notifier.desktop %verify(not mode) %attr(04750,root,usbauth) %_bindir/usbauth-npriv %dir %verify(not mode) %attr(00750,root,usbauth-notifier) /usr/lib/usbauth-notifier %verify(not mode) %attr(02755,root,usbauth) /usr/lib/usbauth-notifier/usbauth-notifier %_mandir/man1/usbauth-notifier.1* %_mandir/man1/usbauth-npriv.1* -%_datadir/locale/de/LC_MESSAGES/usbauth-notifier.mo +%_datadir/locale/*/LC_MESSAGES/usbauth-notifier.mo %post %set_permissions %_bindir/usbauth-npriv /usr/lib/usbauth-notifier /usr/lib/usbauth-notifier/usbauth-notifier ++++++ usbauth-notifier.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/CHANGELOG.md new/usbauth-notifier/CHANGELOG.md --- old/usbauth-notifier/CHANGELOG.md 2018-02-14 00:18:07.546713432 +0100 +++ new/usbauth-notifier/CHANGELOG.md 2018-03-01 01:19:52.501003838 +0100 @@ -1,2 +1,2 @@ -usbauth-notifier 1.0 (2018-01-19) +usbauth-notifier 1.0 (2018-02-2626262626262626262626262626262626262626262626262626) * Initial Release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/README new/usbauth-notifier/README --- old/usbauth-notifier/README 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/README 2018-03-01 01:19:52.501003838 +0100 @@ -1,4 +1,5 @@ usbauth-notifier: Notifier for USB Firewall to use with desktop environments -A notifier for the usbauth firewall against BadUSB attacks. The user could manually allow or deny USB devices. -Every user that wants use the notifier must be added to the usbauth group. +A notifier for the usbauth firewall against BadUSB attacks. The user could manually allow or deny interfaces of USB devices. +Every user that wants use the notifier must be added to the usbauth-notifier group. +To get notifications, at least one usbauth rule must be specified. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/data/90usbauth-notifier new/usbauth-notifier/data/90usbauth-notifier --- old/usbauth-notifier/data/90usbauth-notifier 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/data/90usbauth-notifier 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -/usr/lib/usbauth-notifier/usbauth-notifier & diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/data/Makefile.am new/usbauth-notifier/data/Makefile.am --- old/usbauth-notifier/data/Makefile.am 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/data/Makefile.am 2018-03-01 01:19:52.501003838 +0100 @@ -10,3 +10,5 @@ # GNU General Public License for more details. man_MANS = usbauth-notifier.1 usbauth-npriv.1 +xdgautostartdir = $(sysconfdir)/xdg/autostart +dist_xdgautostart_DATA = usbauth-notifier.desktop diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/data/usbauth-notifier.1 new/usbauth-notifier/data/usbauth-notifier.1 --- old/usbauth-notifier/data/usbauth-notifier.1 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/data/usbauth-notifier.1 2018-03-01 01:19:52.501003838 +0100 @@ -6,5 +6,6 @@ .B usbauth-notifier .SH DESCRIPTION -A notifier for the usbauth firewall against BadUSB attacks. The user could manually allow or deny USB devices. -Every user that wants use the notifier must be added to the usbauth group. +A notifier for the usbauth firewall against BadUSB attacks. The user could manually allow or deny interfaces of USB devices. +Every user that wants use the notifier must be added to the usbauth-notifier group. +To get notifications, at least one usbauth rule must be specified. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/data/usbauth-notifier.desktop new/usbauth-notifier/data/usbauth-notifier.desktop --- old/usbauth-notifier/data/usbauth-notifier.desktop 1970-01-01 01:00:00.000000000 +0100 +++ new/usbauth-notifier/data/usbauth-notifier.desktop 2018-03-01 01:19:52.501003838 +0100 @@ -0,0 +1,16 @@ +# Copyright (C) 2018 Stefan Koch <[email protected]> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# 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. + +[Desktop Entry] +Type=Application +Name=usbauth-notifier +Exec=/usr/lib/usbauth-notifier/usbauth-notifier + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/po/LINGUAS new/usbauth-notifier/po/LINGUAS --- old/usbauth-notifier/po/LINGUAS 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/po/LINGUAS 2018-03-01 01:19:52.501003838 +0100 @@ -1,2 +1,3 @@ # available languages de +zh_TW diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/po/zh_TW.po new/usbauth-notifier/po/zh_TW.po --- old/usbauth-notifier/po/zh_TW.po 1970-01-01 01:00:00.000000000 +0100 +++ new/usbauth-notifier/po/zh_TW.po 2018-03-01 01:19:52.501003838 +0100 @@ -0,0 +1,137 @@ +# usbauth_notifier language template +# This file is distributed under the same license as the usbauth-notifier package. +# SZ Lin (林上智) <[email protected]>, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: usbauth-notifier 1.0\n" +"Report-Msgid-Bugs-To: [email protected]\n" +"POT-Creation-Date: 2015-05-20 19:20+0200\n" +"PO-Revision-Date: 2018-02-21 21:37+0800\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: SZ Lin (林上智) <[email protected]>\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"Language: zh_TW\n" + +#: src/usbauth-notifier.c:56 +msgid "Per Interface" +msgstr "每個介面" + +#: src/usbauth-notifier.c:60 +msgid "Audio" +msgstr "音訊裝置" + +#: src/usbauth-notifier.c:64 +msgid "Communication" +msgstr "通訊" + +#: src/usbauth-notifier.c:68 +msgid "HID" +msgstr "人機介面裝置" + +#: src/usbauth-notifier.c:71 +msgid "Keyboard" +msgstr "鍵盤" + +#: src/usbauth-notifier.c:75 +msgid "Mouse" +msgstr "滑鼠" + +#: src/usbauth-notifier.c:80 +msgid "Physical" +msgstr "物理介面裝置" + +#: src/usbauth-notifier.c:84 +msgid "Image" +msgstr "靜止圖像裝置" + +#: src/usbauth-notifier.c:88 +msgid "Printer" +msgstr "列印裝置" + +#: src/usbauth-notifier.c:92 +msgid "Mass Storage" +msgstr "大容量儲存裝置" + +#: src/usbauth-notifier.c:96 +msgid "Hub" +msgstr "集線器" + +#: src/usbauth-notifier.c:100 +msgid "CDC data" +msgstr "CDC 資料" + +#: src/usbauth-notifier.c:104 +msgid "Smart Card" +msgstr "智慧卡" + +#: src/usbauth-notifier.c:108 +msgid "Content Security" +msgstr "內容安全裝置" + +#: src/usbauth-notifier.c:112 +msgid "Video" +msgstr "影像" + +#: src/usbauth-notifier.c:116 +msgid "Personal Healthcare" +msgstr "個人保健" + +#: src/usbauth-notifier.c:120 +msgid "AV" +msgstr "影音裝置" + +#: src/usbauth-notifier.c:124 +msgid "Billboard" +msgstr "告示板" + +#: src/usbauth-notifier.c:128 +msgid "Diagnostic Device" +msgstr "診斷裝置" + +#: src/usbauth-notifier.c:132 +msgid "Wireless Controller" +msgstr "無線傳輸裝置" + +#: src/usbauth-notifier.c:136 +msgid "Miscellaneous" +msgstr "其他" + +#: src/usbauth-notifier.c:140 +msgid "Application Specific" +msgstr "特殊應用裝置" + +#: src/usbauth-notifier.c:144 +msgid "Vendor Specific" +msgstr "廠商自定裝置" + +#: src/usbauth-notifier.c:148 +msgid "Unknown" +msgstr "未知裝置" + +#: src/usbauth-notifier.c:287 +msgid "New USB interface" +msgstr "新的 USB 介面" + +#: src/usbauth-notifier.c:299 +msgid "Default" +msgstr "預設" + +#: src/usbauth-notifier.c:299 src/usbauth-notifier.c:305 +msgid "Allow" +msgstr "允許" + +#: src/usbauth-notifier.c:299 src/usbauth-notifier.c:306 +msgid "Deny" +msgstr "拒絕" + +#: src/usbauth-notifier.c:299 +msgid "Type" +msgstr "屬性" + +#: src/usbauth-notifier.c:299 +msgid "Name" +msgstr "名字" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/src/usbauth-notifier.c new/usbauth-notifier/src/usbauth-notifier.c --- old/usbauth-notifier/src/usbauth-notifier.c 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/src/usbauth-notifier.c 2018-03-01 01:19:52.501003838 +0100 @@ -274,7 +274,7 @@ void notification_create(const struct Dev* dev, bool authorize) { struct udev_device *udevdev = dev->udevdev; int32_t devn = dev->devnum; - char titleMsg[32]; + char titleMsg[48]; char detailedMsg[128]; unsigned cl = 255; unsigned subcl = 255; @@ -312,8 +312,8 @@ conf = usbauth_get_param_valStr(bConfigurationValue, udevdev); intf = usbauth_get_param_valStr(bInterfaceNumber, udevdev); - snprintf(titleMsg, sizeof(titleMsg), "%s", titleStr); - snprintf(detailedMsg, sizeof(detailedMsg), "<b>%s:</b> %s<br/><b>%s:</b> %s<br/><b>%s:</b> %04x:%04x<br/><b>%s:</b> %s-%s:%s.%s", gettext("Default"), authorize ? gettext("Allow") : gettext("Deny"), gettext("Type"), get_info_string(cl, subcl, iprot, false), "ID", vId, pId, gettext("Name"), busn, devp, conf, intf); + snprintf(titleMsg, sizeof(titleMsg), "%s (%s-%s:%s.%s)", titleStr, busn, devp, conf, intf); + snprintf(detailedMsg, sizeof(detailedMsg), "<b>%s:</b> %s\n<b>%s:</b> %s\n<b>%s:</b> %04x:%04x\n<b>%s:</b> %s-%s:%s.%s", gettext("Default"), authorize ? gettext("Allow") : gettext("Deny"), gettext("Type"), get_info_string(cl, subcl, iprot, false), "ID", vId, pId, gettext("Name"), busn, devp, conf, intf); // pointer of dev heap gets back at callback so stack would be then out of context dev_heap->udevdev = udevdev; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/usbauth-notifier.changes new/usbauth-notifier/usbauth-notifier.changes --- old/usbauth-notifier/usbauth-notifier.changes 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/usbauth-notifier.changes 2018-03-01 01:19:52.501003838 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Feb 26 05:23:04 UTC 2018 - [email protected] + +- fix formatting of notifications +- fix group name in manpage/README +- use XDG autostart instead of xinitrc.d + +------------------------------------------------------------------- Tue Feb 13 22:30:00 UTC 2018 - [email protected] - fix group creation within spec file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/usbauth-notifier/usbauth-notifier.spec.in new/usbauth-notifier/usbauth-notifier.spec.in --- old/usbauth-notifier/usbauth-notifier.spec.in 2018-02-14 00:18:07.550713456 +0100 +++ new/usbauth-notifier/usbauth-notifier.spec.in 2018-03-01 01:19:52.501003838 +0100 @@ -58,21 +58,18 @@ %install %make_install -mkdir -p %{buildroot}%_sysconfdir/X11/xinit/xinitrc.d -cp data/90usbauth-notifier %{buildroot}%_sysconfdir/X11/xinit/xinitrc.d %files %defattr(-,root,root) %doc COPYING README -%dir /etc/X11/xinit -%dir /etc/X11/xinit/xinitrc.d -/etc/X11/xinit/xinitrc.d/90usbauth-notifier +%dir /etc/xdg/autostart +/etc/xdg/autostart/usbauth-notifier.desktop %verify(not mode) %attr(04750,root,usbauth) %_bindir/usbauth-npriv %dir %verify(not mode) %attr(00750,root,usbauth-notifier) /usr/lib/usbauth-notifier %verify(not mode) %attr(02755,root,usbauth) /usr/lib/usbauth-notifier/usbauth-notifier %_mandir/man1/usbauth-notifier.1* %_mandir/man1/usbauth-npriv.1* -%_datadir/locale/de/LC_MESSAGES/usbauth-notifier.mo +%_datadir/locale/*/LC_MESSAGES/usbauth-notifier.mo %post %set_permissions %_bindir/usbauth-npriv /usr/lib/usbauth-notifier /usr/lib/usbauth-notifier/usbauth-notifier
