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 +2 -2
- package/src/module.mjs +2 -2
- package/src/service.mjs +1 -1
- package/src/services/bind.mjs +6 -6
- package/src/services/{ntp.mjs → chrony.mjs} +6 -6
- package/src/services/{dhcp.mjs → kea.mjs} +6 -6
- package/types/module.d.mts +2 -2
- package/types/services/bind.d.mts +1 -1
- package/types/services/{ntp.d.mts → chrony.d.mts} +1 -1
- package/types/services/{dhcp.d.mts → kea.d.mts} +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.
|
|
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.
|
|
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/
|
|
22
|
-
export * from "./services/
|
|
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 }] },
|
package/src/services/bind.mjs
CHANGED
|
@@ -22,8 +22,8 @@ import { addHook } from "../hooks.mjs";
|
|
|
22
22
|
|
|
23
23
|
const address_types = ["network", "host", "network_interface"];
|
|
24
24
|
|
|
25
|
-
const
|
|
26
|
-
name: "
|
|
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
|
|
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
|
|
142
|
+
return BindServiceTypeDefinition;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
constructor(owner, data) {
|
|
146
146
|
super(owner, data);
|
|
147
|
-
this.read(data,
|
|
147
|
+
this.read(data, BindServiceTypeDefinition);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
get type() {
|
|
151
|
-
return
|
|
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
|
|
12
|
-
name: "
|
|
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
|
|
27
|
+
export class ChronyService extends ExtraSourceService {
|
|
28
28
|
static {
|
|
29
29
|
addType(this);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
static get typeDefinition() {
|
|
33
|
-
return
|
|
33
|
+
return ChronyServiceTypeDefinition;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
constructor(owner, data) {
|
|
37
37
|
super(owner, data);
|
|
38
|
-
this.read(data,
|
|
38
|
+
this.read(data, ChronyServiceTypeDefinition);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
get type() {
|
|
42
|
-
return
|
|
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
|
|
19
|
-
name: "
|
|
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
|
|
79
|
+
export class KeaService extends Service {
|
|
80
80
|
static {
|
|
81
81
|
addType(this);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
static get typeDefinition() {
|
|
85
|
-
return
|
|
85
|
+
return KeaServiceTypeDefinition;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
constructor(owner, data) {
|
|
89
89
|
super(owner, data);
|
|
90
|
-
this.read(data,
|
|
90
|
+
this.read(data, KeaServiceTypeDefinition);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
get type() {
|
|
94
|
-
return
|
|
94
|
+
return "dhcp"; //KeaServiceTypeDefinition.name;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
endpoints(filter) {
|
package/types/module.d.mts
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/
|
|
22
|
-
export * from "./services/
|
|
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";
|