Added
Link Here
|
1 |
From fe35a731df6edccafdcc8b164d1e6822069ffc3b Mon Sep 17 00:00:00 2001 |
2 |
From: Charlie Root <jake@metalrip.com> |
3 |
Date: Sun, 1 Sep 2024 12:37:23 -0400 |
4 |
Subject: [PATCH 2/2] added SOURCEDATE; use variables for user/groups |
5 |
|
6 |
--- |
7 |
...dded-security-openbao-as-UID-GID-482.patch | 246 ++++++++++++++++++ |
8 |
security/openbao/Makefile | 7 +- |
9 |
security/openbao/distinfo | 4 +- |
10 |
security/openbao/files/openbao.in | 8 +- |
11 |
security/openbao/files/pkg-message.in | 4 +- |
12 |
5 files changed, 257 insertions(+), 12 deletions(-) |
13 |
create mode 100644 0001-added-security-openbao-as-UID-GID-482.patch |
14 |
|
15 |
diff --git a/0001-added-security-openbao-as-UID-GID-482.patch b/0001-added-security-openbao-as-UID-GID-482.patch |
16 |
new file mode 100644 |
17 |
index 000000000000..bb1cea9c02c2 |
18 |
--- /dev/null |
19 |
+++ b/0001-added-security-openbao-as-UID-GID-482.patch |
20 |
@@ -0,0 +1,246 @@ |
21 |
+From 0989edb30253aeeb2ab4a6fef548c33a1118dde4 Mon Sep 17 00:00:00 2001 |
22 |
+From: Charlie Root <jake@metalrip.com> |
23 |
+Date: Fri, 30 Aug 2024 22:55:05 -0400 |
24 |
+Subject: [PATCH] added security/openbao as UID/GID 482 |
25 |
+ |
26 |
+--- |
27 |
+ GIDs | 2 +- |
28 |
+ UIDs | 2 +- |
29 |
+ security/openbao/Makefile | 45 ++++++++++++++ |
30 |
+ security/openbao/distinfo | 5 ++ |
31 |
+ security/openbao/files/openbao.in | 88 +++++++++++++++++++++++++++ |
32 |
+ security/openbao/files/pkg-message.in | 25 ++++++++ |
33 |
+ security/openbao/pkg-descr | 4 ++ |
34 |
+ 7 files changed, 169 insertions(+), 2 deletions(-) |
35 |
+ create mode 100644 security/openbao/Makefile |
36 |
+ create mode 100644 security/openbao/distinfo |
37 |
+ create mode 100644 security/openbao/files/openbao.in |
38 |
+ create mode 100644 security/openbao/files/pkg-message.in |
39 |
+ create mode 100644 security/openbao/pkg-descr |
40 |
+ |
41 |
+diff --git a/GIDs b/GIDs |
42 |
+index aa63249122f3..df132f6913a8 100644 |
43 |
+--- a/GIDs |
44 |
++++ b/GIDs |
45 |
+@@ -422,7 +422,7 @@ prometheus:*:478: |
46 |
+ alertmanager:*:479: |
47 |
+ datadog:*:480: |
48 |
+ promxy:*:481: |
49 |
+-# free: 482 |
50 |
++openbao:*:482 |
51 |
+ # free: 483 |
52 |
+ # free: 484 |
53 |
+ # free: 485 |
54 |
+diff --git a/UIDs b/UIDs |
55 |
+index ebc717fa6fdb..234a2f293d3d 100644 |
56 |
+--- a/UIDs |
57 |
++++ b/UIDs |
58 |
+@@ -427,7 +427,7 @@ prometheus:*:478:478::0:0:Prometheus Daemon:/var/tmp/prometheus:/usr/sbin/nologi |
59 |
+ alertmanager:*:479:479::0:0:Alertmanager Daemon:/var/tmp/alertmanager:/usr/sbin/nologin |
60 |
+ datadog:*:480:480::0:0:DataDog Agent:/var/db/datadog:/usr/sbin/nologin |
61 |
+ promxy:*:481:481::0:0:Promxy Daemon:/nonexistent:/usr/sbin/nologin |
62 |
+-# free: 482 |
63 |
++openbao:*:482:482:daemon:0:0:OpenBao Daemon:/nonexistent:/usr/sbin/nologin |
64 |
+ # free: 483 |
65 |
+ # free: 484 |
66 |
+ # free: 485 |
67 |
+diff --git a/security/openbao/Makefile b/security/openbao/Makefile |
68 |
+new file mode 100644 |
69 |
+index 000000000000..250b32a48929 |
70 |
+--- /dev/null |
71 |
++++ b/security/openbao/Makefile |
72 |
+@@ -0,0 +1,45 @@ |
73 |
++PORTNAME= openbao |
74 |
++PORTVERSION= 2.0.0 |
75 |
++DISTVERSIONPREFIX= v |
76 |
++CATEGORIES= security |
77 |
++ |
78 |
++MAINTAINER= jake@metalrip.com |
79 |
++COMMENT= Tool for securely accessing secrets |
80 |
++WWW= https://openbao.org/ |
81 |
++ |
82 |
++LICENSE= MPL20 |
83 |
++LICENSE_FILE= ${WRKSRC}/LICENSE |
84 |
++ |
85 |
++GO= go |
86 |
++BIN_NAME= bao |
87 |
++ |
88 |
++# USES= go:modules |
89 |
++USE_GITHUB= yes |
90 |
++ |
91 |
++GITID= 700fe3f27ab1f0ec39ce20c36f6d9d97c9fe6ac3 |
92 |
++# GO_MODULE= github.com/openbao/openbao |
93 |
++GO_BUILDFLAGS= -ldflags="\ |
Added
Link Here
|
10 |
LICENSE= MPL20 |
10 |
LICENSE= MPL20 |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
12 |
|
13 |
GO= go |
|
|
14 |
BIN_NAME= bao |
13 |
BIN_NAME= bao |
15 |
|
14 |
|
15 |
USES= go:modules |
16 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
17 |
GITID= 700fe3f27ab1f0ec39ce20c36f6d9d97c9fe6ac3 |
17 |
GITID= 700fe3f27ab1f0ec39ce20c36f6d9d97c9fe6ac3 |
18 |
|
18 |
|
Added
Link Here
|
35 |
GO_TARGET= :${BIN_NAME} |
35 |
GO_TARGET= :${BIN_NAME} |
36 |
|
36 |
|
37 |
do-build: |
37 |
do-build: |
38 |
@cd ${WRKSRC} && ${GO} mod tidy && ${GO} mod vendor |
38 |
@cd ${WRKSRC} && ${GO_CMD} mod tidy && ${GO_CMD} mod vendor |
39 |
@cd ${WRKSRC} && ${GO} build ${GO_BUILDFLAGS} -o bin/${BIN_NAME} |
39 |
@cd ${WRKSRC} && ${GO_CMD} build ${GO_BUILDFLAGS} -o bin/${BIN_NAME} |
40 |
|
40 |
|
41 |
do-install: |
41 |
do-install: |
42 |
@echo "Installing ${PORTNAME} as ${BIN_NAME}" |
42 |
@echo "Installing ${PORTNAME} as ${BIN_NAME}" |
43 |
- |
|
|