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

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 255-261 _arti:*:311: Link Here
255
_sphinx:*:312:
255
_sphinx:*:312:
256
_fastdfs:*:313:
256
_fastdfs:*:313:
257
promscale:*:314:
257
promscale:*:314:
258
# free: 315
258
airdcpp:*:315:
259
# free: 316
259
# free: 316
260
# free: 317
260
# free: 317
261
# free: 318
261
# free: 318
(-)b/UIDs (-1 / +1 lines)
Lines 260-266 _arti:*:311:311::0:0:Arti Daemon:/nonexistent:/usr/sbin/nologin Link Here
260
_sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/usr/sbin/nologin
260
_sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/usr/sbin/nologin
261
_fastdfs:*:313:313::0:0:FastDFS Owner:/nonexistent:/usr/sbin/nologin
261
_fastdfs:*:313:313::0:0:FastDFS Owner:/nonexistent:/usr/sbin/nologin
262
promscale:*:314:314::0:0:Promscale:/nonexistent:/usr/sbin/nologin
262
promscale:*:314:314::0:0:Promscale:/nonexistent:/usr/sbin/nologin
263
# free: 315
263
airdcpp:*:315:315::0:0:Airdc++ WebClient Daemon:/nonexistent:/usr/sbin/nologin
264
# free: 316
264
# free: 316
265
# free: 317
265
# free: 317
266
# free: 318
266
# free: 318
(-)b/net-p2p/airdcpp-webclient/Makefile (+66 lines)
Added Link Here
1
# Created by: Venim <ven1m@protonmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	airdcpp-webclient
5
DISTVERSION=	2.11.3
6
CATEGORIES=	net-p2p
7
MASTER_SITES=	https://airdcpp-web.github.io/
8
9
MAINTAINER=	ven1m@protonmail.com
10
COMMENT=	Peer-to-peer file sharing application for file servers/NAS devices
11
12
LICENSE=	MIT
13
14
BUILD_DEPENDS=	websocketpp>=0.7.0:devel/websocketpp
15
LIB_DEPENDS=	libboost_regex.so:devel/boost-libs \
16
		libboost_system.so:devel/boost-libs \
17
		libboost_thread.so:devel/boost-libs \
18
		libleveldb.so:databases/leveldb \
19
		libmaxminddb.so:net/libmaxminddb \
20
		libminiupnpc.so:net/miniupnpc
21
RUN_DEPENDS=	airdcpp-webui>=${DISTVERSION}:net-p2p/airdcpp-webui
22
23
USES=		cmake compiler:c++11-lang iconv pkgconfig python ssl
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	airdcpp-web
26
USE_LDCONFIG=	yes
27
USE_RC_SUBR=	airdcppd
28
29
CMAKE_OFF=	INSTALL_WEB_UI
30
ALL_TARGET=	all
31
32
ETCDIR?=	${PREFIX}/etc/airdcpp
33
DATADIR?=	${PREFIX}/share/airdcpp
34
35
USERS=		airdcpp
36
GROUPS=		airdcpp
37
38
_AIRDCPP_RUNDIR?=	/var/run/airdcppd
39
40
BINARY_ALIAS=	python=${PYTHON_CMD}
41
SUB_FILES=	dcppboot.xml pkg-message
42
SUB_LIST+=	AIRDCPP_GROUP=${GROUPS} \
43
		AIRDCPP_RUNDIR=${_AIRDCPP_RUNDIR} \
44
		AIRDCPP_USER=${USERS}
45
PLIST_SUB=	${SUB_LIST} \
46
		DISTVERSION=${DISTVERSION}
47
48
OPTIONS_DEFINE=	NATPMP TBB
49
NATPMP_DESC=	Optional NAT-PMP support
50
TBB_DESC=	Optional Intel Threading Building Blocks (TBB) support
51
52
NATPMP_LIB_DEPENDS=	libnatpmp.so:net/libnatpmp
53
NATPMP_CONFIGURE_WITH=	natpmp
54
TBB_LIB_DEPENDS=	libtbb.so:devel/tbb
55
TBB_CONFIGURE_WITH=	tbb
56
57
post-install:
58
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/airdcppd \
59
		${STAGEDIR}${PREFIX}/lib/libairdcpp.so.${DISTVERSION} \
60
		${STAGEDIR}${PREFIX}/lib/libairdcpp-webapi.so.${DISTVERSION}
61
62
	${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${_AIRDCPP_RUNDIR}
63
64
	${INSTALL_DATA} ${WRKDIR}/dcppboot.xml ${STAGEDIR}${ETCDIR}/dcppboot.xml.sample
65
66
.include <bsd.port.mk>
(-)b/net-p2p/airdcpp-webclient/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1670437007
2
SHA256 (airdcpp-web-airdcpp-webclient-2.11.3_GH0.tar.gz) = 64c2ccdcaf352a38bdeb88632d43e9cebf879fef52b6f445f4752193b1ef7dd3
3
SIZE (airdcpp-web-airdcpp-webclient-2.11.3_GH0.tar.gz) = 957277
(-)b/net-p2p/airdcpp-webclient/files/airdcppd.in (+32 lines)
Added Link Here
1
#!/bin/sh
2
3
#
4
# PROVIDE: airdcppd
5
# REQUIRE: DAEMON
6
# BEFORE:  LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# airdcppd_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable airdcppd.
14
15
. /etc/rc.subr
16
17
name="airdcppd"
18
rcvar="${name}_enable"
19
load_rc_config "${name}"
20
21
: ${airdcppd_enable:="NO"}
22
: ${airdcppd_user:="%%AIRDCPP_USER%%"}
23
: ${airdcppd_group:="%%AIRDCPP_GROUP%%"}
24
: ${airdcppd_umask:="0002"}
25
26
command="%%PREFIX%%/bin/${name}"
27
pidfile="%%AIRDCPP_RUNDIR%%/${name}.pid"
28
29
command_args="-d -p=${pidfile}"
30
31
umask ${airdcppd_umask}
32
run_rc_command "$1"
(-)b/net-p2p/airdcpp-webclient/files/dcppboot.xml.in (+13 lines)
Added Link Here
1
<Boot>
2
    <!--
3
    ConfigPath specifies where settings, queue and other runtime data should be saved.
4
    You may use the following variables, which are interpreted on a per-user basis:
5
6
    %[HOME] - User's home directory, typically /home/<username>/
7
8
    All % variables from strftime with the current time:
9
    http://www.cplusplus.com/reference/ctime/strftime/
10
11
    -->
12
    <ConfigPath>%%PREFIX%%/etc/airdcpp/</ConfigPath>
13
</Boot>
(-)b/net-p2p/airdcpp-webclient/files/patch-scripts_generate__version.sh (+11 lines)
Added Link Here
1
--- scripts/generate_version.sh.orig	2021-08-04 04:07:43 UTC
2
+++ scripts/generate_version.sh
3
@@ -12,7 +12,7 @@ versionDate=`date +%s`
4
 commitCount=0
5
 
6
 #check if we have a repository
7
-git ls-remote > /dev/null 2>&1
8
+false
9
 if [ $? -ne 0 ];then
10
   echo '-- Not using a Git version'
11
 elif [ `git rev-parse --abbrev-ref HEAD` != "master" ];then
(-)b/net-p2p/airdcpp-webclient/files/pkg-message.in (+12 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
  Before first launch the following command needs to be run
5
  in order to setup user and web server ports
6
 
7
  su -m %%AIRDCPP_USER%% -c "airdcppd -c=%%ETCDIR%% --configure"
8
9
  To enable the service, add airdcppd_enable=YES to rc.conf
10
EOM
11
}
12
]
(-)b/net-p2p/airdcpp-webclient/pkg-descr (+6 lines)
Added Link Here
1
AirDC++ Web Client is a locally installed application, which is designed
2
for frequent sharing of files or directories within groups of people in
3
a local network or over internet. The daemon application can be installed
4
on different types of systems, such as on file servers and NAS devices.
5
6
WWW: https://airdcpp-web.github.io/
(-)b/net-p2p/airdcpp-webclient/pkg-plist (+5 lines)
Added Link Here
1
bin/airdcppd
2
lib/libairdcpp-webapi.so.%%DISTVERSION%%
3
lib/libairdcpp.so.%%DISTVERSION%%
4
@sample(%%AIRDCPP_USER%%,%%AIRDCPP_GROUP%%,0644) etc/airdcpp/dcppboot.xml.sample
5
@dir(,%%AIRDCPP_GROUP%%,0775) %%AIRDCPP_RUNDIR%%
(-)b/net-p2p/airdcpp-webui/Makefile (+54 lines)
Added Link Here
1
# Created by: Venim <ven1m@protonmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	airdcpp-webui
5
DISTVERSION=	2.11.4
6
CATEGORIES=	net-p2p
7
MASTER_SITES=	https://airdcpp-web.github.io/
8
9
MAINTAINER=	ven1m@protonmail.com
10
COMMENT=	AirDC++ Web UI
11
12
LICENSE=	MIT
13
14
FETCH_DEPENDS=	npm>=3:www/npm
15
RUN_DEPENDS=	npm>=3:www/npm
16
17
USES=		tar:tgz
18
19
DATADIR?=	${PREFIX}/share/airdcpp
20
21
NO_BUILD=	yes
22
23
do-fetch:
24
	@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DISTFILES}" ]; then \
25
		${ECHO_MSG} "===> Fetching AirDC++ WebUI from NPM." && \
26
		${MKDIR} ${WRKDIR} && \
27
		(cd ${WRKDIR} && npm install --loglevel=error --ignore-scripts --prefix . ${PORTNAME}@${DISTVERSION}) && \
28
		(mv ${WRKDIR}/node_modules/${PORTNAME} ${WRKSRC}) && \
29
		${ECHO_MSG} "===> Compressing files" && \
30
		(cd ${WRKDIR} && ${FIND} ${DISTNAME} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
31
			${FIND} ${DISTNAME} -print0 | LC_ALL=C ${SORT} -z | \
32
			${TAR} czf ${DISTDIR}/${DISTFILES} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T -) && \
33
		${RM} -r ${WRKDIR}; \
34
	fi
35
	#@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DISTFILES}" ]; then \
36
		${ECHO_MSG} "===> Fetching AirDC++ WebUI from NPM." && \
37
		${MKDIR} ${WRKDIR} && \
38
		(cd ${WRKDIR} && npm install --loglevel=error --ignore-scripts --prefix . ${PORTNAME}@${DISTVERSION}) && \
39
		(mv ${WRKDIR}/node_modules/${PORTNAME} ${WRKSRC}) && \
40
		${ECHO_MSG} "===> Compressing files" && \
41
		(cd ${WRKDIR} && ${FIND} ${DISTNAME} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
42
			${FIND} ${DISTNAME} -print0 | LC_ALL=C ${SORT} -z | \
43
			${TAR} czf ${DISTDIR}/${DISTFILES} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T -) && \
44
		${RM} -r ${WRKDIR}; \
45
	fi
46
47
do-install:
48
	@${MKDIR} ${STAGEDIR}${DATADIR}/web-resources
49
	@(cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/web-resources)
50
51
	(cd ${STAGEDIR}${DATADIR}; ${FIND} . -type f) | ${SORT} | \
52
		${SED} -e 's,^\.,${DATADIR_REL},' >> ${TMPPLIST}
53
54
.include <bsd.port.mk>
(-)b/net-p2p/airdcpp-webui/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1670588981
2
SHA256 (airdcpp-webui-2.11.4.tgz) = e48b1f1b617e1b2e33729a292ef6491f0417080383f06da5d46cb1677d4a91a5
3
SIZE (airdcpp-webui-2.11.4.tgz) = 8815283
(-)b/net-p2p/airdcpp-webui/pkg-descr (+1 lines)
Added Link Here
1
AirDC++ Web UI written in Javascript. Communicates with AirDC++ Core via AirDC++ Web API.

Return to bug 252013