Additional files for packaging plan9port

46 views
Skip to first unread message

Matěj Cepl

unread,
Jan 12, 2025, 9:26:32 AMJan 12
to plan9p...@googlegroups.com
While packaging plan9port for openSUSE [1] I have used these
files from the ArchLinux plan9port-git package. As a firm
believer in the “Upstream first!” slogan, I would like to propose
these files to dist/ directory.

Best,

Matěj

[1] https://build.opensuse.org/package/show/home:mcepl/plan9port,
I am not sure whether I will ever push it to openSUSE/Factory,
but I will certainly at least leave the package if anybody would
like to take it over.

Matěj Cepl

unread,
Jan 12, 2025, 9:26:40 AMJan 12
to plan9p...@googlegroups.com, Matěj Cepl
Instead of letting them float between various distribution
repositories, these files should be upstream. `plan9.sh` needs to
be modified so that PLAN9 variable points to the real location of
Plan 9 directory.
---
dist/acme.desktop | 10 ++++++++++
dist/acme.sh | 3 +++
dist/plan9.sh | 4 ++++
3 files changed, 17 insertions(+)
create mode 100644 dist/acme.desktop
create mode 100644 dist/acme.sh
create mode 100644 dist/plan9.sh

diff --git a/dist/acme.desktop b/dist/acme.desktop
new file mode 100644
index 00000000..43e63853
--- /dev/null
+++ b/dist/acme.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Acme
+GenericName=Editor
+Comment=Editor from Plan9
+Exec=acme
+Icon=acme
+Terminal=false
+StartupNotify=false
+Categories=Development;TextEditor
diff --git a/dist/acme.sh b/dist/acme.sh
new file mode 100644
index 00000000..f3f8dd98
--- /dev/null
+++ b/dist/acme.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+. /etc/profile.d/plan9.sh
+9 acme "$@"
diff --git a/dist/plan9.sh b/dist/plan9.sh
new file mode 100644
index 00000000..0cce7dc8
--- /dev/null
+++ b/dist/plan9.sh
@@ -0,0 +1,4 @@
+export PLAN9=/usr/lib/plan9
+export PATH=$PATH:$PLAN9/bin
+export ROOTPATH=$ROOTPATH:$PLAN9/bin
+export MANPATH=$MANPATH:$PLAN9/man
--
2.47.1

Reply all
Reply to author
Forward
0 new messages