svn commit: r429202 - head/irc/darkbot
Baptiste Daroussin
bapt at FreeBSD.org
Thu Dec 22 23:20:55 UTC 2016
Author: bapt
Date: Thu Dec 22 23:20:53 2016
New Revision: 429202
URL: https://svnweb.freebsd.org/changeset/ports/429202
Log:
Use plist and @sample
top overwriting users config at each upgrade
Added:
head/irc/darkbot/pkg-plist (contents, props changed)
Modified:
head/irc/darkbot/Makefile
Modified: head/irc/darkbot/Makefile
==============================================================================
--- head/irc/darkbot/Makefile Thu Dec 22 23:14:43 2016 (r429201)
+++ head/irc/darkbot/Makefile Thu Dec 22 23:20:53 2016 (r429202)
@@ -3,7 +3,7 @@
PORTNAME= darkbot
PORTVERSION= 6f6.r6
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= irc
MASTER_SITES= http://darkbot.sourceforge.net/archive/unix/ \
@@ -16,7 +16,6 @@ COMMENT= IRC talking bot with a fast alg
SUB_FILES= pkg-message
PORTDOCS= README
-PLIST_FILES= bin/darkbot %%ETCDIR%%/logs/.pkgcreate man/man1/darkbot.1.gz
NO_CDROM= no commercial distribution
OPTIONS_DEFINE= DOCS
@@ -32,18 +31,11 @@ do-install:
cd ${WRKSRC}/dat; \
for file in *; do \
${INSTALL_DATA} $$file ${STAGEDIR}${ETCDIR}/dat/$${file}.dist; \
- ${CP} -np ${ETCDIR}/dat/$${file}.dist ${STAGEDIR}${ETCDIR}/dat/$$file || ${TRUE} ; \
- ${ECHO_CMD} "@unexec cmp -s ${ETCDIR}/dat/$$file \
- ${ETCDIR}/dat/$${file}.dist && \
- rm -f ${ETCDIR}/dat/$$file || true" >> ${TMPPLIST}; \
- ${ECHO_CMD} "${ETCDIR_REL}/dat/$${file}.dist" >> ${TMPPLIST}; \
- ${ECHO_CMD} "@exec cp -np %D/%F %B/$$file || true" >> ${TMPPLIST}; \
done
${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/configure
${ECHO_CMD} 'cd ${ETCDIR} && ${SH} config' >> ${WRKSRC}/configure
.for s in config configure AddServer Adduser
${INSTALL_SCRIPT} ${WRKSRC}/$s ${STAGEDIR}${ETCDIR}
- ${ECHO_CMD} ${ETCDIR_REL}/$s >> ${TMPPLIST}
.endfor
do-install-DOCS-on:
Added: head/irc/darkbot/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/irc/darkbot/pkg-plist Thu Dec 22 23:20:53 2016 (r429202)
@@ -0,0 +1,14 @@
+bin/darkbot
+%%ETCDIR%%/AddServer
+%%ETCDIR%%/Adduser
+%%ETCDIR%%/config
+%%ETCDIR%%/configure
+ at sample %%ETCDIR%%/dat/deop.ini.dist %%ETCDIR%%/dat/deop.ini
+ at sample %%ETCDIR%%/dat/info2.db.dist %%ETCDIR%%/dat/info2.db
+ at sample %%ETCDIR%%/dat/perform.ini.dist %%ETCDIR%%/dat/perform.ini
+ at sample %%ETCDIR%%/dat/permbans.db.dist %%ETCDIR%%/dat/permbans.db
+ at sample %%ETCDIR%%/dat/random.ini.dist %%ETCDIR%%/dat/random.ini
+ at sample %%ETCDIR%%/dat/randomstuff.ini.dist %%ETCDIR%%/dat/randomstuff.ini
+ at sample %%ETCDIR%%/dat/seen.db.dist %%ETCDIR%%/dat/seen.db
+%%ETCDIR%%/logs/.pkgcreate
+man/man1/darkbot.1.gz
More information about the svn-ports-head
mailing list