pkgsrc/comms/conserver8/Makefile
wiz 207ef4af30 Import of conserver8 from pkgsrc-wip, provided by Andreas Wrede:
Version 8 of Conserver as a separate package as the config file
format of version 8 is incompatible with prior versions.

Conserver is an application that allows multiple users to watch a
serial console at the same time. It can log the data, allows users
to take write-access of a console (one at a time), and has a variety
of bells and whistles to accentuate that basic functionality.

The idea is that conserver will log all your serial traffic so you
can go back and review why something crashed, look at changes (if
done on the console), or tie the console logs into a monitoring
system (just watch the logfiles it creates).

With multi-user capabilities you can work on equipment with others,
mentor, train, etc.

It also does all that client-server stuff so that, assuming you
have a network connection, you can interact with any of the equipment
from home or wherever
2005-06-03 20:08:04 +00:00

75 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $
#
DISTNAME= conserver-8.1.11
PKGNAME= conserver8-8.1.11
CATEGORIES= comms
MASTER_SITES= ftp://ftp.conserver.com/conserver/
MAINTAINER= awrede@users.sourceforge.net
HOMEPAGE= http://www.conserver.com/
COMMENT= Application that allows multiple users to watch serial consoles
CONFLICTS= conserver-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
USE_PKGINSTALL= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-master=${CONSERVER_DEFAULTHOST}
CONFIGURE_ARGS+= --with-port=${CONSERVER_DEFAULTPORT}
CONFIGURE_ARGS+= --with-regex
CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+= --with-logfile=${VARBASE}/log/conserver
PKG_OPTIONS_VAR= PKG_OPTIONS.conserver8
PKG_SUPPORTED_OPTIONS= pam ssl uds
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
.endif
.if !empty(PKG_OPTIONS:Muds)
CONFIGURE_ARGS+= --with-uds
.endif
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
. include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-openssl
.endif
BUILD_DEFS+= CONSERVER_DEFAULTPORT CONSERVER_DEFAULTHOST
RCD_SCRIPTS= conserver8
TEST_TARGET= test
DOCDIR= ${PREFIX}/share/doc/conserver
EGDIR= ${PREFIX}/share/examples/conserver
CONF_FILES= ${EGDIR}/conserver.cf ${PKG_SYSCONFDIR}/conserver.cf
CONF_FILES+= ${EGDIR}/conserver.passwd ${PKG_SYSCONFDIR}/conserver.passwd
OWN_DIRS= ${VARBASE}/consoles
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= conserver.cf/conserver.cf
SUBST_SED.conf= -e s,/var/consoles,${VARBASE}/consoles,
pre-install:
${INSTALL_DATA_DIR} ${EGDIR}
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/conserver/convert ${PREFIX}/bin/conserverconvert
${INSTALL_DATA_DIR} ${DOCDIR}
for File in INSTALL README PROTOCOL; do \
${INSTALL_DATA} ${WRKSRC}/$${File} ${DOCDIR}/$${File}; \
done
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"