Fix syweb's path to rrdtool and mention PHP's use of /bin/sh in

running programs. Prompted by a mail from thuban at yeuxdelibad.net
and an old diff from Ralf Horstmann that I probably missed
because it was sent to ports@ rather than the maintainer.
Convert MESSAGE to README while there.
This commit is contained in:
sthen 2016-09-06 11:33:54 +00:00
parent a78bfce453
commit a860be643f
3 changed files with 18 additions and 22 deletions

View File

@ -1,28 +1,28 @@
# $OpenBSD: Makefile,v 1.21 2015/06/05 06:00:23 robert Exp $
# $OpenBSD: Makefile,v 1.22 2016/09/06 11:33:54 sthen Exp $
COMMENT= web frontend to symon
DISTNAME= syweb-0.65
REVISION= 3
CATEGORIES= www sysutils
COMMENT= web frontend to symon
DISTNAME= syweb-0.65
REVISION= 4
CATEGORIES= www sysutils
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
HOMEPAGE= http://www.xs4all.nl/~wpd/symon
HOMEPAGE= http://www.xs4all.nl/~wpd/symon
# BSD
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}/philes/
MASTER_SITES= ${HOMEPAGE}/philes/
NO_TEST= Yes
NO_BUILD= Yes
NO_TEST= Yes
NO_BUILD= Yes
PREFIX= ${VARBASE}/www
MODULES= lang/php
RUN_DEPENDS= net/rrdtool
MODULES= lang/php
RUN_DEPENDS= net/rrdtool
WRKDIST= ${WRKDIR}/syweb
WRKDIST= ${WRKDIR}/syweb
do-install:
find ${WRKDIR} -name \*.orig -exec rm {} \;
@ -33,5 +33,7 @@ do-install:
mkdir ${PREFIX}/symon/cache
cd ${PREFIX}/htdocs/syweb && mv setup.inc setup.inc.sample
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/htdocs/syweb ${PREFIX}/symon
sed -i "s,'/bin/rrdtool','${LOCALBASE}/bin/rrdtool'," \
${PREFIX}/htdocs/syweb/setup.inc.sample
.include <bsd.port.mk>

View File

@ -1,8 +0,0 @@
syweb's default install assumes that:
- web server is chrooted at ${PREFIX}
- rrdtool is installed in the chroot
- symux rrd files are kept in ${PREFIX}/symon/rrds/<host>/*.rrd
Customise ${PREFIX}/htdocs/syweb/setup.inc if these assumptions are
incorrect. rrdtool must also be copied into the chroot jail; for this,
see rrdtool's pkg-readme document.

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.4 2014/05/07 18:10:27 sthen Exp $
@comment $OpenBSD: PLIST,v 1.5 2016/09/06 11:33:54 sthen Exp $
htdocs/syweb/
htdocs/syweb/class_cache.inc
htdocs/syweb/class_graph.inc
@ -30,3 +30,5 @@ symon/hifn_test.layout
symon/pf.layout
symon/rrds/
symon/total_firewall.layout
@cwd ${LOCALBASE}/share/doc/pkg-readmes
${FULLPKGNAME}