pmcf 1.79.0 → 1.79.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dns.mjs +18 -17
- package/src/location.mjs +2 -2
- package/src/ntp.mjs +13 -10
- package/src/service.mjs +0 -12
- package/types/dns.d.mts +2 -2
- package/types/ntp.d.mts +2 -2
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -101,20 +101,23 @@ export class DNSService extends Base {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
get systemdConfig() {
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
return [
|
|
105
|
+
"Resolve",
|
|
106
|
+
{
|
|
107
|
+
DNS: serviceAddresses(this, {
|
|
108
|
+
...DNS_SERVICE_FILTER,
|
|
109
|
+
priority: "<10"
|
|
110
|
+
}).join(" "),
|
|
111
|
+
FallbackDNS: serviceAddresses(this, {
|
|
112
|
+
...DNS_SERVICE_FILTER,
|
|
113
|
+
priority: ">=10"
|
|
114
|
+
}).join(" "),
|
|
115
|
+
Domains: [...this.domains].join(" "),
|
|
116
|
+
DNSSEC: "no",
|
|
117
|
+
MulticastDNS: "yes",
|
|
118
|
+
LLMNR: "no"
|
|
119
|
+
}
|
|
120
|
+
];
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
async *preparePackages(stagingDir) {
|
|
@@ -133,9 +136,7 @@ export class DNSService extends Base {
|
|
|
133
136
|
|
|
134
137
|
const options = [
|
|
135
138
|
"forwarders {",
|
|
136
|
-
...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(
|
|
137
|
-
a => ` ${a};`
|
|
138
|
-
),
|
|
139
|
+
...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(a => ` ${a};`),
|
|
139
140
|
"};"
|
|
140
141
|
];
|
|
141
142
|
await writeLines(join(p1, "etc/named.d/options"), `${name}.conf`, options);
|
package/src/location.mjs
CHANGED
|
@@ -55,7 +55,7 @@ export class Location extends Owner {
|
|
|
55
55
|
await writeLines(
|
|
56
56
|
join(stagingDir, "etc/systemd/resolved.conf.d"),
|
|
57
57
|
`${this.name}.conf`,
|
|
58
|
-
sectionLines(
|
|
58
|
+
sectionLines(...this.dns.systemdConfig)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
await writeLines(
|
|
@@ -71,7 +71,7 @@ export class Location extends Owner {
|
|
|
71
71
|
await writeLines(
|
|
72
72
|
join(stagingDir, "etc/systemd/timesyncd.conf.d"),
|
|
73
73
|
`${this.name}.conf`,
|
|
74
|
-
sectionLines(
|
|
74
|
+
sectionLines(...this.ntp.systemdConfig)
|
|
75
75
|
);
|
|
76
76
|
|
|
77
77
|
const locationDir = join(stagingDir, "etc", "location");
|
package/src/ntp.mjs
CHANGED
|
@@ -51,15 +51,18 @@ export class NTPService extends Base {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
get systemdConfig() {
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
return [
|
|
55
|
+
"Time",
|
|
56
|
+
{
|
|
57
|
+
NTP: serviceAddresses(
|
|
58
|
+
this,
|
|
59
|
+
{
|
|
60
|
+
...NTP_SERVICE_FILTER,
|
|
61
|
+
priority: "<20"
|
|
62
|
+
},
|
|
63
|
+
"domainName"
|
|
64
|
+
).join(" ")
|
|
65
|
+
}
|
|
66
|
+
];
|
|
64
67
|
}
|
|
65
68
|
}
|
package/src/service.mjs
CHANGED
|
@@ -222,18 +222,6 @@ export class Service extends Base {
|
|
|
222
222
|
dnsFormatParameters(dnsRecord.parameters)
|
|
223
223
|
)
|
|
224
224
|
);
|
|
225
|
-
|
|
226
|
-
if (this.master && this.alias) {
|
|
227
|
-
records.push(
|
|
228
|
-
DNSRecord(
|
|
229
|
-
this.alias,
|
|
230
|
-
dnsRecord.type,
|
|
231
|
-
this.priority,
|
|
232
|
-
dnsFullName(domainName),
|
|
233
|
-
dnsFormatParameters(dnsRecord.parameters)
|
|
234
|
-
)
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
225
|
}
|
|
238
226
|
|
|
239
227
|
return records;
|
package/types/dns.d.mts
CHANGED
|
@@ -83,14 +83,14 @@ export class DNSService extends Base {
|
|
|
83
83
|
get trusted(): any[];
|
|
84
84
|
set source(value: any[]);
|
|
85
85
|
get source(): any[];
|
|
86
|
-
get systemdConfig(): {
|
|
86
|
+
get systemdConfig(): (string | {
|
|
87
87
|
DNS: string;
|
|
88
88
|
FallbackDNS: string;
|
|
89
89
|
Domains: string;
|
|
90
90
|
DNSSEC: string;
|
|
91
91
|
MulticastDNS: string;
|
|
92
92
|
LLMNR: string;
|
|
93
|
-
};
|
|
93
|
+
})[];
|
|
94
94
|
preparePackages(stagingDir: any): AsyncGenerator<{
|
|
95
95
|
sources: AsyncGenerator<any, void, unknown>[];
|
|
96
96
|
outputs: Set<typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").DOCKER>;
|
package/types/ntp.d.mts
CHANGED