diff options
author | leot <leot@pkgsrc.org> | 2019-08-02 10:20:53 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2019-08-02 10:20:53 +0000 |
commit | f80b1978bb8ec77ce8ad81eb4949598999605020 (patch) | |
tree | b8fe13e362f96f0cc70b1db9497d1a8c1813e7db /chat/miniircd | |
parent | 662374c665b31709572700d457e42ca6a6c12abe (diff) | |
download | pkgsrc-f80b1978bb8ec77ce8ad81eb4949598999605020.tar.gz |
miniircd: Add miniircd-1.3 as chat/miniircd
miniircd is a small and limited IRC server written in Python. Despite its
size, it is a functional alternative to a full-blown ircd for private or
internal use. Installation is simple; no configuration is required.
Diffstat (limited to 'chat/miniircd')
-rw-r--r-- | chat/miniircd/DESCR | 3 | ||||
-rw-r--r-- | chat/miniircd/Makefile | 41 | ||||
-rw-r--r-- | chat/miniircd/PLIST | 3 | ||||
-rw-r--r-- | chat/miniircd/distinfo | 6 | ||||
-rwxr-xr-x | chat/miniircd/files/miniircd.sh | 24 |
5 files changed, 77 insertions, 0 deletions
diff --git a/chat/miniircd/DESCR b/chat/miniircd/DESCR new file mode 100644 index 00000000000..610f7dc313e --- /dev/null +++ b/chat/miniircd/DESCR @@ -0,0 +1,3 @@ +miniircd is a small and limited IRC server written in Python. Despite its +size, it is a functional alternative to a full-blown ircd for private or +internal use. Installation is simple; no configuration is required. diff --git a/chat/miniircd/Makefile b/chat/miniircd/Makefile new file mode 100644 index 00000000000..b3175c03c0f --- /dev/null +++ b/chat/miniircd/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 2019/08/02 10:20:53 leot Exp $ + +DISTNAME= miniircd-1.3 +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 + +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" diff --git a/chat/miniircd/PLIST b/chat/miniircd/PLIST new file mode 100644 index 00000000000..f3ebda8fd0c --- /dev/null +++ b/chat/miniircd/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2019/08/02 10:20:53 leot Exp $ +sbin/miniircd +share/doc/miniircd/README diff --git a/chat/miniircd/distinfo b/chat/miniircd/distinfo new file mode 100644 index 00000000000..c9aafa97fb5 --- /dev/null +++ b/chat/miniircd/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/08/02 10:20:53 leot Exp $ + +SHA1 (miniircd-1.3.tar.gz) = 61d8273973de28b4edfa9b6a8297397ae3de767d +RMD160 (miniircd-1.3.tar.gz) = 3e4ff007f458fde3fa1f79830ca1a30ca4003349 +SHA512 (miniircd-1.3.tar.gz) = 41ee2d7b9022fc94c46c2bad39a618e7f49e586d4bfd2de8512d73bceaade9b82914129d7b688002308c6c892a78530bec632e92e3067f9736157ac1cd7dbabe +Size (miniircd-1.3.tar.gz) = 21581 bytes diff --git a/chat/miniircd/files/miniircd.sh b/chat/miniircd/files/miniircd.sh new file mode 100755 index 00000000000..4a4c85ebc25 --- /dev/null +++ b/chat/miniircd/files/miniircd.sh @@ -0,0 +1,24 @@ +#!@RCD_SCRIPTS_SHELL@ + +# PROVIDE: miniircd +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="miniircd" +rcvar=$name +command="@PREFIX@/sbin/miniircd" +command_interpreter="@PYTHONBIN@" +command_args="-d" + +miniircd_flags=${miniircd_flags-"--setuid @MINIIRCD_USER@:@MINIIRCD_GROUP@"} + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n "${name}" + ${command} ${miniircd_flags} ${command_args} +fi |