From 66b0ae819298f26698aa8850ff7f79959cea9e09 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 6 Apr 2025 20:40:20 +0300 Subject: [PATCH] Add license --- pkg.info | 2 +- post_install.sh | 4 ++++ post_update.sh | 4 ++++ pre_remove.sh | 4 ++++ source.sh | 2 ++ 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 post_install.sh create mode 100644 post_update.sh create mode 100644 pre_remove.sh diff --git a/pkg.info b/pkg.info index 6bbe440..0d75fc2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: dbus description: Freedesktop.org message bus system version: 1.14.10 -revision: 3 +revision: 4 url: https://www.freedesktop.org/wiki/Software/dbus license: AFL2.1 or GPL2-or-later architecture: any diff --git a/post_install.sh b/post_install.sh new file mode 100644 index 0000000..90cfc30 --- /dev/null +++ b/post_install.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Generate dbus UUID +dbus-uuidgen --ensure="$BPM_ROOT"/var/lib/dbus/machine-id diff --git a/post_update.sh b/post_update.sh new file mode 100644 index 0000000..90cfc30 --- /dev/null +++ b/post_update.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Generate dbus UUID +dbus-uuidgen --ensure="$BPM_ROOT"/var/lib/dbus/machine-id diff --git a/pre_remove.sh b/pre_remove.sh new file mode 100644 index 0000000..7b5697d --- /dev/null +++ b/pre_remove.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Generate dbus UUID +rm "$BPM_ROOT"/var/lib/dbus/machine-id diff --git a/source.sh b/source.sh index 0c39210..502f967 100644 --- a/source.sh +++ b/source.sh @@ -46,4 +46,6 @@ package() { install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv + + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dbus/COPYING }