sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Conner (6ee78bbbab103e43ef8ac61b16abb04102d5d23e)
- From: Conner <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Conner (6ee78bbbab103e43ef8ac61b16abb04102d5d23e)
- Date: Sat, 18 Mar 2023 18:15:36 +0000
GIT changes to master grimoire by Conner <connerclere AT gmail.com>:
rust-crates/greetd/BUILD | 7 +++++++
rust-crates/greetd/CONFIGURE | 1 +
rust-crates/greetd/DEPENDS | 5 ++++-
rust-crates/greetd/HISTORY | 7 +++++++
rust-crates/greetd/INSTALL | 22 +++++++++++++++-------
5 files changed, 34 insertions(+), 8 deletions(-)
New commits:
commit 6ee78bbbab103e43ef8ac61b16abb04102d5d23e
Author: Conner <connerclere AT gmail.com>
Commit: Conner <connerclere AT gmail.com>
greetd: add deps; build manpages; sys unit file optional
diff --git a/rust-crates/greetd/BUILD b/rust-crates/greetd/BUILD
new file mode 100755
index 0000000..7a66cd7
--- /dev/null
+++ b/rust-crates/greetd/BUILD
@@ -0,0 +1,7 @@
+default_build &&
+if is_depends_enabled $SPELL scdoc; then
+ scdoc < ./man/agreety-1.scd > ./agreety.1
+ scdoc < ./man/greetd-1.scd > ./greetd.1
+ scdoc < ./man/greetd-5.scd > ./greetd.5
+ scdoc < ./man/greetd-ipc-7.scd > ./greetd-ipc.7
+fi
diff --git a/rust-crates/greetd/CONFIGURE b/rust-crates/greetd/CONFIGURE
new file mode 100755
index 0000000..9d0edec
--- /dev/null
+++ b/rust-crates/greetd/CONFIGURE
@@ -0,0 +1 @@
+config_query SYSUNIT "Install systemd unit file?" y
diff --git a/rust-crates/greetd/DEPENDS b/rust-crates/greetd/DEPENDS
index 7dbdea4..71d1512 100755
--- a/rust-crates/greetd/DEPENDS
+++ b/rust-crates/greetd/DEPENDS
@@ -1 +1,4 @@
-depends rust
+depends rust &&
+depends linux-pam &&
+
+optional_depends scdoc '' '' 'Build documentation?'
diff --git a/rust-crates/greetd/HISTORY b/rust-crates/greetd/HISTORY
index 21e131e..cf8befd 100644
--- a/rust-crates/greetd/HISTORY
+++ b/rust-crates/greetd/HISTORY
@@ -1,3 +1,10 @@
+2023-03-18 Conner Clere <xenanthropy AT sourcemage.org>
+ * DEPENDS: add linux-pam dep, scdoc optional dep
+ * BUILD: added, build manpages if scdoc enabled
+ * INSTALL: added install for manpages if scdoc enabled,
+ make systemd unit install optional
+ * CONFIGURE: added, make systemd unit file optional
+
2023-03-18 Treeve Jelbert <treeve AT sourcemage.org>
* INSTALL: fix permissions of service file
diff --git a/rust-crates/greetd/INSTALL b/rust-crates/greetd/INSTALL
index e819f00..89fb0aa 100755
--- a/rust-crates/greetd/INSTALL
+++ b/rust-crates/greetd/INSTALL
@@ -1,7 +1,15 @@
-cp target/release/{greetd,agreety} $INSTALL_ROOT/usr/bin &&
-SERVICE=$INSTALL_ROOT/lib/systemd/system &&
-mkdir -p $SERVICE &&
-chmod a-x greetd,service &&
-cp greetd.service $SERVICE/greetd.service &&
-mkdir -p $INSTALL_ROOT/etc/greetd &&
-cp config.toml $INSTALL_ROOT/etc/greetd/config.toml
+cp target/release/{greetd,agreety} "$INSTALL_ROOT/usr/bin" &&
+if [[ $SYSUNIT == "y" ]]; then
+ SERVICE="$INSTALL_ROOT/lib/systemd/system" &&
+ mkdir -p "$SERVICE" &&
+ chmod a-x greetd.service &&
+ cp greetd.service "$SERVICE/greetd.service"
+fi &&
+mkdir -p "$INSTALL_ROOT/etc/greetd" &&
+cp config.toml "$INSTALL_ROOT/etc/greetd/config.toml" &&
+if is_depends_enabled $SPELL scdoc; then
+ install -D agreety.1 "${INSTALL_ROOT}/usr/share/man/man1/agreety.1" &&
+ install -D greetd.1 "${INSTALL_ROOT}/usr/share/man/man1/greetd.1" &&
+ install -D greetd.5 "${INSTALL_ROOT}/usr/share/man/man5/greetd.5" &&
+ install -D greetd-ipc.7 "${INSTALL_ROOT}/usr/share/man/man7/greetd-ipc.7"
+fi
- [SM-Commit] GIT changes to master grimoire by Conner (6ee78bbbab103e43ef8ac61b16abb04102d5d23e), Conner, 03/18/2023
Archive powered by MHonArc 2.6.24.