pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/miniircd miniircd: Add miniircd-1.3 as chat/miniircd
details: https://anonhg.NetBSD.org/pkgsrc/rev/c67f9d14bb87
branches: trunk
changeset: 337281:c67f9d14bb87
user: leot <leot%pkgsrc.org@localhost>
date: Fri Aug 02 10:20:53 2019 +0000
description:
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:
chat/miniircd/DESCR | 3 +++
chat/miniircd/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++
chat/miniircd/PLIST | 3 +++
chat/miniircd/distinfo | 6 ++++++
chat/miniircd/files/miniircd.sh | 24 ++++++++++++++++++++++++
5 files changed, 77 insertions(+), 0 deletions(-)
diffs (97 lines):
diff -r 0306ac5c1b50 -r c67f9d14bb87 chat/miniircd/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/miniircd/DESCR Fri Aug 02 10:20:53 2019 +0000
@@ -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 -r 0306ac5c1b50 -r c67f9d14bb87 chat/miniircd/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/miniircd/Makefile Fri Aug 02 10:20:53 2019 +0000
@@ -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@localhost
+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 -r 0306ac5c1b50 -r c67f9d14bb87 chat/miniircd/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/miniircd/PLIST Fri Aug 02 10:20:53 2019 +0000
@@ -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 -r 0306ac5c1b50 -r c67f9d14bb87 chat/miniircd/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/miniircd/distinfo Fri Aug 02 10:20:53 2019 +0000
@@ -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 -r 0306ac5c1b50 -r c67f9d14bb87 chat/miniircd/files/miniircd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/miniircd/files/miniircd.sh Fri Aug 02 10:20:53 2019 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index