From owner-svn-ports-all@freebsd.org Mon Sep 14 08:22:24 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 641B43F69F9; Mon, 14 Sep 2020 08:22:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BqfVS1t2Tz4NvR; Mon, 14 Sep 2020 08:22:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2397D14398; Mon, 14 Sep 2020 08:22:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08E8MNtp058675; Mon, 14 Sep 2020 08:22:23 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08E8MNC4058671; Mon, 14 Sep 2020 08:22:23 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <202009140822.08E8MNC4058671@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Mon, 14 Sep 2020 08:22:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548596 - in head/news/nn: . files X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: in head/news/nn: . files X-SVN-Commit-Revision: 548596 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2020 08:22:24 -0000 Author: bapt Date: Mon Sep 14 08:22:22 2020 New Revision: 548596 URL: https://svnweb.freebsd.org/changeset/ports/548596 Log: Fix build on modern toolchain and remove install script Replace the install script with static files properly packaged and usage of @sample Use pkg-message instead of script to inform the users Added: head/news/nn/files/nntp_domain.dist (contents, props changed) head/news/nn/files/nntp_server.dist (contents, props changed) head/news/nn/files/pkg-message.in (contents, props changed) Deleted: head/news/nn/pkg-install Modified: head/news/nn/Makefile head/news/nn/pkg-plist Modified: head/news/nn/Makefile ============================================================================== --- head/news/nn/Makefile Mon Sep 14 08:16:38 2020 (r548595) +++ head/news/nn/Makefile Mon Sep 14 08:22:22 2020 (r548596) @@ -12,8 +12,10 @@ COMMENT= Menu based USENET newsreader BROKEN_aarch64= Fails to link: missing sbrk +SUB_FILES= pkg-message + USES= tar:Z -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Iconf" LDFLAGS="${LDFLAGS} -s" +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Iconf -fcommon" LDFLAGS="${LDFLAGS} -s" pre-patch: @${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed @@ -24,5 +26,10 @@ pre-build: post-build: @${REINPLACE_CMD} 's#${PREFIX}#$${DESTDIR}&#' ${WRKSRC}/inst + +post-install: + ${INSTALL_DATA} ${FILESDIR}/nntp_domain.dist \ + ${FILESDIR}/nntp_server.dist \ + ${STAGEDIR}${PREFIX}/etc .include Added: head/news/nn/files/nntp_domain.dist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/nn/files/nntp_domain.dist Mon Sep 14 08:22:22 2020 (r548596) @@ -0,0 +1,13 @@ +# nntp_domain: Configuration file for NN newsreader +# +# Set the default domain name portion of user e-mail addresses as you +# would like them to appear in the From: line of articles posted +# with NN. +# +# For example, setting the name to foobar.com in this file will cause +# the From: line for joeuser to look like something like this: +# +# From: joeuser@foobar.com (Joe User) +# +# If this file is left blank, NN will use the hostname of this +# computer as the From: domain name. Added: head/news/nn/files/nntp_server.dist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/nn/files/nntp_server.dist Mon Sep 14 08:22:22 2020 (r548596) @@ -0,0 +1,8 @@ +# nntp_server: Configuration file for NN newsreader +# +# Set your NNTP server address or hostname in this file. +# +# If this file is left blank, NN will use the server set in the +# NNTP_SERVER environment variable. +# +# news.myisp.com Added: head/news/nn/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/nn/files/pkg-message.in Mon Sep 14 08:22:22 2020 (r548596) @@ -0,0 +1,13 @@ +[ +{ +type: install +message: <