pmcf 2.53.10 → 2.54.0

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": "2.53.10",
3
+ "version": "2.54.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "ip-utilties": "^1.3.3",
49
- "npm-pkgbuild": "^18.2.5",
49
+ "npm-pkgbuild": "^18.2.8",
50
50
  "pacc": "^3.4.2",
51
51
  "pkg-dir": "^8.0.0"
52
52
  },
package/src/module.mjs CHANGED
@@ -18,8 +18,8 @@ export * from "./service.mjs";
18
18
  export * from "./extra-source-service.mjs";
19
19
  export * from "./endpoint.mjs";
20
20
  export * from "./services/bind.mjs";
21
- export * from "./services/ntp.mjs";
22
- export * from "./services/dhcp.mjs";
21
+ export * from "./services/chrony.mjs";
22
+ export * from "./services/kea.mjs";
23
23
  export * from "./services/systemd-journal.mjs";
24
24
  export * from "./services/systemd-timesyncd.mjs";
25
25
  export * from "./services/systemd-resolved.mjs";
package/src/service.mjs CHANGED
@@ -13,7 +13,7 @@ const ServiceTypes = {
13
13
  "pacman-repo": {
14
14
  extends: ["https"]
15
15
  },
16
- ntp: { endpoints: [{ protocol: "udp", port: 123, tls: false }] },
16
+ ntp: { endpoints: [{ protocol: "udp", port: 123, tls: false, isPool: false }] },
17
17
  //bind: { extends: ["dns"] },
18
18
  dns: { endpoints: [{ protocol: "udp", port: 53, tls: false }] },
19
19
  ldap: { endpoints: [{ protocol: "tcp", port: 389, tls: false }] },
@@ -22,8 +22,8 @@ import { addHook } from "../hooks.mjs";
22
22
 
23
23
  const address_types = ["network", "host", "network_interface"];
24
24
 
25
- const BINDServiceTypeDefinition = {
26
- name: "dns",
25
+ const BindServiceTypeDefinition = {
26
+ name: "bind",
27
27
  specializationOf: ServiceTypeDefinition,
28
28
  owners: ServiceTypeDefinition.owners,
29
29
  extends: ExtraSourceServiceTypeDefinition,
@@ -113,7 +113,7 @@ function addressesStatement(prefix, objects, generateEmpty = false) {
113
113
  return [];
114
114
  }
115
115
 
116
- export class BINDService extends ExtraSourceService {
116
+ export class BindService extends ExtraSourceService {
117
117
  allowedUpdates = [];
118
118
  recordTTL = "1W";
119
119
  hasSVRRecords = true;
@@ -139,16 +139,16 @@ export class BINDService extends ExtraSourceService {
139
139
  }
140
140
 
141
141
  static get typeDefinition() {
142
- return BINDServiceTypeDefinition;
142
+ return BindServiceTypeDefinition;
143
143
  }
144
144
 
145
145
  constructor(owner, data) {
146
146
  super(owner, data);
147
- this.read(data, BINDServiceTypeDefinition);
147
+ this.read(data, BindServiceTypeDefinition);
148
148
  }
149
149
 
150
150
  get type() {
151
- return BINDServiceTypeDefinition.name;
151
+ return "dns"; // BindServiceTypeDefinition.name;
152
152
  }
153
153
 
154
154
  endpoints(filter) {
@@ -8,8 +8,8 @@ import {
8
8
  } from "../extra-source-service.mjs";
9
9
  import { writeLines } from "../utils.mjs";
10
10
 
11
- const NTPServiceTypeDefinition = {
12
- name: "ntp",
11
+ const ChronyServiceTypeDefinition = {
12
+ name: "chrony",
13
13
  specializationOf: ServiceTypeDefinition,
14
14
  owners: ServiceTypeDefinition.owners,
15
15
  extends: ExtraSourceServiceTypeDefinition,
@@ -24,22 +24,22 @@ const NTPServiceTypeDefinition = {
24
24
  }
25
25
  };
26
26
 
27
- export class NTPService extends ExtraSourceService {
27
+ export class ChronyService extends ExtraSourceService {
28
28
  static {
29
29
  addType(this);
30
30
  }
31
31
 
32
32
  static get typeDefinition() {
33
- return NTPServiceTypeDefinition;
33
+ return ChronyServiceTypeDefinition;
34
34
  }
35
35
 
36
36
  constructor(owner, data) {
37
37
  super(owner, data);
38
- this.read(data, NTPServiceTypeDefinition);
38
+ this.read(data, ChronyServiceTypeDefinition);
39
39
  }
40
40
 
41
41
  get type() {
42
- return NTPServiceTypeDefinition.name;
42
+ return "ntp"; //ChronyServiceTypeDefinition.name;
43
43
  }
44
44
 
45
45
  async *preparePackages(dir) {
@@ -15,8 +15,8 @@ import {
15
15
  import { addType } from "../types.mjs";
16
16
  import { writeLines } from "../utils.mjs";
17
17
 
18
- const DHCPServiceTypeDefinition = {
19
- name: "dhcp",
18
+ const KeaServiceTypeDefinition = {
19
+ name: "kea",
20
20
  specializationOf: ServiceTypeDefinition,
21
21
  owners: ServiceTypeDefinition.owners,
22
22
  extends: ServiceTypeDefinition,
@@ -76,22 +76,22 @@ const controlDDNSEndpoint = {
76
76
  const keaVersion = 2.6;
77
77
  export const fetureHasHTTPEndpoints = keaVersion > 2.7;
78
78
 
79
- export class DHCPService extends Service {
79
+ export class KeaService extends Service {
80
80
  static {
81
81
  addType(this);
82
82
  }
83
83
 
84
84
  static get typeDefinition() {
85
- return DHCPServiceTypeDefinition;
85
+ return KeaServiceTypeDefinition;
86
86
  }
87
87
 
88
88
  constructor(owner, data) {
89
89
  super(owner, data);
90
- this.read(data, DHCPServiceTypeDefinition);
90
+ this.read(data, KeaServiceTypeDefinition);
91
91
  }
92
92
 
93
93
  get type() {
94
- return DHCPServiceTypeDefinition.name;
94
+ return "dhcp"; //KeaServiceTypeDefinition.name;
95
95
  }
96
96
 
97
97
  endpoints(filter) {
@@ -18,8 +18,8 @@ export * from "./service.mjs";
18
18
  export * from "./extra-source-service.mjs";
19
19
  export * from "./endpoint.mjs";
20
20
  export * from "./services/bind.mjs";
21
- export * from "./services/ntp.mjs";
22
- export * from "./services/dhcp.mjs";
21
+ export * from "./services/chrony.mjs";
22
+ export * from "./services/kea.mjs";
23
23
  export * from "./services/systemd-journal.mjs";
24
24
  export * from "./services/systemd-timesyncd.mjs";
25
25
  export * from "./services/systemd-resolved.mjs";
@@ -1,4 +1,4 @@
1
- export class BINDService extends ExtraSourceService {
1
+ export class BindService extends ExtraSourceService {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  specializationOf: {
@@ -1,4 +1,4 @@
1
- export class NTPService extends ExtraSourceService {
1
+ export class ChronyService extends ExtraSourceService {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  specializationOf: {
@@ -1,5 +1,5 @@
1
1
  export const fetureHasHTTPEndpoints: boolean;
2
- export class DHCPService extends Service {
2
+ export class KeaService extends Service {
3
3
  static get typeDefinition(): {
4
4
  name: string;
5
5
  specializationOf: {