From f2e975a42fb3171315cf91eb335f28bb2d8ebc71 Mon Sep 17 00:00:00 2001 From: Sergey Kalinin Date: Tue, 23 Jul 2019 16:25:28 +0300 Subject: [PATCH] Fixed debian package support --- debian/compat | 2 +- debian/control | 6 +++--- debian/dirs | 7 +++++++ debian/docs | 4 ++++ debian/files | 2 ++ debian/install | 5 +++++ debian/postinst | 2 -- debian/postrm | 2 -- debian/rules | 10 ++++++---- debian/source/format | 1 + rac_gui.tcl | 1 + 11 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/files create mode 100644 debian/install delete mode 100755 debian/postinst delete mode 100755 debian/postrm create mode 100644 debian/source/format diff --git a/debian/compat b/debian/compat index 7f8f011..45a4fb7 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -7 +8 diff --git a/debian/control b/debian/control index 3d84eed..41df032 100644 --- a/debian/control +++ b/debian/control @@ -2,15 +2,15 @@ Source: rac-gui Section: Develop Priority: optional Maintainer: Sergey Kalinin svk@nuk-svk.ru -Build-Depends: debhelper (>= 11) -Standards-Version: 1.0.1 +Build-Depends: debhelper +Standards-Version: 3.9.6 Homepage: https://nuk-svk.ru #Vcs-Browser: https://salsa.debian.org/debian/rac-gui-1.0.1 Vcs-Git: https://bitbucket.org/svk28/rac-gui.git Package: rac-gui Architecture: any -Depends: tcl (>= 8.6), tk (>=8.6), bwidget +Depends: tcl(>=8.6), tk(>=8.6), bwidget, ${misc:Depends} Description: This program is a GUI for 1C RAC util. Rac-GUI is a graphical user interface for 1C rac (remote access controll) programm. 1C RAC is a software for 1C-servers cluster management. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..968b480 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,7 @@ +usr/bin +usr/share +usr/share/doc +usr/share/doc/rac_gui +usr/share/rac_gui +usr/share/rac_gui/lib +usr/share/rac_gui/lib/msg diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..eb55b93 --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +README.md +doc/CHANGELOG +doc/TODO +doc/rac-manual.txt diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..d394900 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +rac-gui_1.0.1-1_amd64.buildinfo Develop optional +rac-gui_1.0.1-1_amd64.deb Develop optional diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..e3cefaa --- /dev/null +++ b/debian/install @@ -0,0 +1,5 @@ +racgui /usr/share/racgui +lib/*.tcl /usr/share/rac_gui/lib +rac_gui.cfg /usr/share/rac_gui/ +rac-gui.png /usr/share/rac_gui/ +lib/msg/* /usr/share/rac_gui/lib/msg diff --git a/debian/postinst b/debian/postinst deleted file mode 100755 index 5f2c373..0000000 --- a/debian/postinst +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -update_menus_bin='/usr/bin/update-menus' && [ -x "$update_menus_bin" ] && "$update_menus_bin" ||: \ No newline at end of file diff --git a/debian/postrm b/debian/postrm deleted file mode 100755 index 1125a92..0000000 --- a/debian/postrm +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -update_menus_bin='/usr/bin/update-menus' && [ "$1" = 0 -a -x "$update_menus_bin" ] && "$update_menus_bin" ||: \ No newline at end of file diff --git a/debian/rules b/debian/rules index 58b270a..42974af 100755 --- a/debian/rules +++ b/debian/rules @@ -18,13 +18,12 @@ binary-arch: build dh_testroot dh_prep dh_installdirs - + dh_install dh_installdocs dh_installchangelogs - # Copy the packages's files. - find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \ - xargs -0 -r -i cp -a {} debian/$(PACKAGE) +# find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \ +# xargs -0 -r -i cp -a {} debian/$(PACKAGE) # # If you need to move files around in debian/$(PACKAGE) or do some @@ -41,7 +40,10 @@ binary-arch: build -dh_shlibdeps dh_gencontrol dh_md5sums +# dh_link dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary + +$(shell ln -s /usr/share/rac_gui/rac_gui.tcl /usr/bin/racgui) 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/rac_gui.tcl b/rac_gui.tcl index c3a54e7..c8aa512 100755 --- a/rac_gui.tcl +++ b/rac_gui.tcl @@ -12,6 +12,7 @@ package require msgcat ###################################################### # Устанавливаем текущий каталог set dir(root) [pwd] + # Устанавливаем рабочий каталог, если его нет то создаём set dir(work) [file join $env(HOME) .rac_gui] if {[file exists $dir(work)] == 0 } {