mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
- Fix changes accidentally dropped in last commit
- Bump PORTREVISION just in case Pointyhat to: swills Reported by: ak
This commit is contained in:
parent
280c1cb5d6
commit
3587a4abf8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312451
@ -1,20 +1,20 @@
|
|||||||
|
# Created by: Lewis Thompson <purple@lewiz.net>
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= nzbget
|
PORTNAME= nzbget
|
||||||
PORTVERSION= 9.1
|
PORTVERSION= 9.1
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= news
|
CATEGORIES= news
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= toxic@doobie.com
|
MAINTAINER= toxic@doobie.com
|
||||||
COMMENT= A binary newsreader supporting NZB files
|
COMMENT= Binary newsreader supporting NZB files
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
||||||
|
|
||||||
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
|
LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 \
|
||||||
sigc-2:${PORTSDIR}/devel/libsigc++20
|
sigc-2:${PORTSDIR}/devel/libsigc++20
|
||||||
|
|
||||||
USE_RC_SUBR= nzbget
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
||||||
MAKE_JOBS_UNSAFE=yes
|
MAKE_JOBS_UNSAFE=yes
|
||||||
@ -23,35 +23,41 @@ LDFLAGS+= ${PTHREAD_LIBS}
|
|||||||
CFLAGS+= ${PTHREAD_CFLAGS}
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
|
|
||||||
OPTIONS_DEFINE= PARCHECK GNUTLS OPENSSL
|
PAR_DESC= Support verifying/repairing with par2 files
|
||||||
OPTIONS_DEFAULT= PARCHECK GNUTLS
|
OPTIONS_DEFINE= PAR
|
||||||
PARCHECK_DESC= Enable autopar/parcheck
|
OPTIONS_SINGLE= TLSLIB
|
||||||
|
OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL
|
||||||
|
OPTIONS_DEFAULT= PAR GNUTLS
|
||||||
|
|
||||||
PORTDOCS= README
|
PORTDOCS= README
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPARCHECK}
|
.if ${PORT_OPTIONS:MPAR}
|
||||||
CONFIGURE_ARGS+= --enable-parcheck
|
CONFIGURE_ARGS+= --enable-parcheck --disable-libpar2-bugfixes-check
|
||||||
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
|
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+= --without-parcheck
|
CONFIGURE_ARGS+= --disable-parcheck
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MOPENSSL}
|
.if ${PORT_OPTIONS:MOPENSSL}
|
||||||
CONFIGURE_ARGS+= --with-tlslib=OpenSSL
|
CONFIGURE_ARGS+= --with-tlslib=OpenSSL
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MGNUTLS}
|
.if ${PORT_OPTIONS:MGNUTLS}
|
||||||
CONFIGURE_ARGS+= --with-tlslib=GnuTLS
|
CONFIGURE_ARGS+= --with-tlslib=GnuTLS
|
||||||
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
||||||
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/nzbget.conf ${PREFIX}/etc/nzbget.conf.sample
|
||||||
|
@[ -f ${PREFIX}/etc/nzbget.conf ] || ${CP} ${PREFIX}/etc/nzbget.conf.sample \
|
||||||
|
${PREFIX}/etc/nzbget.conf
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
${MKDIR} ${DOCSDIR}
|
${MKDIR} ${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -37,3 +37,6 @@ sbin/nzbgetd
|
|||||||
@dirrm %%DATADIR%%/webui
|
@dirrm %%DATADIR%%/webui
|
||||||
@dirrm %%DATADIR%%/webui/img
|
@dirrm %%DATADIR%%/webui/img
|
||||||
@dirrm %%DATADIR%%/webui/lib
|
@dirrm %%DATADIR%%/webui/lib
|
||||||
|
etc/nzbget.conf.sample
|
||||||
|
@unexec if cmp -s %D/etc/nzbget.conf %D/etc/nzbget.conf.sample; then rm -f %D/etc/nzbget.conf; fi
|
||||||
|
@exec [ -f %D/etc/nzbget.conf ] || cp %D/etc/nzbget.conf.sample %D/etc/nzbget.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user