From e9488459abdc0d260878cbfda26c8e5b5f8f09da Mon Sep 17 00:00:00 2001
From: dtb
Date: Mon, 2 Jan 2023 19:44:58 -0500
Subject: [PATCH] attempt at auto linking packages
---
wiki/linux/alpine.m4 | 2 +-
wiki/linux/index.m4 | 1 +
wiki/linux/macros.m4 | 9 ++++-----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/wiki/linux/alpine.m4 b/wiki/linux/alpine.m4
index 9eabe82..7c44de1 100644
--- a/wiki/linux/alpine.m4
+++ b/wiki/linux/alpine.m4
@@ -73,7 +73,7 @@ _passage(`Eunakria on the Alpine Linux Discord server',
_program(`setup-hostname') validates a _man(`hostname(5)') before writing to the mounted volume.
-_program(`setup-xorg-base') adds the packages _package(`xorg-server'), _package(`xf86-input-libinput'), _package(`eudev'), and _package(`mesa'), and then enables the _ref(`#initialization') services for udev.
+_program(`setup-xorg-base') adds the packages _package_alpine(`xorg-server'), _package(`xf86-input-libinput'), _package(`eudev'), and _package(`mesa'), and then enables the _ref(`#initialization') services for udev.
_subheader(`postmarketOS')
diff --git a/wiki/linux/index.m4 b/wiki/linux/index.m4
index e465d52..bcd9503 100644
--- a/wiki/linux/index.m4
+++ b/wiki/linux/index.m4
@@ -2,6 +2,7 @@ define(`_DESCRIPTION', `Linux is a Unix-workalike operating system kernel.')dnl
define(`_PAGE', `Linux')dnl
include(`../wiki.m4')dnl
include(`../unix/macros.m4')dnl
+include(`macros.m4')dnl
_bentr(`_link(`How to Linux', `http://tldp.yolinux.com/HOWTO/subdir/HOWTO-INDEX.html')')
_bentr(`_link(`How to Use User Mode Linux', `https://christine.website/blog/howto-usermode-linux-2019-07-07')')
diff --git a/wiki/linux/macros.m4 b/wiki/linux/macros.m4
index 2b3cbaf..7a4748d 100644
--- a/wiki/linux/macros.m4
+++ b/wiki/linux/macros.m4
@@ -1,5 +1,4 @@
-define(`_command', `_code($1)')dnl
-define(`_file', `_code($1)')dnl
-define(`_man', `_cite($1)')dnl
-define(`_program', `_code($1)')dnl
-define(`_package', `_code($1)')dnl
+dnl include(`../wiki.m4')
+dnl include(`../unix/macros.m4')
+define(`_package_alpine', `_link(_package($1), https://pkgs.alpinelinux.org/packages?name=$1)')dnl
+define(`_package_arch', `_link(_package($1), https://archlinux.org/packages/?q=$1')')dnl