mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
0c62bdd3eb
confusion Submitted by: maintainer
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
# New ports collection makefile for: oops
|
|
# Date created: 15 August 2000
|
|
# Whom: Sergey Osokin aka oZZ <osa@FreeBSD.org.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= oops
|
|
PORTVERSION= ${OOPSVERSION}.${OOPSDATE}
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://zipper.paco.net/~igor/oops/
|
|
DISTNAME= ${PORTNAME}-${OOPSVERSION}
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCHFILES= ${PORTNAME}-${OOPSVERSION}-${OOPSDATE}.patch
|
|
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
MAINTAINER= osa@FreeBSD.org.ru
|
|
|
|
OOPSVERSION= 1.5.22
|
|
OOPSDATE= 20020519
|
|
|
|
USE_SUBMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \
|
|
--sysconfdir=${PREFIX}/etc/oops \
|
|
--localstatedir=${OOPSVAR} \
|
|
--libdir=${PREFIX}/libexec/oops \
|
|
--enable-oops-user=oops \
|
|
--enable-large-files
|
|
|
|
MAN8= oops.8 oopsctl.8
|
|
OOPSVAR= /var/run/oops
|
|
|
|
SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
TOUCH="${TOUCH}" \
|
|
MKDIR="${MKDIR}"
|
|
|
|
pre-fetch:
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
.endif
|
|
|
|
pre-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/oopsctl.8 ${PREFIX}/man/man8
|
|
.endif
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@ ${ECHO} "------------------------------------------------------------"
|
|
@ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
|
|
@ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
|
|
@ ${ECHO} "------------------------------------------------------------"
|
|
@${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
|
|
|
|
post-clean:
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
.include <bsd.port.post.mk>
|