]> git.pld-linux.org Git - packages/poldek.git/blame - pm-hooks.patch
Release 19 (by relup.sh)
[packages/poldek.git] / pm-hooks.patch
CommitLineData
c5d1808a
ER
1this could be handled natively by poldek
2but implement as "pm command" hack for now
3
4--- /dev/null 2015-05-20 12:11:30.089022100 +0300
ba183faf 5+++ poldek/scripts/pm-command.sh 2015-05-31 18:21:15.748917981 +0300
c5d1808a
ER
6@@ -0,0 +1,11 @@
7+#!/bin/sh
8+# wrapper to add pre-install.d and post-install.d support for pm command in poldek
9+
10+/bin/run-parts /etc/poldek/pre-install.d
11+
12+/bin/rpm "$@"
13+rc=$?
14+
15+/bin/run-parts /etc/poldek/post-install.d
16+
17+exit $rc
18--- /dev/null 2015-05-20 12:11:30.089022100 +0300
19+++ poldek/conf/pre-install.d/README 2015-05-31 18:18:35.539100326 +0300
20@@ -0,0 +1,2 @@
21+Files in this directory are run before packages are installed, upgraded,
22+etc.
23--- /dev/null 2015-05-20 12:11:30.089022100 +0300
24+++ poldek/conf/post-install.d/README 2015-05-31 18:18:45.883922914 +0300
25@@ -0,0 +1 @@
26+Files in this directory are run after packages are installed, upgraded, etc.
27--- poldek-0.30.1/conf/poldek.conf~ 2015-05-31 18:25:35.000000000 +0300
28+++ poldek-0.30.1/conf/poldek.conf 2015-05-31 18:26:28.410188923 +0300
29@@ -56,7 +56,7 @@
8cb891e8
JR
30 #exclude path =
31
c5d1808a
ER
32 # Full path name to a PM (rpm for now) binary.
33-#pm command = /bin/rpm
34+pm command = /usr/lib/poldek/pm-command.sh
8cb891e8 35
c5d1808a
ER
36 # Full path name to sudo binary.
37 #sudo command = /usr/bin/sudo
38--- poldek-0.30.1/conf/Makefile.am 2015-05-31 18:28:29.319806773 +0300
39+++ poldek-0.30.1/conf/Makefile.am 2015-05-31 19:12:22.206571793 +0300
40@@ -26,6 +26,10 @@
ba183faf 41
c5d1808a
ER
42 install-data-local: $(GENCONFIGS)
43 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(PACKAGE)/repos.d
44+ $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(PACKAGE)/pre-install.d
45+ $(INSTALL_DATA) pre-install.d/README $(DESTDIR)$(sysconfdir)/$(PACKAGE)/pre-install.d
46+ $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(PACKAGE)/post-install.d
47+ $(INSTALL_DATA) post-install.d/README $(DESTDIR)$(sysconfdir)/$(PACKAGE)/post-install.d
48 for a in $(CONFIGS); do \
49 $(INSTALL_DATA) $(srcdir)/$$a $(DESTDIR)$(sysconfdir)/$(PACKAGE); \
50 done
51--- poldek-0.30.1/Makefile.am~ 2014-03-26 00:32:25.000000000 +0200
52+++ poldek-0.30.1/Makefile.am 2015-05-31 19:10:22.240340180 +0300
53@@ -79,7 +79,7 @@
54 LDADD_ = @INTLLIBS@
ba183faf 55
c5d1808a 56 vfscriptsdir = $(PKGLIBDIR)
ba183faf 57-vfscripts_SCRIPTS = scripts/zlib-in-rpm.sh scripts/vfjuggle scripts/vfcompr scripts/vfsmb scripts/poldekuser-setup.sh
58+vfscripts_SCRIPTS = scripts/zlib-in-rpm.sh scripts/vfjuggle scripts/vfcompr scripts/vfsmb scripts/poldekuser-setup.sh scripts/pm-command.sh
59
c5d1808a
ER
60 EXTRA_DIST = \
61 $(vfscripts_SCRIPTS) \
This page took 0.027819 seconds and 4 git commands to generate.