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

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 311-317 velbustcpd:*:367: Link Here
311
sshesame:*:368:
311
sshesame:*:368:
312
neo4j:*:369:
312
neo4j:*:369:
313
_wsdd:*:370:
313
_wsdd:*:370:
314
# free: 371
314
reposilite:*:371:
315
# free: 372
315
# free: 372
316
# free: 373
316
# free: 373
317
# free: 374
317
# free: 374
(-)b/UIDs (-1 / +1 lines)
Lines 317-323 velbustcpd:*:367:367::0:0:Velbustcp Deamon:/nonexistent:/usr/sbin/nologin Link Here
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
neo4j:*:369:369::0:0:neo4j Database Daemon:/nonexistent:/usr/sbin/nologin
318
neo4j:*:369:369::0:0:neo4j Database Daemon:/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
reposilite:*:371:371::0:0:Reposilite user:/nonexistent:/usr/sbin/nologin
321
# free: 372
321
# free: 372
322
# free: 373
322
# free: 373
323
# free: 374
323
# free: 374
(-)b/devel/Makefile (+1 lines)
Lines 6380-6385 Link Here
6380
    SUBDIR += remotery
6380
    SUBDIR += remotery
6381
    SUBDIR += replay
6381
    SUBDIR += replay
6382
    SUBDIR += replxx
6382
    SUBDIR += replxx
6383
    SUBDIR += reposilite
6383
    SUBDIR += reproc
6384
    SUBDIR += reproc
6384
    SUBDIR += resolv_wrapper
6385
    SUBDIR += resolv_wrapper
6385
    SUBDIR += revive
6386
    SUBDIR += revive
(-)b/devel/reposilite/Makefile (+56 lines)
Added Link Here
1
PORTNAME=				reposilite
2
DISTVERSION=				3.5.24
3
DISTVERSIONSUFFIX=			-all
4
CATEGORIES=				devel www java
5
MASTER_SITES=				https://maven.reposilite.com/releases/com/reposilite/reposilite/${DISTVERSION}/
6
EXTRACT_SUFX=				.jar
7
EXTRACT_ONLY=
8
9
MAINTAINER=				thorsteinn@isnic.is
10
COMMENT=				Lightweight repository manager for Maven based artifacts
11
WWW=					https://reposilite.com
12
13
LICENSE=				APACHE20
14
15
USES=					java
16
JAVA_VERSION=				11+
17
18
NO_BUILD=				yes
19
NO_ARCH=				yes
20
NO_TEST=				yes
21
USE_RC_SUBR=				${PORTNAME}
22
23
REPOSILITE_WORKDIR=			/var/${PORTNAME}
24
REPOSILITE_LOGDIR=			/var/log/${PORTNAME}
25
REPOSILITE_RUNDIR=			/var/run/${PORTNAME}
26
27
REPOSILITE_USER=			${PORTNAME}
28
REPOSILITE_GROUP=			${REPOSILITE_USER}
29
30
USERS=					${REPOSILITE_USER}
31
GROUPS=					${REPOSILITE_GROUP}
32
33
SUB_LIST=				JARFILE=${JAVAJARDIR}/${DISTNAME}.jar \
34
						JAVA_HOME=${JAVA_HOME} \
35
						USER=${REPOSILITE_USER} \
36
						GROUP=${REPOSILITE_GROUP} \
37
						RUNDIR=${REPOSILITE_RUNDIR} \
38
						LOGDIR=${REPOSILITE_LOGDIR} \
39
						WORKDIR=${REPOSILITE_WORKDIR}
40
41
PLIST_SUB=				JARFILE=${JAVAJARDIR}/${DISTNAME}.jar \
42
						USER=${REPOSILITE_USER} \
43
						GROUP=${REPOSILITE_GROUP} \
44
						RUNDIR=${REPOSILITE_RUNDIR} \
45
						LOGDIR=${REPOSILITE_LOGDIR} \
46
						WORKDIR=${REPOSILITE_WORKDIR}
47
48
do-install:
49
	@${MKDIR} ${STAGEDIR}${ETCDIR}
50
	@${MKDIR} ${STAGEDIR}${REPOSILITE_WORKDIR}
51
	@${MKDIR} ${STAGEDIR}${REPOSILITE_LOGDIR}
52
	@${MKDIR} ${STAGEDIR}${REPOSILITE_RUNDIR}
53
	${INSTALL_DATA} ${FILESDIR}/configuration.cdn.sample ${STAGEDIR}${ETCDIR}/
54
	${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
55
56
.include <bsd.port.mk>
(-)b/devel/reposilite/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1748785224
2
SHA256 (reposilite-3.5.24-all.jar) = 1f2039f5fe0e8376c64dee6111286402dd2397dacb501cc6006c542a0255f58d
3
SIZE (reposilite-3.5.24-all.jar) = 73324890
(-)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 (+64 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: reposilite
4
# REQUIRE: FILESYSTEMS NETWORKING
5
# KEYWORD: shutdown
6
#
7
# reposilite_enable (bool):
8
#   Default value: "NO"
9
#   Flag that determines whether reposilite is enabled
10
#
11
# reposilite_user (string)
12
#   Default value: "%%USER%%"
13
#   User to run reposilite as
14
#
15
# reposilite_group (string)
16
#   Default value: "%%GROUP%%"
17
#   Group to run reposilite as
18
#
19
# reposilite_config (string)
20
#   Default value: "%%ETCDIR%%/configuration.cdn"
21
#   Path to the reposilite configuration file
22
#
23
# reposilite_tinylog_config (string)
24
#   Default value: "-Dtinylog.writerFile.file=%%LOGDIR%%/${name}_{date:yyyy-MM}.log -Dtinylog.writerFile.latest=%%LOGDIR%%/latest.log"
25
#   Java system properties configuring tinylog
26
#
27
# reposilite_java_home (string):
28
#   Default value: "%%JAVA_HOME%%"
29
#   Java VM directory
30
#
31
# reposilite_java_opts (string):
32
#   Default value: ""
33
#   Java VM options
34
#
35
# reposilite_args (string):
36
#   Default value: ""
37
#   Arguments passed to reposilite
38
#
39
40
. /etc/rc.subr
41
42
name=reposilite
43
rcvar=reposilite_enable
44
load_rc_config $name
45
46
: ${reposilite_enable:="NO"}
47
: ${reposilite_user:="%%USER%%"}
48
: ${reposilite_group:="%%GROUP%%"}
49
: ${reposilite_config:="%%ETCDIR%%/configuration.cdn"}
50
: ${reposilite_tinylog_config:="-Dtinylog.writerFile.file=%%LOGDIR%%/${name}_{date:yyyy-MM}.log -Dtinylog.writerFile.latest=%%LOGDIR%%/latest.log"}
51
: ${reposilite_java_home:="%%JAVA_HOME%%"}
52
: ${reposilite_java_opts:=""}
53
: ${reposilite_args:=""}
54
55
app_pidfile="%%RUNDIR%%/${name}.pid"
56
pidfile="%%RUNDIR%%/daemon.pid"
57
58
command="/usr/sbin/daemon"
59
60
command_args="-f -c -t ${name} -r -R 5 -P ${pidfile} -p ${app_pidfile} -o %%LOGDIR%%/daemon.log ${reposilite_java_home}/bin/java ${reposilite_tinylog_config} ${reposilite_java_opts} -jar %%JARFILE%% -wd %%WORKDIR%% -lcm none -lc ${reposilite_config} ${reposilite_args}"
61
62
required_files="${reposilite_config}"
63
64
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 / +8 lines)
Added Link Here
0
- 
1
%%JARFILE%%
2
@owner %%USER%%
3
@group %%GROUP%%
4
@sample %%ETCDIR%%/configuration.cdn.sample
5
@dir %%ETCDIR%%
6
@dir %%WORKDIR%%
7
@dir %%LOGDIR%%
8
@dir %%RUNDIR%%

Return to bug 273495