pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/shellinabox: split out options; make rc.d script netbsd-style



Module Name:	pkgsrc-wip
Committed By:	ast <ast%NetBSD.org@localhost>
Pushed By:	ast
Date:		Thu Oct 20 14:36:40 2016 +0200
Changeset:	66c0a9227954f8a7d9933a2cc03c6e5644666b74

Added Files:
	shellinabox/options.mk

Log Message:
wip/shellinabox: split out options; make rc.d script netbsd-style

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=66c0a9227954f8a7d9933a2cc03c6e5644666b74

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 shellinabox/options.mk | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diffs:
diff --git a/shellinabox/options.mk b/shellinabox/options.mk
new file mode 100644
index 0000000..b03edbe
--- /dev/null
+++ b/shellinabox/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+# cores: patches shellinaboxd to enable core dumps
+# nologin: disable it and do login through ssh
+PKG_OPTIONS_VAR=        PKG_OPTIONS.shellinabox
+PKG_SUPPORTED_OPTIONS=  cores nologin
+PKG_SUGGESTED_OPTIONS=  cores nologin
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mnologin)
+CONFIGURE_ARGS+=   --disable-login
+.endif
+
+.if !empty(PKG_OPTIONS:Mcores)
+SUBST_CLASSES+=         cores
+SUBST_STAGE.cores=      pre-patch
+SUBST_MESSAGE.cores=    Enabling core files in shellinabox/shellinaboxd.c
+SUBST_FILES.cores=      shellinabox/shellinaboxd.c
+SUBST_SED.cores+=       -e 's|prctl(PR_SET_DUMPABLE,|// &|'
+SUBST_SED.cores+=       -e 's|setrlimit(RLIMIT_CORE,|// &|'
+.endif


Home | Main Index | Thread Index | Old Index