e47a6dd59a
- move USERS and GROUPS from munin-common/Makefile to munin.mk, otherwise they cannot be used in the Makefiles of munin-master and munin-node where they are required. This fixes permissions on certain directories. [1] - VERSION.node file should be updated after the pkg-install script runs, because it requires the version of the previously installed version not the currently installed one. [2] PR: ports/172260 [1] Reported by: Haruo Shiba <shiba@logic-design.co.jp> [1] tdb [2]
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Created by: Sean Rees <sean@rees.us>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= munin
|
|
PORTVERSION= ${MUNIN_VERSION}
|
|
CATEGORIES= sysutils perl5
|
|
MASTER_SITES= ${MUNIN_SITES}
|
|
PKGNAMESUFFIX= -common
|
|
|
|
MAINTAINER= flo@FreeBSD.org
|
|
COMMENT= Common components between a munin node and server
|
|
|
|
BUILD_DEPENDS= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build \
|
|
p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay
|
|
RUN_DEPENDS= p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay
|
|
|
|
USE_PERL5= yes
|
|
USE_GMAKE= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
|
|
|
.include "${.CURDIR}/../munin-common/munin.mk"
|
|
|
|
ALL_TARGET= build-common-prime
|
|
INSTALL_TARGET= install-common
|
|
|
|
MAN3= Munin::Common::Config.3 \
|
|
Munin::Common::Defaults.3 \
|
|
Munin::Common::TLS.3 \
|
|
Munin::Common::TLSClient.3 \
|
|
Munin::Common::TLSServer.3 \
|
|
Munin::Common::Timeout.3
|
|
|
|
post-install:
|
|
@${MKDIR} ${LOGDIR} ${STATEDIR} ${SPOOLDIR}
|
|
@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR} ${STADEDIR} ${SPOOLDIR}
|
|
@(cd ${WRKSRC}/common/blib/libdoc && for man in ${MAN3} ; do \
|
|
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
|
done)
|
|
|
|
.include <bsd.port.mk>
|