pmcf 4.10.0 → 4.11.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,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
|
-
import {
|
|
4
|
-
boolean_attribute_writable_true,
|
|
5
|
-
port_attribute,
|
|
6
|
-
string_attribute_writable,
|
|
7
|
-
addType
|
|
8
|
-
} from "pacc";
|
|
1
|
+
import { port_attribute, string_attribute_writable, addType } from "pacc";
|
|
9
2
|
import { addServiceType } from "pmcf";
|
|
10
|
-
import { writeLines, filterConfigurable, setionLinesFromPropertyIterator } from "../utils.mjs";
|
|
11
3
|
import { Service, ServiceTypeDefinition } from "../service.mjs";
|
|
12
4
|
|
|
13
5
|
const MosquittoServiceTypeDefinition = {
|
|
@@ -70,9 +62,22 @@ export class MosquittoService extends Service {
|
|
|
70
62
|
const host = this.host;
|
|
71
63
|
const name = host.name;
|
|
72
64
|
|
|
65
|
+
const owner = "mosquitto";
|
|
66
|
+
const group = "mosquitto";
|
|
67
|
+
|
|
68
|
+
const entryProperties = {
|
|
69
|
+
mode: 0o644,
|
|
70
|
+
owner,
|
|
71
|
+
group
|
|
72
|
+
};
|
|
73
|
+
const directoryProperties = {
|
|
74
|
+
mode: 0o755,
|
|
75
|
+
owner,
|
|
76
|
+
group
|
|
77
|
+
};
|
|
73
78
|
const packageData = {
|
|
74
79
|
dir,
|
|
75
|
-
sources: [
|
|
80
|
+
sources: [...this.templateContent(entryProperties, directoryProperties)],
|
|
76
81
|
outputs: this.outputs,
|
|
77
82
|
properties: {
|
|
78
83
|
name: `${this.typeName}-${this.location.name}-${host.name}`,
|
|
@@ -82,12 +87,6 @@ export class MosquittoService extends Service {
|
|
|
82
87
|
}
|
|
83
88
|
};
|
|
84
89
|
|
|
85
|
-
await writeLines(
|
|
86
|
-
join(dir, "etc", "mosquitto"),
|
|
87
|
-
"mosquitto.conf",
|
|
88
|
-
setionLinesFromPropertyIterator(this.propertyIterator(filterConfigurable))
|
|
89
|
-
);
|
|
90
|
-
|
|
91
90
|
yield packageData;
|
|
92
91
|
}
|
|
93
92
|
}
|
|
@@ -840,7 +840,7 @@ export class MosquittoService extends Service {
|
|
|
840
840
|
get listener(): any;
|
|
841
841
|
preparePackages(dir: any): AsyncGenerator<{
|
|
842
842
|
dir: any;
|
|
843
|
-
sources:
|
|
843
|
+
sources: any[];
|
|
844
844
|
outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
|
|
845
845
|
properties: {
|
|
846
846
|
name: string;
|
|
@@ -851,4 +851,3 @@ export class MosquittoService extends Service {
|
|
|
851
851
|
}, void, unknown>;
|
|
852
852
|
}
|
|
853
853
|
import { Service } from "../service.mjs";
|
|
854
|
-
import { FileContentProvider } from "npm-pkgbuild";
|