Samples should be named .sample

This commit is contained in:
Antoine Brodin 2014-12-23 13:58:19 +00:00
parent cf0b040a44
commit 30ad956649
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375327
2 changed files with 33 additions and 21 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= swift
PORTVERSION= 2.2.0
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= http://launchpadlibrarian.net/187486124/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -33,8 +34,16 @@ USE_RC_SUBR= swift
USERS= swift
GROUPS= swift
post-extract:
@(cd ${WRKSRC}/etc; \
for f in *-sample; do\
${MV} $${f} $${f%%-sample}.sample;\
done)
post-patch:
@${REINPLACE_CMD} -e "s|/etc/swift|${PREFIX}/etc/${PORTNAME}|" \
-e "s|conf-sample|conf.sample|" \
-e "s|types-sample|types.sample|" \
${WRKSRC}/bin/swift-account-audit \
${WRKSRC}/bin/swift-account-info \
${WRKSRC}/bin/swift-container-info \
@ -55,13 +64,15 @@ post-patch:
${WRKSRC}/doc/manpages/swift-dispersion-report.1 \
${WRKSRC}/doc/manpages/swift-get-nodes.1 \
${WRKSRC}/doc/manpages/swift-recon.1 \
${WRKSRC}/etc/account-server.conf-sample \
${WRKSRC}/etc/container-reconciler.conf-sample \
${WRKSRC}/etc/container-server.conf-sample \
${WRKSRC}/etc/dispersion.conf-sample \
${WRKSRC}/etc/object-expirer.conf-sample \
${WRKSRC}/etc/object-server.conf-sample \
${WRKSRC}/etc/proxy-server.conf-sample \
${WRKSRC}/etc/account-server.conf.sample \
${WRKSRC}/etc/container-reconciler.conf.sample \
${WRKSRC}/etc/container-server.conf.sample \
${WRKSRC}/etc/dispersion.conf.sample \
${WRKSRC}/etc/object-expirer.conf.sample \
${WRKSRC}/etc/object-server.conf.sample \
${WRKSRC}/etc/proxy-server.conf.sample \
${WRKSRC}/etc/swift.conf.sample \
${WRKSRC}/swift.egg-info/SOURCES.txt \
${WRKSRC}/swift/account/reaper.py \
${WRKSRC}/swift/cli/info.py \
${WRKSRC}/swift/cli/recon.py \
@ -75,6 +86,7 @@ post-patch:
${WRKSRC}/swift/common/middleware/memcache.py \
${WRKSRC}/swift/common/middleware/recon.py \
${WRKSRC}/swift/common/middleware/staticweb.py \
${WRKSRC}/swift/common/middleware/tempauth.py \
${WRKSRC}/swift/common/utils.py \
${WRKSRC}/swift/container/reconciler.py \
${WRKSRC}/swift/container/server.py \

View File

@ -1,17 +1,17 @@
@sample %%ETCDIR%%/account-server.conf-sample
@sample %%ETCDIR%%/container-reconciler.conf-sample
@sample %%ETCDIR%%/container-server.conf-sample
@sample %%ETCDIR%%/container-sync-realms.conf-sample
@sample %%ETCDIR%%/dispersion.conf-sample
@sample %%ETCDIR%%/drive-audit.conf-sample
@sample %%ETCDIR%%/memcache.conf-sample
@sample %%ETCDIR%%/mime.types-sample
@sample %%ETCDIR%%/object-expirer.conf-sample
@sample %%ETCDIR%%/object-server.conf-sample
@sample %%ETCDIR%%/proxy-server.conf-sample
@sample %%ETCDIR%%/rsyncd.conf-sample
@sample %%ETCDIR%%/swift-rsyslog.conf-sample
@sample %%ETCDIR%%/swift.conf-sample
@sample %%ETCDIR%%/account-server.conf.sample
@sample %%ETCDIR%%/container-reconciler.conf.sample
@sample %%ETCDIR%%/container-server.conf.sample
@sample %%ETCDIR%%/container-sync-realms.conf.sample
@sample %%ETCDIR%%/dispersion.conf.sample
@sample %%ETCDIR%%/drive-audit.conf.sample
@sample %%ETCDIR%%/memcache.conf.sample
@sample %%ETCDIR%%/mime.types.sample
@sample %%ETCDIR%%/object-expirer.conf.sample
@sample %%ETCDIR%%/object-server.conf.sample
@sample %%ETCDIR%%/proxy-server.conf.sample
@sample %%ETCDIR%%/rsyncd.conf.sample
@sample %%ETCDIR%%/swift-rsyslog.conf.sample
@sample %%ETCDIR%%/swift.conf.sample
man/man1/swift-account-auditor.1.gz
man/man1/swift-account-info.1.gz
man/man1/swift-account-reaper.1.gz