[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / comms / conserver8

File: [cvs.NetBSD.org] / pkgsrc / comms / conserver8 / Makefile (download)

Revision 1.27, Mon Jun 24 10:59:41 2019 UTC (3 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD
Changes since 1.26: +2 -2 lines

More http -> https.

Reviewed by hand.

# $NetBSD: Makefile,v 1.27 2019/06/24 10:59:41 nia Exp $
#

PKGVER=		8.2.4
DISTNAME=	conserver-${PKGVER}
PKGNAME=	conserver8-${PKGVER}
CATEGORIES=	comms
GITHUB_PROJECT=	conserver
GITHUB_TYPE=	release
GITHUB_RELEASE=	v${PKGVER}
MASTER_SITES=	${MASTER_SITE_GITHUB:=conserver/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.conserver.com/
COMMENT=	Application that allows multiple users to watch serial consoles
LICENSE=	modified-bsd # and more (see LICENSE and LICENSES file)

CONFLICTS=	conserver-[0-9]*

INSTALLATION_DIRS=	${EGDIR} ${DOCDIR}

GNU_CONFIGURE=	YES

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-master=${CONSERVER_DEFAULTHOST:Q}
CONFIGURE_ARGS+=	--with-port=${CONSERVER_DEFAULTPORT:Q}
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+=	--with-logfile=${VARBASE:Q}/log/conserver

BUILD_DEFS+=	CONSERVER_DEFAULTPORT CONSERVER_DEFAULTHOST VARBASE

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

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=	pre-configure
SUBST_FILES.conf=	conserver.cf/conserver.cf
SUBST_SED.conf=		-e "s,/var/consoles,${VARBASE}/consoles,"

post-install:
	set -e; for File in INSTALL README.md PROTOCOL; do		\
	    ${INSTALL_DATA} ${WRKSRC}/$${File} ${DESTDIR}${DOCDIR}/$${File};\
	done
	set -e; for F in ${WRKSRC}/conserver.cf/samples/* ; do \
	    ${INSTALL_DATA} $$F ${DESTDIR}${EGDIR}; \
	done

.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"