summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/systemd-mode/files')
-rw-r--r--app-emacs/systemd-mode/files/50systemd-mode-gentoo.el2
-rw-r--r--app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch29
2 files changed, 31 insertions, 0 deletions
diff --git a/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el b/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el
new file mode 100644
index 000000000000..01b8ef7e6e34
--- /dev/null
+++ b/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "systemd-mode-autoloads" nil t)
diff --git a/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch b/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch
new file mode 100644
index 000000000000..c85d78a10200
--- /dev/null
+++ b/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch
@@ -0,0 +1,29 @@
+--- a/systemd.el
++++ b/systemd.el
+@@ -89,7 +89,7 @@
+ (insert-file-contents
+ (let ((f "unit-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Configuration directives for systemd.")
+
+@@ -105,7 +105,7 @@
+ (insert-file-contents
+ (let ((f "network-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Network configuration directives for systemd.")
+
+@@ -119,7 +119,7 @@
+ (insert-file-contents
+ (let ((f "nspawn-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Namespace container configuration directives for systemd.")
+