aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-04-07 19:41:45 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-04-07 19:41:45 +0000
commit5db087e859821ce079c259130756b410ec716d6e (patch)
tree2e62935ea2ff372dd47b550220710f6a7e305a0d /ftp
parent57af0444722afc463a6c005c4b4565c2432c4daa (diff)
downloadports-5db087e859821ce079c259130756b410ec716d6e.tar.gz
ports-5db087e859821ce079c259130756b410ec716d6e.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/bsdftpd-ssl/Makefile17
-rw-r--r--ftp/bsdftpd-ssl/files/bsdftpd-ssl.in (renamed from ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh)0
-rw-r--r--ftp/bsdftpd-ssl/files/pkg-message.in (renamed from ftp/bsdftpd-ssl/files/pkg-message.server)0
-rw-r--r--ftp/bsdftpd-ssl/pkg-plist1
4 files changed, 7 insertions, 11 deletions
diff --git a/ftp/bsdftpd-ssl/Makefile b/ftp/bsdftpd-ssl/Makefile
index 53042f104f04..3013cabd48d0 100644
--- a/ftp/bsdftpd-ssl/Makefile
+++ b/ftp/bsdftpd-ssl/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bsdftpd-ssl
PORTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= http://bsdftpd.org/files/bsdftpd-ssl/archive/1.1/src/
DISTNAME= bsdftpd-ssl-${PORTVERSION}
@@ -33,9 +33,10 @@ COMMENT= Secure FTP server with the TLS/SSL support
MAN5= ftpchroot.5 xferlog.5
MAN8= ftpd.8
MLINKS= ftpd.8 ftpd-ssl.8 ftpchroot.5 ftpchroot-ssl.5
-PKGMESSAGE= ${WRKDIR}/pkg-message
-SED_ARG= 's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g; s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g; s|%%RC_SUBR%%|${RC_SUBR}|g'
-USE_RC_SUBR= yes
+.ifndef NOPORTEXAMPLES
+SUB_FILES= pkg-message
+.endif
+USE_RC_SUBR= ${PORTNAME}
.endif
MANCOMPRESSED= yes
@@ -62,10 +63,6 @@ do-build:
# Server part
.if !defined(CLIENT_ONLY)
(cd ${WRKSRC}/ftpd && make) || exit
- @${SED} ${SED_ARG} ${FILESDIR}/pkg-message.server > \
- ${WRKDIR}/pkg-message
- @${SED} ${SED_ARG} ${FILESDIR}/bsdftpd_ssl.sh > \
- ${WRKDIR}/bsdftpd_ssl.sh
.endif
do-install:
@@ -105,16 +102,16 @@ post-install:
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/xCA.sh ${DOCDIR}/cert/xCA.sh
.endif
.if !defined(CLIENT_ONLY)
- ${MKDIR} ${EXAMPLESDIR}
+.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}/rc.conf.d
${INSTALL_DATA} -p ${FILESDIR}/README.examples ${EXAMPLESDIR}/README
${INSTALL_DATA} -p ${FILESDIR}/ftpchroot ${EXAMPLESDIR}/ftpchroot
${INSTALL_DATA} -p ${FILESDIR}/ftpusers ${EXAMPLESDIR}/ftpusers
${INSTALL_DATA} -p ${FILESDIR}/rc_conf_d.bsdftpd_ssl ${EXAMPLESDIR}/rc.conf.d/bsdftpd_ssl
- ${INSTALL_SCRIPT} ${WRKDIR}/bsdftpd_ssl.sh ${PREFIX}/etc/rc.d/bsdftpd_ssl.sh
@${ECHO_CMD} "*******************************************************************************"
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD} "*******************************************************************************"
.endif
+.endif
.include <bsd.port.post.mk>
diff --git a/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in
index 8d5961475b92..8d5961475b92 100644
--- a/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh
+++ b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in
diff --git a/ftp/bsdftpd-ssl/files/pkg-message.server b/ftp/bsdftpd-ssl/files/pkg-message.in
index e3c5a6d1c158..e3c5a6d1c158 100644
--- a/ftp/bsdftpd-ssl/files/pkg-message.server
+++ b/ftp/bsdftpd-ssl/files/pkg-message.in
diff --git a/ftp/bsdftpd-ssl/pkg-plist b/ftp/bsdftpd-ssl/pkg-plist
index 108e664f9af4..b8ebd34c578b 100644
--- a/ftp/bsdftpd-ssl/pkg-plist
+++ b/ftp/bsdftpd-ssl/pkg-plist
@@ -1,5 +1,4 @@
bin/ftps
-etc/rc.d/bsdftpd_ssl.sh
libexec/ftpd
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/README