From ee57a7dedb6ba0c6889ca6490194db9e1e37e7fb Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 17 Mar 2016 20:23:18 +0000 Subject: net/motsognir: Port improvements - Add pkg-message - Config files now use @sample PR: 207141 --- net/motsognir/Makefile | 6 ++++-- net/motsognir/files/pkg-message.in | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 net/motsognir/files/pkg-message.in (limited to 'net/motsognir') diff --git a/net/motsognir/Makefile b/net/motsognir/Makefile index c5a93f600148..c87b723d7b3a 100644 --- a/net/motsognir/Makefile +++ b/net/motsognir/Makefile @@ -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 without dependencies 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 diff --git a/net/motsognir/files/pkg-message.in b/net/motsognir/files/pkg-message.in new file mode 100644 index 000000000000..196ebe3e578d --- /dev/null +++ b/net/motsognir/files/pkg-message.in @@ -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. +========================================================================== -- cgit v1.2.3