diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-10 00:37:04 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-10 00:37:04 +0000 |
commit | f2894a6ab80d7139ed139c5d231d34dca04d60d1 (patch) | |
tree | 9246aacea92f8f96f8815c9a8ce70fbf3a0111e5 /www/shellinabox/Makefile | |
parent | 9f260c691c2344bcd273d00ebb0867e46d654e0f (diff) |
Notes
Diffstat (limited to 'www/shellinabox/Makefile')
-rw-r--r-- | www/shellinabox/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/www/shellinabox/Makefile b/www/shellinabox/Makefile index 7c1d4a5924b7..09d0f8b9db73 100644 --- a/www/shellinabox/Makefile +++ b/www/shellinabox/Makefile @@ -6,8 +6,7 @@ # PORTNAME= shellinabox -PORTVERSION= 2.10 -PORTREVISION= 3 +PORTVERSION= 2.14 CATEGORIES= www MASTER_SITES= GOOGLE_CODE @@ -17,7 +16,8 @@ COMMENT= Publish command line shell through AJAX interface LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS= ENABLE_CORES "Patch shellinaboxd to enable core dumps." off +OPTIONS_DEFINE= CORES MANPAGES +CORES_DESC= Patch shellinaboxd to enable core dumps HAS_CONFIGURE= yes CONFIGURE_ARGS= \ @@ -29,7 +29,7 @@ USE_RC_SUBR= shellinaboxd USERS?= shellinabox GROUPS?= shellinabox -MAN1= shellinaboxd.1 +MAN1= shellinaboxd.1 PORTDOCS= AUTHORS ChangeLog INSTALL README COPYING GPL-2 NEWS TODO @@ -38,8 +38,6 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall SUB_FILES= pkg-deinstall SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} -.include <bsd.port.options.mk> - .include <bsd.port.pre.mk> .if ${ARCH} == "powerpc" @@ -47,7 +45,7 @@ BROKEN= Does not load on powerpc .endif post-patch: -.if defined(WITH_ENABLE_CORES) +.if ${PORT_OPTIONS:MCORES} @${REINPLACE_CMD} \ -e 's|prctl(PR_SET_DUMPABLE,|// &|' \ -e 's|setrlimit(RLIMIT_CORE,|// &|' \ @@ -56,9 +54,12 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/shellinaboxd ${PREFIX}/bin/ -.if !defined(NOPORTDOCS) + +post-install: +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ + .endif ${MKDIR} ${ETCDIR}/ ${CHMOD} 700 ${ETCDIR}/ |