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

Collapse All | Expand All

(-)audio/spotifyd/Makefile (-2 / +5 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	spotifyd
3
PORTNAME=	spotifyd
4
DISTVERSION=	0.2.9
4
DISTVERSION=	0.2.9
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	audio
6
CATEGORIES=	audio
7
7
8
MAINTAINER=	tobik@FreeBSD.org
8
MAINTAINER=	tobik@FreeBSD.org
Lines 20-25 GH_TUPLE= plietar:dns-parser:1d3e5a5591bc72eb061c23bd426c4a25f2f73791:dnsparser Link Here
20
		librespot-org:librespot:5d2cb32e20815f3b7879962e8af2fb9ef4c3870d:librespot \
20
		librespot-org:librespot:5d2cb32e20815f3b7879962e8af2fb9ef4c3870d:librespot \
21
		plietar:rust-mdns:66a74033da6c9f1a06e7b0a29f4544fd189d6479:mdns \
21
		plietar:rust-mdns:66a74033da6c9f1a06e7b0a29f4544fd189d6479:mdns \
22
		plietar:rust-tremor:5958cc302e78f535dad90e9665da981ddff4000a:tremor
22
		plietar:rust-tremor:5958cc302e78f535dad90e9665da981ddff4000a:tremor
23
USE_RC_SUBR=	${PORTNAME}
23
24
24
CARGO_CRATES=	adler32-1.0.3 \
25
CARGO_CRATES=	adler32-1.0.3 \
25
		advapi32-sys-0.2.0 \
26
		advapi32-sys-0.2.0 \
Lines 337-343 CARGO_BUILD_ARGS= --no-default-features Link Here
337
CARGO_INSTALL_ARGS=	--no-default-features
338
CARGO_INSTALL_ARGS=	--no-default-features
338
CARGO_TEST_ARGS=	--no-default-features
339
CARGO_TEST_ARGS=	--no-default-features
339
340
340
PLIST_FILES=	bin/spotifyd
341
PLIST_FILES=	bin/spotifyd \
342
		"@sample etc/spotifyd.conf.sample"
341
PORTDOCS=	README.md
343
PORTDOCS=	README.md
342
344
343
OPTIONS_DEFINE=		DBUS DOCS PORTAUDIO PULSEAUDIO
345
OPTIONS_DEFINE=		DBUS DOCS PORTAUDIO PULSEAUDIO
Lines 359-364 post-patch: Link Here
359
361
360
post-install:
362
post-install:
361
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotifyd
363
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotifyd
364
	${INSTALL_DATA} ${FILESDIR}/spotifyd.conf ${STAGEDIR}${PREFIX}/etc/spotifyd.conf.sample
362
365
363
post-install-DOCS-on:
366
post-install-DOCS-on:
364
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
367
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)audio/spotifyd/files/spotifyd.conf (+3 lines)
Added Link Here
1
[global]
2
username = user
3
password = pass
(-)audio/spotifyd/files/spotifyd.in (+40 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: spotifyd
4
# REQUIRE: DAEMON NETWORKING
5
# KEYWORD: shutdown
6
7
#
8
# Add the following lines to /etc/rc.conf.local, /etc/rc.conf or
9
# /etc/rc.conf.d/spotifyd to enable this service:
10
#
11
# spotifyd_enable (bool):       Set to NO by default.
12
#                               Set it to "YES" to enable spotifyd.
13
# spotifyd_config (str):        Set to $PREFIX/etc/spotifyd.conf by default.
14
#                               Path to configuration file.
15
# spotifyd_user (str):          Set to "nobody" by default.
16
#                               User to run spotifyd
17
18
. /etc/rc.subr
19
20
name=spotifyd
21
rcvar=spotifyd_enable
22
start_precmd="${name}_precmd"
23
24
load_rc_config $name
25
26
: ${spotifyd_enable:="NO"}
27
: ${spotifyd_config:="%%PREFIX%%/etc/spotifyd.conf"}
28
: ${spotifyd_user:="nobody"}
29
30
pidfile="/var/run/${name}/${name}.pid"
31
procname="%%PREFIX%%/bin/${name}"
32
command="/usr/sbin/daemon"
33
command_args="-S -m 3 -s info -l daemon -p ${pidfile} ${procname} --no-daemon -c ${spotifyd_config} ${spotifyd_args}"
34
35
spotifyd_precmd()
36
{
37
	/usr/bin/install -d -m 0755 -o ${spotifyd_user} /var/run/${name}
38
}
39
40
run_rc_command "$1"

Return to bug 239465