aboutsummaryrefslogtreecommitdiffstats
path: root/irc/darkbot
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-12-23 07:20:53 +0800
committerbapt <bapt@FreeBSD.org>2016-12-23 07:20:53 +0800
commit8a9d74a26e4007f71619c35b440644109cc071f0 (patch)
tree3b850e94bf705b7076e74b5378282fc3a68f409e /irc/darkbot
parent012647b580c07bffcd1ca3deee5ad4468e48e771 (diff)
downloadfreebsd-ports-gnome-8a9d74a26e4007f71619c35b440644109cc071f0.tar.gz
freebsd-ports-gnome-8a9d74a26e4007f71619c35b440644109cc071f0.tar.zst
freebsd-ports-gnome-8a9d74a26e4007f71619c35b440644109cc071f0.zip
Use plist and @sample
top overwriting users config at each upgrade
Diffstat (limited to 'irc/darkbot')
-rw-r--r--irc/darkbot/Makefile10
-rw-r--r--irc/darkbot/pkg-plist14
2 files changed, 15 insertions, 9 deletions
diff --git a/irc/darkbot/Makefile b/irc/darkbot/Makefile
index 3f87852041f0..593c5c0f6114 100644
--- a/irc/darkbot/Makefile
+++ b/irc/darkbot/Makefile
@@ -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 algorithm for its database
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:
diff --git a/irc/darkbot/pkg-plist b/irc/darkbot/pkg-plist
new file mode 100644
index 000000000000..e359fa70c9bd
--- /dev/null
+++ b/irc/darkbot/pkg-plist
@@ -0,0 +1,14 @@
+bin/darkbot
+%%ETCDIR%%/AddServer
+%%ETCDIR%%/Adduser
+%%ETCDIR%%/config
+%%ETCDIR%%/configure
+@sample %%ETCDIR%%/dat/deop.ini.dist %%ETCDIR%%/dat/deop.ini
+@sample %%ETCDIR%%/dat/info2.db.dist %%ETCDIR%%/dat/info2.db
+@sample %%ETCDIR%%/dat/perform.ini.dist %%ETCDIR%%/dat/perform.ini
+@sample %%ETCDIR%%/dat/permbans.db.dist %%ETCDIR%%/dat/permbans.db
+@sample %%ETCDIR%%/dat/random.ini.dist %%ETCDIR%%/dat/random.ini
+@sample %%ETCDIR%%/dat/randomstuff.ini.dist %%ETCDIR%%/dat/randomstuff.ini
+@sample %%ETCDIR%%/dat/seen.db.dist %%ETCDIR%%/dat/seen.db
+%%ETCDIR%%/logs/.pkgcreate
+man/man1/darkbot.1.gz