summaryrefslogtreecommitdiffstats
path: root/news/cnews/pkg-plist
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-05-26 15:29:12 +0000
committerdinoex <dinoex@FreeBSD.org>2001-05-26 15:29:12 +0000
commit031a3f929d500afeac7e9fd78b8b8fe6c7c434f5 (patch)
treeeada58215973fe5c8b4a4393a20e904a452c5ea6 /news/cnews/pkg-plist
parent99a1ba5542358487b7a15ef87b98fe5913f59a8f (diff)
downloadFreeBSD-ports-031a3f929d500afeac7e9fd78b8b8fe6c7c434f5.zip
FreeBSD-ports-031a3f929d500afeac7e9fd78b8b8fe6c7c434f5.tar.gz
- Change path in pkg-plist, using %D instead of absoulte names
Diffstat (limited to 'news/cnews/pkg-plist')
-rw-r--r--news/cnews/pkg-plist19
1 files changed, 10 insertions, 9 deletions
diff --git a/news/cnews/pkg-plist b/news/cnews/pkg-plist
index 18a526b..95b16ee 100644
--- a/news/cnews/pkg-plist
+++ b/news/cnews/pkg-plist
@@ -1,15 +1,16 @@
@comment Package is not complete without minimal /var/news installation :-(
@comment Basically just in.* and out.* /var/news might be a symbolic link
@comment and it might not exist yet :-(
-@exec ln -sf /usr/local/newsspool /var/news
-@unexec rm -f /usr/local/newsspool
-@exec mkdir -p /usr/local/newsspool/in.coming/bad
-@exec cd /usr/local/newsspool; mkdir -p out.going out.master out.nntp
-@dirrm /usr/local/newsspool/in.coming/bad
-@dirrm /usr/local/newsspool/in.coming
-@dirrm /usr/local/newsspool/out.going
-@dirrm /usr/local/newsspool/out.master
-@dirrm /usr/local/newsspool/out.nntp
+@exec ln -sf %D/newsspool /var/news
+@exec mkdir -p %D/newsspool/in.coming/bad
+@exec cd %D/newsspool; mkdir -p out.going out.master out.nntp
+@dirrm newsspool/in.coming/bad
+@dirrm newsspool/in.coming
+@dirrm newsspool/out.going
+@dirrm newsspool/out.master
+@dirrm newsspool/out.nntp
+@unexec if [ -h %D/newsspool ]; then rm -f %D/newsspool; fi
+@unexec if [ -d %D/newsspool ]; then rmdir %D/newsspool; fi
bin/checknews
bin/cnewsdo
bin/inews
OpenPOWER on IntegriCloud