Zap MESSAGE and add polipo.rc. Initially from Jiri B. <jirib@live.com>,
rc tweaks discussed with and suggested by ajacoutot@.
This commit is contained in:
parent
5c69e94e9f
commit
d396104e0c
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2010/10/26 15:29:24 kili Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2010/11/11 20:19:52 kili Exp $
|
||||
|
||||
COMMENT= HTTP caching proxy
|
||||
|
||||
DISTNAME= polipo-1.0.4.1
|
||||
CATEGORIES= www
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
HOMEPAGE= http://www.pps.jussieu.fr/~jch/software/polipo/
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
When run as the root user, the polipo daemon will drop privileges to
|
||||
that of the _polipo user and its login group.
|
||||
|
||||
Some sample configuration files have been installed in
|
||||
${SYSCONFDIR}/polipo.
|
||||
|
||||
Additionally, you may wish to start polipo at system start-up time via
|
||||
the /etc/rc.local script.
|
||||
|
||||
if [ X"${polipo}" == X"YES" -a -x ${PREFIX}/bin/polipo ]; then
|
||||
echo -n ' polipo'
|
||||
${PREFIX}/bin/polipo daemonise=yes
|
||||
fi
|
||||
|
||||
and adding "polipo=YES" to /etc/rc.conf.local
|
@ -1,7 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2008/02/03 15:06:48 kili Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2010/11/11 20:19:52 kili Exp $
|
||||
@newgroup _polipo:548
|
||||
@newuser _polipo:548:_polipo:daemon:Polipo Account:/nonexistent:/sbin/nologin
|
||||
bin/polipo
|
||||
@bin bin/polipo
|
||||
@info info/polipo.info
|
||||
@man man/man1/polipo.1
|
||||
share/doc/polipo/
|
||||
@ -88,3 +88,7 @@ share/examples/polipo/forbidden.sample
|
||||
@sample /var/polipo/
|
||||
@sample /var/polipo/cache/
|
||||
@extraunexec rm -rf /var/polipo/*
|
||||
@mode
|
||||
@owner
|
||||
@group
|
||||
@rcscript ${RCDIR}/polipo
|
||||
|
14
www/polipo/pkg/polipo.rc
Normal file
14
www/polipo/pkg/polipo.rc
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: polipo.rc,v 1.1 2010/11/11 20:19:52 kili Exp $
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
daemon="/usr/local/bin/polipo"
|
||||
daemon_flags="daemonise=yes"
|
||||
|
||||
rc_reload() {
|
||||
rc_err "$0: reload is not supported"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user