protect some files on updates

This commit is contained in:
jasper 2013-04-04 16:28:20 +00:00
parent ffe6844fac
commit fdd0279249
2 changed files with 10 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.3 2013/03/25 10:26:49 jasper Exp $
# $OpenBSD: Makefile,v 1.4 2013/04/04 16:28:20 jasper Exp $
COMMENT= innovative open source CMS and framework
V= 3.0.5
DISTNAME= SilverStripe-cms-v${V}
PKGNAME= silverstripe-${V}
REVISION= 0
REVISION= 1
CATEGORIES= www
@ -36,5 +36,8 @@ SUBST_VARS+= INSTDIR
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cd ${WRKSRC} && tar cf - . | (cd ${INSTDIR}; tar xf -)
.for f in .htaccess _config.php
mv ${PREFIX}/silverstripe/mysite/${f} ${PREFIX}/silverstripe/mysite/${f}.dist
.endfor
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/08 10:43:52 jasper Exp $
@comment $OpenBSD: PLIST,v 1.2 2013/04/04 16:28:20 jasper Exp $
silverstripe/
@owner www
silverstripe/.htaccess
@ -4531,8 +4531,10 @@ silverstripe/install-frameworkmissing.html
silverstripe/install.php
@owner www
silverstripe/mysite/
silverstripe/mysite/.htaccess
silverstripe/mysite/_config.php
silverstripe/mysite/.htaccess.dist
@sample silverstripe/mysite/.htaccess
silverstripe/mysite/_config.php.dist
@sample silverstripe/mysite/_config.php
@owner
silverstripe/mysite/code/
silverstripe/mysite/code/Page.php