svn commit: r411306 - in head/net/motsognir: . files
Mark Felder
feld at FreeBSD.org
Thu Mar 17 20:23:20 UTC 2016
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 <bsd.port.mk>
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.
+==========================================================================
More information about the svn-ports-all
mailing list