aboutsummaryrefslogtreecommitdiff
path: root/gnu/machine/digital-ocean.scm
blob: 3361cfe9229231c2a435fbc95611558a367a3fab (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2022 Matthew James Kraai <kraai@ftbfs.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix 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.
;;;
;;; GNU Guix 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu machine digital-ocean)
  #:use-module (gnu machine ssh)
  #:use-module (gnu machine)
  #:use-module (gnu services)
  #:use-module (gnu services networking)
  #:use-module (gnu system)
  #:use-module (gnu system pam)
  #:use-module (guix base32)
  #:use-module (guix derivations)
  #:use-module (guix i18n)
  #:use-module ((guix diagnostics) #:select (formatted-message))
  #:use-module (guix import json)
  #:use-module (guix monads)
  #:use-module (guix records)
  #:use-module (guix ssh)
  #:use-module (guix store)
  #:use-module (ice-9 iconv)
  #:use-module (json)
  #:use-module (rnrs bytevectors)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-2)
  #:use-module (srfi srfi-34)
  #:use-module (srfi srfi-35)
  #:use-module (ssh key)
  #:use-module (ssh sftp)
  #:use-module (ssh shell)
  #:use-module (web client)
  #:use-module (web request)
  #:use-module (web response)
  #:use-module (web uri)
  #:export (digital-ocean-configuration
            digital-ocean-configuration?

            digital-ocean-configuration-ssh-key
            digital-ocean-configuration-tags
            digital-ocean-configuration-region
            digital-ocean-configuration-size
            digital-ocean-configuration-enable-ipv6?

            digital-ocean-environment-type))

;;; Commentary:
;;;
;;; This module implements a high-level interface for provisioning "droplets"
;;; from the Digital Ocean virtual private server (VPS) service.
;;;
;;; Code:

(define %api-base "https://api.digitalocean.com")

(define %digital-ocean-token
  (make-parameter (getenv "GUIX_DIGITAL_OCEAN_TOKEN")))

(define* (post-endpoint endpoint body)
  "Encode BODY as JSON and send it to the Digital Ocean API endpoint
ENDPOINT. This procedure is quite a bit more specialized than 'http-post', as
it takes care to set headers such as 'Content-Type', 'Content-Length', and
'Authorization' appropriately."
  (let* ((uri (string->uri (string-append %api-base endpoint)))
         (body (string->bytevector (scm->json-string body) "UTF-8"))
         (headers `((User-Agent . "Guix Deploy")
                    (Accept . "application/json")
                    (Content-Type . "application/json")
                    (Authorization . ,(format #f "Bearer ~a"
                                              (%digital-ocean-token)))
                    (Content-Length . ,(number->string
                                        (bytevector-length body)))))
         (port (open-socket-for-uri uri))
         (request (build-request uri
                                 #:method 'POST
                                 #:version '(1 . 1)
                                 #:headers headers
                                 #:port port))
         (request (write-request request port)))
    (write-request-body request body)
    (force-output (request-port request))
    (let* ((response (read-response port))
           (body (read-response-body response)))
      (unless (= 2 (floor/ (response-code response) 100))
        (raise
         (condition (&message
                     (message (format
                               #f
                               (G_ "~a: HTTP post failed: ~a (~s)")
                               (uri->string uri)
                               (response-code response)
                               (response-reason-phrase response)))))))
      (close-port port)
      (bytevector->string body "UTF-8"))))

(define (fetch-endpoint endpoint)
  "Return the contents of the Digital Ocean API endpoint ENDPOINT as an
alist. This procedure is quite a bit more specialized than 'json-fetch', as it
takes care to set headers such as 'Accept' and 'Authorization' appropriately."
  (define headers
    `((user-agent . "Guix Deploy")
      (Accept . "application/json")
      (Authorization . ,(format #f "Bearer ~a" (%digital-ocean-token)))))
  (json-fetch (string-append %api-base endpoint) #:headers headers))


;;;
;;; Parameters for droplet creation.
;;;

(define-record-type* <digital-ocean-configuration> digital-ocean-configuration
  make-digital-ocean-configuration
  digital-ocean-configuration?
  this-digital-ocean-configuration
  (ssh-key     digital-ocean-configuration-ssh-key)      ; string
  (tags        digital-ocean-configuration-tags)         ; list of strings
  (region      digital-ocean-configuration-region)       ; string
  (size        digital-ocean-configuration-size)         ; string
  (enable-ipv6? digital-ocean-configuration-enable-ipv6?)) ; boolean

(define (read-key-fingerprint file-name)
  "Read the private key at FILE-NAME and return the key's fingerprint as a hex
string."
  (let* ((privkey (private-key-from-file file-name))
         (pubkey (private-key->public-key privkey))
         (hash (get-public-key-hash pubkey 'md5)))
    (bytevector->hex-string hash)))

(define (machine-droplet machine)
  "Return an alist describing the droplet allocated to MACHINE."
  (let ((tags (digital-ocean-configuration-tags
               (machine-configuration machine))))
    (find (lambda (droplet)
            (equal? (assoc-ref droplet "tags") (list->vector tags)))
          (vector->list
           (assoc-ref (fetch-endpoint "/v2/droplets") "droplets")))))

(define (machine-public-ipv4-network machine)
  "Return the public IPv4 network interface of the droplet allocated to
MACHINE as an alist. The expected fields are 'ip_address', 'netmask', and
'gateway'."
  (and-let* ((droplet (machine-droplet machine))
             (networks (assoc-ref droplet "networks"))
             (network (find (lambda (network)
                              (string= "public" (assoc-ref network "type")))
                            (vector->list (assoc-ref networks "v4")))))
    network))


;;;
;;; Remote evaluation.
;;;

(define (digital-ocean-remote-eval target exp)
  "Internal implementation of 'machine-remote-eval' for MACHINE instances with
an environment type of 'digital-ocean-environment-type'."
  (let* ((network (machine-public-ipv4-network target))
         (address (assoc-ref network "ip_address"))
         (ssh-key (digital-ocean-configuration-ssh-key
                   (machine-configuration target)))
         (delegate (machine
                    (inherit target)
                    (environment managed-host-environment-type)
                    (configuration
                     (machine-ssh-configuration
                      (host-name address)
                      (identity ssh-key)
                      (system "x86_64-linux"))))))
    (machine-remote-eval delegate exp)))


;;;
;;; System deployment.
;;;

;; The following script was adapted from the guide available at
;; <https://wiki.pantherx.org/Installation-digital-ocean/>.
(define (guix-infect network)
  "Given NETWORK, an alist describing the Droplet's public IPv4 network
interface, return a Bash script that will install the Guix system."
  (format #f "#!/bin/bash

apt-get update
apt-get install xz-utils -y
wget https://ftp.gnu.org/gnu/guix/guix-binary-1.0.1.x86_64-linux.tar.xz
cd /tmp
tar --warning=no-timestamp -xf ~~/guix-binary-1.0.1.x86_64-linux.tar.xz
mv var/guix /var/ && mv gnu /
mkdir -p ~~root/.config/guix
ln -sf /var/guix/profiles/per-user/root/current-guix ~~root/.config/guix/current
export GUIX_PROFILE=\"`echo ~~root`/.config/guix/current\" ;
source $GUIX_PROFILE/etc/profile
groupadd --system guixbuild
for i in `seq -w 1 10`; do
   useradd -g guixbuild -G guixbuild         \
           -d /var/empty -s `which nologin`  \
           -c \"Guix build user $i\" --system  \
           guixbuilder$i;
done;
cp ~~root/.config/guix/current/lib/systemd/system/guix-daemon.service /etc/systemd/system/
systemctl start guix-daemon && systemctl enable guix-daemon
mkdir -p /usr/local/bin
cd /usr/local/bin
ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
mkdir -p /usr/local/share/info
cd /usr/local/share/info
for i in /var/guix/profiles/per-user/root/current-guix/share/info/*; do
    ln -s $i;
done
guix archive --authorize < ~~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub
# guix pull
guix package -i glibc-utf8-locales
export GUIX_LOCPATH=\"$HOME/.guix-profile/lib/locale\"
guix package -i openssl
cat > /etc/bootstrap-config.scm << EOF
(use-modules (gnu))
(use-service-modules networking ssh)

(operating-system
  (host-name \"gnu-bootstrap\")
  (timezone \"Etc/UTC\")
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (targets '(\"/dev/vda\"))
               (terminal-outputs '(console))))
  (file-systems (cons (file-system
                        (mount-point \"/\")
                        (device \"/dev/vda1\")
                        (type \"ext4\"))
                      %base-file-systems))
  (services
   (append (list (static-networking-service \"eth0\" \"~a\"
                    #:netmask \"~a\"
                    #:gateway \"~a\"
                    #:name-servers '(\"84.200.69.80\" \"84.200.70.40\"))
                 (simple-service 'guile-load-path-in-global-env
                  session-environment-service-type
                  \\`((\"GUILE_LOAD_PATH\"
                     . \"/run/current-system/profile/share/guile/site/2.2\")
                    (\"GUILE_LOAD_COMPILED_PATH\"
                     . ,(string-append \"/run/current-system/profile/lib/guile/2.2/site-ccache:\"
                                       \"/run/current-system/profile/share/guile/site/2.2\"))))
                 (service openssh-service-type
                          (openssh-configuration
                           (log-level 'debug)
                           (permit-root-login 'prohibit-password))))
           %base-services)))
EOF
# guix pull
guix system build /etc/bootstrap-config.scm
guix system reconfigure /etc/bootstrap-config.scm
mv /etc /old-etc
mkdir /etc
cp -r /old-etc/{passwd,group,shadow,gshadow,mtab,guix,bootstrap-config.scm} /etc/
guix system reconfigure /etc/bootstrap-config.scm"
          (assoc-ref network "ip_address")
          (assoc-ref network "netmask")
          (assoc-ref network "gateway")))

(define (machine-wait-until-available machine)
  "Block until the initial Debian image has been installed on the droplet
named DROPLET-NAME."
  (and-let* ((droplet (machine-droplet machine))
             (droplet-id (assoc-ref droplet "id"))
             (endpoint (format #f "/v2/droplets/~a/actions" droplet-id)))
    (let loop ()
      (let ((actions (assoc-ref (fetch-endpoint endpoint) "actions")))
        (unless (every (lambda (action)
                         (string= "completed" (assoc-ref action "status")))
                       (vector->list actions))
          (sleep 5)
          (loop))))))

(define (wait-for-ssh address ssh-key)
  "Block until the an SSH session can be made as 'root' with SSH-KEY at ADDRESS."
  (let loop ()
    (catch #t
      (lambda ()
        (open-ssh-session address #:user "root" #:identity ssh-key))
      (lambda args
        (sleep 5)
        (loop)))))

(define (add-static-networking target network)
  "Return an <operating-system> based on TARGET with a static networking
configuration for the public IPv4 network described by the alist NETWORK."
  (operating-system
    (inherit (machine-operating-system target))
    (services (cons* (static-networking-service "eth0"
                        (assoc-ref network "ip_address")
                        #:netmask (assoc-ref network "netmask")
                        #:gateway (assoc-ref network "gateway")
                        #:name-servers '("84.200.69.80" "84.200.70.40"))
                    (simple-service 'guile-load-path-in-global-env
                                    session-environment-service-type
                                    `(("GUILE_LOAD_PATH"
                                       . "/run/current-system/profile/share/guile/site/2.2")
                                      ("GUILE_LOAD_COMPILED_PATH"
                                       . ,(string-append "/run/current-system/profile/lib/guile/2.2/site-ccache:"
                                                         "/run/current-system/profile/share/guile/site/2.2"))))
                    (operating-system-user-services
                     (machine-operating-system target))))))

(define (deploy-digital-ocean target)
  "Internal implementation of 'deploy-machine' for 'machine' instances with an
environment type of 'digital-ocean-environment-type'."
  (maybe-raise-missing-api-key-error)
  (maybe-raise-unsupported-configuration-error target)
  (let* ((config (machine-configuration target))
         (name (machine-display-name target))
         (region (digital-ocean-configuration-region config))
         (size (digital-ocean-configuration-size config))
         (ssh-key (digital-ocean-configuration-ssh-key config))
         (fingerprint (read-key-fingerprint ssh-key))
         (enable-ipv6? (digital-ocean-configuration-enable-ipv6? config))
         (tags (digital-ocean-configuration-tags config))
         (request-body `(("name" . ,name)
                         ("region" . ,region)
                         ("size" . ,size)
                         ("image" . "debian-9-x64")
                         ("ssh_keys" . ,(vector fingerprint))
                         ("backups" . #f)
                         ("ipv6" . ,enable-ipv6?)
                         ("user_data" . #nil)
                         ("private_networking" . #nil)
                         ("volumes" . #nil)
                         ("tags" . ,(list->vector tags))))
         (response (post-endpoint "/v2/droplets" request-body)))
    (machine-wait-until-available target)
    (let* ((network (machine-public-ipv4-network target))
           (address (assoc-ref network "ip_address")))
      (wait-for-ssh address ssh-key)
      (let* ((ssh-session (open-ssh-session address #:user "root" #:identity ssh-key))
             (sftp-session (make-sftp-session ssh-session)))
        (call-with-remote-output-file sftp-session "/tmp/guix-infect.sh"
                                      (lambda (port)
                                        (display (guix-infect network) port)))
        (rexec ssh-session "/bin/bash /tmp/guix-infect.sh")
        ;; Session will close upon rebooting, which will raise 'guile-ssh-error.
        (catch 'guile-ssh-error
          (lambda () (rexec ssh-session "reboot"))
          (lambda args #t)))
      (wait-for-ssh address ssh-key)
      (let ((delegate (machine
                       (operating-system (add-static-networking target network))
                       (environment managed-host-environment-type)
                       (configuration
                        (machine-ssh-configuration
                         (host-name address)
                         (identity ssh-key)
                         (system "x86_64-linux"))))))
        (deploy-machine delegate)))))


;;;
;;; Roll-back.
;;;

(define (roll-back-digital-ocean target)
  "Internal implementation of 'roll-back-machine' for MACHINE instances with an
environment type of 'digital-ocean-environment-type'."
  (let* ((network (machine-public-ipv4-network target))
         (address (assoc-ref network "ip_address"))
         (ssh-key (digital-ocean-configuration-ssh-key
                   (machine-configuration target)))
         (delegate (machine
                    (inherit target)
                    (environment managed-host-environment-type)
                    (configuration
                     (machine-ssh-configuration
                      (host-name address)
                      (identity ssh-key)
                      (system "x86_64-linux"))))))
    (roll-back-machine delegate)))


;;;
;;; Environment type.
;;;

(define digital-ocean-environment-type
  (environment-type
   (machine-remote-eval digital-ocean-remote-eval)
   (deploy-machine      deploy-digital-ocean)
   (roll-back-machine   roll-back-digital-ocean)
   (name                'digital-ocean-environment-type)
   (description         "Provisioning of \"droplets\": virtual machines
 provided by the Digital Ocean virtual private server (VPS) service.")))


(define (maybe-raise-missing-api-key-error)
  (unless (%digital-ocean-token)
    (raise (condition
            (&message
             (message (G_ "No Digital Ocean access token was provided. This \
may be fixed by setting the environment variable GUIX_DIGITAL_OCEAN_TOKEN to \
one procured from https://cloud.digitalocean.com/account/api/tokens.")))))))

(define (maybe-raise-unsupported-configuration-error machine)
  "Raise an error if MACHINE's configuration is not an instance of
<digital-ocean-configuration>."
  (let ((config (machine-configuration machine))
        (environment (environment-type-name (machine-environment machine))))
    (unless (and config (digital-ocean-configuration? config))
      (raise (formatted-message (G_ "unsupported machine configuration '~a' \
for environment of type '~a'")
                                config
                                environment)))))
8 msgid "The linker wrapper" msgstr "Der Linker-Wrapper" #: gnu/packages/base.scm:1100 msgid "" "The linker wrapper (or `ld-wrapper') wraps the linker to add any\n" "missing `-rpath' flags, and to detect any misuse of libraries outside of the\n" "store." msgstr "" #: gnu/packages/base.scm:1264 msgid "Complete GCC tool chain for C/C++ development" msgstr "Vollständige GCC-Werkzeugsammlung für die Entwicklung in C/C++" #: gnu/packages/base.scm:1266 msgid "" "This package provides a complete GCC tool chain for C/C++ development to\n" "be installed in user profiles. This includes GCC, as well as libc (headers\n" "and binaries, plus debugging symbols in the 'debug' output), and Binutils." msgstr "" "Dieses Paket bietet eine vollständige GCC-Werkzeugsammlung, die für die\n" "C/C++-Entwicklung in Benutzerprofilen installiert werden kann. Enthalten sind\n" "sowohl GCC als auch die libc (Header und Binaries sowie Debugging-Symbole in\n" "der Debug-Ausgabe) und die Binutils." #: gnu/packages/guile.scm:99 gnu/packages/guile.scm:166 msgid "Scheme implementation intended especially for extensions" msgstr "Scheme-Implementation, die speziell für Erweiterungen gedacht ist" #: gnu/packages/guile.scm:101 gnu/packages/guile.scm:168 msgid "" "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the\n" "official extension language of the GNU system. It is an implementation of\n" "the Scheme language which can be easily embedded in other applications to\n" "provide a convenient means of extending the functionality of the application\n" "without requiring the source code to be rewritten." msgstr "" #: gnu/packages/guile.scm:211 msgid "Framework for building readers for GNU Guile" msgstr "" #: gnu/packages/guile.scm:213 msgid "" "Guile-Reader is a simple framework for building readers for GNU Guile.\n" "\n" "The idea is to make it easy to build procedures that extend Guile’s read\n" "procedure. Readers supporting various syntax variants can easily be written,\n" "possibly by re-using existing “token readers” of a standard Scheme\n" "readers. For example, it is used to implement Skribilo’s R5RS-derived\n" "document syntax.\n" "\n" "Guile-Reader’s approach is similar to Common Lisp’s “read table”, but\n" "hopefully more powerful and flexible (for instance, one may instantiate as\n" "many readers as needed)." msgstr "" #: gnu/packages/guile.scm:267 msgid "Guile bindings to ncurses" msgstr "Guile-Bindungen zu Ncurses" #: gnu/packages/guile.scm:269 msgid "" "guile-ncurses provides Guile language bindings for the ncurses\n" "library." msgstr "" "guile-ncurses stellt Guile-Sprachbindungen für die ncurses-\n" "Bibliothek bereit." #: gnu/packages/guile.scm:289 msgid "Run jobs at scheduled times" msgstr "Aufgaben planmäßig ausführen" #: gnu/packages/guile.scm:291 msgid "" "GNU Mcron is a complete replacement for Vixie cron. It is used to run\n" "tasks on a schedule, such as every hour or every Monday. Mcron is written in\n" "Guile, so its configuration can be written in Scheme; the original cron\n" "format is also supported." msgstr "" "GNU Mcron ist ein vollständiger Ersatz für Vixie cron. Es wird dazu verwendet,\n" "Aufgaben nach Plan ausführen zu lassen, zum Beispiel jede Stunde oder jeden\n" "Montag. Mcron ist in Guile geschrieben, so dass dessen Konfiguration in Scheme\n" "verwaltet werden kann. Das originale Cron-Format wird ebenfalls unterstützt." #: gnu/packages/guile.scm:319 msgid "Collection of useful Guile Scheme modules" msgstr "Sammlung nützlicher Guile-Scheme-Modulen" #: gnu/packages/guile.scm:321 msgid "" "guile-lib is intended as an accumulation place for pure-scheme Guile\n" "modules, allowing for people to cooperate integrating their generic Guile\n" "modules into a coherent library. Think \"a down-scaled, limited-scope CPAN\n" "for Guile\"." msgstr "" #: gnu/packages/guile.scm:352 msgid "JSON module for Guile" msgstr "JSON-Modul für Guile" #: gnu/packages/guile.scm:354 msgid "" "Guile-json supports parsing and building JSON documents according to the\n" "http:://json.org specification. These are the main features:\n" "- Strictly complies to http://json.org specification.\n" "- Build JSON documents programmatically via macros.\n" "- Unicode support for strings.\n" "- Allows JSON pretty printing." msgstr "" #: gnu/packages/lout.scm:109 msgid "Lout, a document layout system similar in style to LaTeX" msgstr "Lout, ein Dokument-Layoutsystem ähnlich LaTeX" #: gnu/packages/lout.scm:111 msgid "" "The Lout document formatting system is now reads a high-level description of\n" "a document similar in style to LaTeX and produces a PostScript or plain text\n" "output file.\n" "\n" "Lout offers an unprecedented range of advanced features, including optimal\n" "paragraph and page breaking, automatic hyphenation, PostScript EPS file\n" "inclusion and generation, equation formatting, tables, diagrams, rotation and\n" "scaling, sorted indexes, bibliographic databases, running headers and\n" "odd-even pages, automatic cross referencing, multilingual documents including\n" "hyphenation (most European languages are supported), formatting of computer\n" "programs, and much more, all ready to use. Furthermore, Lout is easily\n" "extended with definitions which are very much easier to write than troff of\n" "TeX macros because Lout is a high-level, purely functional language, the\n" "outcome of an eight-year research project that went back to the\n" "beginning." msgstr "" #: gnu/packages/recutils.scm:58 msgid "Manipulate plain text files as databases" msgstr "Bearbeitung von Datenbanken in Form einfacher Textdateien" #: gnu/packages/recutils.scm:60 msgid "" "GNU Recutils is a set of tools and libraries for creating and\n" "manipulating text-based, human-editable databases. Despite being text-based,\n" "databases created with Recutils carry all of the expected features such as\n" "unique fields, primary keys, time stamps and more. Many different field types\n" "are supported, as is encryption." msgstr "" "Die GNU Recutils sind eine Sammlung von Werkzeugen und Bibliotheken zum\n" "Erstellen und Bearbeiten textbasierter, menschenlesbarer Datenbanken. Obwohl\n" "rein textbasiert, bieten die mit Recutils erzeugten Datenbanken alles, was Sie\n" "von einer Datenbank erwarten, wie eindeutige Felder, Primärschlüssel,\n" "Zeitstempel und vieles mehr. Viele verschiedene Feldtypen sowie Verschlüsselung\n" "werden unterstützt." #~ msgid "cannot access `~a': ~a~%" #~ msgstr "Zugriff auf »~a« nicht möglich: ~a~%" #~ msgid "~A: package not found for version ~a~%" #~ msgstr "~A: Paket nicht gefunden für Version ~a~%" #~ msgid "~A: unknown package~%" #~ msgstr "~A: unbekanntes Paket~%" #~ msgid "~a: not a number~%" #~ msgstr "~a: keine Zahl~%" #~ msgid "~A: unrecognized option~%" #~ msgstr "~A: nicht erkannte Option~%" #~ msgid "no build log for '~a'~%" #~ msgstr "Kein Erstellungsprotokoll für »~a«~%" #~ msgid "unsupported hash format: ~a~%" #~ msgstr "Nicht unterstütztes Prüfsummenformat: ~a~%" #~ msgid "~a: download failed~%" #~ msgstr "~a: Herunterladen fehlgeschlagen~%" #~ msgid "failed to build the empty profile~%" #~ msgstr "Leeres Profil konnte nicht erstellt werden~%" #~ msgid "profile '~a' does not exist~%" #~ msgstr "Profil »~a« existiert nicht~%" #~ msgid "~a: package not found~%" #~ msgstr "~a: Paket nicht gefunden~%" #~ msgid "looking for the latest release of GNU ~a..." #~ msgstr "Nach der letzten Veröffentlichung von GNU ~a wird gesucht …" #~ msgid "invalid syntax: ~a~%" #~ msgstr "Unzulässige Syntax: ~a~%" #~ msgid "nothing to be done~%" #~ msgstr "Nichts zu tun~%" #~ msgid "~a package in profile~%" #~ msgstr "~a-Paket im Profil~%" #~ msgid "~a\t(current)~%" #~ msgstr "~a\t(aktuell)~%" #~ msgid "unknown unit: ~a~%" #~ msgstr "Unbekannte Einheit: ~a~%" #~ msgid "invalid number: ~a~%" #~ msgstr "Ungültige Zahl: ~a~%" #~ msgid "" #~ "\n" #~ " -r, --recursive compute the hash on FILE recursively" #~ msgstr "" #~ "\n" #~ " -r, --recursive errechnet die Prüfsumme der DATEI rekursiv" #~ msgid "unrecognized option: ~a~%" #~ msgstr "Nicht erkannte Option: ~a~%" #~ msgid "~a~%" #~ msgstr "~a~%" #~ msgid "wrong number of arguments~%" #~ msgstr "Falsche Argumentanzahl~%" #~ msgid "invalid signature for '~a'~%" #~ msgstr "Ungültige Signatur für »~a«~%" #~ msgid "error: invalid signature: ~a~%" #~ msgstr "Fehler: ungültige Signatur: ~a~%" #~ msgid "error: unauthorized public key: ~a~%" #~ msgstr "Fehler: nicht autorisierter öffentlicher Schlüssel: ~a~%" #~ msgid "error: corrupt signature data: ~a~%" #~ msgstr "Fehler: Signaturdaten beschädigt: ~a~%" #~ msgid "wrong arguments" #~ msgstr "Falsche Argumente" #~ msgid "~a: unknown action~%" #~ msgstr "~a: unbekannte Aktion~%" #~ msgid "no configuration file specified~%" #~ msgstr "Keine Konfigurationsdatei angegeben~%" #~ msgid "signature verification failed for `~a'~%" #~ msgstr "Verifizierung der Signatur fehlgeschlagen für »~a«~%" #~ msgid "" #~ "\n" #~ "Report bugs to: ~a." #~ msgstr "" #~ "\n" #~ "Melden Sie Fehler an: ~a." #~ msgid "" #~ "\n" #~ "~a home page: <~a>" #~ msgstr "" #~ "\n" #~ "~a Homepage: <~a>" #~ msgid "" #~ "\n" #~ "General help using GNU software: <http://www.gnu.org/gethelp/>" #~ msgstr "" #~ "\n" #~ "Allgemeine Hilfe zu GNU-Software: <http://www.gnu.org/gethelp/>" #~ msgid "~a: invalid number~%" #~ msgstr "~a: ungültige Zahl~%" #~ msgid "failed to connect to `~a': ~a~%" #~ msgstr "Verbindung zu »~a« fehlgeschlagen: ~a~%" #~ msgid "build failed: ~a~%" #~ msgstr "Erstellung fehlgeschlagen: ~a~%" #~ msgid "~a: ~a~%" #~ msgstr "~a: ~a~%" #~ msgid "failed to read expression ~s: ~s~%" #~ msgstr "Ausdruck ~s konnte nicht gelesen werden: ~s~%" #~ msgid "~:[The following file will be downloaded:~%~{ ~a~%~}~;~]" #~ msgstr "~:[Die folgende Datei wird heruntergeladen:~%~{ ~a~%~}~;~]" #~ msgid "<unknown location>" #~ msgstr "<unbekannter Ort>" #~ msgid "failed to create configuration directory `~a': ~a~%" #~ msgstr "Konfigurationsverzeichnis »~a« konnte nicht angelegt werden: ~a~%" #~ msgid "unknown" #~ msgstr "unbekannt" #~ msgid "invalid argument: ~a~%" #~ msgstr "Ungültiges Argument: ~a~%" #~ msgid "Try `guix --help' for more information.~%" #~ msgstr "Rufen Sie »guix --help« auf, um weitere Informationen zu erhalten.~%" #~ msgid "" #~ "Usage: guix COMMAND ARGS...\n" #~ "Run COMMAND with ARGS.\n" #~ msgstr "" #~ "Aufruf: guix BEFEHL ARGUMENTE …\n" #~ "BEFEHL mit ARGUMENTEN ausführen.\n" #~ msgid "COMMAND must be one of the sub-commands listed below:\n" #~ msgstr "BEFEHL muss einer der unten aufgelisteten Unterbefehle sein:\n" #~ msgid "guix: ~a: command not found~%" #~ msgstr "guix: ~a: Befehl nicht gefunden~%" #~ msgid "guix: missing command name~%" #~ msgstr "guix: Befehlsname fehlt~%" #~ msgid "guix: unrecognized option '~a'~%" #~ msgstr "guix: nicht erkannte Option »~a«~%" #~ msgid "download failed; use a newer Guile~%" #~ msgstr "Herunterladen fehlgeschlagen, verwenden Sie ein neueres Guile~%" #~ msgid "download failed" #~ msgstr "Herunterladen fehlgeschlagen" #~ msgid "unsupported file type" #~ msgstr "Nicht unterstützter Dateityp" #~ msgid "invalid signature" #~ msgstr "Ungültige Signatur" #~ msgid "invalid hash" #~ msgstr "Ungültige Prüfsumme" #~ msgid "unauthorized public key" #~ msgstr "Nicht autorisierter öffentlicher Schlüssel" #~ msgid "corrupt signature data" #~ msgstr "Signaturdaten beschädigt" #~ msgid "found valid signature for '~a'~%" #~ msgstr "Gültige Signatur für »~a« gefunden~%" #~ msgid "imported file lacks a signature" #~ msgstr "Der importierten Datei fehlt eine Signatur"