From owner-svn-ports-head@freebsd.org Thu Mar 17 20:23:20 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2430AAD4CC2; Thu, 17 Mar 2016 20:23:20 +0000 (UTC) (envelope-from feld@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 mx1.freebsd.org (Postfix) with ESMTPS id CF94A26D; Thu, 17 Mar 2016 20:23:19 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2HKNJtu047691; Thu, 17 Mar 2016 20:23:19 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2HKNIW0047689; Thu, 17 Mar 2016 20:23:18 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201603172023.u2HKNIW0047689@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Thu, 17 Mar 2016 20:23:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r411306 - in head/net/motsognir: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 20:23:20 -0000 Author: feld Date: Thu Mar 17 20:23:18 2016 New Revision: 411306 URL: https://svnweb.freebsd.org/changeset/ports/411306 Log: net/motsognir: Port improvements - Add pkg-message - Config files now use @sample PR: 207141 Added: head/net/motsognir/files/pkg-message.in (contents, props changed) Modified: head/net/motsognir/Makefile Modified: head/net/motsognir/Makefile ============================================================================== --- head/net/motsognir/Makefile Thu Mar 17 20:16:25 2016 (r411305) +++ head/net/motsognir/Makefile Thu Mar 17 20:23:18 2016 (r411306) @@ -2,6 +2,7 @@ PORTNAME= motsognir PORTVERSION= 1.0.8 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/v${PORTVERSION} @@ -10,15 +11,16 @@ COMMENT= Full-featured gopher server wit LICENSE= GPLv3 +SUB_FILES= pkg-message USE_RC_SUBR= motsognir PLIST_FILES= bin/motsognir \ - etc/motsognir.conf \ + "@sample etc/motsognir.conf.sample" \ man/man8/motsognir.8.gz do-install: ${INSTALL_PROGRAM} ${WRKSRC}/motsognir ${STAGEDIR}${PREFIX}/bin/motsognir - ${INSTALL_DATA} ${WRKSRC}/motsognir.conf ${STAGEDIR}${PREFIX}/etc/motsognir.conf + ${INSTALL_DATA} ${WRKSRC}/motsognir.conf ${STAGEDIR}${PREFIX}/etc/motsognir.conf.sample ${INSTALL_MAN} ${WRKSRC}/motsognir.8.gz ${STAGEDIR}${MANPREFIX}/man/man8/motsognir.8.gz .include Added: head/net/motsognir/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/motsognir/files/pkg-message.in Thu Mar 17 20:23:18 2016 (r411306) @@ -0,0 +1,32 @@ +========================================================================== +Please configure Motsognir using + + %%PREFIX%%/etc/motsognir.conf + + +Add the following line to /etc/rc.conf to enable Motsognir: + + motsognir_enable="YES" + + +Then you can start Motsognir daemon by issuing the following command: + + %%PREFIX%%/etc/rc.d/motsognir start + + +You might need to add the following line to /etc/syslog.conf + + daemon.* /var/log/daemon.log + +if you want to keep log informations of Motsognir. Some of them go to +/var/log/messages, but connection informations go to LOG_INFO. + + +Motsognir will serve files in /var/gopher/ per default. + + +Note that Motsognir tries to use an inet6/ipv6 socket. Therefore it needs +access to an interface where ipv6 is enabled (for instance if you run +Motsognir in a jail). This holds even if you want to bind it to an ipv4 +address. +==========================================================================