freebsd-ports/news/nntpcache/files/nntpcached.rc
Johann Visagie 62561c4b0c - Update to version 2.4.0b5
- Remove a verifiably bad site from MASTER_SITES.
- Remove duplicate entry (DNS entry points to same IP) from MASTER_SITES.
- Add new mirror to MASTER_SITES.
- Change MAINTAINER to -ports, as the previous maintainer (and author) has
  expressed a lack of interest in continued maintenance of this port.
- Deploy DOCSDIR.
- General clean-up and reorganisation of Makefile.
- Remove PKGMESSAGE completely, since this port requires no user action which
  is out of the ordinary (I do not consider editing configuration files to be
  out of the ordinary), and it contains no information which is not also
  contained elsewhere in a more standardised location.
- Add NO_CDROM, as this software is not free and never has been.
- Bring the startup script installed in ${PREFIX}/etc/rc.d up to current
  standards (I hope).
- Install a fully functional startup script in ${PREFIX}/etc/rc.d (as most
  ports now do), instead of an inactive .sample startup script.
- Install HTML documentation.
- Deploy %%PORTDOCS%% pragma in pkg-plist.
- Make SPOOLDIR a user-tweakable option (default: /var/spool).  NNTPCache
  will cache news articles in ${SPOOLDIR}/nntpcache.
- Remove the non-standard "hardlink-pgp-files" target from Makefile.
- Comment out the run-time dependency on security/pgp for now.  The only
  NNTPCache functionality which depends on PGP is very optional indeed and
  furthermore, there is now a plethora of PGPish ports for the user to choose
  from.  (This may need to be tweaked further, since NNTPCache builds without
  PGP support if PGP is not detected during the configurations stage.)

Approved by:	Julian Assange <nntpcache@nntpcache.org>, previous maintainer
2001-09-14 09:47:23 +00:00

16 lines
318 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/sbin/nntpcached ]; then
%%PREFIX%%/sbin/nntpcached && echo -n ' nntpcached'
fi
;;
stop)
/usr/bin/killall nntpcached >/dev/null 2>&1 && echo -n ' nntpcached'
;;
*)
echo ""
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac