diff options
| author | Rasmus Thomsen <oss@cogitri.dev> | 2019-05-24 01:18:45 +0200 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-07 05:43:59 -0300 |
| commit | 232feb50a22056aa29d5d20f37f676535d2ad437 (patch) | |
| tree | 87b05eecfa725f84fc5d61625f7885c97d59b471 /testing/sysprof/allow-disabling-systemdunitdir.patch | |
| parent | c9f6e46a917a22d421adf60ecb85c987358abe84 (diff) | |
| download | aports-232feb50a22056aa29d5d20f37f676535d2ad437.tar.bz2 aports-232feb50a22056aa29d5d20f37f676535d2ad437.tar.xz | |
testing/sysprof: new aport
Diffstat (limited to 'testing/sysprof/allow-disabling-systemdunitdir.patch')
| -rw-r--r-- | testing/sysprof/allow-disabling-systemdunitdir.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/sysprof/allow-disabling-systemdunitdir.patch b/testing/sysprof/allow-disabling-systemdunitdir.patch new file mode 100644 index 0000000000..4c0329e08c --- /dev/null +++ b/testing/sysprof/allow-disabling-systemdunitdir.patch @@ -0,0 +1,32 @@ +diff --git a/data/meson.build b/data/meson.build +index cc924ae..63dc69b 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -86,16 +86,18 @@ if get_option('with_sysprofd') == 'bundled' + ) + + systemdunitdir = get_option('systemdunitdir') +- if systemdunitdir == '' +- systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir') ++ if systemdunitdir != 'no' ++ if systemdunitdir == '' ++ systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir') ++ endif ++ configure_file( ++ input: 'sysprof2.service.in', ++ output: 'sysprof2.service', ++ configuration: sysprofdconf, ++ install: true, ++ install_dir: systemdunitdir, ++ ) + endif +- configure_file( +- input: 'sysprof2.service.in', +- output: 'sysprof2.service', +- configuration: sysprofdconf, +- install: true, +- install_dir: systemdunitdir, +- ) + + i18n.merge_file( + input: 'org.gnome.sysprof2.policy.in', |
