From f791c3f7f2933cd5740013cc5ea8b9b34b0542bf Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sun, 30 Sep 2001 10:31:45 +0000 Subject: Support new Options: SUCK_WITH_SSL=yes or WITH_SSL=yes Update URL's. Thanks to -- Changes from Suck-4.2.5 -> Suck-4.3.0 * As of this version, my e-mail address has changed from from bobyetman@worldnet.att.net to bobyetman@home.com * changes to allow it to use SSL. * rpost.c - added -i option, to ignore the readonly opening response and try to post anyway, since inn-2.3, when using authinfo, still sends 201 code meaning readonly. - do_authenticate() - added print statements to show start of, and successful completion of authentication. * suck.c - get_one_article_kill() - add test for header_only mode when in stdout mode to not download the body. - get_one_article(), get_articles() - added -bP option, to post articles during download. --- news/suck/Makefile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'news/suck/Makefile') diff --git a/news/suck/Makefile b/news/suck/Makefile index 2cdec317cb00..2cde8cc38b10 100644 --- a/news/suck/Makefile +++ b/news/suck/Makefile @@ -6,15 +6,17 @@ # PORTNAME= suck -PORTVERSION= 4.2.5 +PORTVERSION= 4.3.0 CATEGORIES= news -MASTER_SITES= ${MASTER_SITE_SUNSITE} -MASTER_SITE_SUBDIR= system/news/transport +MASTER_SITES= http://www.sucknews.org/ MAINTAINER= dinoex@FreeBSD.org USE_GMAKE= yes GNU_CONFIGURE= yes +.if defined(SUCK_WITH_SSL) || defined(WITH_SSL) +USE_OPENSSL= yes +.endif MAN1= suck.1 rpost.1 testhost.1 lmove.1 .if defined(NEWSBIN) @@ -26,6 +28,22 @@ EXTRA_PATCHES+= ${FILESDIR}/inn2.patch BUILD_DEPENDS+= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn .endif +.include + +.if defined(SUCK_WITH_SSL) || defined(WITH_SSL) +USE_OPENSSL= yes +.if ${OSVERSION} < 430000 +OPENSSLBASE= /usr/local +OPENSSLDIR= ${OPENSSLBASE}/openssl +LIB_DEPENDS+= crypto.2:${PORTSDIR}/security/openssl +OPENSSLLIB= ${OPENSSLBASE}/lib +OPENSSLINC= ${OPENSSLBASE}/include +.endif +MAKE_ENV+= SSL_LIB="-lssl -lcrypto" +MAKE_ENV+= SSL_DEFS="-I${OPENSSLINC} -DHAVE_LIBSSL" +MAKE_ENV+= SSL_LIB_LOC="-L${OPENSSLLIB}" +.endif + post-patch: @${PERL5} -pi -e "s=/usr/local/=${LOCALBASE}/=" ${WRKSRC}/Makefile.in @${PERL5} -pi -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \ @@ -42,4 +60,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/sample/*.sample ${PREFIX}/share/examples/suck .endif -.include +.include -- cgit v1.2.3