blob: e4ba89287dce5328c271d8ce388551ccf8827be3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: shellinabox
# Date created: 25 june 2010
# Whom: Olivier Cochard-Labbe <olivier@cochard.me>
#
# $FreeBSD$
#
PORTNAME= shellinabox
PORTVERSION= 2.10
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= olivier@cochard.me
COMMENT= Publish command line shell through AJAX interface
HAS_CONFIGURE= yes
CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--infodir=${PREFIX}/${INFO_PATH} \
--mandir=${MANPREFIX}/man
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
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
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/shellinaboxd ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|