blob: c3343bdd2f2a6ce56d32aba068972aa551458762 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: ultima <ultima1252@gmail.com>
# $FreeBSD$
PORTNAME= plexWatch
PORTVERSION= 0.3.3
DISTVERSIONPREFIX= v
CATEGORIES= multimedia
MAINTAINER= ultima1252@gmail.com
COMMENT= Notify, Log Now Playing and Watched content from a Plex Media Server
RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-Time-Duration>=0:${PORTSDIR}/devel/p5-Time-Duration \
p5-Time-modules>=0:${PORTSDIR}/devel/p5-Time-modules \
p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https
USES= perl5 shebangfix
SHEBANG_FILES= plexWatch.pl
USE_GITHUB= yes
GH_ACCOUNT= ljunkie
NO_BUILD= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= EMAIL GNTP IPLOG TWITTER
OPTIONS_DEFAULT=
EMAIL_RUN_DEPENDS= p5-Net-SMTPS>=0:${PORTSDIR}/mail/p5-Net-SMTPS
EMAIL_DESC= Email support
GNTP_RUN_DEPENDS= p5-Growl-GNTP>=0:${PORTSDIR}/net/p5-Growl-GNTP
GNTP_DESC= Growl GNTP support
IPLOG_RUN_DEPENDS= p5-File-ReadBackwards>=0:${PORTSDIR}/devel/p5-File-ReadBackwards
IPLOG_DESC= Client IP logging support
TWITTER_RUN_DEPENDS= p5-Net-Twitter-Lite>=0:${PORTSDIR}/net/p5-Net-Twitter-Lite \
p5-Net-OAuth>=0:${PORTSDIR}/net/p5-Net-OAuth
TWITTER_DESC= Twitter support
post-patch:
${REINPLACE_CMD} "s|%%ETCDIR%%|${ETCDIR}|" ${WRKSRC}/plexWatch.pl
${REINPLACE_CMD} "s|/opt/plexWatch|${DATADIR}|" ${WRKSRC}/config.pl-dist
do-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${MKDIR} -m 777 ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/plexWatch.pl ${STAGEDIR}${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/config.pl-dist ${STAGEDIR}${ETCDIR}/
.include <bsd.port.mk>
|