2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2005/04/11 21:47:24 tv Exp $
|
2004-02-24 23:30:25 +01:00
|
|
|
.include "../../sysutils/gkrellm/Makefile.common"
|
|
|
|
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= # empty1
|
2004-06-07 19:01:49 +02:00
|
|
|
|
2004-02-24 23:30:25 +01:00
|
|
|
GKRELLM_PKGBASE= gkrellm-server
|
|
|
|
COMMENT= Monitoring daemon remotely accessible by a GKrellM client
|
2004-02-27 00:11:57 +01:00
|
|
|
DEPENDS+= gkrellm-share-${GKRELLM_VERSION}:../../sysutils/gkrellm-share
|
2004-02-24 23:30:25 +01:00
|
|
|
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
PTHREAD_OPTS= require
|
|
|
|
RCD_SCRIPTS= gkrellmd
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/gkrellm-server/gkrellmd.conf ${PREFIX}/etc/gkrellmd.conf
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-06-07 19:01:49 +02:00
|
|
|
.if (${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "NetBSD")
|
2004-02-24 23:30:25 +01:00
|
|
|
SPECIAL_PERMS+= ${PREFIX}/bin/gkrellmd ${ROOT_USER} kmem 2711
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NOT_FOR_PLATFORM= IRIX-*
|
|
|
|
|
|
|
|
MAKE_ENV+= MODULES=server
|
|
|
|
|
2005-03-22 15:57:12 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gkrellm-server
|
|
|
|
PKG_SUPPORTED_OPTIONS= glib1
|
|
|
|
PKG_DEFAULTS_OPTIONS?= # empty
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-02-24 23:30:25 +01:00
|
|
|
|
2004-02-25 09:41:56 +01:00
|
|
|
SUBST_STAGE.gkprefix= post-patch
|
|
|
|
SUBST_FILES.gkprefix= ${WRKSRC}/server/gkrellmd.h
|
|
|
|
SUBST_SED.gkprefix= -e '/GKRELLMD_SYS_ETC/{s!/etc!${PREFIX}&!;}'
|
|
|
|
SUBST_CLASSES+= gkprefix
|
2004-02-24 23:30:25 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gkrellm-server
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf ${PREFIX}/share/examples/gkrellm-server
|
|
|
|
|
2005-03-22 15:57:12 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mglib1)
|
2004-02-24 23:30:25 +01:00
|
|
|
MAKE_ENV+= USE_GLIB12=yes
|
|
|
|
.include "../../devel/glib/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
|
|
.endif
|
2004-03-07 04:46:30 +01:00
|
|
|
.include "../../devel/pkgconfig/buildlink3.mk"
|
2004-02-24 23:30:25 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|