aboutsummaryrefslogtreecommitdiff
path: root/ftp/smbftpd
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2010-11-09 12:33:00 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2010-11-09 12:33:00 +0000
commit8f8657420e422e9eaa1797cf4703550551c4643f (patch)
treeb0a6dc454bb5fd0ff2e1364e68283b6deb883743 /ftp/smbftpd
parent42264dd8f1078a5ce9bde5bbc9b9be2727f32f85 (diff)
downloadports-8f8657420e422e9eaa1797cf4703550551c4643f.tar.gz
ports-8f8657420e422e9eaa1797cf4703550551c4643f.zip
- Install configuration files as *.sample to avoid overriding existing ones
- Use ETCDIR - Bump PORTEVISION PR: ports/150145 Submitted by: Sergey Zaykov <mail_of_sergey@mail.ru> (based on) Approved by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw> (maintainer)
Notes
Notes: svn path=/head/; revision=264303
Diffstat (limited to 'ftp/smbftpd')
-rw-r--r--ftp/smbftpd/Makefile7
-rw-r--r--ftp/smbftpd/distinfo1
-rw-r--r--ftp/smbftpd/pkg-plist10
3 files changed, 11 insertions, 7 deletions
diff --git a/ftp/smbftpd/Makefile b/ftp/smbftpd/Makefile
index ff3ebac39c21..103a9ddad549 100644
--- a/ftp/smbftpd/Makefile
+++ b/ftp/smbftpd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= smbftpd
PORTVERSION= 2.2
+PORTREVISION= 1
CATEGORIES= ftp
MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \
http://www.twbsd.org/download/download.php?file=smbftpd/
@@ -24,7 +25,7 @@ MAKE_ENV= OSTYPE=FreeBSD
CONFIGURE_ARGS= "--prefix=${PREFIX}"
USE_PERL5= yes
-USE_RC_SUBR= smbftpd.sh
+USE_RC_SUBR= ${PORTNAME}.sh
.include <bsd.port.pre.mk>
@@ -51,4 +52,8 @@ CONFIGURE_ARGS+= "--with-ssl"
BROKEN= fails to build with new utmpx
.endif
+post-patch:
+ @${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile
+ @cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample)
+
.include <bsd.port.post.mk>
diff --git a/ftp/smbftpd/distinfo b/ftp/smbftpd/distinfo
index c7628e093eb2..80397ad26391 100644
--- a/ftp/smbftpd/distinfo
+++ b/ftp/smbftpd/distinfo
@@ -1,3 +1,2 @@
-MD5 (smbftpd-2.2.tar.gz) = 89a263832c4363c4bf00aef32b6007a7
SHA256 (smbftpd-2.2.tar.gz) = 9b9fff9c525652a5a68aeec3ad210dc52baeeeef684934aa2ddbbec7b69351a2
SIZE (smbftpd-2.2.tar.gz) = 139266
diff --git a/ftp/smbftpd/pkg-plist b/ftp/smbftpd/pkg-plist
index 48ef75eaa115..9864637ed6eb 100644
--- a/ftp/smbftpd/pkg-plist
+++ b/ftp/smbftpd/pkg-plist
@@ -1,8 +1,8 @@
@comment $FreeBSD$
bin/smbftpd-user
-etc/smbftpd/smbftpd.conf
-etc/smbftpd/smbftpd_share.conf
-etc/smbftpd/smbftpd_mysql.conf
-etc/smbftpd/smbftpd_pgsql.conf
+%%ETCDIR%%/smbftpd.conf.sample
+%%ETCDIR%%/smbftpd_share.conf.sample
+%%ETCDIR%%/smbftpd_mysql.conf.sample
+%%ETCDIR%%/smbftpd_pgsql.conf.sample
sbin/smbftpd
-@dirrmtry etc/smbftpd
+@dirrmtry %%ETCDIR%%