1
0
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:
Steve Wills 2013-02-17 21:27:02 +00:00
parent 280c1cb5d6
commit 3587a4abf8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312451
2 changed files with 26 additions and 17 deletions

View File

@ -1,20 +1,20 @@
# Created by: Lewis Thompson <purple@lewiz.net>
# $FreeBSD$
PORTNAME= nzbget
PORTVERSION= 9.1
PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
MAINTAINER= toxic@doobie.com
COMMENT= A binary newsreader supporting NZB files
COMMENT= Binary newsreader supporting NZB files
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
USE_RC_SUBR= nzbget
GNU_CONFIGURE= yes
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
MAKE_JOBS_UNSAFE=yes
@ -23,35 +23,41 @@ LDFLAGS+= ${PTHREAD_LIBS}
CFLAGS+= ${PTHREAD_CFLAGS}
USE_GMAKE= yes
OPTIONS_DEFINE= PARCHECK GNUTLS OPENSSL
OPTIONS_DEFAULT= PARCHECK GNUTLS
PARCHECK_DESC= Enable autopar/parcheck
PAR_DESC= Support verifying/repairing with par2 files
OPTIONS_DEFINE= PAR
OPTIONS_SINGLE= TLSLIB
OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL
OPTIONS_DEFAULT= PAR GNUTLS
PORTDOCS= README
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPARCHECK}
CONFIGURE_ARGS+= --enable-parcheck
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
.if ${PORT_OPTIONS:MPAR}
CONFIGURE_ARGS+= --enable-parcheck --disable-libpar2-bugfixes-check
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
.else
CONFIGURE_ARGS+= --without-parcheck
CONFIGURE_ARGS+= --disable-parcheck
.endif
.if ${PORT_OPTIONS:MOPENSSL}
CONFIGURE_ARGS+= --with-tlslib=OpenSSL
CONFIGURE_ARGS+= --with-tlslib=OpenSSL
.endif
.if ${PORT_OPTIONS:MGNUTLS}
CONFIGURE_ARGS+= --with-tlslib=GnuTLS
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+= --with-tlslib=GnuTLS
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
.endif
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}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -37,3 +37,6 @@ sbin/nzbgetd
@dirrm %%DATADIR%%/webui
@dirrm %%DATADIR%%/webui/img
@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