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:39:25 2016 +0200
Changeset:	76add9dfecf3b4c2554320e0dafe5b8840aa3895

Modified Files:
	shellinabox/Makefile
	shellinabox/files/shellinaboxd.in

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=76add9dfecf3b4c2554320e0dafe5b8840aa3895

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

diffstat:
 shellinabox/Makefile              | 6 +++++-
 shellinabox/files/shellinaboxd.in | 8 +++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs:
diff --git a/shellinabox/Makefile b/shellinabox/Makefile
index b1bb67e..cf4db40 100644
--- a/shellinabox/Makefile
+++ b/shellinabox/Makefile
@@ -15,9 +15,11 @@ COMMENT=        Shell In A Box implements a web server for terminal emulation
 LICENSE=        gnu-gpl-v2
 
 EXTRACT_USING=  gtar
+
 USE_TOOLS+=     gtar aclocal automake autoconf gm4 gmake autoheader
 USE_LANGUAGES=  c
 USE_LIBTOOL=    yes
+
 GNU_CONFIGURE=  yes
 
 .include "../../mk/bsd.prefs.mk"
@@ -33,7 +35,7 @@ RCD_SCRIPT_SRC.shellinaboxd = ${WRKSRC}/shellinaboxd.in
 
 SUBST_CLASSES+=         sib
 SUBST_STAGE.sib=        pre-configure
-SUBST_MESSAGE.sib=      Fixing shellinaboxd user/group defaults
+SUBST_MESSAGE.sib=      Crafting a shellinaboxd rc.d script with sane defaults
 SUBST_FILES.sib+=       ${WRKSRC}/shellinaboxd.in
 SUBST_VARS.sib+=        PREFIX SIB_USER SIB_GROUP
 
@@ -50,4 +52,6 @@ pre-configure:
 		autoconf && \
 		automake --copy --add-missing --foreign
 
+.include "options.mk"
+
 .include "../../mk/bsd.pkg.mk"
diff --git a/shellinabox/files/shellinaboxd.in b/shellinabox/files/shellinaboxd.in
index 61959ba..a9956d4 100644
--- a/shellinabox/files/shellinaboxd.in
+++ b/shellinabox/files/shellinaboxd.in
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $FreeBSD$
+# $NetBSD$
 #
 # Shell in a Box Daemon startup script
 #
@@ -9,7 +9,7 @@
 # KEYWORD: shutdown
 
 #
-# Add the following to /etc/rc.conf[.local] to enable this service
+# Add the following to /etc/rc.conf to enable this service
 #
 # shellinaboxd="YES"
 #
@@ -27,9 +27,7 @@ rcvar=${name}
 
 command="@PREFIX@/bin/${name}"
 
-load_rc_config $name
-
-shellinaboxd_enable=${shellinaboxd_enable:-"NO"}
+shellinaboxd=${shellinaboxd:-"NO"}
 shellinaboxd_user=${shellinaboxd_user:-"@SIB_USER@"}
 shellinaboxd_group=${shellinaboxd_group:-"@SIB_GROUP@"}
 shellinaboxd_port=${shellinaboxd_port:-"4200"}


Home | Main Index | Thread Index | Old Index