summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shells/scponly/Makefile88
-rw-r--r--shells/scponly/distinfo2
-rw-r--r--shells/scponly/pkg-plist5
3 files changed, 90 insertions, 5 deletions
diff --git a/shells/scponly/Makefile b/shells/scponly/Makefile
index 0fbe591ffd25..99e2fb09cfd8 100644
--- a/shells/scponly/Makefile
+++ b/shells/scponly/Makefile
@@ -5,17 +5,97 @@
# $FreeBSD$
#
+# There are many knobs to tune scponly towards your specific wishes
+# and preferences.
+# You can activate a knob by typing something like
+# "make -DKNOB" or "make KNOB=yes" instead of just "make"
+#
+# A description of the several possibilities is available here:
+#
+#
+# Core funcionality:
+#
+# WITH_SCPONLY_WILDCARDS
+# default: undefined
+# define if you want to enable wildcard processing.
+#
+# WITH_SCPONLY_SCP
+# default: undefined
+# define if you want to enable vanilla scp compatibility.
+#
+# WITH_SCPONLY_GFTP
+# default: undefined
+# define if you want to enable gftp compatibility.
+#
+# WITH_SCPONLY_WINSCP
+# default: undefined
+# define if you want to enable WinSCP compatibility.
+#
+# WITH_SCPONLY_RSYNC
+# default: undefined
+# define if you want to enable rsync compatibility.
+#
+#
+# Additional knobs:
+#
+# NOPORTDOCS
+# default: undefined
+# This knob prevents the ports system from installing additional
+# documentation. If you define this, only the manpage is going
+# to be installed.
+
PORTNAME= scponly
-PORTVERSION= 3.4
+PORTVERSION= 3.7
CATEGORIES= shells
MASTER_SITES= http://www.sublimation.org/scponly/
EXTRACT_SUFX= .tgz
MAINTAINER= mcglk@artlogix.com
-COMMENT= A tiny shell which only permits scp and sftp
+COMMENT= A tiny shell that only permits scp and sftp
-MAN8= scponly.8
+MAN8= scponly.8
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-chrooted-binary
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SCPONLY_WILDCARDS)
+CONFIGURE_ARGS+=--enable-wildcards
+.else
+CONFIGURE_ARGS+=--disable-wildcards
+.endif
+
+.if defined(WITH_SCPONLY_SCP)
+CONFIGURE_ARGS+=--enable-scp-compat
+.else
+CONFIGURE_ARGS+=--disable-scp-compat
+.endif
+
+.if defined(WITH_SCPONLY_GFTP)
+CONFIGURE_ARGS+=--enable-gftp
+.else
+CONFIGURE_ARGS+=--disable-gftp
+.endif
+
+.if defined(WITH_SCPONLY_WINSCP)
+CONFIGURE_ARGS+=--enable-winscp-compat
+.else
+CONFIGURE_ARGS+=--disable-winscp-compat
+.endif
+
+.if defined(WITH_SCPONLY_RSYNC) && exists(${LOCALBASE}/bin/rsync)
+CONFIGURE_ARGS+=--enable-rsync-compat
+.else
+CONFIGURE_ARGS+=--disable-rsync-compat
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/scponly
+.for i in README INSTALL TODO
+ @${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/scponly
+.endfor
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/shells/scponly/distinfo b/shells/scponly/distinfo
index dda07fed4917..13e41243fc7c 100644
--- a/shells/scponly/distinfo
+++ b/shells/scponly/distinfo
@@ -1 +1 @@
-MD5 (scponly-3.4.tgz) = c450ede9777f75483f7ab49a5ba446e1
+MD5 (scponly-3.7.tgz) = 6873df71eb44f91412f72158cc2b844e
diff --git a/shells/scponly/pkg-plist b/shells/scponly/pkg-plist
index c5900e85ac4f..44f6777393ce 100644
--- a/shells/scponly/pkg-plist
+++ b/shells/scponly/pkg-plist
@@ -1,3 +1,8 @@
bin/scponly
+sbin/scponlyc
etc/scponly/debuglevel
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/TODO
@dirrm etc/scponly
+%%PORTDOCS%%@dirrm %%DOCSDIR%%