Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2014 19:35:44 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351562 - head/ftp/smbftpd
Message-ID:  <201404181935.s3IJZiqE013026@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Fri Apr 18 19:35:44 2014
New Revision: 351562
URL: http://svnweb.freebsd.org/changeset/ports/351562
QAT: https://qat.redports.org/buildarchive/r351562/

Log:
  STAGE support.

Modified:
  head/ftp/smbftpd/Makefile
  head/ftp/smbftpd/pkg-descr

Modified: head/ftp/smbftpd/Makefile
==============================================================================
--- head/ftp/smbftpd/Makefile	Fri Apr 18 19:23:45 2014	(r351561)
+++ head/ftp/smbftpd/Makefile	Fri Apr 18 19:35:44 2014	(r351562)
@@ -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>

Modified: head/ftp/smbftpd/pkg-descr
==============================================================================
--- head/ftp/smbftpd/pkg-descr	Fri Apr 18 19:23:45 2014	(r351561)
+++ head/ftp/smbftpd/pkg-descr	Fri Apr 18 19:35:44 2014	(r351562)
@@ -3,4 +3,4 @@ original FreeBSD ftpd features, it enhan
 integrate configuration files, and more useful features.  SmbFTPD also support
 SSL/TLS encryption.
 
-WWW:	http://www.twbsd.org/enu/smbftpd/index.php
+WWW: http://www.twbsd.org/enu/smbftpd/index.php



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404181935.s3IJZiqE013026>