news/newsstar: fix OpenSSL detection & cleanups
OpenSSL detection was broken because it looked for SSL_library_init(), which has been gone since OpenSSL 1.1.0 already. Patch to look for OPENSSL_init_ssl() instead. Replace @exec by @postexec. Add USES=ncurses. Rearrange Makefile to reduce complaints from portclippy and portlint.
This commit is contained in:
parent
8d272748e5
commit
b8fd81efdd
@ -1,6 +1,6 @@
|
||||
PORTNAME= newsstar
|
||||
PORTVERSION= 1.5.6
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= news
|
||||
MASTER_SITES= SF
|
||||
|
||||
@ -9,17 +9,17 @@ COMMENT= Transfer news between a local NNTP server (INN, sn, s-news)
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
LIB_DEPENDS= libgdbm.so:databases/gdbm
|
||||
BUILD_DEPENDS= xmlto:textproc/xmlto \
|
||||
${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:textproc/docbook-xml
|
||||
LIB_DEPENDS= libgdbm.so:databases/gdbm
|
||||
|
||||
USES= iconv ncurses perl5 shebangfix
|
||||
IGNORE_SSL= libressl libressl-devel
|
||||
IGNORE_SSL_REASON=GPL linking exeption only provided for OpenSSL
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= iconv perl5 shebangfix
|
||||
SHEBANG_FILES= newsstar.in
|
||||
|
||||
OPTIONS_DEFINE= SSL DOCS EXAMPLES
|
||||
OPTIONS_DEFAULT= SSL
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+=--disable-chown \
|
||||
--with-conf-dir=${PREFIX}/etc/newsstar \
|
||||
--with-rc-dir=/var/spool/newsstar/lib \
|
||||
@ -28,6 +28,9 @@ CONFIGURE_ARGS+=--disable-chown \
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB}
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES SSL
|
||||
OPTIONS_DEFAULT= SSL
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
@ -70,6 +73,7 @@ post-patch:
|
||||
${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/manual.xml
|
||||
${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/news.xml
|
||||
${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in
|
||||
${REINPLACE_CMD} -e 's|SSL_library_init|OPENSSL_init_ssl|' ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
${MAKE} -C ${WRKSRC}/src install DESTDIR=${STAGEDIR}
|
||||
|
@ -1,6 +1,6 @@
|
||||
@exec d=/var/spool/newsstar/incoming ; test -d "$d" || install -d -onews -gnews -m0750 "$d"
|
||||
@exec d=/var/spool/newsstar/lib ; test -d "$d" || install -d -onews -gnews -m0750 "$d"
|
||||
@exec d="%D/%%ETCDIR%%" ; test -d "$d" || install -d -o0 -g0 -m0755 "$d"
|
||||
@postexec d=/var/spool/newsstar/incoming ; test -d "$d" || install -d -onews -gnews -m0750 "$d"
|
||||
@postexec d=/var/spool/newsstar/lib ; test -d "$d" || install -d -onews -gnews -m0750 "$d"
|
||||
@postexec d="%D/%%ETCDIR%%" ; test -d "$d" || install -d -o0 -g0 -m0755 "$d"
|
||||
bin/newsstar
|
||||
man/man1/newsstar.1.gz
|
||||
libexec/newsstar/newsstar.bin
|
||||
|
Loading…
Reference in New Issue
Block a user