pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/chat/miniircd
Module Name: pkgsrc
Committed By: leot
Date: Fri Aug 2 10:20:53 UTC 2019
Added Files:
pkgsrc/chat/miniircd: DESCR Makefile PLIST distinfo
pkgsrc/chat/miniircd/files: miniircd.sh
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/miniircd/DESCR \
pkgsrc/chat/miniircd/Makefile pkgsrc/chat/miniircd/PLIST \
pkgsrc/chat/miniircd/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/miniircd/files/miniircd.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/chat/miniircd/DESCR
diff -u /dev/null pkgsrc/chat/miniircd/DESCR:1.1
--- /dev/null Fri Aug 2 10:20:53 2019
+++ pkgsrc/chat/miniircd/DESCR Fri Aug 2 10:20:53 2019
@@ -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.
Index: pkgsrc/chat/miniircd/Makefile
diff -u /dev/null pkgsrc/chat/miniircd/Makefile:1.1
--- /dev/null Fri Aug 2 10:20:53 2019
+++ pkgsrc/chat/miniircd/Makefile Fri Aug 2 10:20:53 2019
@@ -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"
Index: pkgsrc/chat/miniircd/PLIST
diff -u /dev/null pkgsrc/chat/miniircd/PLIST:1.1
--- /dev/null Fri Aug 2 10:20:53 2019
+++ pkgsrc/chat/miniircd/PLIST Fri Aug 2 10:20:53 2019
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/08/02 10:20:53 leot Exp $
+sbin/miniircd
+share/doc/miniircd/README
Index: pkgsrc/chat/miniircd/distinfo
diff -u /dev/null pkgsrc/chat/miniircd/distinfo:1.1
--- /dev/null Fri Aug 2 10:20:53 2019
+++ pkgsrc/chat/miniircd/distinfo Fri Aug 2 10:20:53 2019
@@ -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
Index: pkgsrc/chat/miniircd/files/miniircd.sh
diff -u /dev/null pkgsrc/chat/miniircd/files/miniircd.sh:1.1
--- /dev/null Fri Aug 2 10:20:53 2019
+++ pkgsrc/chat/miniircd/files/miniircd.sh Fri Aug 2 10:20:53 2019
@@ -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