From 524e5183d08d67557d7281bb82ad98b40f8179a1 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 26 Feb 2025 13:54:54 +0100 Subject: [PATCH] refs #1613 build debian package --- client/cache/README.es.txt | 1 - client/images/README.es.txt | 1 - client/log/README.es.txt | 1 - debian/changelog | 6 +++++ debian/compat | 1 + debian/control | 16 +++++++++++++ debian/copyright | 26 ++++++++++++++++++++ debian/rules | 48 +++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + etc/samba/smb-client.conf | 15 ++++++++++++ 10 files changed, 113 insertions(+), 3 deletions(-) delete mode 100644 client/cache/README.es.txt delete mode 100644 client/images/README.es.txt delete mode 100644 client/log/README.es.txt create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 etc/samba/smb-client.conf diff --git a/client/cache/README.es.txt b/client/cache/README.es.txt deleted file mode 100644 index 9c4ec9f..0000000 --- a/client/cache/README.es.txt +++ /dev/null @@ -1 +0,0 @@ -Directorio de caché para el cliente diff --git a/client/images/README.es.txt b/client/images/README.es.txt deleted file mode 100644 index 7035c67..0000000 --- a/client/images/README.es.txt +++ /dev/null @@ -1 +0,0 @@ -Directorio de imágenes para el cliente diff --git a/client/log/README.es.txt b/client/log/README.es.txt deleted file mode 100644 index 210369d..0000000 --- a/client/log/README.es.txt +++ /dev/null @@ -1 +0,0 @@ -Directorio de logs para el cliente diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..62d1fb4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +ogclient (0.1.0-1) stable; urgency=medium + + * First debian package for the client files + + -- OpenGnsys developers Thu, 26 Feb 2025 13:22:29 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..799c0e7 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: ogclient +Section: admin +Priority: optional +Maintainer: OpenGnsys developers +Build-Depends: debhelper (>= 7), po-debconf +Standards-Version: 3.9.2 +Homepage: https://opengnsys.es/ + +Package: ogclient +Section: admin +Priority: optional +Architecture: all +Depends: + samba, python3 (>=3.4) | python (>= 3.4), ${misc:Depends}, ${shlibs:Depends} +Description: OpenGnsys client files + This package provides the basic filesystem for clients. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d1862d9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: ogclient +Maintainer: OpenGnsys developers +Source: https://opengnsys.es + +Copyright: 2014 Virtual Cable S.L.U. +License: BSD-3-clause + +License: GPL-2+ +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. +. +On Debian systems, the full text of the GNU General Public +License version 2 can be found in the file +`/usr/share/common-licenses/GPL-2'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b1ff31b --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f +# -*- makefile -*- +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: configure-stamp + dh_testdir + touch $@ +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + dh_clean +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + mkdir -p debian/ogclient/opt/opengnsys/ogclient_log debian/ogclient/etc/samba + cp -a client debian/ogclient/opt/opengnsys/ogclient + mkdir -p debian/ogclient/opt/opengnsys/ogclient/images debian/ogclient/opt/opengnsys/ogclient/cache debian/ogclient/opt/opengnsys/ogclient/log + install --owner root --group root --mode 0644 etc/samba/smb-client.conf debian/ogclient/etc/samba/ + find debian/ogclient -name '*.swp' -exec rm -f '{}' ';' +binary-arch: build install + # emptyness +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installdebconf + dh_installinit --no-start + dh_python3=python + dh_compress + dh_link + dh_fixperms + dh_installdeb + ## ignore Qt*.so.4 errors + dh_shlibdeps --exclude debian/ogclient/opt/opengnsys/ogclient/bin/browser --exclude debian/ogclient/opt/opengnsys/ogclient/bin/grub-probe1.99_i686 + dh_gencontrol + dh_md5sums + dh_builddeb +binary: binary-indep +.PHONY: build clean binary-indep binary install configure diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..9f67427 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file diff --git a/etc/samba/smb-client.conf b/etc/samba/smb-client.conf new file mode 100644 index 0000000..a7c3422 --- /dev/null +++ b/etc/samba/smb-client.conf @@ -0,0 +1,15 @@ +[ogclient] + comment = OpenGnsys Client + browseable = no + writeable = no + locking = no + path = /opt/opengnsys/ogclient + guest ok = no + +[oglog] + comment = OpenGnsys Log + browseable = no + writeable = yes + locking = no + path = /opt/opengnsys/ogclient_log + guest ok = no