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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.79.0",
3
+ "version": "1.79.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
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
- DNS: serviceAddresses(this, {
106
- ...DNS_SERVICE_FILTER,
107
- priority: "<10"
108
- }).join(" "),
109
- FallbackDNS: serviceAddresses(this, {
110
- ...DNS_SERVICE_FILTER,
111
- priority: ">=10"
112
- }).join(" "),
113
- Domains: [...this.domains].join(" "),
114
- DNSSEC: "no",
115
- MulticastDNS: "yes",
116
- LLMNR: "no"
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("Resolve", this.dns.systemdConfig)
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("Time", this.ntp.systemdConfig)
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
- NTP: serviceAddresses(
56
- this,
57
- {
58
- ...NTP_SERVICE_FILTER,
59
- priority: "<20"
60
- },
61
- "domainName"
62
- ).join(" ")
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
@@ -13,9 +13,9 @@ export class NTPService extends Base {
13
13
  };
14
14
  set source(value: any[]);
15
15
  get source(): any[];
16
- get systemdConfig(): {
16
+ get systemdConfig(): (string | {
17
17
  NTP: string;
18
- };
18
+ })[];
19
19
  #private;
20
20
  }
21
21
  import { Base } from "./base.mjs";