blob: 32befbacb08109c1de5cb2f7640323c9d4c3248b (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# New ports collection makefile for: sabnzdbplus
# Date created: January 2008
# Whom: Daniel Bretoi
#
# $FreeBSD$
#
PORTNAME= sabnzbdplus
PORTVERSION= 0.5.6
PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/sabnzbd-${PORTVERSION}
DISTNAME= SABnzbd-${PORTVERSION}-src
MAINTAINER= daniel@netwalk.org
COMMENT= A web-interface based binary newsgrabber in python, with nzb support
RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \
${PYTHON_SITELIBDIR}/cherrypy/__init__.py:${PORTSDIR}/www/py-cherrypy \
${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils
LICENSE= GPLv2
USE_PYTHON= 2.4+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION}
PLIST_SUB= PORTNAME=${PORTNAME}
SUB_LIST+= PORTNAME=${PORTNAME}
SUB_FILES= pkg-message
USE_RC_SUBR= sabnzbd
CONFLICTS= sabzndb-0.*
USERS= _sabnzbd
GROUPS= _sabnzbd
OPTIONS= PAR2CMDLINE "Required for postprocessing of par files." on \
UNRAR "Often required for unpacking many downloads." on \
FEEDPARSER "rss-feed support." on \
YENC "yenc support." on \
OPENSSL "SSL support" on
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
.endif
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.if !defined(WITHOUT_PAR2CMDLINE)
RUN_DEPENDS+= par2repair:${PORTSDIR}/archivers/par2cmdline
.endif
.if !defined(WITHOUT_FEEDPARSER)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl
.endif
.if !defined(WITHOUT_YENC)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_yenc.so:${PORTSDIR}/news/py-yenc
.endif
.if !defined(WITHOUT_OPENSSL)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser
.endif
.if !defined(WITHOUT_UNRAR)
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
.endif
post-patch:
@${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \
${WRKSRC}/SABnzbd.py
@${REINPLACE_CMD} -e "s:%%PREFIX%%:'${DATADIR}':g" \
${WRKSRC}/SABnzbd.py
# the NO_BUILD option stops execution after configure. This should really be
# post-build
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/SABnzbd.py ${PREFIX}/bin/SABnzbd.py
${INSTALL} -d ${PYTHONPREFIX_SITELIBDIR}/
${CP} -rp ${WRKSRC}/sabnzbd ${PYTHONPREFIX_SITELIBDIR}/
${INSTALL} -d ${DATADIR}
${CP} -rp ${WRKSRC}/interfaces ${DATADIR}
${CP} -rp ${WRKSRC}/language ${DATADIR}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in CHANGELOG.txt INSTALL.txt ISSUES.txt LICENSE.txt README.txt
${CP} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif
${MKDIR} ${PREFIX}/sabnzbd
${CHOWN} _sabnzbd:_sabnzbd ${PREFIX}/sabnzbd
@${CAT} ${WRKDIR}/pkg-message
.include <bsd.port.post.mk>
|