View | Details | Raw Unified | Return to bug 273495 | Differences between
and this patch

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 309-315 gotify:*:365: Link Here
309
opengist:*:366:
309
opengist:*:366:
310
velbustcpd:*:367:
310
velbustcpd:*:367:
311
sshesame:*:368:
311
sshesame:*:368:
312
# free: 369
312
reposilite:*:369:
313
_wsdd:*:370:
313
_wsdd:*:370:
314
# free: 371
314
# free: 371
315
# free: 372
315
# free: 372
(-)b/UIDs (-1 / +1 lines)
Lines 315-321 gotify:*:365:365::0:0:Gotify User:/var/db/gotify:/usr/sbin/nologin Link Here
315
opengist:*:366:366::0:0:OpenGist User:/var/db/opengist:/usr/sbin/nologin
315
opengist:*:366:366::0:0:OpenGist User:/var/db/opengist:/usr/sbin/nologin
316
velbustcpd:*:367:367::0:0:Velbustcp Deamon:/nonexistent:/usr/sbin/nologin
316
velbustcpd:*:367:367::0:0:Velbustcp Deamon:/nonexistent:/usr/sbin/nologin
317
sshesame:*:368:368::0:0:Sshesame Daemon:/nonexistent:/usr/sbin/nologin
317
sshesame:*:368:368::0:0:Sshesame Daemon:/nonexistent:/usr/sbin/nologin
318
# free: 369
318
reposilite:*:369:369::0:0:Reposilite user:/nonexistent:/usr/sbin/nologin
319
_wsdd:*:370:370::0:0:Web Service Discovery Daemon:/nonexistent:/usr/sbin/nologin
319
_wsdd:*:370:370::0:0:Web Service Discovery Daemon:/nonexistent:/usr/sbin/nologin
320
# free: 371
320
# free: 371
321
# free: 372
321
# free: 372
(-)b/devel/Makefile (+1 lines)
Lines 6372-6377 Link Here
6372
    SUBDIR += remotery
6372
    SUBDIR += remotery
6373
    SUBDIR += replay
6373
    SUBDIR += replay
6374
    SUBDIR += replxx
6374
    SUBDIR += replxx
6375
    SUBDIR += reposilite
6375
    SUBDIR += reproc
6376
    SUBDIR += reproc
6376
    SUBDIR += resolv_wrapper
6377
    SUBDIR += resolv_wrapper
6377
    SUBDIR += revive
6378
    SUBDIR += revive
(-)b/devel/reposilite/Makefile (+58 lines)
Added Link Here
1
#-*- tab-width: 4; -*-
2
# ex:ts=4
3
PORTNAME=				reposilite
4
DISTVERSION=				3.5.23
5
DISTVERSIONSUFFIX=			-all
6
CATEGORIES=				devel java
7
MASTER_SITES=				https://maven.reposilite.com/releases/com/reposilite/reposilite/${DISTVERSION}/
8
EXTRACT_SUFX=				.jar
9
10
MAINTAINER=				thorsteinn@isnic.is
11
COMMENT=				Lightweight repository manager for Maven based artifacts
12
WWW=					https://reposilite.com
13
14
LICENSE=				APACHE20
15
16
USES=					java
17
JAVA_VERSION=				11+
18
19
NO_BUILD=				yes
20
NO_ARCH=				yes
21
NO_TEST=				yes
22
USE_RC_SUBR=				${PORTNAME}
23
24
DATADIR=				${JAVASHAREDIR}/${PORTNAME}
25
REPOSILITE_WORKDIR=			/var/${PORTNAME}
26
REPOSILITE_RUNDIR=			/var/run/${PORTNAME}
27
28
REPOSILITE_USER=			${PORTNAME}
29
REPOSILITE_GROUP=			${REPOSILITE_USER}
30
31
USERS=					${REPOSILITE_USER}
32
GROUPS=					${REPOSILITE_GROUP}
33
34
SUB_LIST=				JAR_FILE=${JAVAJARDIR}/${DISTNAME}.jar \
35
						RUNDIR=${REPOSILITE_RUNDIR} \
36
						WORKDIR=${REPOSILITE_WORKDIR}
37
38
PLIST_SUB=				JAR_FILE=${JAVAJARDIR}/${DISTNAME}.jar \
39
						REPOSILITE_USER=${REPOSILITE_USER} \
40
						REPOSILITE_GROUP=${REPOSILITE_GROUP} \
41
						RUNDIR=${REPOSILITE_RUNDIR} \
42
						WORKDIR=${REPOSILITE_WORKDIR}
43
44
do-extract:
45
	@${MKDIR} ${WRKSRC}
46
	@${CP} ${DISTDIR}/${DISTNAME}.jar ${WRKSRC}/
47
	@${CP} ${FILESDIR}/configuration.cdn.sample ${WRKSRC}/
48
49
do-install:
50
	@${MKDIR} ${STAGEDIR}${DATADIR}
51
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
52
	@${MKDIR} ${STAGEDIR}${ETCDIR}
53
	@${MKDIR} ${STAGEDIR}${REPOSILITE_WORKDIR}
54
	@${MKDIR} ${STAGEDIR}${REPOSILITE_RUNDIR}
55
	${INSTALL_DATA} ${WRKSRC}/configuration.cdn.sample ${STAGEDIR}${ETCDIR}/
56
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
57
58
.include <bsd.port.mk>
(-)b/devel/reposilite/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1746792851
2
SHA256 (reposilite-3.5.23-all.jar) = ec3365d2eda260096a85f949088a69cbc86e30ab458e3c9127350f7161e84671
3
SIZE (reposilite-3.5.23-all.jar) = 73196870
(-)b/devel/reposilite/files/configuration.cdn.sample (+71 lines)
Added Link Here
1
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
2
#       Reposilite :: Local       #
3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
4
5
# Local configuration contains init params for current Reposilite instance.
6
# For more options, shared between instances, login to the dashboard with management token and visit 'Configuration' tab.
7
8
# Hostname
9
# The hostname can be used to limit which connections are accepted.
10
# Use 0.0.0.0 to accept connections from anywhere.
11
# 127.0.0.1 will only allow connections from localhost.
12
hostname: 0.0.0.0
13
# Port to bind
14
port: 8080
15
# Database configuration. Supported storage providers:
16
# - mysql localhost:3306 database user password
17
# - sqlite reposilite.db
18
# - sqlite --temporary
19
# Experimental providers (not covered with tests):
20
# - postgresql localhost:5432 database user password
21
# - h2 reposilite
22
database: sqlite reposilite.db
23
24
# Support encrypted connections
25
sslEnabled: false
26
# SSL port to bind
27
sslPort: 443
28
# Key file to use.
29
# You can specify absolute path to the given file or use ${WORKING_DIRECTORY} variable.
30
# If you want to use .pem certificate you need to specify its path next to the key path.
31
# Example .pem paths setup:
32
# keyPath: ${WORKING_DIRECTORY}/cert.pem ${WORKING_DIRECTORY}/key.pem
33
# Example .jks path setup:
34
# keyPath: ${WORKING_DIRECTORY}/keystore.jks
35
keyPath: ${WORKING_DIRECTORY}/cert.pem ${WORKING_DIRECTORY}/key.pem
36
# Key password to use
37
keyPassword: reposilite
38
# Redirect http traffic to https
39
enforceSsl: false
40
41
# Max amount of threads used by core thread pool (min: 5)
42
# The web thread pool handles first few steps of incoming http connections, as soon as possible all tasks are redirected to IO thread pool.
43
webThreadPool: 16
44
# IO thread pool handles all tasks that may benefit from non-blocking IO (min: 2)
45
# Because most of tasks are redirected to IO thread pool, it might be a good idea to keep it at least equal to web thread pool.
46
ioThreadPool: 8
47
# Database thread pool manages open connections to database (min: 1)
48
# Embedded databases such as SQLite or H2 don't support truly concurrent connections, so the value will be always 1 for them if selected.
49
databaseThreadPool: 1
50
# Select compression strategy used by this instance.
51
# Using 'none' reduces usage of CPU & memory, but ends up with higher transfer usage.
52
# GZIP is better option if you're not limiting resources that much to increase overall request times.
53
# Available strategies: none, gzip
54
compressionStrategy: none
55
# Default idle timeout used by Jetty
56
idleTimeout: 30000
57
58
# Adds cache bypass headers to each request from /api/* scope served by this instance.
59
# Helps to avoid various random issues caused by proxy provides (e.g. Cloudflare) and browsers.
60
bypassExternalCache: true
61
# Amount of messages stored in cached logger.
62
cachedLogSize: 50
63
# Enable default frontend with dashboard
64
defaultFrontend: true
65
# Set custom base path for Reposilite instance.
66
# It's not recommended to mount Reposilite under custom base path
67
# and you should always prioritize subdomain over this option.
68
basePath: /
69
# Debug mode
70
debugEnabled: false
71
(-)b/devel/reposilite/files/reposilite.in (+57 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: reposilite
4
# REQUIRE: networking 
5
# KEYWORD: shutdown
6
#
7
# reposilite_enable (bool):
8
#   Default value: "NO"
9
#   Flag that determines whether reposilite is enabled
10
#
11
# reposilite_config (string)
12
#   Default value %%ETCDIR%%/configuration.cdn
13
#   Path to the reposilite configuration file
14
#
15
# reposilite_java_opts (string):
16
#   Default value: ""
17
#   Maximum JVM heap size
18
#
19
# reposilite_args (string):
20
#   Arguments passed to reposilite
21
#   Default is ""
22
#
23
24
. /etc/rc.subr
25
26
name=reposilite
27
rcvar=reposilite_enable
28
load_rc_config $name
29
30
: ${reposilite_enable:="NO"}
31
: ${reposilite_config:="%%ETCDIR%%/configuration.cdn"}
32
: ${reposilite_java_opts:=""}
33
: ${reposilite_args:=""}
34
35
app_pidfile="%%RUNDIR%%/${name}.pid"
36
pidfile="%%RUNDIR%%/daemon.pid"
37
38
command="/usr/sbin/daemon"
39
40
command_args=" \
41
  -c \
42
  -t ${name} \
43
  -r \
44
  -P ${pidfile} \
45
  -p ${app_pidfile} \
46
  --user ${name} \
47
  -S %%LOCALBASE%%/bin/java \
48
  ${reposilite_java_opts} \
49
  -jar %%JAR_FILE%% \
50
  -wd %%WORKDIR%% \
51
  -lcm none \
52
  -lc ${reposilite_config} \
53
  ${reposilite_args}"
54
55
required_files="%%LOCALBASE%%/bin/java ${reposilite_config}"
56
57
run_rc_command "$1"
(-)b/devel/reposilite/pkg-descr (+2 lines)
Added Link Here
1
Lightweight and easy-to-use repository manager for Maven based artifacts in
2
JVM ecosystem.
(-)b/devel/reposilite/pkg-plist (-1 / +7 lines)
Added Link Here
0
- 
1
%%JAR_FILE%%
2
@dir %%DATADIR%%
3
@owner %%REPOSILITE_USER%%
4
@group %%REPOSILITE_GROUP%%
5
@sample %%ETCDIR%%/configuration.cdn.sample
6
@dir %%WORKDIR%%
7
@dir %%RUNDIR%%

Return to bug 273495