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

File: [cvs.NetBSD.org] / pkgsrc / chat / miniircd / Makefile (download)

Revision 1.4, Fri Dec 4 20:45:02 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.3: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.4 2020/12/04 20:45:02 nia Exp $

DISTNAME=	miniircd-2.0
PKGREVISION=	2
CATEGORIES=	chat python
MASTER_SITES=	${MASTER_SITE_GITHUB:=jrosdahl/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	leot@NetBSD.org
HOMEPAGE=	https://github.com/jrosdahl/miniircd/
COMMENT=	Simple Internet Relay Chat (IRC) server written in Python
LICENSE=	gnu-gpl-v2

NO_BUILD=	yes

BUILD_DEFS+=	MINIIRCD_USER MINIIRCD_GROUP
FILES_SUBST+=	PYTHONBIN=${PYTHONBIN}
FILES_SUBST+=	MINIIRCD_USER=${MINIIRCD_USER} MINIIRCD_GROUP=${MINIIRCD_GROUP}

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

MINIIRCD_USER?=		miniircd
MINIIRCD_GROUP?=	nobody

PKG_GROUPS=	${MINIIRCD_GROUP}
PKG_USERS=	${MINIIRCD_USER}:${MINIIRCD_GROUP}

RCD_SCRIPTS=	miniircd

REPLACE_PYTHON+=	miniircd
REPLACE_PYTHON+=	test.py

USE_LANGUAGES=		# none

PYTHON_VERSIONS_INCOMPATIBLE=	27 # since 2.0

INSTALLATION_DIRS=	sbin share/doc/miniircd

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/miniircd ${DESTDIR}${PREFIX}/sbin/miniircd
	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/miniircd/README

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"