aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/bsdftpd-ssl
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2009-04-08 03:41:45 +0800
committeritetcu <itetcu@FreeBSD.org>2009-04-08 03:41:45 +0800
commit052932ab8d7af138d44ca27e6bf81607c2e73f9c (patch)
tree197a4b7b777829ab6fc81f2319b06eea84bf1281 /ftp/bsdftpd-ssl
parent9b3ff989c16c90364f26cf623bedf878301a84bd (diff)
downloadfreebsd-ports-gnome-052932ab8d7af138d44ca27e6bf81607c2e73f9c.tar.gz
freebsd-ports-gnome-052932ab8d7af138d44ca27e6bf81607c2e73f9c.tar.zst
freebsd-ports-gnome-052932ab8d7af138d44ca27e6bf81607c2e73f9c.zip
- fix plist with -DNOPORTEXAMPLES
- while here, modernize the port (USE_RC_SUBR, SUB_FILES) - bump PORTREVISION Prompted by: QAT QA run Approved by: maintainer timeout on QATMail
Diffstat (limited to 'ftp/bsdftpd-ssl')
-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