2008-06-16 17:33:11 +02:00
|
|
|
# $NetBSD: Makefile,v 1.26 2008/06/16 15:33:49 joerg Exp $
|
2006-01-29 16:57:49 +01:00
|
|
|
#
|
|
|
|
|
2008-03-03 16:15:32 +01:00
|
|
|
DISTNAME= prelude-manager-0.9.11
|
2008-03-06 15:53:47 +01:00
|
|
|
PKGREVISION= 1
|
2006-01-29 16:57:49 +01:00
|
|
|
CATEGORIES= security
|
2006-08-23 20:51:56 +02:00
|
|
|
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
|
|
|
http://www.prelude-ids.org/download/releases/old/
|
2006-01-29 16:57:49 +01:00
|
|
|
|
|
|
|
MAINTAINER= shannonjr@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.prelude-ids.org/download/releases/
|
|
|
|
COMMENT= Prelude IDS manager
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-02-09 12:01:57 +01:00
|
|
|
USE_TOOLS+= make
|
2007-09-05 21:07:30 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
2006-01-29 16:57:49 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2006-01-31 18:54:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libpreludedb-prefix=${BUILDLINK_PREFIX.libpreludedb}
|
2006-01-29 16:57:49 +01:00
|
|
|
RCD_SCRIPTS= preludemanager
|
|
|
|
PRELUDE_MANAGER_PID_DIR= ${VARBASE}/run/prelude-manager
|
|
|
|
PRELUDE_USER?= _prelude
|
|
|
|
PRELUDE_GROUP?= _prelude
|
2007-09-05 21:07:30 +02:00
|
|
|
PRELUDE_HOME?= ${VARBASE}/spool/prelude-manager
|
2006-04-23 02:12:35 +02:00
|
|
|
|
2008-06-16 17:33:11 +02:00
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= PRELUDE_GROUP
|
|
|
|
PKG_USERS_VARS+= PRELUDE_USER
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_GROUPS= ${PRELUDE_GROUP}
|
|
|
|
PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
|
|
|
|
PKG_GECOS.${PRELUDE_USER}= Prelude IDS manager
|
|
|
|
PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME}
|
|
|
|
|
2006-01-29 16:57:49 +01:00
|
|
|
FILES_SUBST+= PRELUDE_MANAGER_PID_DIR=${PRELUDE_MANAGER_PID_DIR:Q}
|
2007-02-22 20:26:05 +01:00
|
|
|
FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
|
|
|
|
FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_USER:Q}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= code
|
|
|
|
SUBST_STAGE.code= post-patch
|
|
|
|
SUBST_FILES.code= run-prelude-manager.c
|
|
|
|
SUBST_SED.code= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.code+= -e 's,@PRELUDE_USER@,${PRELUDE_USER},g'
|
2006-01-29 16:57:49 +01:00
|
|
|
|
2006-08-23 13:19:58 +02:00
|
|
|
EGDIR= share/examples/prelude-manager/
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/prelude-manager.conf ${PKG_SYSCONFDIR}/prelude-manager/prelude-manager.conf \
|
2006-08-23 13:54:24 +02:00
|
|
|
${ROOT_USER} ${ROOT_GROUP} 0644
|
2006-06-28 19:05:50 +02:00
|
|
|
|
2006-01-29 16:57:49 +01:00
|
|
|
pre-patch:
|
|
|
|
${CP} ${FILESDIR}/run-prelude-manager.c ${WRKSRC}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-manager run-prelude-manager.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-manager ${PREFIX}/sbin/run-prelude-manager
|
|
|
|
${CHOWN} -R ${PRELUDE_USER}:${PRELUDE_GROUP} ${PRELUDE_HOME}
|
|
|
|
|
|
|
|
.include "../../security/libprelude/buildlink3.mk"
|
|
|
|
.include "../../security/libpreludedb/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|