mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
net/teddycloud: do not overwrite config on update
Make sure files in etc are only created on first install and not overwritten by subsequent updates. This fixes the problem, that the following files are always overwritten by updates: /usr/local/etc/teddycloud/tonieboxes.json /usr/local/etc/teddycloud/tonies.json And also the nightly checksum test does not complain anymore. PR: 287263 Reported by: Matthias Fechner <mfechner@FreeBSD.org> Tested by: Michael Pape <freebsd@pe82.de>
This commit is contained in:
committed by
Matthias Fechner
parent
e16761234c
commit
e718cd7011
@@ -1,6 +1,7 @@
|
||||
PORTNAME= teddycloud
|
||||
DISTVERSIONPREFIX= tc_v
|
||||
DISTVERSION= 0.6.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
# Get the latest commit hashes here: https://github.com/toniebox-reverse-engineering/tonies-json/commits/release/
|
||||
# NOTE: remove the existing tonies.json and tonieboxes.json from DISTDIR before you do a `make makesum`
|
||||
@@ -74,7 +75,7 @@ do-install:
|
||||
@(cd ${WRKSRC}/install/pre/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/data)
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/certs
|
||||
@(cd ${WRKSRC}/install/pre/certs && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/certs)
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/teddycloud
|
||||
@(cd ${WRKSRC}/install/pre/config && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/etc/teddycloud)
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@(cd ${WRKSRC}/install/pre/config && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
bin/teddycloud
|
||||
%%ETCDIR%%/tonieboxes.custom.json
|
||||
%%ETCDIR%%/tonieboxes.json
|
||||
%%ETCDIR%%/tonies.custom.json
|
||||
%%ETCDIR%%/tonies.json
|
||||
@sample %%EXAMPLESDIR%%/tonieboxes.custom.json %%ETCDIR%%/tonieboxes.custom.json
|
||||
@sample %%EXAMPLESDIR%%/tonieboxes.json %%ETCDIR%%/tonieboxes.json
|
||||
@sample %%EXAMPLESDIR%%/tonies.custom.json %%ETCDIR%%/tonies.custom.json
|
||||
@sample %%EXAMPLESDIR%%/tonies.json %%ETCDIR%%/tonies.json
|
||||
%%DATADIR%%/data/www/404.html
|
||||
%%DATADIR%%/data/www/encode_test.html
|
||||
%%DATADIR%%/data/www/favicon.ico
|
||||
|
||||
Reference in New Issue
Block a user