Add logic to delete ini file if not modified

Bump PORTREVISION

PR:		27461
This commit is contained in:
David W. Chapman Jr. 2001-06-16 05:07:07 +00:00
parent 2f64b67322
commit a6a883f5eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44054
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= dnetc
PORTVERSION= 2.8010.462
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/%SUBDIR%/ \
@ -72,7 +73,7 @@ do-install:
fi
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
${INSTALL} -c -m 644 -o ${CLIENTUID} -g ${CLIENTGID} ${WRKDIR}/dnetc.ini ${BINDIR}/dnetc.ini.default
.if !exists(${BINDIR}/dnetc.ini)
@echo ""
@echo ""

View File

@ -1,5 +1,7 @@
@unexec if cmp -s %D/distributed.net/dnetc.ini %D/distributed.net/dnetc.ini.default; then rm -f %D/distributed.net/dnetc.ini; fi
distributed.net/dnetc
distributed.net/dnetc.sh
distributed.net/INFO
distributed.net/dnetc.ini.default
etc/rc.d/dnetc.sh
@unexec rmdir %D/distributed.net 2>/dev/null || true