aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--hook/99-pacman-offline.hook10
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index efb46a1..221346a 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ all: README.html
install:
$(INSTALL) -D -m0755 bin/pacman-offline $(DESTDIR)/usr/bin/pacman-offline
+ $(INSTALL) -D -m0644 hook/99-pacman-offline.hook $(DESTDIR)/usr/share/libalpm/hooks/99-pacman-offline.hook
$(INSTALL) -D -m0644 systemd/pacman-offline.service $(DESTDIR)/usr/lib/systemd/system/pacman-offline.service
$(INSTALL) -D -m0755 systemd/pacman-offline $(DESTDIR)/usr/lib/systemd/scripts/pacman-offline
$(INSTALL) -D -m0644 systemd/pacman-offline-prepare.service $(DESTDIR)/usr/lib/systemd/system/pacman-offline-prepare.service
diff --git a/hook/99-pacman-offline.hook b/hook/99-pacman-offline.hook
new file mode 100644
index 0000000..5a2573d
--- /dev/null
+++ b/hook/99-pacman-offline.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Disabling scheduled pacman offline update...
+When = PostTransaction
+Exec = /usr/bin/rm -f /system-update