diff options
author | Mark Felder <feld@FreeBSD.org> | 2016-03-17 20:23:18 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2016-03-17 20:23:18 +0000 |
commit | ee57a7dedb6ba0c6889ca6490194db9e1e37e7fb (patch) | |
tree | 5f1e104dbfea372ce5746bbc0cc0de5229434c96 /net/motsognir | |
parent | 28de6a006a03c3deda2de8be5687f8328e88bb1c (diff) | |
download | ports-ee57a7dedb6ba0c6889ca6490194db9e1e37e7fb.tar.gz ports-ee57a7dedb6ba0c6889ca6490194db9e1e37e7fb.zip |
Notes
Diffstat (limited to 'net/motsognir')
-rw-r--r-- | net/motsognir/Makefile | 6 | ||||
-rw-r--r-- | net/motsognir/files/pkg-message.in | 32 |
2 files changed, 36 insertions, 2 deletions
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 <bsd.port.mk> 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. +========================================================================== |