steven mestdagh wrote on 13/08/07 0:26:
> providing your mk.conf and your makefile would be a good start.
sorry for the delay, here
$ egrep -v '^#' /etc/mk.conf |egrep -v '^$'
WRKOBJDIR=/share3/tmp/ports-obj
PACKAGES=/export/ports/packages
DISTDIR=/export/ports/distfiles
WANT_SMTPAUTH=1
WANT_LIBMILTER=1
SKIPDIR=games usr.sbin/lpr usr.sbin/afs
USE_SYSTRACE=Yes
PORTSDIR_PATH+=/share2/ob/usr/ports:/share2/tmp/_testing/new-ports
$ egrep -v '^#' /share2/tmp/_testing/new-ports/net/cacti/Makefile |egrep
-v '^$'
COMMENT= "cacti php monitoring tool"
VERSION= 0.8.6j
DISTNAME= cacti-${VERSION}
PKGNAME= cacti-${VERSION}
CATEGORIES= net sysutils
HOMEPAGE= http://www.cacti.net/
MAINTAINER=
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cacti/}
MASTER_SITES0= http://cactiusers.net/downloads/plugins/
PATCHFILES= ${CACTI_PATCH}
PATCH_DIST_STRIP= -p1 -N
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::net/rrdtool \
:php5-mysql-*:www/php5/extensions,-mysql \
::databases/mysql,-server \
netsnmp::net/net-snmp
PATCH_LIST=
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
FLAVORS= plugins
FLAVOR?=
.if ${FLAVOR:L:Mplugins}
PATCHFILES+= cacti-plugin-arch.tar.gz:0
SUPDISTFILES+= cacti-plugin-arch.tar.gz:0
post-extract:
@${ECHO_MSG} "===> Extracting plugin architecture"
.endif
PREFIX= /var/www
PREFIX2= /usr/local
INSTDIR= ${PREFIX}/cacti
CACTI_USER= _cacti
CACTI_ID= 570
SUBST_VARS= INSTDIR CACTI_USER CACTI_ID PREFIX2
.if ${FLAVOR:L:Mplugins}
post-patch:
cd ${WRKDIST} && patch -p1 -N <
${WRKDIR}/cacti-plugin-arch/cacti-plugin-${VERSION}.diff
.endif
do-install:
@mv ${WRKDIST}/include/config.php
${WRKDIST}/include/config.php.default
@mv ${WRKDIST} ${INSTDIR}
.include <bsd.port.mk>
thanks
Regards
Julien