Skip to content

Commit e41f6c2

Browse files
committed
Adding new port www/CryptPad.
This commit adds CryptPad as a port to DragonFlyBSD's DPorts tree as well as adding a user and group for the service to run.
1 parent 5adcd5f commit e41f6c2

File tree

7 files changed

+434
-8
lines changed

7 files changed

+434
-8
lines changed

ports/www/CryptPad/STATUS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DPORT

ports/www/CryptPad/newport/Makefile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
PORTNAME= CryptPad
2+
DISTVERSION= 2024.9.0
3+
PORTREVISION= 1
4+
CATEGORIES= www
5+
6+
MAINTAINER= [email protected]
7+
COMMENT= End-to-end encrypted office suite
8+
WWW= https://cryptpad.fr/
9+
10+
LICENSE= AGPLv3
11+
LICENSE_FILE= ${WRKSRC}/LICENSE
12+
13+
RUN_DEPENDS= node:www/node \
14+
npm:www/npm \
15+
16+
17+
USE_RC_SUBR= cryptpad
18+
NO_BUILD= yes
19+
20+
USE_GITHUB= yes
21+
GH_ACCOUNT= cryptpad
22+
GH_PROJECT= cryptpad
23+
GH_TAGNAME= 0d872af
24+
25+
USERS= cryptpad
26+
GROUPS= cryptpad
27+
28+
do-install:
29+
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/libexec/cryptpad
30+
@${ECHO_MSG} "Files installed at: ${DATADIR}"
31+
32+
post-everything:
33+
${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/libexec/cryptpad
34+
${CP} ${PREFIX}/libexec/cryptpad/config/config.example.js ${PREFIX}/libexec/cryptpad/config/config.js
35+
npm ci --prefix ${PREFIX}/libexec/cryptpad/
36+
npm run install:components --prefix ${PREFIX}/libexec/cryptpad
37+
38+
do-test:
39+
@${ECHO_CMD} "No tests"
40+
41+
.include <bsd.port.mk>

ports/www/CryptPad/newport/distinfo

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1730083065
2+
SHA256 (cryptpad-cryptpad-2024.9.0-0d872af_GH0.tar.gz) = 5c4cfff83e80c9fd0614a8314d82b835e80ae7b8ce368dc4d743ebdd8e720535
3+
SIZE (cryptpad-cryptpad-2024.9.0-0d872af_GH0.tar.gz) = 20419338
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
# $FreeBSD$
3+
# PROVIDE: cryptpad
4+
# KEYWORD: shutdown
5+
6+
. /etc/rc.subr
7+
8+
name="cryptpad"
9+
start_cmd="start"
10+
stop_cmd="stop"
11+
rcvar=cryptpad_enable
12+
13+
pidfile="/var/run/${name}.pid"
14+
15+
desc="CryptPad Service"
16+
17+
load_rc_config ${name}
18+
19+
start() {
20+
21+
/bin/mkdir -p /var/run/cryptpad
22+
/usr/sbin/chown cryptpad:cryptpad /var/run/cryptpad
23+
24+
/usr/bin/su cryptpad -c "export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin && cd /usr/local/libexec/cryptpad && /usr/sbin/daemon -T ${name} -P /var/run/cryptpad/${name}_supervisor.pid -p /var/run/cryptpad/${name}.pid -f -S -r /usr/local/bin/node server"
25+
26+
}
27+
28+
stop() {
29+
30+
/bin/kill -9 `cat /var/run/cryptpad/${name}_supervisor.pid`
31+
/bin/kill -15 `cat /var/run/cryptpad/${name}.pid`
32+
33+
}
34+
35+
run_rc_command "$1"
36+
37+

ports/www/CryptPad/newport/pkg-descr

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Cryptpad is an end to end encrypted online office suite.
2+
It is built to enable collaboration, synchronizing
3+
changes to documents in real time. Because all data is
4+
encrypted, in the event of a breach, attackers have no
5+
way of seeing the stored content.

special/treetop/diffs/GIDs.diff

+166-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
--- GIDs.orig 2020-10-27 22:53:37 UTC
2-
+++ GIDs
3-
@@ -19,12 +19,10 @@ uucp:*:66:
1+
diff --git a/GIDs b/../DPorts/GIDs
2+
index 31b9594c7217..7afe0c7ed8c6 100644
3+
--- a/GIDs
4+
+++ b/../DPorts/GIDs
5+
@@ -18,12 +18,10 @@ uucp:*:66:
46
xten:*:67:
57
dialer:*:68:aprsd
68
network:*:69:
@@ -13,7 +15,7 @@
1315
virtuoso:*:79:
1416
www:*:80:
1517
qnofiles:*:81:
16-
@@ -90,8 +88,8 @@ webcamd:*:145:
18+
@@ -89,8 +87,8 @@ webcamd:*:145:
1719
ventrilo:*:146:
1820
kdm:*:147:
1921
ipv6mon:*:148:
@@ -24,3 +26,163 @@
2426
nixbld:*:151:
2527
frrvty:*:152:frr
2628
rbldns:*:153:
29+
@@ -269,25 +267,25 @@ dkfilter:*:325:
30+
smfs:*:326:
31+
_reticulum:*:327:
32+
galene:*:328:
33+
-certspotter:*:329:
34+
+# free: 329
35+
orthanc:*:330:
36+
-svxlink:*:331:
37+
-keycloak:*:332:
38+
+# free: 331
39+
+# free: 332
40+
+# free: 333
41+
honeytrap:*:333:
42+
-percona:*:334:
43+
-benthos:*:335:
44+
-snac:*:336:
45+
+# free: 335
46+
+# free: 336
47+
daapd:*:337:
48+
murmur:*:338:
49+
-mumble-server:*:339:
50+
+# free: 339
51+
wildfire:*:340:
52+
stunnel:*:341:
53+
openfire:*:342:
54+
-gunicorn:*:343:
55+
-snmpd:*:344:
56+
-_metronome:*:345:
57+
-ngircd:*:346:
58+
-eturnal:*:347:
59+
+# free: 343
60+
+# free: 344
61+
+# free: 345
62+
+# free: 346
63+
+# free: 347
64+
# free: 348
65+
# free: 349
66+
_sabnzbd:*:350:
67+
@@ -303,9 +301,9 @@ prowlarr:*:359:
68+
v2ray:*:360:
69+
httptunnel:*:361:
70+
readarr:*:362:
71+
-victoria-logs:*:363:
72+
-elog:*:364:
73+
-gotify:*:365:
74+
+# free: 363
75+
+# free: 364
76+
+# free: 365
77+
# free: 366
78+
# free: 367
79+
# free: 368
80+
@@ -320,8 +318,8 @@ _wsdd:*:370:
81+
# free: 377
82+
# free: 378
83+
# free: 379
84+
-spoofdpi:*:380:
85+
-hydroxide:*:381:
86+
+# free: 380
87+
+# free: 381
88+
# free: 382
89+
# free: 383
90+
# free: 384
91+
@@ -404,7 +402,7 @@ inadyn:*:455:
92+
# free: 461
93+
# free: 462
94+
# free: 463
95+
-lpjs:*:464:
96+
+# free: 464
97+
courier:*:465:
98+
condor:*:466:
99+
netmon:*:467:
100+
@@ -421,8 +419,8 @@ fiche:*:477:
101+
prometheus:*:478:
102+
alertmanager:*:479:
103+
datadog:*:480:
104+
-promxy:*:481:
105+
-openbao:*:482:
106+
+# free: 481
107+
+# free: 482
108+
# free: 483
109+
# free: 484
110+
# free: 485
111+
@@ -477,11 +475,11 @@ dkimproxy:*:525:
112+
pgbouncer:*:534:
113+
redis:*:535:
114+
keydb:*:536:
115+
-valkey:*:537:
116+
+# free: 537
117+
# free: 538
118+
# free: 539
119+
# free: 540
120+
-ipfixcol2:*:541:
121+
+# free: 541
122+
_flowd:*:542:
123+
ejabberd:*:543:
124+
# free: 544
125+
@@ -490,7 +488,7 @@ ejabberd:*:543:
126+
# free: 547
127+
# free: 548
128+
# free: 549
129+
-# free: 550
130+
+cryptpad:*:550:
131+
# free: 551
132+
kresd:*:552:
133+
knot:*:553:
134+
@@ -589,7 +587,7 @@ monkeysphere:*:641:
135+
# free: 645
136+
# free: 646
137+
# free: 647
138+
-_xrdp:*:648:
139+
+# free: 648
140+
# free: 649
141+
# free: 650
142+
# free: 651
143+
@@ -692,7 +690,7 @@ c-lightning:*:735:
144+
# free: 748
145+
# free: 749
146+
# free: 750
147+
-supysonic:*:751:
148+
+# free: 751
149+
# free: 752
150+
# free: 753
151+
# free: 754
152+
@@ -807,8 +805,8 @@ plocate:*:860:
153+
# free: 863
154+
# free: 864
155+
# free: 865
156+
-vglusers:*:866:
157+
-sqlpage:*:867:
158+
+# free: 866
159+
+# free: 867
160+
jellyfin:*:868:
161+
keyd:*:869:
162+
buildbot:*:870:
163+
@@ -824,7 +822,7 @@ _encrypted-dns:*:879:
164+
pyspf-milter:*:880:
165+
ultimaker:*:881:
166+
midpoint:*:882:
167+
-kubo-go:*:883:
168+
+ipfs-go:*:883:
169+
telegraf:*:884:
170+
tcpdump:*:885:
171+
miniflux:*:886:
172+
@@ -850,7 +848,7 @@ artifactory:*:905:
173+
opentsdb:*:906:
174+
influxd:*:907:
175+
riemann:*:908:
176+
-proxysql:*:909:
177+
+proxy65:*:909:
178+
bacula:*:910:
179+
iserv:*:911:
180+
_sj3:*:912:
181+
@@ -942,5 +940,7 @@ bareos:*:997:
182+
_rmilter:*:998:
183+
ebnetd:*:999:
184+
# DO NOT USE: 1000-65532
185+
+avenger:*:60149:
186+
+cbsd:*:60150:
187+
nogroup:*:65533:
188+
nobody:*:65534:

0 commit comments

Comments
 (0)