1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/irc/bopm/Makefile
Baptiste Daroussin e736e2808f - switch to USERS/GROUPS macro
- bump portrevision
2011-06-08 17:08:47 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: bopm
# Date Created: 2004.08.06
# Whom: Evgueni V. Gavrilov <aquatique@rusunix.org>
#
# $FreeBSD$
#
PORTNAME= bopm
PORTVERSION= 3.1.3
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://static.blitzed.org/www.blitzed.org/bopm/files/ \
ftp://rusunix.org/pub/FreeBSD/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Open proxy and DNSBL monitor, designed for use with ircds
LOGDIR= /var/log/${PORTNAME}
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure src/libopm/configure
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --localstatedir=${LOGDIR}
USE_LDCONFIG= yes
USE_RC_SUBR= bopm
SUB_FILES= pkg-message pkg-deinstall
PLIST_SUB= LOGDIR=${LOGDIR}
SUB_LIST= LOGDIR=${LOGDIR}
USERS= bopm
GROUPS= bopm
post-patch:
@${REINPLACE_CMD} \
-e 's,data_DATA = bopm.conf.sample,data_DATA =,g' \
-e 's,$(sysconfdir)/bopm.conf,$(sysconfdir)/bopm.conf.sample,g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} \
-e 's,/some/path/bopm.pid,${LOGDIR}/bopm.pid,g' \
-e 's,/some/path/scan.log,${LOGDIR}/scan.log,g' \
${WRKSRC}/bopm.conf.sample
post-install:
@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR}
@${CHMOD} 750 ${LOGDIR}
@${CHOWN} ${USERS}:${GROUPS} ${PREFIX}/etc/bopm.conf.sample
@${CHMOD} 640 ${PREFIX}/etc/bopm.conf.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>