aboutsummaryrefslogtreecommitdiff
path: root/irc/ratbox-services
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-16 21:09:33 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-16 21:09:33 +0000
commit868c6b51d635ad954b0ed2ea39ae69659bd6e6e6 (patch)
tree3a4be3b719ce96110a433ce5375184ee3e6e03ad /irc/ratbox-services
parent92126df09b925c37241b1b62dbe271f151ab9d27 (diff)
downloadports-868c6b51d635ad954b0ed2ea39ae69659bd6e6e6.tar.gz
ports-868c6b51d635ad954b0ed2ea39ae69659bd6e6e6.zip
Notes
Diffstat (limited to 'irc/ratbox-services')
-rw-r--r--irc/ratbox-services/Makefile1
-rw-r--r--irc/ratbox-services/pkg-plist10
2 files changed, 6 insertions, 5 deletions
diff --git a/irc/ratbox-services/Makefile b/irc/ratbox-services/Makefile
index df57aab306a2..02edf38cc5ad 100644
--- a/irc/ratbox-services/Makefile
+++ b/irc/ratbox-services/Makefile
@@ -6,6 +6,7 @@
PORTNAME= ratbox-services
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= ftp://ftp.ircd-ratbox.org/pub/ircd-ratbox/${PORTNAME}/ \
ftp://ftp.demon.co.uk/pub/mirrors/ircd-ratbox/${PORTNAME}/ \
diff --git a/irc/ratbox-services/pkg-plist b/irc/ratbox-services/pkg-plist
index 09cd0095df65..6adb176b17d3 100644
--- a/irc/ratbox-services/pkg-plist
+++ b/irc/ratbox-services/pkg-plist
@@ -607,14 +607,14 @@ include/client.h
%%DATADIR%%/langs/ru.lang
@dirrm %%DATADIR%%/help
@dirrm %%DATADIR%%/langs
-@unexec f="/usr/local/share/ratbox-services/schema-mysql.txt"; if [ -f "$f" ]; then rm -f "$f"; fi
-@unexec f="/usr/local/share/ratbox-services/schema-pgsql.txt"; if [ -f "$f" ]; then rm -f "$f"; fi
-@unexec f="/usr/local/share/ratbox-services/schema-sqlite.txt"; if [ -f "$f" ]; then rm -f "$f"; fi
+@unexec if [ -f "%D/%%DATADIR%%/schema-mysql.txt" ]; then rm -f "%D/%%DATADIR%%/schema-mysql.txt"; fi
+@unexec if [ -f "%D/%%DATADIR%%/schema-pgsql.txt" ]; then rm -f "%D/%%DATADIR%%/schema-pgsql.txt"; fi
+@unexec if [ -f "%D/%%DATADIR%%/schema-sqlite.txt" ]; then rm -f "%D/%%DATADIR%%/schema-sqlite.txt"; fi
@dirrm %%DATADIR%%
@dirrmtry %%DBDIR%%
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
-@unexec if cmp -s %D/etc/ratbox-services.conf.sample %D/etc/ratbox-services.conf; then rm -f %D/etc/ratbox-services.conf; fi
+@unexec if cmp -s "%D/etc/ratbox-services.conf.sample" "%D/etc/ratbox-services.conf"; then rm -f %D/etc/ratbox-services.conf; fi
etc/ratbox-services.conf.sample
-@exec if [ ! -f %D/etc/ratbox-services.conf ] ; then cp -p %D/%F %B/ratbox-services.conf; fi
+@exec if [ ! -f "%D/etc/ratbox-services.conf" ] ; then cp -p "%D/%F" "%B/ratbox-services.conf"; fi
@unexec f="/var/log/ratbox-services.log"; if [ ! -s "$f" ]; then rm -f "$f"; fi
@unexec f="/var/run/ratbox-services.pid"; if [ ! -s "$f" ]; then rm -f "$f"; fi