mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
67639b9ad5
. remove LICENSE_FILE of the standard one (GPLv2); . bump PORTREVISION; . trim Makefile headers; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES; . do not run mkdir for the same directory multiple times; . use plain install instead of .for loops.
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= metalog
|
|
DISTVERSION= 0.8
|
|
PORTREVISION= 3
|
|
PORTEPOCH= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF/${PORTNAME}/old
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Modern syslogd replacement with PCRE support
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
USE_BZIP2= yes
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MAN5= metalog.conf.5
|
|
MAN8= metalog.8
|
|
PORTDOCS= AUTHORS NEWS README
|
|
PORTEXAMPLES= metalog.conf
|
|
PLIST_FILES= sbin/metalog
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/man/*[58]
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|