From owner-svn-ports-all@freebsd.org Mon Jan 18 23:30:24 2021 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 064334D8A92; Mon, 18 Jan 2021 23:30:24 +0000 (UTC) (envelope-from amdmi3@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DKSgz6lrpz3Q0L; Mon, 18 Jan 2021 23:30:23 +0000 (UTC) (envelope-from amdmi3@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 DA9721C61F; Mon, 18 Jan 2021 23:30:23 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10INUND0090566; Mon, 18 Jan 2021 23:30:23 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10INUMO1090560; Mon, 18 Jan 2021 23:30:22 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <202101182330.10INUMO1090560@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 18 Jan 2021 23:30:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561985 - in head/security/i2pd: . files X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: in head/security/i2pd: . files X-SVN-Commit-Revision: 561985 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.34 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, 18 Jan 2021 23:30:24 -0000 Author: amdmi3 Date: Mon Jan 18 23:30:22 2021 New Revision: 561985 URL: https://svnweb.freebsd.org/changeset/ports/561985 Log: - Use configuration file PR: 252159 Added: head/security/i2pd/files/patch-contrib_i2pd.conf (contents, props changed) head/security/i2pd/files/pkg-message.in - copied, changed from r561984, head/security/i2pd/pkg-message Deleted: head/security/i2pd/pkg-message Modified: head/security/i2pd/Makefile head/security/i2pd/files/i2pd.in head/security/i2pd/pkg-plist Modified: head/security/i2pd/Makefile ============================================================================== --- head/security/i2pd/Makefile Mon Jan 18 23:29:48 2021 (r561984) +++ head/security/i2pd/Makefile Mon Jan 18 23:30:22 2021 (r561985) @@ -3,6 +3,7 @@ PORTNAME= i2pd PORTVERSION= 2.35.0 +PORTREVISION= 1 CATEGORIES= security net-p2p MAINTAINER= amdmi3@FreeBSD.org @@ -28,7 +29,7 @@ GROUPS= _i2pd PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}" SUB_LIST= USER="${USERS}" GROUP="${GROUPS}" -SUB_FILES= i2pd.newsyslog.conf +SUB_FILES= i2pd.newsyslog.conf pkg-message OPTIONS_DEFINE= AESNI UPNP DOCS HARDENING @@ -45,6 +46,8 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d ${INSTALL_DATA} ${WRKDIR}/i2pd.newsyslog.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/i2pd.conf + @${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/i2pd.conf ${STAGEDIR}${ETCDIR}/i2pd.conf.sample @${MKDIR} ${STAGEDIR}/var/run/i2pd @${MKDIR} ${STAGEDIR}/var/log/i2pd @${MKDIR} ${STAGEDIR}/var/db/i2pd Modified: head/security/i2pd/files/i2pd.in ============================================================================== --- head/security/i2pd/files/i2pd.in Mon Jan 18 23:29:48 2021 (r561984) +++ head/security/i2pd/files/i2pd.in Mon Jan 18 23:30:22 2021 (r561985) @@ -20,15 +20,14 @@ load_rc_config ${name} : ${i2pd_enable="NO"} : ${i2pd_user="%%USER%%"} : ${i2pd_group="%%GROUP%%"} -: ${i2pd_pidfile="/var/run/${name}/${name}.pid"} : ${i2pd_datadir="/var/db/${name}"} -: ${i2pd_logfile="/var/log/${name}/${name}.log"} +: ${i2pd_config="%%ETCDIR%%/i2pd.conf"} required_dirs=${i2pd_datadir} -pidfile=${i2pd_pidfile} +pidfile=/var/run/i2pd/i2pd.pid command="%%PREFIX%%/bin/${name}" -command_args="--pidfile ${i2pd_pidfile} --service --datadir ${i2pd_datadir} --log file --logfile ${i2pd_logfile} --daemon" +command_args="--conf ${i2pd_config} --service --datadir ${i2pd_datadir} --daemon" extra_commands="reload" -reload_cmd="pkill -1 -F ${i2pd_pidfile} -x i2pd" +reload_cmd="pkill -1 -F ${pidfile} -x i2pd" run_rc_command "$1" Added: head/security/i2pd/files/patch-contrib_i2pd.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/i2pd/files/patch-contrib_i2pd.conf Mon Jan 18 23:30:22 2021 (r561985) @@ -0,0 +1,23 @@ +--- contrib/i2pd.conf.orig 2020-08-24 16:48:09 UTC ++++ contrib/i2pd.conf +@@ -16,7 +16,7 @@ + # tunnelsdir = /var/lib/i2pd/tunnels.d + + ## Where to write pidfile (default: i2pd.pid, not used in Windows) +-# pidfile = /run/i2pd.pid ++pidfile = /var/run/i2pd/i2pd.pid + + ## Logging configuration section + ## By default logs go to stdout with level 'info' and higher +@@ -25,9 +25,9 @@ + ## * stdout - print log entries to stdout + ## * file - log entries to a file + ## * syslog - use syslog, see man 3 syslog +-# log = file ++log = file + ## Path to logfile (default - autodetect) +-# logfile = /var/log/i2pd/i2pd.log ++logfile = /var/log/i2pd/i2pd.log + ## Log messages above this level (debug, info, *warn, error, none) + ## If you set it to none, logging will be disabled + # loglevel = warn Copied and modified: head/security/i2pd/files/pkg-message.in (from r561984, head/security/i2pd/pkg-message) ============================================================================== --- head/security/i2pd/pkg-message Mon Jan 18 23:29:48 2021 (r561984, copy source) +++ head/security/i2pd/files/pkg-message.in Mon Jan 18 23:30:22 2021 (r561985) @@ -2,10 +2,7 @@ { type: install message: <