pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
miniircd: Import miniircd-1.2.1 as wip/miniircd
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Fri Sep 7 02:01:33 2018 +0200
Changeset: 5eaf7742ecf24b963874979bfba5552f46f1f30e
Modified Files:
Makefile
Added Files:
miniircd/DESCR
miniircd/Makefile
miniircd/PLIST
miniircd/TODO
miniircd/distinfo
miniircd/files/miniircd.sh
Log Message:
miniircd: Import miniircd-1.2.1 as wip/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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5eaf7742ecf24b963874979bfba5552f46f1f30e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
miniircd/DESCR | 3 +++
miniircd/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++
miniircd/PLIST | 3 +++
miniircd/TODO | 2 ++
miniircd/distinfo | 8 ++++++++
miniircd/files/miniircd.sh | 34 ++++++++++++++++++++++++++++++++++
7 files changed, 93 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index f378dc69d1..676563e79a 100644
--- a/Makefile
+++ b/Makefile
@@ -2000,6 +2000,7 @@ SUBDIR+= mingw-w64-gcc
SUBDIR+= mingw-w64-headers
SUBDIR+= mingw-w64-libgcc
SUBDIR+= mini18n
+SUBDIR+= miniircd
SUBDIR+= minuit2
SUBDIR+= mipscope
SUBDIR+= miracl
diff --git a/miniircd/DESCR b/miniircd/DESCR
new file mode 100644
index 0000000000..610f7dc313
--- /dev/null
+++ b/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/miniircd/Makefile b/miniircd/Makefile
new file mode 100644
index 0000000000..dd5504f28e
--- /dev/null
+++ b/miniircd/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.2 2017/04/14 19:10:23 leot Exp $
+
+DISTNAME= miniircd-1.2.1
+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+= VARBASE MINIIRCD_USER MINIIRCD_GROUP MINIIRCD_DIR
+FILES_SUBST+= MINIIRCD_USER=${MINIIRCD_USER} MINIIRCD_GROUP=${MINIIRCD_GROUP}
+FILES_SUBST+= MINIIRCD_DIR=${MINIIRCD_DIR}
+
+MINIIRCD_USER?= miniircd
+MINIIRCD_GROUP?= nobody
+MINIIRCD_DIR?= ${VARBASE}/miniircd
+
+OWN_DIRS+= ${MINIIRCD_DIR}
+
+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/miniircd/PLIST b/miniircd/PLIST
new file mode 100644
index 0000000000..7daeab64d1
--- /dev/null
+++ b/miniircd/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+sbin/miniircd
+share/doc/miniircd/README
diff --git a/miniircd/TODO b/miniircd/TODO
new file mode 100644
index 0000000000..e9b8c6a4e2
--- /dev/null
+++ b/miniircd/TODO
@@ -0,0 +1,2 @@
+- Test and adjust rc.d script (there are probably some issue in the pidfile
+ handling!)
diff --git a/miniircd/distinfo b/miniircd/distinfo
new file mode 100644
index 0000000000..d94b190193
--- /dev/null
+++ b/miniircd/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.2 2017/04/14 19:10:23 leot Exp $
+
+SHA1 (miniircd-1.2.1.tar.gz) = 39a49111ff0f3737573441755af0b66b3eb8cf8a
+RMD160 (miniircd-1.2.1.tar.gz) = ad2da2fa9392428bbb0e3b7aac2f8d77720301d8
+SHA512 (miniircd-1.2.1.tar.gz) = 45838138e93f24fedb496d2032a1c772f0dc32d56efc913f624f32351e56b5416bf50fc787d16081e0790747cf91f603de7c2d8618bd29f3da17892a59b822a8
+Size (miniircd-1.2.1.tar.gz) = 21178 bytes
+SHA1 (patch-subliminal_subtitles_____init____.py) = 253b44d1421f51bc91abdbf960dbf759517e3f28
+SHA1 (patch-subliminal_subtitles_subrip.py) = 4e44270d77605812537a7549195c8667b083cf0e
diff --git a/miniircd/files/miniircd.sh b/miniircd/files/miniircd.sh
new file mode 100755
index 0000000000..2ae3829507
--- /dev/null
+++ b/miniircd/files/miniircd.sh
@@ -0,0 +1,34 @@
+#!@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"
+pidfile="@VARBASE@/run/${name}/pid"
+command_args="-d --pid-file=${pidfile}"
+start_precmd="miniircd_precmd"
+
+miniircd_flags=${miniircd_flags-"--setuid @MINIIRCD_USER@:@MINIIRCD_GROUP@"}
+
+miniircd_precmd()
+{
+ if [ ! -d "@VARBASE@/run/${name}" ]; then
+ @MKDIR@ "@VARBASE@/run/${name}"
+ @CHMOD@ 0700 "@VARBASE@/run/${name}"
+ @CHOWN@ @MINIIRCD_USER@:@MINIIRCD_GROUP@ "@VARBASE@/run/${name}"
+ fi
+}
+
+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