summaryrefslogtreecommitdiff
path: root/net/netatalk4/files/patch-config_meson.build
blob: 9c7edeb21c48346d81e1d1cdf90b4bab16e5d2c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
--- config/meson.build.orig	2025-08-05 13:56:32 UTC
+++ config/meson.build
@@ -4,76 +4,23 @@ afp_conf = configure_file(
     configuration: cdata,
 )
 
-if (fs.exists(pkgconfdir / 'afp.conf') and not get_option('with-overwrite'))
-    message('will not replace existing', pkgconfdir / 'afp.conf')
-else
-    install_data(afp_conf, install_dir: pkgconfdir)
-endif
+install_data(afp_conf, rename: 'afp.conf.sample', install_dir: pkgconfdir)
 
 if have_spotlight
     dbus_session_conf = configure_file(
         input: 'dbus-session.conf.in',
-        output: 'dbus-session.conf',
+        output: 'dbus-session.conf.netatalk',
         configuration: cdata,
     )
 
-    if (
-        fs.exists(pkgconfdir / 'dbus-session.conf')
-        and not get_option('with-overwrite')
-    )
-        message('will not replace existing', pkgconfdir / 'dbus-session.conf')
-    else
-        install_data(dbus_session_conf, install_dir: pkgconfdir)
-    endif
+    install_data(dbus_session_conf, install_dir: pkgconfdir)
 endif
 
 if have_afpstats
-    if (
-        fs.exists(dbus_sysconfpath / 'netatalk-dbus.conf')
-        and not get_option('with-overwrite')
-    )
-        message(
-            'will not replace existing',
-            dbus_sysconfpath / 'netatalk-dbus.conf',
-        )
-    else
-        install_data('netatalk-dbus.conf', install_dir: dbus_sysconfpath)
-    endif
+    install_data('netatalk-dbus.conf', install_dir: dbus_sysconfpath)
 endif
 
-static_conf_files = ['extmap.conf']
-
-if have_appletalk
-    static_conf_files += ['atalkd.conf', 'macipgw.conf', 'papd.conf']
-endif
-
-cups_libdir = ''
-
-if get_option('with-cups-libdir-path') != ''
-    cups_libdir = get_option('with-cups-libdir-path')
-elif host_os == 'netbsd'
-    cups_libdir = '/usr/pkg/libexec'
-else
-    cups_libdir = '/usr/lib'
-endif
-
-if have_appletalk and have_cups and get_option('with-cups-pap-backend')
-    configure_file(
-        input: 'pap.in',
-        output: 'pap',
-        configuration: cdata,
-        install: true,
-        install_dir: cups_libdir / 'cups/backend',
-    )
-endif
-
-foreach file : static_conf_files
-    if (fs.exists(pkgconfdir / file) and not get_option('with-overwrite'))
-        message('will not replace existing', pkgconfdir / file)
-    else
-        install_data(file, install_dir: pkgconfdir)
-    endif
-endforeach
+install_data('extmap.conf', rename: 'extmap.conf.sample', install_dir: pkgconfdir)
 
 if (fs.exists('/etc/ld.so.conf.d') and get_option('with-ldsoconf'))
     configure_file(