diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2010-11-09 12:33:00 +0000 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2010-11-09 12:33:00 +0000 |
commit | 03edea38a6c3636286d7a83805e8ec3ac86743b1 (patch) | |
tree | d3d2d7ad612bcc917d37f8a9b9e30f5d56f7c62e /ftp | |
parent | d5e5504b6b47145a6833ea7cf4faf93fc9682151 (diff) | |
download | FreeBSD-ports-03edea38a6c3636286d7a83805e8ec3ac86743b1.zip FreeBSD-ports-03edea38a6c3636286d7a83805e8ec3ac86743b1.tar.gz |
- 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)
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/smbftpd/Makefile | 7 | ||||
-rw-r--r-- | ftp/smbftpd/distinfo | 1 | ||||
-rw-r--r-- | ftp/smbftpd/pkg-plist | 10 |
3 files changed, 11 insertions, 7 deletions
diff --git a/ftp/smbftpd/Makefile b/ftp/smbftpd/Makefile index ff3ebac..103a9dd 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 c7628e0..80397ad 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 48ef75e..9864637 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%% |