FreeBSD Bugzilla – Attachment 244556 Details for
Bug 273495
[NEW PORT] devel/reposilite: repository manager for Maven based artifacts in JVM ecosystem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add new port devel/reposilite, fixed portlint issues
0002-Add-new-port-devel-reposilite.patch (text/plain), 6.12 KB, created by
Einar Bjarni Halldórsson
on 2023-09-01 11:15:54 UTC
(
hide
)
Description:
Add new port devel/reposilite, fixed portlint issues
Filename:
MIME Type:
Creator:
Einar Bjarni Halldórsson
Created:
2023-09-01 11:15:54 UTC
Size:
6.12 KB
patch
obsolete
>From 2ccf9ddd4eecfbf8ab4d8257b94b5fca1d312dd6 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Einar=20Bjarni=20Halld=C3=B3rsson?= <einar@isnic.is> >Date: Fri, 1 Sep 2023 11:12:38 +0000 >Subject: [PATCH] Add new port, devel/reposilite > >--- > GIDs | 2 +- > UIDs | 2 +- > devel/Makefile | 1 + > devel/reposilite/Makefile | 38 ++++++++++++++ > devel/reposilite/distinfo | 3 ++ > devel/reposilite/files/reposilite.in | 75 ++++++++++++++++++++++++++++ > devel/reposilite/pkg-descr | 2 + > devel/reposilite/pkg-plist | 1 + > 8 files changed, 122 insertions(+), 2 deletions(-) > create mode 100644 devel/reposilite/Makefile > create mode 100644 devel/reposilite/distinfo > create mode 100644 devel/reposilite/files/reposilite.in > create mode 100644 devel/reposilite/pkg-descr > create mode 100644 devel/reposilite/pkg-plist > >diff --git a/GIDs b/GIDs >index 92053d2e8a01..fbca05857bdb 100644 >--- a/GIDs >+++ b/GIDs >@@ -797,7 +797,7 @@ p0f:*:852: > _geodns:*:853: > ebusd:*:854: > opensearch:*:855: >-# free: 856 >+reposilite:*:856: > # free: 857 > # free: 858 > # free: 859 >diff --git a/UIDs b/UIDs >index 37c8a75bed22..2ab30da174e2 100644 >--- a/UIDs >+++ b/UIDs >@@ -803,7 +803,7 @@ p0f:*:852:852::0:0:p0f unprivileged user:/var/empty:/usr/sbin/nologin > _geodns:*:853:853::0:0:GeoDNS User:/var/empty:/usr/sbin/nologin > ebusd:*:854:854::0:0:eBUS Daemon user:/nonexistent:/usr/sbin/nologin > opensearch:*:855:855::0:0:opensearch user:/nonexistent:/usr/sbin/nologin >-# free: 856 >+reposilite:*:856:856::0:0:reposilite user:/nonexistent:/usr/sbin/nologin > # free: 857 > # free: 858 > # free: 859 >diff --git a/devel/Makefile b/devel/Makefile >index b97c13c8680e..e0328f239ed3 100644 >--- a/devel/Makefile >+++ b/devel/Makefile >@@ -5957,6 +5957,7 @@ > SUBDIR += remotery > SUBDIR += replay > SUBDIR += replxx >+ SUBDIR += reposilite > SUBDIR += reproc > SUBDIR += resolv_wrapper > SUBDIR += revive >diff --git a/devel/reposilite/Makefile b/devel/reposilite/Makefile >new file mode 100644 >index 000000000000..3e9527b66bec >--- /dev/null >+++ b/devel/reposilite/Makefile >@@ -0,0 +1,38 @@ >+PORTNAME= reposilite >+PORTVERSION= 3.4.8 >+CATEGORIES= devel java >+MASTER_SITES= https://maven.reposilite.com/releases/com/reposilite/reposilite/${PORTVERSION}/ >+DISTNAME= ${PORTNAME}-${PORTVERSION}-all.jar >+EXTRACT_SUFX= >+ >+MAINTAINER= einar@isnic.is >+COMMENT= Repository manager for Maven based artifacts >+WWW= https://reposilite.com >+ >+LICENSE= APACHE20 >+ >+USE_JAVA= yes >+NO_BUILD= yes >+JAVA_VERSION= 11+ >+JAVA_RUN= yes >+STRIP= # none >+USE_RC_SUBR= reposilite >+ >+DATADIR= ${JAVASHAREDIR}/${PORTNAME} >+ >+REPOSILITEUSER?= reposilite >+REPOSILITEGROUP?= ${REPOSILITEUSER} >+USERS= ${REPOSILITEUSER} >+GROUPS= ${REPOSILITEGROUP} >+ >+SUB_LIST= JAVA_HOME=${JAVA_HOME} >+ >+do-extract: >+ @${MKDIR} ${WRKDIR}/${DISTNAME} >+ @${CP} ${DISTDIR}/${DISTNAME} ${WRKDIR}/${DISTNAME} >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${DATADIR} >+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${DISTNAME} ${STAGEDIR}${DATADIR}/${PORTNAME}.jar >+ >+.include <bsd.port.mk> >diff --git a/devel/reposilite/distinfo b/devel/reposilite/distinfo >new file mode 100644 >index 000000000000..a0844f6ae4bf >--- /dev/null >+++ b/devel/reposilite/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1693233656 >+SHA256 (reposilite-3.4.8-all.jar) = ae28f74d65e258981c6961cc2b56eb60016c09932b885f69c844be240f05fd5d >+SIZE (reposilite-3.4.8-all.jar) = 70903797 >diff --git a/devel/reposilite/files/reposilite.in b/devel/reposilite/files/reposilite.in >new file mode 100644 >index 000000000000..a409dd96464e >--- /dev/null >+++ b/devel/reposilite/files/reposilite.in >@@ -0,0 +1,75 @@ >+#!/bin/sh >+# >+# PROVIDE: reposilite >+# REQUIRE: networking >+ >+# reposilite_enable (bool): >+# Default value: "NO" >+# Flag that determines whether reposilite is enabled >+# >+# reposilite_user (username): >+# Default value: "reposilite" >+# Name of the reposilite user account >+# >+# reposilite_group (group): >+# Default value: "reposilite" >+# Name of the reposilite group >+# >+# reposilite_config (string) >+# Default value %%ETCDIR%%/configuration.cdn >+# Path to the reposilite configuration file >+# >+# reposilite_max_mem (string): >+# Default value: 32M >+# Maximum JVM heap size >+# >+# reposilite_dir (string): >+# Default value: %%DATADIR%% >+# Path to the reposilite installation. >+# >+# reposilite_run_dir (string): >+# Default value: /var/run >+# Path to the reposilite run folder. >+# >+# reposilite_java_home (path): >+# Default value: %%JAVA_HOME%% >+# Set it to the root of the JDK to use. >+# >+# reposilite_flags (string): >+# Flags passed to reposilite >+# Default is "" >+# >+ >+. /etc/rc.subr >+ >+name=reposilite >+rcvar=reposilite_enable >+load_rc_config $name >+ >+: ${reposilite_enable:="NO"} >+: ${reposilite_config:="%%ETCDIR%%/configuration.cdn"} >+: ${reposilite_dir:="%%DATADIR%%"} >+: ${reposilite_max_mem:="32M"} >+: ${reposilite_run_dir:="/var/run/reposilite"} >+: ${reposilite_group:="reposilite"} >+: ${reposilite_java_home:="%%JAVA_HOME%%"} >+: ${reposilite_user:="reposilite"} >+: ${reposilite_cmd:="/usr/local/bin/java -Xmx${reposilite_max_mem} -jar ${reposilite_dir}/reposilite.jar"} >+: ${reposilite_args:=""} >+ >+command="/usr/sbin/daemon" >+ >+command_args="-P ${reposilite_run_dir}/${name}.pid -p ${reposilite_run_dir}/daemon.pid -S ${reposilite_cmd} ${reposilite_args}" >+ >+export JAVA_HOME=${reposilite_java_home} >+ >+required_files="%%LOCALBASE%%/bin/java ${reposilite_config}" >+ >+reposilite_precmd() { >+ install -d -o ${reposilite_user} -g ${reposilite_group} -m 750 "${reposilite_dir}" >+ install -d -o ${reposilite_user} -g ${reposilite_group} -m 750 "${reposilite_run_dir}" >+} >+ >+start_precmd="reposilite_precmd" >+ >+run_rc_command "$1" >diff --git a/devel/reposilite/pkg-descr b/devel/reposilite/pkg-descr >new file mode 100644 >index 000000000000..a3d368b58b52 >--- /dev/null >+++ b/devel/reposilite/pkg-descr >@@ -0,0 +1,2 @@ >+Lightweight and easy-to-use repository manager for Maven based artifacts >+in JVM ecosystem >diff --git a/devel/reposilite/pkg-plist b/devel/reposilite/pkg-plist >new file mode 100644 >index 000000000000..cef9d60284e9 >--- /dev/null >+++ b/devel/reposilite/pkg-plist >@@ -0,0 +1 @@ >+%%DATADIR%%/reposilite.jar >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273495
:
244554
| 244556