head	1.10;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.1;
locks; strict;
comment	@# @;


1.10
date	2012.11.18.16.55.52;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.11.17.06.03.05;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.06.10.00.37.04;	author sylvio;	state Exp;
branches;
next	1.7;

1.7
date	2011.12.28.07.10.54;	author linimon;	state Exp;
branches;
next	1.6;

1.6
date	2011.10.26.16.20.00;	author sunpoet;	state Exp;
branches;
next	1.5;

1.5
date	2010.10.30.16.53.56;	author sunpoet;	state Exp;
branches;
next	1.4;

1.4
date	2010.10.13.12.50.07;	author sunpoet;	state Exp;
branches;
next	1.3;

1.3
date	2010.08.16.00.04.03;	author ed;	state Exp;
branches;
next	1.2;

1.2
date	2010.08.12.18.37.42;	author bapt;	state Exp;
branches;
next	1.1;

1.1
date	2010.07.05.07.43.02;	author jadawin;	state Exp;
branches;
next	;


desc
@@


1.10
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307542
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307542 | hrs | 2012-11-18 16:33:31 +0000 (Sun, 18 Nov 2012) | 5 lines
## SVN ##
## SVN ## Fix rc.d script to support systems before and after ${name}_fib is introduced
## SVN ## into rc.subr.  Bump PORTREVISION.
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# New ports collection makefile for:	shellinabox
# Date created:		25 june 2010
# Whom:			Olivier Cochard-Labbe <olivier@@cochard.me>
#
# $FreeBSD: head/www/shellinabox/Makefile 307542 2012-11-18 16:33:31Z hrs $
#

PORTNAME=	shellinabox
PORTVERSION=	2.14
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	olivier@@cochard.me
COMMENT=	Publish command line shell through AJAX interface

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

OPTIONS_DEFINE=		CORES MANPAGES
CORES_DESC=	Patch shellinaboxd to enable core dumps

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	\
		--prefix=${PREFIX} \
		--infodir=${PREFIX}/${INFO_PATH} \
		--mandir=${MANPREFIX}/man

USE_RC_SUBR=	shellinaboxd
USERS?=		shellinabox
GROUPS?=	shellinabox

MAN1=	shellinaboxd.1

PORTDOCS=	AUTHORS ChangeLog INSTALL README COPYING GPL-2 NEWS TODO

PKGDEINSTALL=	${WRKDIR}/pkg-deinstall

SUB_FILES=	pkg-deinstall
SUB_LIST=	USERS=${USERS} GROUPS=${GROUPS}

.include <bsd.port.pre.mk>

.if ${ARCH} == "powerpc"
BROKEN=		Does not load on powerpc
.endif

post-patch:
.if ${PORT_OPTIONS:MCORES}
	@@${REINPLACE_CMD} \
		-e 's|prctl(PR_SET_DUMPABLE,|// &|' \
		-e 's|setrlimit(RLIMIT_CORE,|// &|' \
			${WRKSRC}/shellinabox/shellinaboxd.c
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/shellinaboxd ${PREFIX}/bin/

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}/
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/

.endif
	${MKDIR} ${ETCDIR}/
	${CHMOD} 700 ${ETCDIR}/
	${CHOWN} ${USERS}:${GROUPS} ${ETCDIR}/
	${INSTALL_MAN} ${WRKSRC}/shellinaboxd.1 ${MANPREFIX}/man/man1/

.include <bsd.port.post.mk>
@


1.9
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/www/shellinabox/Makefile 300897 2012-07-14 14:29:18Z beat $
d10 1
@


1.8
log
@- Update to 2.14
- Convert to new optionsNG

PR:		ports/168736
Submitted by:	Olivier Cochard-Labbe <olivier@@cochard.me> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@Mark broken on powerpc: fails to load.

Hat:		portmgr
@
text
@d9 1
a9 2
PORTVERSION=	2.10
PORTREVISION=	3
d19 2
a20 1
OPTIONS=	ENABLE_CORES	"Patch shellinaboxd to enable core dumps." off
d32 1
a32 1
MAN1=		shellinaboxd.1
a40 2
.include <bsd.port.options.mk>

d48 1
a48 1
.if defined(WITH_ENABLE_CORES)
d57 3
a59 1
.if !defined(NOPORTDOCS)
d62 1
@


1.6
log
@- Unset shellinaboxd_user and shellinaboxd_group at the end of rc script to
  avoid unnecessary su(1) initiated by rc.subr
- Pet portlint
- Bump PORTREVISION for package change

Reported by:	ed (in the followup of ports/151314)
Approved by:	Olivier Cochard-Labbe <olivier@@cochard.me> (maintainer)
@
text
@d43 6
d68 1
a68 1
.include <bsd.port.mk>
@


1.5
log
@- Add an option ENABLE_CORES to enable coredumps (default off)
- While I'm here, pet portlint for MD5 removal

PR:		ports/151456
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
Approved by:	maintainer (timeout 16 days), pgollucci (mentor, implicit)
@
text
@d10 1
a10 1
PORTREVISION=	2
d17 3
a27 3
LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

@


1.4
log
@- Update rc.d script: add user/group variables
- Use ETCDIR
- Minor cleanups: remove DISTNAME, merge post-install: to do-install:

PR:		ports/151314
Submitted by:	Eric F Crist <ecrist@@secure-computing.net>
Approved by:	Olivier Cochard-Labb <olivier@@cochard.me> (maintainer), pgollucci (mentor, implicit)
@
text
@d17 2
d41 10
@


1.3
log
@Extend the rc-script shipped with shellinabox.

The script doesn't allow you to supply self-generated certificates using
the --cert-fd switch. Because the --cert-fd switch is a bit painful, add
a shellinaboxd_certfile switch, which does the file descriptor
redirection for you.

PR:		ports/149673
Submitted by:	Olivier Cochard-Labbé (maintainer)
Approved by:	beat
@
text
@d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
DISTNAME=	${PORTNAME}-${PORTVERSION}
d27 2
a28 2
USERS=	shellinabox
GROUPS=	shellinabox
d37 1
a37 6

post-install:
	@@${MKDIR} ${PREFIX}/etc/shellinabox
	@@${CHMOD} 700 ${PREFIX}/etc/shellinabox
	@@${CHOWN} ${USERS}:${GROUPS} ${PREFIX}/etc/shellinabox
	${INSTALL_MAN} ${WRKSRC}/shellinaboxd.1 ${PREFIX}/man/man1
d40 1
a40 1
	${INSTALL_PROGRAM} ${WRKSRC}/shellinaboxd ${PREFIX}/bin
d42 2
a43 2
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
d45 4
@


1.2
log
@- Fix sparc64 compilation [1]
- Fix utmpx on current [2]

PR:		ports/149243 [1]
Submitted by:	Olivier Cochard-labbé <olivier _at_ cochard.me> [1]
Tested by:	gahr@@
Approved by:	rene@@ (mentor vacation)
Obtained from:	upstream svn [2]
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.1
log
@Shell In A Box is a web server that can export arbitary command line tools to a
web based terminal emulator

WWW:	http://code.google.com/p/shellinabox/

PR:		ports/148211
Submitted by:	Olivier Cochard-Labbe <olivier at cochard.me>
Feature safe:	yes
@
text
@d10 1
@

