summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-06 12:08:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-06 12:08:10 +0000
commit693259a191b8bda5416ca3cae77fa63ec720bdf7 (patch)
tree1ae6318c92b2c403fc6426a2755a8e42f32cf42b /news
parentFollowup to last commit: Add missing radeon_cursor.c to the list of patches. (diff)
slurp port overwrites/delete existing configuration file
Installing(/deinstalling) package slurp-1.10_1 causes any existing configuration file /usr/local/news/lib/slurp.sys to be overwritten(/deleted). Since this file may be quite long this is a considerable annoyance. Package should install a sample file instead, eg. /usr/local/news/lib/slurp.sys.sample PR: ports/40276 Submitted by: Thomas Sandford <freebsduser@paradisegreen.co.uk>
Notes
Notes: svn path=/head/; revision=78409
Diffstat (limited to 'news')
-rw-r--r--news/slurp/Makefile7
-rw-r--r--news/slurp/pkg-message4
-rw-r--r--news/slurp/pkg-plist2
3 files changed, 10 insertions, 3 deletions
diff --git a/news/slurp/Makefile b/news/slurp/Makefile
index e85bb172036f..229ef32896ca 100644
--- a/news/slurp/Makefile
+++ b/news/slurp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= slurp
PORTVERSION= 1.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= ftp://ftp.demon.co.uk/pub/news/slurp/
EXTRACT_SUFX= .tar.Z
@@ -24,6 +24,9 @@ pre-install:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/slurp ${PREFIX}/news/bin
${INSTALL_MAN} ${WRKSRC}/slurp.1 ${PREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/slurp.sys ${PREFIX}/news/lib
+ ${INSTALL_DATA} ${WRKSRC}/slurp.sys ${PREFIX}/news/lib/slurp.sys.sample
+
+post-install:
+ ${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/news/slurp/pkg-message b/news/slurp/pkg-message
new file mode 100644
index 000000000000..2ed9d0e0fbab
--- /dev/null
+++ b/news/slurp/pkg-message
@@ -0,0 +1,4 @@
+*******************************************************************************
+Copy ${LOCALBASE}/news/lib/slurp.sys.sample to slurp.sys before you
+start slurp and all will be fine!
+*******************************************************************************
diff --git a/news/slurp/pkg-plist b/news/slurp/pkg-plist
index 6daf07d7df11..9094f01cd881 100644
--- a/news/slurp/pkg-plist
+++ b/news/slurp/pkg-plist
@@ -1,5 +1,5 @@
news/bin/slurp
-news/lib/slurp.sys
+news/lib/slurp.sys.sample
@unexec rmdir %D/news/lib 2> /dev/null || true
@unexec rmdir %D/news/bin 2> /dev/null || true
@unexec rmdir %D/news 2> /dev/null || true