91ba3e3d14
Ensure that the ${NAGIOS_GROUP} group is created before the package files are installed since the plugin binary must be made setgid to that group. Bump the PKGREVISIONs of these plugin packages due to package install scripts being added. -------------------------------------------------------------------
32 lines
841 B
Makefile
32 lines
841 B
Makefile
# $NetBSD: Makefile,v 1.3 2017/08/07 09:30:45 jlam Exp $
|
|
#
|
|
|
|
PKGNAME= nagios-plugin-mysqlslave-${DISTNAME:C/.*-//}
|
|
PKGREVISION= 1
|
|
DISTNAME= check_mysql_slave-0.2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://ftp.espci.fr/pub/nagios-local/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= manu@NetBSD.org
|
|
HOMEPAGE= http://ftp.espci.fr/pub/nagios-local/
|
|
COMMENT= MySQL and MariaDB slave monitoring plugin for Nagios
|
|
LICENSE= modified-bsd
|
|
|
|
MAKE_ENV+= PREFIX=${PREFIX}
|
|
|
|
INSTALLATION_DIRS+= libexec/nagios
|
|
|
|
BUILD_DEFS+= NAGIOS_GROUP
|
|
PKG_GROUPS_VARS+= NAGIOS_GROUP
|
|
PKG_GROUPS= ${NAGIOS_GROUP}
|
|
|
|
SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_mysql_slave \
|
|
${REAL_ROOT_USER} ${NAGIOS_GROUP} 4554
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/check_mysql_slave \
|
|
${DESTDIR}${PREFIX}/libexec/nagios/
|
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|