]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
Use SPDX license identifiers master
authorSimon Ruderich <simon.ruderich@fau.de>
Wed, 3 Jan 2024 11:19:51 +0000 (12:19 +0100)
committerSimon Ruderich <simon.ruderich@fau.de>
Wed, 3 Jan 2024 11:19:51 +0000 (12:19 +0100)
67 files changed:
ci/run
cmd/safcm-remote/build.sh
cmd/safcm-remote/main.go
cmd/safcm/config/commands.go
cmd/safcm/config/config.go
cmd/safcm/config/files.go
cmd/safcm/config/files_test.go
cmd/safcm/config/groups.go
cmd/safcm/config/groups_test.go
cmd/safcm/config/hosts.go
cmd/safcm/config/hosts_test.go
cmd/safcm/config/packages.go
cmd/safcm/config/permissions.go
cmd/safcm/config/permissions_test.go
cmd/safcm/config/services.go
cmd/safcm/config/templates.go
cmd/safcm/config/templates_test.go
cmd/safcm/config/triggers.go
cmd/safcm/config/triggers_test.go
cmd/safcm/fixperms.go
cmd/safcm/main.go
cmd/safcm/main_sync_test.go
cmd/safcm/remote.go
cmd/safcm/sync.go
cmd/safcm/sync_info.go
cmd/safcm/sync_info_test.go
cmd/safcm/sync_sync.go
cmd/safcm/sync_sync_test.go
cmd/safcm/sync_test.go
cmd/safcm/version.go
frontend/changes.go
frontend/changes_test.go
frontend/conn.go
frontend/log.go
frontend/log_test.go
frontend/loop.go
frontend/term.go
frontend/term_test.go
gob.go
log.go
remote/ainsl/ainsl.go
remote/ainsl/ainsl_test.go
remote/info/info.go
remote/log/logger.go
remote/main.go
remote/run/cmd.go
remote/run/runner.go
remote/sync/commands.go
remote/sync/commands_test.go
remote/sync/files.go
remote/sync/files_compat_windows.go
remote/sync/files_test.go
remote/sync/filetest/filetest.go
remote/sync/packages.go
remote/sync/packages_debian.go
remote/sync/packages_debian_test.go
remote/sync/services.go
remote/sync/services_systemd.go
remote/sync/services_systemd_test.go
remote/sync/sync.go
remote/sync/sync_test.go
remote/sync/triggers.go
remote/sync/triggers_test.go
rpc/conn.go
rpc/dial.go
testutil/testutil.go
types.go

diff --git a/ci/run b/ci/run
index 4dbfefe1a3ffc1d79bc795756d3281e7f0ad0efc..bd89e953f82e3f354b1129a69e1cf010ff0218ad 100755 (executable)
--- a/ci/run
+++ b/ci/run
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2021-2024  Simon Ruderich
+
 set -eu
 set -x
 
index 5b8f8dee3edf552c36ca0c516c6b51aa3914aed9..3e5607a682315072c2bb4cd2e43cdab4d62e0b3c 100755 (executable)
@@ -3,20 +3,8 @@
 # Build remote helpers for all operating systems and architectures which are
 # supported as target hosts
 
+# SPDX-License-Identifier: GPL-3.0-or-later
 # Copyright (C) 2021-2024  Simon Ruderich
-#
-# 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 3 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, see <http://www.gnu.org/licenses/>.
 
 set -eu
 
index a3abefc58905f4e0a01594c9290bb7304b3fe8fa..d17446017b89940786420e07d2b0415a84cf6c47 100644 (file)
@@ -1,19 +1,7 @@
 // Helper copied to the remote host to run commands and deploy configuration
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 50c5f123b74a8176e7724ed5fe82bedf33004bb8..a55cef494ef8e24d58b50debff2f949ef8f5e6ff 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse commands.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index aa0a632bade1f4fc0fb8a0906c8f66a2a55cd154..0ff458bfb831cce9882bab0754e31da6b0c1693d 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse config.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index e53f8041980cacee0fff061a3e9bd34fdc494c81..88b1410749e5611462db5c0873a280ec32666d13 100644 (file)
@@ -1,19 +1,7 @@
 // Config: load files/ directory tree
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index f989ee32821929c6d00ffbd46669f56609318cd7..bbd4ff5979089d7eefe2e331b3b86b51c5c60c41 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index f2818eeb8c984cf83603450466cb6767107aa10c..bb18b84e3a73a4d33ba521b92d336746ab51016e 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse groups.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index d062b817e2c8828f2c4001832baebe6833f79504..e2666f1997876a6f2409de9614b2761d0ae39c53 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index bb459c02a47be80d91e71a4b2a7a48837284906e..05924df585169b248369553c060016964007e91a 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse hosts.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 4f04a299083ca908c4682462ceae002382577b91..f88d8d718cd8fc5a0547dc73bdff86d8a806d590 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index b6a017e363cf1011d30a5f22cde1f4a42ecc511d..baa2522e15ee09b48d77d433e211ca911782a419 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse packages.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 60ea399803a554863c3315be9c5533f7f1278f64..ac4b48d81c7483939996c8aa47cfdd72f5fbbaeb 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse permissions.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 3a4acdf74ce4c8d3de5f39d9ada5655484358a72..98a1609fa64ff22a447824e1142d40376211a985 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 9a27b2dc07b3c8c066c38182ae22c213c52e08b3..8198e298bbfd421b26b88662f6f940b90d042326 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse services.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 01cfb19af1330310b692cb91492e3910b63865f1..228c89c993496c98b354fed7ad764cbcc925e1dc 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse templates.yaml and expand templates
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index eaceb06e107eb4a6626ae91a563839aa52dcbf27..c6c2b0da13e14234d232f667a6541866f61a7348 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 8140fa3e2ff9b62406b013b3dbd31611a7738e3a..20f2408125d3620d90d4344f540bf0d955817f0e 100644 (file)
@@ -1,19 +1,7 @@
 // Config: parse triggers.yaml
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index caf6041e92e96574c4508b4a853e328134cddf8f..a73d1f006a89117c00366c3c66cf8a4ccd6ded2e 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package config
 
index 6520a6565eb4b0956a3db3d7df83ab6e1eddd556..c9a18a80e0ac3683f0aa7af047a312bae4ad87d2 100644 (file)
@@ -1,19 +1,7 @@
 // "fixperms" sub-command: apply proper permissions in files/ directories
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index b20e5cb84ee457ee25ab96ed8ff9ccb07702aa7b..dc8554ff82b92926bf4ac7154840b72b33621018 100644 (file)
@@ -1,19 +1,7 @@
 // Command line tool to manage remote hosts
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 51980d9e6bbd3e443929ddcf3a633cc8434d4eeb..642e9839e79017dc8fe403405e4f71505aca5919 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main_test
 
index 7f389c614f6340edde3b68bfa7cb94866bebc40c..1998538ce3ac60596f70745d1e6d8ae9fcd2b667 100644 (file)
@@ -1,19 +1,7 @@
 // Embed remote helper binaries
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index ec448ba7a54c38b5e48487a7329ed346512f00ff..69431435e5e9f3066ebf82aa4ebb8add1afbacb0 100644 (file)
@@ -1,19 +1,7 @@
 // "sync" sub-command: sync data to remote hosts
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index bfc606a182907395ca6ef1fc1cfc3d10a3565f0e..b0ee9ad919068bd8336e7753dc352840834bfc4b 100644 (file)
@@ -1,19 +1,7 @@
 // "sync" sub-command: collect information from remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 09c56de3050ad7ae44f78e3da12143feab7957f5..a99a2d859a8f676e3e2fafe135bd4d16898132d7 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 7e1457fec70372ef27313ff5c3453a8147a5531e..ff4f4c8a41935fe45eb06f6fec55e9dd89dc21dd 100644 (file)
@@ -1,19 +1,7 @@
 // "sync" sub-command: sync files
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 4b614d19b30168ba4bd20bb43c75b2b540379316..614b5b0c72254dc17240db2a5e6888d9d355547e 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index d07774ecde2360149c5b0ed0793497f70ce93fe2..d4b0e7ce9c8c0653d6b887c2fd40ce9a246902ca 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index 2e358514b5c1028c1c1975d97fd7ca57e994e780..11ec40f7c418036cf25521f5f199dcf972e45d3d 100644 (file)
@@ -1,19 +1,7 @@
 // "version" sub-command: display version information
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package main
 
index ebb402de39adb1d28a75610974c72d885f71e9b6..fb777fad3f27d4c06651b9ffce559ec6b2303095 100644 (file)
@@ -1,19 +1,7 @@
 // Frontend: Format changes
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index a9d97801739d90af63edfdb49a22a7d862477fcb..4a055480bd48cb049e303087ec1a07dc2e26b512 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index 3a3a20905222fea5b4347b697d78db993345874a..cad3a6d60a69931b09ddcb95c0feedbf3be20918 100644 (file)
@@ -1,19 +1,7 @@
 // Frontend: Connection functions for programs using the safcm library
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index 5bdd2eb876800708e43a5fc9ac5b81b01415d251..bb7824253f300fc7e06e6ab644146f132ea9322f 100644 (file)
@@ -1,19 +1,7 @@
 // Frontend: Logging functions for programs using the safcm library
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index a5bd02ed4d20b29bf50ee469620585361d05f12e..a109cd5b90850661a2b07952aec3e139766bbdf4 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index 6e9310034ab0da32e3ac3a85e0f8b757d3ba103d..bc8aea2028568915776a2e6cd953f5ccb8504f0a 100644 (file)
@@ -1,20 +1,8 @@
 // Frontend: Host synchronization and logging event loop for programs using
 // the safcm library
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index 1837c802399cf9bea4e6255133c31c370edfe792..fd3d64949a3c6df249feaaeb8b477c3d6056cdd7 100644 (file)
@@ -1,19 +1,7 @@
 // Frontend: Functions for terminal output
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
index 87c3b71c86eb09f07dca4fcf2d9e825e96c3b066..409249bc005ed3e24b51cbe8e9e3f400cfcf4f90 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package frontend
 
diff --git a/gob.go b/gob.go
index 76ce19d16f063ecaf21ece9e3c7527ea1b3594e3..0c0571eedcd191fd32ba23c1560e33ac9a5683aa 100644 (file)
--- a/gob.go
+++ b/gob.go
@@ -1,19 +1,7 @@
 // RPC primitives for safcm: basic connection implementation
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package safcm
 
diff --git a/log.go b/log.go
index e5448affff3ba273864895dd8e7e834ef210456a..79c573cae79e4e27e786e8faa5f067a5df20c11a 100644 (file)
--- a/log.go
+++ b/log.go
@@ -1,19 +1,7 @@
 // RPC primitives for safcm: logging constants
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package safcm
 
index 2b5f8e0113700b0257768da1b6cf900808a174f5..6437a5a08a5745237731325e084af4dcfa3be5f9 100644 (file)
@@ -4,20 +4,8 @@
 //
 // FAI: https://fai-project.org
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package ainsl
 
index 78aaff251cbc62745c127ff64df356d11d25b2f8..97046f084237d3e063522ed917d82c63716ae644 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package ainsl
 
index b16f5953781037131b1fc349d443ac98aca5029f..99bbc8f4211ffc03aee991a60dbe9328fcf55093 100644 (file)
@@ -1,19 +1,7 @@
 // MsgInfoReq: collect information about the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package info
 
index 52633fa2d7ee97d7854ddf86ba4533f959feaec7..735bbea221bb049088ae63eec3a8a70c4a005d4d 100644 (file)
@@ -1,19 +1,7 @@
 // Logging helpers
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package log
 
index ac7b085488aa0c9b11cc18a0bd376a7eed1576bb..db6a410f97c30e7f79083ac0e95e031bca848577 100644 (file)
@@ -1,19 +1,7 @@
 // Helper copied to the remote host to run commands and deploy configuration
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package remote
 
index 13fceb0a18adcd352f8a99f7e1dac8e500cdbd4b..7d9dc744056810f3e0a8b5bdcab4c6a5285f1c7c 100644 (file)
@@ -1,19 +1,7 @@
 // Helper type to run and log commands
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package run
 
index b81278f7631968b5e368a328fe71bef5d13ba6fe..ea936e5d6ae3a33e636073456948f4bab1c3dfac 100644 (file)
@@ -1,19 +1,7 @@
 // Interface to run commands
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package run
 
index a6a3a73ae3f5fb7499020c67d4c882b5b7999f0a..a090f3b667f9bb07d19ec35a57b6637ec25d5f21 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: run commands on the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index a128c2ee73d59e681c72bc4e18cc5d9d54c31ea5..1bd10b450033bca1a138808f5c9abc0c5c96de03 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 028572113a0fa31e54da6d1ed81dd1fdee4002a1..9b72bbcacc9644b0eaca4990ab08e12213385e5e 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: copy files to the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 //go:build !windows
 // +build !windows
index f68e0a82bac934643ba3c0fc45b0b07c47020dc7..c4fafcd1f21fadaca073d2d75d31038353e4b5cb 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: copy files to the remote host; Windows compatibility
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index dd32804bcd696c3d88d94ab24b60da30610bd982..7a4ce260f487b21d956b60600c8d946e8074dd10 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 2e3c76e1d9f6d8dc72c24f528fc7b9fc3064e159..2b4e952d794f49870849fe2504bddc9985cb4c71 100644 (file)
@@ -1,19 +1,7 @@
 // Utility functions useful for file-related tests
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package filetest
 
index b74d62ebb4deaef220155ebd91bf6beea073f06e..19d19efb0a8925b4b36dda4e94840b86308c26ba 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: install packages on the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 8b5e0133258adc5b4866cae255ae6b3f15ba1ae9..ce15c50abff3a9f973f5af6c3972e47d8e8d77b4 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: install packages on the remote host (Debian)
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 8f38548eb7284ac1afc2d68c67eeba3ed974fccc..822e1e9f431b8e318c79e342f1a9d25207ebbbf4 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 905447081ecb23885c20062fa6b44b667fc24ef3..293b6b841fb9ad53a99c2fe0aca007f4ec7e8a40 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: enable and start services on the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 6d2aed6e9300e6d36250d9bf034088b0349ac06a..3242476f5164574b90958059bc791dd1bdd1d1cd 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: enable and start services on the remote host (systemd)
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index d1d31ab425eec9c7c1fb54399b9b94fa058bb8b6..7ac322c5203f56bc8ba4a744471eab739e373f6a 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 5db3f0b5a2e57e0d6ace59936716e09367473ffd..fefcecdc9ea8362c81a57271870b62f2a7c85e99 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: sync data on the remote host
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index fa7eb27d399a5145caaee8e3507ee0e4ae289d96..6beaade20192610971016840bae046987d78bddf 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index b7e2149fcd6fb113ec8af324e039d03e840c5a53..ee4de2c5ffdb14ea35ad8f8a6dd57133dca1f2dc 100644 (file)
@@ -1,19 +1,7 @@
 // MsgSyncReq: run triggers for changed files
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 808c40139856c9484b859646a5081d918c6d8855..6b14197142947cb9e16a1bee674135ae6603c6f7 100644 (file)
@@ -1,17 +1,5 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package sync
 
index 8b63477fc624d82119f1459ce0e509de03a76f23..301ae2a1f20c28ab317b4b47d6cc95ca6c7544d4 100644 (file)
@@ -1,19 +1,7 @@
 // Simple RPC-like protocol: implementation of connection and basic actions
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package rpc
 
index e087c99d6ea8e0299f04785d44352f76af2ebc46..fa1efcdeb6c5597edcbfd0c9d4a20a0f17b4680c 100644 (file)
@@ -1,19 +1,7 @@
 // Simple RPC-like protocol: establish new connection and upload helper
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package rpc
 
index b2f53c70488c45db69f92311a2934c0b4906496c..efea1a7e982b0ae940e603101b31b5269f9cb7f7 100644 (file)
@@ -1,19 +1,7 @@
 // Utility functions useful for tests
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package testutil
 
index 53363ccf7e51a2672efc4c59e5c781c2cc99b323..aace9f238dac9f30ff1a5f0bf16a8bb521fb7f65 100644 (file)
--- a/types.go
+++ b/types.go
@@ -1,19 +1,7 @@
 // RPC primitives for safcm: message and additional types
 
+// SPDX-License-Identifier: GPL-3.0-or-later
 // Copyright (C) 2021-2024  Simon Ruderich
-//
-// 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 3 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, see <http://www.gnu.org/licenses/>.
 
 package safcm