aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-helper.macros.in
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2011-10-27 22:47:46 +0000
committerDexter Morgan <dmorgan@mageia.org>2011-10-27 22:47:46 +0000
commitc64fa938609c6bee9dd02adc1a37df89a9ebd116 (patch)
tree20da84dbd8cc32fb518e4bf777359664dba63a88 /rpm-helper.macros.in
parentb1c56622b1c4a3e390de269e8c28af133f2472c9 (diff)
downloadrpm-helper-c64fa938609c6bee9dd02adc1a37df89a9ebd116.tar
rpm-helper-c64fa938609c6bee9dd02adc1a37df89a9ebd116.tar.gz
rpm-helper-c64fa938609c6bee9dd02adc1a37df89a9ebd116.tar.bz2
rpm-helper-c64fa938609c6bee9dd02adc1a37df89a9ebd116.tar.xz
rpm-helper-c64fa938609c6bee9dd02adc1a37df89a9ebd116.zip
Add systemd support ( mdv )
Diffstat (limited to 'rpm-helper.macros.in')
-rw-r--r--rpm-helper.macros.in22
1 files changed, 19 insertions, 3 deletions
diff --git a/rpm-helper.macros.in b/rpm-helper.macros.in
index 2ea187f..cfcf2e5 100644
--- a/rpm-helper.macros.in
+++ b/rpm-helper.macros.in
@@ -1,4 +1,4 @@
-# $Id: rpm-helper.macros.in 265742 2010-02-03 22:47:17Z guillomovitch $
+# $Id: rpm-helper.macros.in 272144 2011-03-20 18:42:29Z bor $
%_rpm_helper_dir @pkgdatadir@
@@ -15,11 +15,11 @@
# initscripts macros
%_add_service_helper %_rpm_helper_dir/add-service
-%_post_service() %_add_service_helper %{name} $1 %{1} \
+%_post_service() %_add_service_helper %{name} $1 %{*} \
%{nil}
%_del_service_helper %_rpm_helper_dir/del-service
-%_preun_service() %_del_service_helper %{name} $1 %{1} \
+%_preun_service() %_del_service_helper %{name} $1 %{*} \
%{nil}
%_add_user_helper %_rpm_helper_dir/add-user
@@ -65,3 +65,19 @@
%_postun_webapp() %_del_webapp_helper %{name} $1 \
%{nil}
+# systemd support
+%_migrate_service_helper %_rpm_helper_dir/migrate-service
+%_systemd_migrate_service_pre() %_migrate_service_helper pre %{*} \
+%{nil}
+%_systemd_migrate_service_post() %_migrate_service_helper post %{*} \
+%{nil}
+
+%_post_unit() %_add_service_helper --no-sysv %{name} $1 %{*} \
+%{nil}
+
+%_preun_unit() %_del_service_helper --no-sysv %{name} $1 %{*} \
+%{nil}
+
+%_postun_unit_helper %_rpm_helper_dir/postun-unit
+%_postun_unit() %_postun_unit_helper %{name} $1 %{*} \
+%{nil}