2000-09-17 22:36:32 +00:00
|
|
|
# New ports collection makefile for: oops
|
|
|
|
# Date created: 15 August 2000
|
|
|
|
# Whom: Sergey Osokin aka oZZ <ozz@FreeBSD.org.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= oops
|
2002-02-14 14:04:58 +00:00
|
|
|
PORTVERSION= 1.5.22
|
2000-09-17 22:36:32 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://zipper.paco.net/~igor/oops/
|
|
|
|
|
|
|
|
MAINTAINER= ozz@FreeBSD.org.ru
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2002-02-14 14:04:58 +00:00
|
|
|
CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \
|
2000-09-17 22:36:32 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/oops \
|
2002-02-14 14:04:58 +00:00
|
|
|
--localstatedir=${OOPSVAR} \
|
2000-09-17 22:36:32 +00:00
|
|
|
--libdir=${PREFIX}/libexec/oops \
|
2001-04-30 16:07:28 +00:00
|
|
|
--enable-oops-user=oops \
|
2002-02-14 14:04:58 +00:00
|
|
|
--enable-large-files
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2000-12-14 17:31:34 +00:00
|
|
|
MAN8= oops.8 oopsctl.8
|
2002-02-14 14:04:58 +00:00
|
|
|
OOPSVAR= /var/run/oops
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops
|
|
|
|
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
2000-12-14 17:31:34 +00:00
|
|
|
|
2000-09-17 22:36:32 +00:00
|
|
|
pre-install:
|
2000-10-08 10:23:48 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-09-17 22:36:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-install:
|
2002-02-14 14:04:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-12-14 17:31:34 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oopsctl.8 ${PREFIX}/man/man8
|
2002-02-14 14:04:58 +00:00
|
|
|
.endif
|
2000-10-08 10:23:48 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-09-17 22:36:32 +00:00
|
|
|
@ ${ECHO} "------------------------------------------------------------"
|
|
|
|
@ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
|
|
|
|
@ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
|
|
|
|
@ ${ECHO} "------------------------------------------------------------"
|
2002-02-14 14:04:58 +00:00
|
|
|
@${MKDIR} ${OOPSVAR}
|
|
|
|
@${CHMOD} 750 ${OOPSVAR}
|
|
|
|
@${CHOWN} oops ${OOPSVAR}
|
|
|
|
|
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/oops.sh.sample startup file."
|
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/oops.sh ${PREFIX}/etc/rc.d/oops.sh.sample
|
2000-09-17 22:36:32 +00:00
|
|
|
|
2002-02-14 14:04:58 +00:00
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
2000-09-17 22:36:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|