1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/irc/bopm/Makefile
Pav Lucistnik 1af9d66933 - Update to rc_subr startup script
- Clean up REINPLACE_CMD usage
- Use SUB_FILES
- Deal with bopm.conf properly
- Now uses /var/log/bopm for pid and logs, and more

PR:		ports/103555
Submitted by:	Jeremy Chadwick <freebsd@jdc.parodius.com>
Approved by:	maintainer timeout (1 month)
2006-10-31 12:00:37 +00:00

53 lines
1.5 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.2
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://static.blitzed.org/www.blitzed.org/bopm/files/ \
ftp://rusunix.org/pub/FreeBSD/distfiles/
MAINTAINER= aquatique-ports@rambler.ru
COMMENT= Open proxy and DNSBL monitor, designed for use with ircds
LOGDIR= /var/log/${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --localstatedir=${LOGDIR}
USE_LDCONFIG= yes
USE_RC_SUBR= bopm
SUB_FILES= pkg-message pkg-install pkg-deinstall
PLIST_SUB= LOGDIR=${LOGDIR}
SUB_LIST= LOGDIR=${LOGDIR}
pre-su-install:
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
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:
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CHOWN} bopm:bopm ${LOGDIR}
@${CHMOD} 750 ${LOGDIR}
@${CHOWN} bopm:bopm ${PREFIX}/etc/bopm.conf.sample
@${CHMOD} 640 ${PREFIX}/etc/bopm.conf.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>