aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/smbftpd/Makefile
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-04-19 03:35:44 +0800
committeradamw <adamw@FreeBSD.org>2014-04-19 03:35:44 +0800
commit204bb1f98934f042658acf661d780763fa6627bf (patch)
tree90144ff95c616a231afccb5434504325378381ca /ftp/smbftpd/Makefile
parentdd5bac0899cbbc2c76a72f7e4765d01bfe96eac8 (diff)
downloadfreebsd-ports-gnome-204bb1f98934f042658acf661d780763fa6627bf.tar.gz
freebsd-ports-gnome-204bb1f98934f042658acf661d780763fa6627bf.tar.zst
freebsd-ports-gnome-204bb1f98934f042658acf661d780763fa6627bf.zip
STAGE support.
Diffstat (limited to 'ftp/smbftpd/Makefile')
-rw-r--r--ftp/smbftpd/Makefile49
1 files changed, 19 insertions, 30 deletions
diff --git a/ftp/smbftpd/Makefile b/ftp/smbftpd/Makefile
index 425d4825ae2b..6af7ab979182 100644
--- a/ftp/smbftpd/Makefile
+++ b/ftp/smbftpd/Makefile
@@ -11,45 +11,34 @@ MAINTAINER= jnlin@csie.nctu.edu.tw
COMMENT= FTP daemon using Samba-like share management mechanism
OPTIONS_DEFINE= MYSQL PGSQL SSL ICONV
-MYSQL_DESC= Users database is a MySQL database
-PGSQL_DESC= Users database is a PostgreSQL database
-SSL_DESC= Enable SSL/TLS support
ICONV_DESC= Enable codepage to unicode conversion for UTF-8 FTP
HAS_CONFIGURE= yes
-MAKE_ENV= OSTYPE=FreeBSD
-CONFIGURE_ARGS= "--prefix=${PREFIX}"
+MAKE_ENV+= OSTYPE=FreeBSD
+CONFIGURE_ARGS+= "--prefix=${PREFIX}"
USES= perl5
USE_RC_SUBR= ${PORTNAME}
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= yes
-CONFIGURE_ARGS+= "--with-mysql"
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PGSQL= yes
-CONFIGURE_ARGS+= "--with-pgsql"
-.endif
-
-.if ${PORT_OPTIONS:MICONV}
-USES+= iconv
-CONFIGURE_ARGS+= "--with-iconv"
-.endif
-
-.if ${PORT_OPTIONS:MSSL}
-CONFIGURE_ARGS+= "--with-ssl"
-.endif
+MYSQL_USE= MYSQL=yes
+MYSQL_CONFIGURE_WITH= mysql
+PGSQL_USE= PGSQL=yes
+PGSQL_CONFIGURE_WITH= pgsql
+ICONV_USES= iconv
+ICONV_CONFIGURE_WITH= iconv
+SSL_CONFIGURE_WITH= ssl
post-extract:
- @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
+ ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-patch:
- @${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile
- @cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample)
+ ${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile
+ cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-user ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/*.sample ${STAGEDIR}${ETCDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>