773745412c
Changes: 2.0 --- * Dropped Python 2 support. * miniircd now requires Python 3.6+. * Channel log files are now named after the lowercase version of the channel name for consistency. * Fixed creation of PID file when using Python 3. * Made sure to remove the PID file on daemon exit. * Fixed creation of PID file with a relative path. * Fixed a bug when using non-ASCII characters in Python 3 mode.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2020/07/16 15:32:11 leot Exp $
|
|
|
|
DISTNAME= miniircd-2.0
|
|
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"
|